/*  Проект: Крюинговое Агенство «Marine Star», версия: 3.1  */
/*         Автор: M@nuL (verhovetskiy.ki@gmail.com)         */
/*                   Основной файл Стилей                   */
:root {
    --navy-950: #020911;
    --navy-900: #061827;
    --navy-850: #081d30;
    --navy-800: #0b2439;
    --gold-500: #d7a23a;
    --gold-400: #e9bd5a;
    --gold-300: #f3d17d;
    --white: #fff;
    --text: #172330;
    --muted: #71808d;
    --container: 1380px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #f5f7f9;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

img { max-width: 100%; }

a { color: inherit; }

button, input, textarea, select { font: inherit; }

.container {
    width: min(calc(100% - 80px), var(--container));
    margin: 0 auto;
}


/*                         Для FAQ                          */
.faq-hint {
    margin-top: 25px;
    padding: 15px 20px;
    background: rgba(0, 170, 255, 0.08);
    border-left: 3px solid var(--gold-400);
    color: var(--gray-200);
    font-size: 15px;
    text-align: center;
}

.faq-item summary {
    cursor: pointer;
}

.faq-item summary::marker {
    color: #000;
    animation: faqTrianglePulse 1.2s infinite alternate;
}

@keyframes faqTrianglePulse {
    from {
        color: #000;
    }

    to {
        color: #00aaff;
    }
}

/*                          HEADER                          */
.topbar {
    min-height: 40px;
    background: #04111d;
    color: rgba(255,255,255,.8);
}

.topbar .container {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar a, .topbar span {
    font-size: 11px;
    text-decoration: none;
}

.languages {
    display: flex;
    gap: 11px;
}

.languages a {
    color: rgba(255,255,255,.6);
    font-weight: 700;
}

.languages a.active, .languages a:hover {
    color: var(--gold-400);
}

.site-header {
    position: relative;
    z-index: 20;
    background: #061827;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    background: transparent;
    padding: 0;
}

.logo img {
    display: block;
    width: 165px;
    height: auto;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    position: relative;
    padding: 29px 0;
    color: rgba(255,255,255,.86);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;
    height: 2px;
    background: var(--gold-500);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}

.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-cabinet {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--gold-500);
    color: var(--gold-400);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.header-cabinet:hover {
    background: var(--gold-500);
    color: var(--navy-950);
}

.search-button {
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-button span:first-child {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 13px;
    height: 13px;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.search-button span:last-child {
    position: absolute;
    left: 17px;
    top: 17px;
    width: 7px;
    height: 1.5px;
    background: #fff;
    transform: rotate(45deg);
}

/*                           HERO                           */
.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3,16,29,.97) 0%, rgba(3,16,29,.82) 28%, rgba(3,16,29,.42) 58%, rgba(3,16,29,.08) 100%),
        linear-gradient(0deg, rgba(3,16,29,.78), rgba(3,16,29,.08)),
        url("../../assets/img/marine_bg_sunset.jpg") center center / cover no-repeat;
}

.hero-inner {
    min-height: 610px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(650px, 100%);
    padding: 25px 0;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: block;
    margin-bottom: 13px;
    color: var(--gold-400);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.hero-text {
    max-width: 590px;
    margin: 21px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 27px;
}

.hero-panorama {
    position: absolute;
    right: 25px;
    bottom: 70px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panorama-arrow {
    border: 0;
    padding: 0 4px;
    background: transparent;
    color: rgba(255,255,255,.75);
    font-size: 25px;
    cursor: pointer;
}

.panorama-360 {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(4,17,29,.28);
    color: #fff;
}

.panorama-360 strong { font-size: 10px; line-height: 1; }
.panorama-360 span {
    margin-top: 3px;
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 21px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .45px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
    border-color: var(--gold-500);
    background: var(--gold-500);
    color: #fff;
}

.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
}

.btn-light-outline {
    border-color: rgba(255,255,255,.65);
    background: rgba(3,16,29,.12);
    color: #fff;
}

.btn-light-outline:hover {
    border-color: var(--gold-500);
    background: var(--gold-500);
    color: var(--navy-950);
}

.btn-navy {
    border-color: var(--navy-800);
    background: var(--navy-800);
    color: #fff;
}

/*                         BENEFITS                         */
.benefits {
    background: #041522;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.benefits-grid {
    min-height: 108px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.benefit:last-child { border-right: 0; }

.benefit-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    color: var(--gold-400);
    font-size: 19px;
}

.benefit strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.benefit span {
    display: block;
    max-width: 175px;
    margin-top: 4px;
    color: #b8c5d0;
    font-size: 11px;
    line-height: 1.35;
}

/*                        VACANCIES                         */
.section { padding: 72px 0; }

.vacancies-section { background: #f7f9fb; }

.section-heading {
    margin-bottom: 31px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-kicker {
    margin-bottom: 7px;
    color: var(--gold-500);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--navy-900);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
}

.section-link {
    color: #8e6a1e;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.section-link:hover { color: var(--navy-900); }

.vacancy-table {
    overflow: hidden;
    border: 1px solid #dce4ea;
    background: #fff;
    box-shadow: 0 10px 30px rgba(9,29,45,.06);
}

.vacancy-head, .vacancy-row {
    display: grid;
    grid-template-columns: 2.1fr 1.25fr 1.05fr .95fr .95fr 100px;
    align-items: center;
}

.vacancy-head {
    min-height: 48px;
    padding: 0 18px;
    background: var(--navy-900);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.vacancy-row {
    min-height: 82px;
    padding: 0 18px;
    border-top: 1px solid #e6ebef;
    color: #334350;
    font-size: 12px;
}

.vacancy-row:hover { background: #f5f9fc; }

.vacancy-position {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vacancy-position strong { color: var(--navy-900); font-size: 13px; }
.vacancy-position small { color: #8a98a3; font-size: 10px; }

.vacancy-cell { padding-right: 12px; }

.vacancy-button {
    justify-self: end;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--gold-500);
    color: #8f6b1f;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.vacancy-button:hover {
    background: var(--gold-500);
    color: #fff;
}

.empty-state {
    padding: 45px;
    color: #71808d;
    text-align: center;
}

/*                         AUDIENCE                         */
.audience {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 0 40px 72px;
    background: #f7f9fb;
}

.audience-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    background: var(--navy-900) center / cover no-repeat;
}

.audience-card.seafarers {
    background-image: url("../../assets/img/ship_bridge.jpg");
}

.audience-card.owners {
    background-image: url("../../assets/img/ship_container.jpg");
}

.audience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,15,27,.94), rgba(2,15,27,.55) 55%, rgba(2,15,27,.18));
}

.audience-content {
    position: relative;
    z-index: 2;
    min-height: 390px;
    max-width: 570px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.audience-kicker {
    margin-bottom: 8px;
    color: var(--gold-400);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.audience-content h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    text-transform: uppercase;
}

.audience-content p {
    max-width: 480px;
    margin: 15px 0 22px;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    line-height: 1.6;
}

/*                         METRICS                          */
.metrics {
    padding: 60px 0;
    background: #061827;
    color: #fff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.metric {
    padding: 8px 25px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.metric:last-child { border-right: 0; }

.metric strong {
    display: block;
    color: #fff;
    font-size: 30px;
    line-height: 1.1;
}

.metric span {
    display: block;
    margin-top: 6px;
    color: #b8c5d0;
    font-size: 11px;
}

/*                         CABINET                          */
.cabinet-section {
    padding: 62px 0;
    background: #f5f7f9;
}

.cabinet-box {
    min-height: 185px;
    padding: 38px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: linear-gradient(120deg, #071a2b, #0d2b44);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.cabinet-box h2 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    line-height: 1.15;
    text-transform: uppercase;
}

.cabinet-box p {
    max-width: 690px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 14px;
}

.cabinet-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.news-placeholder { display: none; }

/*                         Партнёры                         */
/* =========================
   PARTNERS
========================= */


.partners-section {

    padding: 80px 0;

    background: #f5f7fa;

}



.partners-grid {

    display:grid;

    grid-template-columns:
    repeat(2, minmax(0,1fr));

    gap:35px;

}



.partner-card {

    background:#fff;

    border:1px solid rgba(0,0,0,.08);

    overflow:hidden;

    transition:.35s;

}



.partner-card:hover {

    transform:translateY(-6px);

    box-shadow:
    0 15px 35px rgba(0,0,0,.12);

}



.partner-image {

    height:260px;

    overflow:hidden;

}



.partner-image img {

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}



.partner-card:hover .partner-image img {

    transform:scale(1.05);

}



.partner-content {

    padding:30px;

}



.partner-content h3 {

    margin-bottom:15px;

    color:#071523;

    font-size:20px;

}



.partner-content p {

    line-height:1.7;

    color:#555;

    min-height:90px;

}



.partner-content a {

    display:inline-block;

    margin-top:15px;

    color:#d5a437;

    font-weight:600;

    text-decoration:none;

    transition:.3s;

}



.partner-content a:hover {

    color:#071523;

}



@media(max-width:768px){


    .partners-grid {

        grid-template-columns:1fr;

    }


    .partner-image {

        height:220px;

    }


}

/*                          FOOTER                          */
.site-footer {
    padding: 58px 0 45px;
    background: #030f1a;
    color: rgba(255,255,255,.75);
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 42px;
}

.site-footer .footer-logo {
    display: inline-block;
    line-height: 0;
}

.site-footer .footer-logo img {
    width: 175px;
    height: auto;
}

.site-footer p {
    max-width: 350px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.53);
    font-size: 12px;
    line-height: 1.7;
}

.site-footer h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li { margin-bottom: 8px; }

.site-footer li, .site-footer a {
    color: rgba(255,255,255,.56);
    font-size: 12px;
    text-decoration: none;
}

.site-footer a:hover { color: var(--gold-400); }

footer a.active,
footer a.active:hover {
    color: var(--gold-400);
    text-decoration: none;
}

.footer-social-row .socials {
    margin-top: 0;
}

.socials {
    display: flex;
    gap: 7px;
    margin-top: 17px;
}

.socials a {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.15);
}

.social-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.footer-languages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-languages a {
    color: var(--gray-300);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-languages a:hover,
.footer-languages a.active {
    color: var(--gold-400);
}

.footer-languages span {
    color: var(--gray-500);
    font-size: 12px;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}

.footer-user-row {
    margin-top: 18px;

    display: flex;
    justify-content: left;
    align-items: left;
    gap: 10px;

    font-size: 14px;
}


.footer-user-row a {
    text-decoration: none;
    transition: .3s;
}


.footer-user-row a:hover {
    color: #d8a637;
}


.footer-divider {
    opacity: .5;
}

.footer-contact-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 0 13px;
    border: 1px solid var(--gold-500);
    color: var(--gold-400) !important;
    font-size: 9px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.copyright {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #020911;
    color: rgba(255,255,255,.4);
    font-size: 10px;
}

.copyright .container {
    width: min(calc(100% - 80px), var(--container));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.disabled-link {
    cursor: default;
    opacity: 0.55;
}

.footer-visits{
    margin-top:24px;
    padding:8px 11px;
    border:1px solid rgba(105,185,220,.55);
    border-radius:6px;
    background:rgba(105,185,220,.07);
    color:#e6c85c;
    font-size:12px;
    line-height:1.7;
    max-width:180px;
}
.footer-visits div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.footer-visits strong{
    color:#f2d56b;
    font-weight:600;
    min-width:20px;
    text-align:right;
}

/*              Кнопка возврата наверх MarineStar                    */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 38px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;

    background: rgba(7, 26, 45, .88);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease;

    z-index: 9999;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0d2b47;
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .back-to-top {
        right: 18px;
        bottom: 28px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* Защита формы регистрации: honeypot скрыт от пользователя */
.auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/*              MarineStar — настоящий crossfade страниц              */

.page-transition-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.page-transition-page {
    width: 100%;
}

.page-transition-page-current {
    position: relative;
    width: 100%;
    opacity: 1;
}

.page-transition-old,
.page-transition-new {
    width: 100%;
}

.page-transition-old {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
}

.page-transition-new {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.page-transition-fade-out {
    animation: marineStarPageFadeOut 2s ease-in-out forwards;
}

.page-transition-fade-in {
    animation: marineStarPageFadeIn 2s ease-in-out forwards;
}

@keyframes marineStarPageFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes marineStarPageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition-fade-out,
    .page-transition-fade-in {
        animation: none;
    }

    .page-transition-old {
        opacity: 0;
    }

    .page-transition-new {
        opacity: 1;
    }
}

/*                          @media                          */
/*                        RESPONSIVE                        */
@media (max-width: 1200px) {
    .container { width: min(calc(100% - 50px), var(--container)); }
    .main-nav { gap: 14px; }
    .main-nav a { font-size: 9px; }
    .header-inner { gap: 17px; }
    .logo img { width: 145px; }
    .audience { padding-left: 25px; padding-right: 25px; }
}

@media (max-width: 980px) {
    .main-nav, .header-cabinet { display: none; }
    .header-inner { justify-content: space-between; }
    .benefits-grid, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .benefit:nth-child(2), .metric:nth-child(2) { border-right: 0; }
    .audience { grid-template-columns: 1fr; }
    .site-footer .container { grid-template-columns: repeat(2, 1fr); }
    .vacancy-head, .vacancy-row { grid-template-columns: 1.8fr 1.2fr 1fr .9fr .9fr 90px; }
}

@media (max-width: 700px) {
    .container { width: calc(100% - 30px); }
    .topbar { display: none; }
    .header-inner { min-height: 70px; }
    .logo img { width: 135px; }

    .hero, .hero-inner { min-height: 600px; }
    .hero { background-position: 62% center; }
    .hero-content { align-self: flex-end; padding-bottom: 65px; }
    .hero h1 { font-size: 36px; }
    .hero-text { font-size: 14px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .hero-panorama { display: none; }

    .benefits-grid, .metrics-grid { grid-template-columns: 1fr; }
    .benefit, .benefit:nth-child(2), .metric, .metric:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .benefit:last-child, .metric:last-child { border-bottom: 0; }

    .section { padding: 55px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-title { font-size: 27px; }

    .vacancy-head { display: none; }
    .vacancy-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
    }
    .vacancy-cell { padding: 0; }
    .vacancy-button { justify-self: start; margin-top: 4px; }

    .audience {
        padding: 0 15px 55px;
        gap: 15px;
    }
    .audience-card, .audience-content { min-height: 350px; }
    .audience-content { padding: 32px; }
    .audience-content h2 { font-size: 26px; }

    .metric { padding: 20px 0; }
    .cabinet-box { flex-direction: column; align-items: flex-start; padding: 32px; }
    .cabinet-actions { width: 100%; flex-direction: column; }

    .site-footer .container { grid-template-columns: 1fr; }
    .copyright { padding: 12px 0; }
    .copyright .container { width: calc(100% - 30px); flex-direction: column; text-align: center; }
}

