/* ============================================
   ER-TELECOM FINAL — Landing Page
   Brand Colors from Guidebook
   ============================================ */

/* Font Face */
@font-face {
    font-family: 'CoFo Sans';
    src: url('https://cdn-b2c.dom.ru/b2c-domru/stable/frontend/static/fonts/CoFo_Sans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CoFo Sans';
    src: url('https://cdn-b2c.dom.ru/b2c-domru/stable/frontend/static/fonts/CoFo_Sans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CoFo Sans';
    src: url('https://cdn-b2c.dom.ru/b2c-domru/stable/frontend/static/fonts/CoFo_Sans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --blue: #1979E7;
    --blue-dark: #003288;
    --blue-deep: #0F1053;
    --white: #FFFFFF;
    --gray-light: #F7F7F7;
    --gray-mid: #D8D6DC;
    --yellow: #FBAC00;

    /* Functional Colors */
    --black: #000000;
    --gray-100: #F8F8F8;
    --gray-200: #E5E5E5;
    --gray-300: #CCCCCC;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #444444;
    --gray-700: #2A2A2A;
    --gray-800: #1A1A1A;
    --gray-900: #0D0D0D;

    /* Typography */
    --font-main: 'CoFo Sans', -apple-system, sans-serif;
    --font-display: 'CoFo Sans', -apple-system, sans-serif;

    /* Sizing */
    --container: min(90vw, 1400px);
    --gap: clamp(1rem, 3vw, 2rem);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--blue-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.cookie-banner-visible {
    padding-bottom: clamp(8rem, 15vw, 10rem);
}

::selection {
    background: var(--blue);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-logo {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preloader-counter {
    display: flex;
    align-items: baseline;
    color: var(--white);
}

.counter-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.counter-percent {
    font-size: 1.5rem;
    opacity: 0.5;
    margin-left: 0.25rem;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: var(--blue);
    border-radius: 2px;
}

/* ============================================
   CURSOR
   ============================================ */
.cursor-wrap {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(180, 180, 180, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(180, 180, 180, 0.2);
    border: 1px solid rgba(180, 180, 180, 0.6);
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(180, 180, 180, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9997;
    pointer-events: none;
}

@media (pointer: coarse) {
    .cursor-wrap { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 16, 83, 0.08);
    transition: transform 0.4s var(--ease-out-expo);
}

.header.hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 1 clamp(20rem, 34vw, 28rem);
    min-width: 0;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: clamp(0.55rem, 1vw, 0.85rem);
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.logo-img {
    object-fit: contain;
    max-width: none;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-holding {
    height: clamp(1.8rem, 2.8vw, 2.4rem);
    width: auto;
}

.logo-subbrand {
    height: clamp(1.25rem, 1.9vw, 1.65rem);
    width: auto;
    position: relative;
    top: -4px;
}

.logo-divider {
    flex: 0 0 1px;
    width: 1px;
    height: clamp(1.8rem, 2.8vw, 2.4rem);
    background: rgba(0, 50, 136, 0.55);
}

@media (max-width: 900px) {
    .logo {
        flex-basis: clamp(14.25rem, 42vw, 17.5rem);
    }

    .logo-lockup {
        gap: clamp(0.35rem, 0.8vw, 0.55rem);
    }

    .logo-divider {
        height: clamp(1.45rem, 2.2vw, 1.85rem);
    }
}

.logo:hover .logo-img {
    opacity: 0.78;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .header {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .logo {
        flex-basis: clamp(13.5rem, 70vw, 14.75rem);
    }

    .logo-lockup {
        gap: 0.4rem;
    }

    .logo-divider {
        height: 1.4rem;
    }
}

.nav-main {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .nav-main { display: none; }
}

.nav-link {
    position: relative;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
    transform: translateX(-50%) scale(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--blue-deep);
    border-color: rgba(15, 16, 83, 0.1);
    letter-spacing: 0.12em;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: translateX(-50%) scale(1);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--yellow);
    color: var(--blue-deep);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
}

.cta-arrow {
    display: flex;
    transition: transform 0.3s ease;
}

.header-cta:hover .cta-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .header-cta { display: none; }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
}

.menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-deep);
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    pointer-events: all;
    opacity: 1;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 83, 0.95);
    backdrop-filter: blur(20px);
}

.mobile-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2rem var(--gap);
    gap: 1rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.link-index {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.5;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(6rem, 14vh, 8rem) var(--gap) clamp(2rem, 5vh, 3rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 16, 83, 0.85) 0%,
        rgba(0, 50, 136, 0.7) 50%,
        rgba(15, 16, 83, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
}

.hero-content > * {
    grid-column: 1 / 8;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    color: var(--yellow);
    font-size: clamp(0.78rem, 1.4vw, 0.9rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--yellow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title-line {
    display: block;
}

.hero-title-line--nowrap {
    white-space: nowrap;
}

.hero-desc {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-deep);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.btn-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: var(--yellow);
    transition: transform 0.4s var(--ease-out-expo);
    border-radius: 100px;
}

.btn-primary:hover .btn-bg {
    transform: scale(1.05);
}

.btn-primary .btn-label {
    position: relative;
    z-index: 1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    max-width: 100%;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-arrow-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.btn-outline:hover .btn-arrow-icon {
    transform: translateX(4px);
}

.hero-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: clamp(2rem, 5vh, 3rem);
    max-width: var(--container);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 4vw, 2.5rem);
}

@media (max-width: 900px) {
    .hero-content > * {
        grid-column: 1 / 11;
    }

    .hero-title {
        font-size: clamp(3rem, 7vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    .hero-content > * {
        grid-column: 1 / -1;
    }

    .hero-title {
        font-size: clamp(2.4rem, 8vw, 3.75rem);
    }
}

@media (max-width: 600px) {
    .hero-title-line--nowrap {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 0.95rem 1.25rem;
    }
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat-num {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--yellow);
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--yellow);
}

.stat-label {
    display: block;
    font-size: clamp(0.8rem, 2vw, 1rem);
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
.section-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.tag-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
}

.tag-line {
    width: 40px;
    height: 1px;
    background: var(--blue);
}

.tag-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-tag.light .tag-number,
.section-tag.light .tag-text {
    color: rgba(255, 255, 255, 0.7);
}

.section-tag.light .tag-line {
    background: rgba(255, 255, 255, 0.3);
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line span {
    display: inline-block;
    transform: translateY(100%);
}

/* ============================================
   HISTORY SECTION (from v2 design)
   ============================================ */
.history {
    background: var(--blue-deep);
    color: var(--white);
    padding: 8rem var(--gap);
    position: relative;
    overflow: hidden;
}

.history-header {
    max-width: var(--container);
    margin: 0 auto 5rem;
}

.history-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.history-timeline {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

@media (max-width: 900px) {
    .timeline-line { left: 20px; }
}

.line-progress {
    width: 100%;
    height: 0%;
    background: var(--yellow);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
}

@media (max-width: 900px) {
    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 56px;
    }
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) > * {
    direction: ltr;
}

@media (max-width: 900px) {
    .timeline-item:nth-child(even) { direction: ltr; }
}

.item-year {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--gray-mid);
    line-height: 1;
    text-align: center;
}

@media (max-width: 900px) {
    .item-year {
        position: absolute;
        left: 0;
        font-size: 1rem;
        -webkit-text-stroke: 0;
        color: var(--blue);
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.item-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.item-image:hover img {
    transform: scale(1.05);
}

.item-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   TOUR SECTION (from v3 design)
   ============================================ */
.tour {
    padding: 8rem var(--gap);
    background: var(--gray-light);
}

/* Tour Showcase */
.tour-showcase {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 0 4rem;
}

.tour-showcase__media-wrap {
    width: 100%;
    height: 70vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.tour-showcase__media {
    width: 100%;
    height: 100%;
    background-image: url("../images/463052.opt.jpg");
    background-image: image-set(
        url("../images/463052.opt.webp") type("image/webp"),
        url("../images/463052.opt.jpg") type("image/jpeg")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.6s ease;
}

@media (max-width: 768px) {
    .tour-showcase__media {
        background-image: url("../images/463052.opt-sm.jpg");
        background-image: image-set(
            url("../images/463052.opt-sm.webp") type("image/webp"),
            url("../images/463052.opt-sm.jpg") type("image/jpeg")
        );
    }
}

.tour-showcase__media-wrap:hover .tour-showcase__media {
    transform: scale(1.03);
}

.tour-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.tour-play-btn__text {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    pointer-events: none;
}

.tour-header {
    max-width: var(--container);
    margin: 0 auto 4rem;
}

.tour-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue-deep);
    margin-bottom: 1rem;
}

.tour-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 560px;
}

.tour-gallery {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .tour-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .tour-gallery { grid-template-columns: 1fr; }
}

.tour-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(15, 16, 83, 0.06);
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 16, 83, 0.12);
}

.tour-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.tour-card:hover .tour-card-image img {
    transform: scale(1.08);
}

.tour-card-info {
    padding: 1.5rem;
    position: relative;
}

.tour-card-num {
    position: absolute;
    top: -1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.tour-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 0.5rem;
}

.tour-card-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-500);
}

/* ============================================
   BOOKING SECTION (Screen 4)
   ============================================ */
.booking {
    position: relative;
    background: var(--blue-deep);
    color: var(--white);
    padding: 8rem var(--gap);
    overflow: hidden;
}

.booking .bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 16rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.booking-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--container);
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 900px) {
    .booking-content { grid-template-columns: 1fr; }
}

.booking-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.booking-title .title-line.accent span {
    color: var(--yellow);
}

.booking-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.booking-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .booking-highlights { grid-template-columns: 1fr; }
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(-20px);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--yellow);
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight span:last-child {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Booking Form */
.booking-form-wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(40px);
}

@media (max-width: 600px) {
    .booking-form-wrap {
        padding: 1.75rem 1.25rem;
    }
}

.waitlist-form-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.75rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus {
    border-bottom-color: var(--yellow);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    color-scheme: dark;
}

.form-field select option {
    background-color: var(--blue-deep);
    color: var(--white);
}

.form-field select option:checked {
    background-color: var(--yellow);
    color: var(--blue-deep);
}

.form-field input[type="date"] {
    color-scheme: dark;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:active,
.form-field select:-webkit-autofill,
.form-field textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--blue-deep) inset;
    box-shadow: 0 0 0 1000px var(--blue-deep) inset;
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
    transition: background-color 5000s ease-in-out 0s;
}

