/*! header.css : navigation, mobile menu, marquee */
/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-trans-85);
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: var(--bg-trans-85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 48px;
    box-shadow: 0 1px 0 var(--border);
}

.nav-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--brass-deep);
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 102;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 16px;
    list-style: none;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.nav-links a {
    position: relative;
    line-height: 1;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--brass);
    transition: width 0.4s ease;
}

.nav-links a:hover { color: var(--brass-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.nav-phone {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ink);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-phone:hover { color: var(--brass-deep); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    background: var(--brass-deep);
    padding: 13px 24px;
    border: 1px solid var(--brass-deep);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-cta:hover {
    background: var(--brass);
    border-color: var(--brass);
}

/* Акцентная плашка второй строкой, по центру всей ширины шапки */
.nav-accent-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
    padding: 10px 24px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--brass-deep);
    background: var(--bg-soft);
    border: 1px solid var(--brass-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-accent::before {
    content: '✦';
    font-size: 10px;
    line-height: 1;
    color: var(--brass);
    flex-shrink: 0;
}

.nav-accent:hover {
    background: var(--brass-soft);
    border-color: var(--brass);
}

/* ============================================================
   BURGER — три полоски → крестик через body.menu-open
   ============================================================ */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 102;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--brass-deep);
    transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

/* Крестик: верхняя и нижняя полоска съезжают на центр и разворачиваются */
body.menu-open .burger span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
    opacity: 0;
}

body.menu-open .burger span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-trans-98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 120px 32px 60px;
}

body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.menu-open .mobile-menu li {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-menu li:nth-child(1) { transition-delay: 0.15s; }
body.menu-open .mobile-menu li:nth-child(2) { transition-delay: 0.22s; }
body.menu-open .mobile-menu li:nth-child(3) { transition-delay: 0.29s; }
body.menu-open .mobile-menu li:nth-child(4) { transition-delay: 0.36s; }
body.menu-open .mobile-menu li:nth-child(5) { transition-delay: 0.43s; }

.mobile-menu a {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.02em;
    display: inline-block;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover { color: var(--brass-deep); }

.m-link--accent { color: var(--brass-deep); }

.mobile-menu-contact {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    width: 100%;
    max-width: 320px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.5s ease, transform 0.5s 0.5s ease;
}

body.menu-open .mobile-menu-contact {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-contact .label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 12px;
}

.mobile-menu-contact .v {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink);
}

.mobile-menu-contact .v a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-contact .v a:hover { color: var(--brass-deep); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nav {
        padding: 16px 20px;
    }

    .nav.scrolled {
        padding: 12px 20px;
    }

    .nav-links,
    .nav-right,
    .nav-accent-row {
        display: none;
    }

    .burger {
        display: block;
    }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    overflow: hidden;
    background: var(--bg-soft);
}

.marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee 50s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-item {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--ink-dim);
    display: flex;
    align-items: center;
    gap: 80px;
}

.marquee-item::after {
    content: '✦';
    color: var(--brass);
    font-style: normal;
    font-size: 12px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}