.form-field label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-field label.label-date {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--yellow);
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label,
.form-field select:valid ~ label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--yellow);
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.form-field input:focus ~ .field-line,
.form-field select:focus ~ .field-line {
    transform: scaleX(1);
}

/* Gosuslugi Button */
.gosuslugi-auth {
    text-align: center;
}

.gosuslugi-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gosuslugi-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Checkbox */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-field input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-field input:checked ~ .checkmark {
    background: var(--yellow);
    border-color: var(--yellow);
}

.checkbox-field input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-text a:hover {
    color: var(--white);
}

.form-error {
    display: none;
    margin: -0.25rem 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 210, 0, 0.45);
    border-radius: 12px;
    background: rgba(255, 210, 0, 0.08);
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.45;
}

.form-error.active {
    display: block;
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-deep);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.submit-btn:disabled:hover .btn-bg {
    transform: none;
}

.submit-btn:disabled:hover .btn-arrow {
    transform: none;
}

.submit-btn .btn-bg {
    position: absolute;
    inset: 0;
    background: var(--yellow);
    border-radius: 100px;
    transition: transform 0.4s var(--ease-out-expo);
}

.submit-btn:hover .btn-bg {
    transform: scale(1.05);
}

.btn-text,
.btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    display: flex;
    transition: transform 0.4s var(--ease-out-expo);
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .submit-btn {
        padding: 1.1rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .submit-btn .btn-text {
        white-space: nowrap;
    }

    .submit-btn .btn-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Form Success */
.form-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 16, 83, 0.95);
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.form-success.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-success p {
    color: rgba(255, 255, 255, 0.6);
}

/* Participants Counter */
.participants-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.participants-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.counter-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.counter-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-value {
    min-width: 2.5rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

/* Extra Guest Blocks */
.guest-block {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.guest-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.guest-number {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
}


.faq {
    padding: 8rem var(--gap);
    background: var(--white);
}

.faq-header {
    max-width: var(--container);
    margin: 0 auto 4rem;
}

.faq-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue-deep);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-mid);
    opacity: 0;
    transform: translateY(20px);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--blue-deep);
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--blue);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
    border: 2px solid var(--blue);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--blue);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon {
    background: var(--blue);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background: var(--white);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo), padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(calc(100vw - 2rem), 58rem);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 1rem 1rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(25, 121, 231, 0.26), transparent 34%),
        linear-gradient(135deg, rgba(15, 16, 83, 0.96), rgba(0, 50, 136, 0.92));
    box-shadow: 0 24px 60px rgba(6, 18, 73, 0.28);
    transform: translateX(-50%) translateY(calc(100% + 1rem));
    opacity: 0;
    pointer-events: none;
    z-index: 1400;
    transition: transform 0.45s var(--ease-out-expo), opacity 0.3s ease;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner__content {
    display: grid;
    gap: 0.35rem;
}

.cookie-banner__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
}

.cookie-banner__title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
}

.cookie-banner__text {
    max-width: 52ch;
    font-size: 0.96rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-banner__link,
.cookie-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cookie-banner__link {
    color: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-banner__button {
    font-weight: 700;
    color: var(--blue-deep);
    background: var(--yellow);
    box-shadow: 0 14px 28px rgba(251, 172, 0, 0.24);
}

.cookie-banner__link:hover,
.cookie-banner__button:hover {
    transform: translateY(-1px);
}

.cookie-banner__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-banner__button:hover {
    background: #ffc42d;
}

@media (max-width: 900px) {
    .cookie-banner {
        width: min(calc(100vw - 1.5rem), 44rem);
        grid-template-columns: auto 1fr;
        gap: 0.95rem;
        padding: 0.95rem;
    }

    .cookie-banner__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .cookie-banner__text {
        max-width: none;
    }
}

@media (max-width: 560px) {
    body.cookie-banner-visible {
        padding-bottom: 12.5rem;
    }

    .cookie-banner {
        width: calc(100vw - 1rem);
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 0.95rem;
        border-radius: 1.3rem;
    }

    .cookie-banner__accent {
        width: 2.9rem;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__link,
    .cookie-banner__button {
        width: 100%;
    }
}

/* ============================================
   LOGOS GRID (inside footer-brands)
   ============================================ */
.logos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: clamp(1.75rem, 2.8vw, 2.8rem);
}

.brands-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    min-height: clamp(40px, 3.6vw, 52px);
    gap: clamp(0.8rem, 1.35vw, 1.35rem);
}

.logo-item {
    position: relative;
    flex: 0 0 auto;
}

.brand-sep {
    flex: 0 0 auto;
    width: 1px;
    height: clamp(20px, 2vw, 28px);
    background: rgba(255, 255, 255, 0.42);
}

.logo-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: clamp(28px, 2.7vw, 36px);
}

.logo-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: clamp(96px, 11vw, 186px);
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.logo-item-balance-sm img {
    max-width: clamp(100px, 11vw, 172px);
    max-height: clamp(26px, 2.4vw, 34px);
}

.logo-item-balance-xs img {
    max-width: clamp(88px, 9.2vw, 148px);
    max-height: clamp(24px, 2.2vw, 30px);
}

/* Дом.ру Бизнес — wordmark длиннее остальных (соотношение ~9.85:1
   у trimmed-ассета vs ~6.5:1 у «Дом.ру»), поэтому при общих
   ограничениях balance-sm он первым упирается в max-width и
   оптически оказывается ниже. Держим отдельный более широкий
   лимит, чтобы по фактической высоте он совпадал с «Дом.ру».
   Важно: ширины подобраны под images/Logo2/DomruBusiness.png
   (PNG без прозрачных полей). При замене ассета — пересмотреть. */
.logo-item-business img {
    max-width: clamp(152px, 16.7vw, 262px);
}

.logo-item-ihome img {
    max-width: clamp(92px, 9.2vw, 148px);
    max-height: clamp(26px, 2.4vw, 34px);
}

.logo-item img:hover {
    opacity: 1;
}

@media (max-width: 1100px) {
    .logos-grid {
        gap: 1rem;
    }

    .brands-row {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.9rem 1.2rem;
    }

    .brand-sep {
        display: none;
    }
}

@media (max-width: 768px) {
    .logos-grid {
        width: 100%;
        gap: 0.75rem;
    }

    .brands-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
        align-items: center;
        gap: 0.8rem 0.55rem;
    }

    .logo-item {
        width: 100%;
    }

    .logo-item a {
        width: 100%;
        min-height: 48px;
        padding: 0.25rem 0.35rem;
    }

    .logo-item img {
        width: auto;
        height: auto;
        max-width: min(100%, 108px);
        max-height: 18px;
    }

    .logo-item-business img {
        max-width: min(100%, 164px);
        max-height: 18px;
    }

    .logo-item-ihome img {
        max-width: min(100%, 136px);
        max-height: 26px;
    }
}

@media (max-width: 480px) {
    .logos-grid {
        gap: 0.65rem;
    }

    .brands-row {
        gap: 0.65rem 0.45rem;
    }

    .logo-item a {
        min-height: 42px;
        padding: 0.2rem;
    }

    .logo-item img {
        max-width: min(100%, 92px);
        max-height: 15px;
    }

    .logo-item-business img {
        max-width: min(100%, 140px);
        max-height: 15px;
    }

    .logo-item-ihome img {
        max-width: min(100%, 114px);
        max-height: 21px;
    }
}

/* ============================================
   FOOTER (Screen 6)
   ============================================ */
.footer {
    background: var(--blue-deep);
    color: var(--white);
    overflow: hidden;
}

/* Footer CTA */
.footer-cta-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
}

.footer-cta-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--gap) * -1);
    width: calc(100% + (var(--gap) * 2));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-cta-content { grid-template-columns: 1fr; }
}

.footer-cta-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-item:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .footer-cta-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .footer-cta-item:last-child { border-bottom: none; }
}

.footer-cta-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--gap);
    transition: background 0.3s ease;
}

.footer-cta-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cta-link-text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 600;
}

.cta-link-sub {
    font-size: 0.8rem;
    color: var(--blue);
    opacity: 0.8;
    white-space: nowrap;
}

.cta-link-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--yellow);
    transition: transform 0.3s ease;
}

.footer-cta-link:hover .cta-link-arrow {
    transform: translateX(6px);
}

/* Footer Brands */
.footer-brands {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem var(--gap);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brands h4 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-left: calc(var(--gap) * -1);
    margin-bottom: 0.5rem;
}

.footer-brands-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    margin-left: calc(var(--gap) * -1);
    margin-bottom: 1.5rem;
}

/* Footer Main */
.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem var(--gap);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand-info {
    max-width: 320px;
    margin-left: calc(var(--gap) * -1);
}

.footer-logo {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.75rem;
    filter: none;
}

.brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

@media (max-width: 768px) {
    .footer-nav {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

.nav-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.nav-col a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.nav-col a:hover {
    color: var(--white);
}

.mt-1 {
    margin-top: 1.5rem;
}

.nav-col h4 a {
    display: inline;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    margin: 0;
    transition: color 0.3s ease;
}

.nav-col h4 a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.social-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s ease !important;
}

.social-link:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 2rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.5rem var(--gap);
    font-size: clamp(0.78rem, 1.6vw, 0.85rem);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom > span {
    margin-left: calc(var(--gap) * -1);
    max-width: 46ch;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        text-align: left;
    }

    .footer-bottom > span {
        margin-left: 0;
        max-width: none;
    }

    .footer-links {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   360° PANORAMA GALLERY + MODAL VIEWER
   ============================================ */
.pano-block {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}

.pano-block__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pano-block__header .section-tag {
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.pano-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 0.75rem;
}

.pano-block__subtitle {
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.pano-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.pano-grid--three {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .pano-grid { grid-template-columns: repeat(3, 1fr); }
    .pano-grid--three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pano-grid,
    .pano-grid--three { grid-template-columns: 1fr; }
}

.pano-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #0f1053;
    box-shadow: 0 4px 20px rgba(15, 16, 83, 0.08);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
    isolation: isolate;
}

.pano-tile:hover,
.pano-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 16, 83, 0.18);
    outline: none;
}

.pano-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
    opacity: 0.92;
}

.pano-tile:hover img {
    transform: scale(1.06);
    opacity: 1;
}

.pano-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 16, 83, 0) 40%, rgba(15, 16, 83, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.pano-tile__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue-deep);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.pano-tile__num {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.pano-tile__caption {
    position: absolute;
    left: 1rem;
    right: 3.5rem;
    bottom: 0.9rem;
    z-index: 2;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    text-align: left;
}

/* Modal */
.pano-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pano-modal.is-open {
    display: flex;
    animation: panoFadeIn 0.25s ease both;
}

@keyframes panoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pano-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 38, 0.88);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.pano-modal__dialog {
    position: relative;
    width: min(96vw, 1400px);
    height: min(92vh, 820px);
    background: #0f1053;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.pano-modal__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    flex-shrink: 0;
}

.pano-modal__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.pano-modal__hint {
    margin-left: auto;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 600px) {
    .pano-modal__hint { display: none; }
}

.pano-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pano-modal__close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(90deg);
}

.pano-modal__viewer {
    flex: 1;
    width: 100%;
    background: #000;
    position: relative;
}

.pano-modal__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(8, 9, 38, 0.4);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.pano-modal__loader.is-hidden {
    opacity: 0;
}

.pano-modal__loader span {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: panoSpin 0.9s linear infinite;
}

@keyframes panoSpin {
    to { transform: rotate(360deg); }
}

body.pano-open {
    overflow: hidden;
}

/* Override pannellum default controls a touch */
.pnlm-load-box,
.pnlm-about-msg { display: none !important; }


/* Info Modal */
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.info-modal.is-open {
    display: flex;
    animation: panoFadeIn 0.25s ease both;
}

.info-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 38, 0.88);
    backdrop-filter: blur(8px);
    cursor: default;
}

.info-modal__dialog {
    position: relative;
    width: min(96vw, 800px);
    max-height: min(92vh, 820px);
    background: #0f1053;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.info-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    flex-shrink: 0;
}

.info-modal__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.info-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.info-modal__close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(90deg);
}

.info-modal__content {
    padding: 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.info-modal__content::-webkit-scrollbar {
    width: 8px;
}

.info-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.info-modal__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.info-modal__content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.info-modal__content p {
    margin-bottom: 1rem;
}

.info-modal__content p:last-child {
    margin-bottom: 0;
}

body.info-open {
    overflow: hidden;
}

/* ============================================
   TIMELINE CAROUSEL (1862)
   ============================================ */
.item-carousel {
    position: relative;
    isolation: isolate;
    background: var(--gray-100);
}

.item-carousel:hover img {
    transform: none;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-expo);
}

.carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease-out-expo);
}

.item-carousel:hover .carousel-slide.is-active img {
    transform: none;
}

.carousel-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.25rem 1.25rem 1.1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    pointer-events: none;
}

.carousel-caption__title {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0.005em;
}

.carousel-caption__source {
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.item-carousel:hover .carousel-btn,
.item-carousel:focus-within .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn--prev {
    left: 0.75rem;
}

.carousel-btn--next {
    right: 0.75rem;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0.6rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.3s ease;
}

.carousel-dot.is-active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .carousel-btn {
        opacity: 1;
        width: 34px;
        height: 34px;
    }
    .carousel-caption__title {
        font-size: 0.85rem;
    }
    .carousel-caption__source {
        font-size: 0.72rem;
    }
}
