/* ═══════════════════════════════════════════
   FLYHIGH PRODUCTION — style.css
   ═══════════════════════════════════════════ */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

:root {
    --bg:        #0f0f0f;
    --bg-card:   #141414;
    --text:      #ffffff;
    --text-card: #dcdcdc;
    --accent:    #d1e1e8;
    --font-hero: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', sans-serif;
    --w:         1440px;
    --gap-card:  10px;
    --nav-h:     53px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── CURSOR ─── */
.cursor {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .25s, height .25s, border-color .25s, background .25s;
    mix-blend-mode: difference;
}
.cursor.is-hovering { width: 64px; height: 64px; background: rgba(255,255,255,.12); border-color: #fff; }
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 5px; height: 5px;
    background: #fff; border-radius: 50%;
    pointer-events: none; z-index: 10000;
    transform: translate(-50%,-50%);
}

/* ─── SHARED BUTTON OUTLINE ─── */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    cursor: none;
    transition: opacity .2s ease;
}
.btn-outline:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #C40234;
    background: transparent;
}
.btn-outline:active {
    transform: scale(0.97);
    transition-duration: 80ms;
}

/* ─── FIXED NAV BUTTONS ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    transition: background 0.4s ease;
    z-index: 499;
    pointer-events: none;
}
.nav.is-visible {
    background: #0f0f0f;
}
.nav__buttons {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 40px;
    /* starts off-screen — JS animates in */
}
.nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    cursor: none;
    pointer-events: auto;
    transition: opacity .2s ease;
}
.nav__btn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── SECTION LABELS ─── */
.section-label {
    position: sticky;
    top: calc(var(--nav-h) + 10px);
    left: 0;
    margin-left: 21px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text);
    z-index: 498;
    pointer-events: none;
    height: 0;
    overflow: visible;
}

/* Gallery label aligned with FHPRO left edge (section has 9px padding-left) */
.gallery .section-label { margin-left: 12px; margin-top: -120px; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero { width: 100%; max-width: var(--w); margin: 0 auto; }

.hero__head {
    position: relative;
    height: clamp(180px, 21vw, 303px);
    background: var(--bg);
    overflow: hidden;
}

/* animated logo wrapper — positioned by JS */
.hero__logo-wrap {
    position: fixed;
    left: 0; top: 0;
    z-index: 500;
    will-change: transform;
    /* mix-blend-mode applied via JS when logo is over showreel */
}
.hero__logo {
    display: block;
    width: auto;
    height: 176px;
    transform-origin: left top;
    will-change: height;
}

/* hero right-side info */
.hero__info {
    position: absolute;
    right: 0; top: 0;
    width: 442px;
    height: 100%;
}
.hero__desc {
    position: absolute;
    top: 21px; right: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
}
/* two-button row: [Обсудить проект] [Скачать PDF] */
.hero__btns {
    position: absolute;
    right: 28px; top: 179px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero__link {
    /* positioned via hero__btns container */
}

/* video block */
.hero__video-wrap {
    position: relative;
    margin: 0 5px;
    height: clamp(480px, 62.2vw, 896px);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #000;
}
.hero__video-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════
   О НАС
   ═══════════════════════════════════════════ */
.about {
    width: 100%; max-width: var(--w);
    margin: 0 auto;
    padding: 100px 40px 80px;
    background: var(--bg);
}

.about__headline {
    font-family: var(--font-hero);
    font-weight: 900;
    font-size: clamp(44px, 6.1vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--text);
    max-width: 100%;
    margin-bottom: 64px;
}

.about__phrase {
    display: inline-block;
}

.about__row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.about__tag {
    flex-shrink: 0;
    width: max(180px, 38vw);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text);
    padding-left: 0;
}

.about__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__body p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.about__cta {
    display: flex;
    justify-content: center;
    margin-top: 72px;
    opacity: 0;
    transform: translateY(16px);
}

.about__btn {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 14px 44px;
    letter-spacing: 0.04em;
    transition: border-color 0.3s ease;
}
.about__btn:hover {
    text-decoration: none;
    border-color: #C40234;
}

/* ═══════════════════════════════════════════
   ГАЛЕРЕЯ
   ═══════════════════════════════════════════ */
.gallery {
    width: 100%; max-width: var(--w);
    margin: 0 auto;
    background: var(--bg);
    padding: 150px 9px 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-card);
    margin-top: 120px;
}

/* hidden extra rows */
.gallery-card--extra { display: none; }
.gallery--expanded .gallery-card--extra { display: block; }

/* card */
.gallery-card {
    opacity: 0;
    transform: translateY(40px);
    cursor: none;
}
.gallery-card__inner {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}
.gallery-card__media {
    position: relative;
    height: clamp(240px, 29.2vw, 421px);
    margin: 5px 5px 0;
    border-radius: 17px;
    overflow: hidden;
    background: #0a0a0a;
}
.gallery-card__media img,
.gallery-card__media video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-card:hover .gallery-card__media img,
.gallery-card:hover .gallery-card__media video { transform: scale(1.03); }
.gallery-card__footer {
    height: 68px;
    padding: 0 14px;
    display: flex;
    align-items: center;
}
.gallery-card__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-card);
    text-transform: uppercase;
}

/* color glow on hover — color comes from JS via CSS custom property */
.gallery-card:hover .gallery-card__inner {
    background: var(--card-glow, var(--bg-card));
}

/* more button */
.gallery__more-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0 60px;
}
.gallery__more-btn { min-width: 170px; }

/* ═══════════════════════════════════════════
   УСЛУГИ
   ═══════════════════════════════════════════ */
.services {
    position: relative;
    width: 100%; max-width: var(--w);
    margin: 0 auto;
    padding: 200px 0 80px;
    /* overflow:hidden removed — would break position:sticky on section-label */
}

/* hover image — fixed in viewport, shown/animated by GSAP */
.services__hover-img {
    position: fixed;
    left: 248px; top: 0;
    width: 221px; height: 221px;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}
.services__hover-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* services list */
.services__list {
    padding-left: max(40px, 41vw);
}
.services__item {
    position: relative;
    cursor: none;
}
.services__item span {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(28px, 3.9vw, 56px);
    line-height: clamp(48px, 5.6vw, 81px);
    color: var(--text);
    transform: translateX(60px);
    opacity: 0;
    transition: color .3s;
}
.services__item:hover span { color: rgba(255,255,255,.5); }

/* ═══════════════════════════════════════════
   КЛИЕНТЫ
   ═══════════════════════════════════════════ */
.clients {
    position: relative;
    width: 100%; max-width: var(--w);
    margin: 0 auto;
    padding: 24px 0 80px;
    background: var(--bg);
}

/* grid matches updated Figma: 3 cols × 215px, col-gap 18px, row-gap 19px */
.clients__grid {
    margin-left: max(40px, 41vw);
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(3, clamp(120px, 14.9vw, 215px));
    grid-template-rows: repeat(3, clamp(120px, 14.9vw, 215px));
    column-gap: 18px;
    row-gap: 19px;
    width: fit-content;
    opacity: 0;
    transform: translateY(30px);
}

/* Wide cells (Матиас row-1, Алкопак row-3) span 2 columns */
.clients__cell--wide {
    grid-column: span 2;
}

.clients__cell {
    position: relative;
    background: rgba(217,217,217,.10);
    border-radius: 17px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clients__cell--wide { border-radius: 17px; }

/* dual-layer for logo rotation — animated by GSAP */
.clients__logo-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clients__logo-layer--a { opacity: 1; }
.clients__logo-layer--b { opacity: 0; }

/* Base: all logos use explicit pixel height — predictable across any cell size */
.clients__cell img {
    height: 66px;
    width: auto;
    max-width: 78%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .85;
}

/* Per-logo tuning: height + brightness + max-width */
.clients__cell img[src*="logo-matias"]  { height: 60px;  max-width: 85%; filter: grayscale(1) brightness(8.0); }
.clients__cell img[src*="logo-mtbank"]  {                 max-width: 85%; filter: grayscale(1) brightness(8.0); }
.clients__cell img[src*="logo-magnit"]  {                                 filter: grayscale(1) brightness(8.0); }
.clients__cell img[src*="logo-bellakt"] { height: 98px;                   filter: grayscale(1) brightness(4.0); }
.clients__cell img[src*="logo-lidskae"] { height: 90px; }
.clients__cell img[src*="logo-vk"]      { height: 98px;                   filter: grayscale(1) brightness(2.25); }
.clients__cell img[src*="logo-dinamo"]  { height: 72px;                   filter: grayscale(1) brightness(8.0); }
.clients__cell img[src*="logo-a1"]      { height: 72px;                   filter: grayscale(1) brightness(4.0); }
/* Яндекс PNG: Я-mark fills almost full image — keep moderate */
.clients__cell img[src*="logo-yandex"]  { height: 74px; }
.clients__cell img[src*="logo-alkopak"] { height: 98px;  max-width: 85%; filter: brightness(0) invert(1); }
.clients__cell img[src*="logo-sakhalin"]{ max-width: 85%; filter: grayscale(1) invert(1) brightness(1.32); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    position: relative;
    width: 100%; max-width: var(--w);
    margin: 0 auto;
    height: 1261px;
    background: var(--bg);
}

/* ballerina canvas (frame scrubbing by JS) */
.footer__ballerina {
    position: absolute;
    left: 590px; top: 43px;
    width: 260px; height: 310px;
    border-radius: 20px;
    overflow: hidden;
}
.footer__ballerina canvas {
    width: 100%; height: 100%;
    display: block;
}

/* divider with cross markers */
.footer__divider {
    position: absolute;
    left: 25px; top: 854px;
    width: 1392px; height: 1px;
}
.footer__divider::before,
.footer__divider::after { display: none; }
.footer__divider > span { display: none; }

/* row: ООО ФЛАЙ ХАЙ ПРО / НАПИСАТЬ НАМ */
.footer__links-row {
    position: absolute;
    left: 7px; top: 875px;
    width: calc(100% - 14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__org-link,
.footer__write-link {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .3s;
}
.footer__org-link:hover,
.footer__write-link:hover { opacity: .6; }

/* email as org-link — larger weight */
.footer__org-link--email {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* contacts row — exact Figma positions */
.footer__contacts-row {
    position: absolute;
    top: 1200px;
    left: 0; width: 100%;
}
.footer__addr {
    position: absolute;
    left: 7px; top: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}
.footer__email-link {
    position: absolute;
    left: 596px; top: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}
.footer__phone-link {
    position: absolute;
    left: 1299px; top: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}
.footer__email-link:hover,
.footer__phone-link:hover { opacity: .7; }

/* FLYHIGH wordmark — top: 898px within footer (container h=302, text offset y=147) */
.footer__wordmark-wrap {
    position: absolute;
    left: 0; top: 898px;
    width: 100%;
    overflow: hidden;
    height: 302px;
    pointer-events: none;
}
.footer__wordmark {
    font-family: var(--font-hero);
    font-weight: 900;
    font-size: min(24.9vw, 358px);
    line-height: 1;
    letter-spacing: -0.07em;
    color: var(--text);
    white-space: nowrap;
    margin-left: -12px;
    margin-top: -30px;
    user-select: none;
}

/* hero load — initial states (overridden by JS/GSAP) */
.hero__video-wrap { opacity: 0; }
.hero__info       { opacity: 0; }

/* ─── VIDEO MODAL ─── */
.vmodal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.vmodal.is-open {
    opacity: 1; pointer-events: all;
}
.vmodal__backdrop {
    position: absolute; inset: 0;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(12px);
}
.vmodal__wrap {
    position: relative; z-index: 1;
    width: min(1200px, calc(100vw - 48px));
    transform: translateY(32px) scale(.96);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.vmodal.is-open .vmodal__wrap {
    transform: translateY(0) scale(1);
}
.vmodal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px;
}
.vmodal__title {
    font-family: var(--font-body);
    font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.35);
}
.vmodal__close {
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: transparent;
    cursor: none;
    display: flex; align-items: center; justify-content: center;
    position: relative; flex-shrink: 0;
    transition: border-color .2s, background .2s;
}
.vmodal__close:hover {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.06);
}
.vmodal__close span {
    position: absolute; width: 16px; height: 1px;
    background: rgba(255,255,255,.75);
}
.vmodal__close span:first-child { transform: rotate(45deg); }
.vmodal__close span:last-child  { transform: rotate(-45deg); }
.vmodal__stage {
    position: relative; width: 100%; padding-top: 56.25%;
    background: #000;
}
.vmodal__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    outline: none;
}

/* play hint overlay on gallery cards */
.gallery-card { cursor: none; }
.gallery-card::after {
    content: '▶';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: rgba(255,255,255,0);
    transition: color .25s;
    pointer-events: none;
    z-index: 5;
}
.gallery-card:hover::after { color: rgba(255,255,255,.55); }

/* ─── БУРГЕР-КНОПКА (base, скрыта на десктопе) ─── */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 44px;
    height: var(--nav-h);
    background: transparent;
    border: none;
    padding: 0 14px 0 0;
    pointer-events: auto;
    cursor: none;
    flex-shrink: 0;
}
.nav__burger span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--text);
    transition: transform .25s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Мобильное меню */
.nav__mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    z-index: 498;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
/* Разделитель внутри элемента — обрезается overflow:hidden при закрытом меню */
.nav__mobile-menu::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.08);
}
.nav__mobile-menu.is-open {
    max-height: 320px;
    pointer-events: auto;
}
.nav__mobile-link {
    display: block;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--text);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: opacity .2s;
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover { opacity: .7; }

/* ═══════════════════════════════════════════
   АДАПТИВНОСТЬ — 1024px и ниже
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* ─── 3.3: Галерея — 2 колонки ─── */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ─── Hero — предотвратить перекрытие логотипом при промежуточных размерах ─── */
    .hero__info {
        width: min(442px, calc(100% - 540px));
    }
    .hero__desc {
        font-size: 14px;
        line-height: 1.4;
    }
    .hero__btns {
        top: auto;
        bottom: 20px;
        gap: 16px;
    }
    .hero__btn-discuss,
    .hero__link {
        font-size: 14px;
    }

    /* ─── 3.5: Услуги — скрыть hover-изображение, список на полную ширину ─── */
    .services__hover-img {
        display: none;
    }
    .services__list {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* ─── 3.4: Футер — фикс горизонтального переполнения ─── */

    /* Разделитель: растягиваем на ширину контейнера */
    .footer__divider {
        width: calc(100% - 50px);
    }
    /* Маркер «+» слева: пропорционально (752/1392 ≈ 54% ширины разделителя) */
    .footer__divider::before {
        left: 54%;
    }
    /* Маркер «+» справа: переполнял при 1376px — теперь прижат к правому краю */
    .footer__divider::after {
        left: auto;
        right: 0;
    }
    /* Текст «+» в середине: пропорционально (1068/1392 ≈ 76.8%) */
    .footer__divider > span {
        left: 76.8%;
    }
    /* Телефон: left: 1299px переполнял — прижимаем к правому краю */
    .footer__phone-link {
        left: auto;
        right: 7px;
    }
}

/* ═══════════════════════════════════════════
   АДАПТИВНОСТЬ — 768px (планшет, Этап 4)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ─── 4.1: Навигация — бургер-меню ─── */
    .nav {
        background: var(--bg); /* всегда видима на мобайл */
        pointer-events: auto;
    }
    .nav__buttons { display: none !important; } /* override GSAP-анимации */
    .nav__burger  { display: flex; }

    /* ─── 4.1b: О НАС — мобильная компоновка ─── */
    .about {
        padding: 60px 24px 60px;
    }
    .about__headline {
        max-width: 100%;
        font-size: clamp(36px, 8vw, 60px);
        margin-bottom: 48px;
    }
    .about__row {
        flex-direction: column;
        gap: 16px;
    }
    .about__tag {
        width: auto;
    }
    .about__cta {
        margin-top: 48px;
    }

    /* ─── 4.2: Hero — упрощённая компоновка ─── */
    .hero__head {
        height: auto;
        padding: calc(var(--nav-h) + 16px) 16px 24px;
        overflow: visible;
    }
    .hero__info {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .hero__desc {
        position: static;
        font-size: 13px;
        line-height: 1.5;
    }
    .hero__btns {
        position: static;
        gap: 16px;
        flex-wrap: wrap;
    }
    .hero__btn-discuss,
    .hero__link {
        position: static;
        font-size: 14px;
    }

    /* ─── 4.3: Галерея — уже 2 колонки из 1024px-блока ─── */

    /* ─── 4.4: Услуги — уже без hover-img из 1024px-блока ─── */
    .services {
        padding-top: 80px;
    }
    .services__list {
        text-align: right;
        padding-top: 48px;
    }

    /* ─── 4.5: Клиенты — 2 колонки, центровка ─── */
    .clients__grid {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 48px);
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        grid-auto-rows: clamp(80px, 20vw, 150px);
    }
    .clients__cell img                          { height: 44px; }
    .clients__cell img[src*="logo-bellakt"]     { height: 64px; }
    .clients__cell img[src*="logo-lidskae"]     { height: 58px; }
    .clients__cell img[src*="logo-vk"]          { height: 64px; }
    .clients__cell img[src*="logo-dinamo"]      { height: 48px; }
    .clients__cell img[src*="logo-a1"]          { height: 48px; }
    .clients__cell img[src*="logo-matias"]      { height: 40px; }
    .clients__cell img[src*="logo-alkopak"]     { height: 64px; }
    .clients__cell:has(img[src*="logo-yandex"]) { display: none; }

    /* ─── 4.6: Футер — flex-колонка, убираем абсолютные позиции ─── */
    .footer {
        height: auto;
        display: flex;
        flex-direction: column;
        padding-top: 40px;
    }

    /* Балерина — скрыта на планшете/мобайл */
    .footer__ballerina { display: none; }

    /* Разделитель — в потоке */
    .footer__divider {
        position: relative;
        left: 0; top: 0;
        width: calc(100% - 48px);
        margin: 60px 24px 0;
        background: rgba(255,255,255,.08);
    }
    .footer__divider::before,
    .footer__divider::after { display: none; }
    .footer__divider > span { display: none; }

    /* Строка ООО / НАПИСАТЬ НАМ */
    .footer__links-row {
        position: relative;
        left: 0; top: 0;
        width: auto;
        padding: 20px 24px 0;
    }
    .footer__org-link,
    .footer__write-link { font-size: 15px; }
    .footer__links-row .footer__org-link--email { font-size: 14px; }
    .footer__links-row .footer__write-link       { font-size: 12px; }

    /* Контакты */
    .footer__contacts-row {
        position: relative;
        top: 0;
        padding: 24px 24px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer__addr    { position: static; font-size: 14px; }
    .footer__email-link {
        position: static;
        left: auto;
        font-size: 14px;
    }
    .footer__phone-link {
        position: static;
        left: auto; right: auto;
        font-size: 14px;
    }

    /* FLYHIGH wordmark */
    .footer__wordmark-wrap {
        position: relative;
        top: 0;
        height: auto;
        overflow: hidden;
        margin-top: 32px;
    }
    .footer__wordmark {
        margin-left: -6px;
        margin-top: 0;
    }

    /* ─── Видеоплеер — на всю ширину экрана ─── */
    .vmodal__wrap {
        width: calc(100vw - 16px);
    }
}

/* ═══════════════════════════════════════════
   АДАПТИВНОСТЬ — 480px (мобайл, Этап 5)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {

    /* ─── 5.4: Галерея — 1 колонка ─── */
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    /* ─── 5.5: Услуги — компактный список ─── */
    .services {
        padding-top: 60px;
    }
    .services__list {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ─── 5.6: О НАС — заголовок: уместить 2 фразы в строку ─── */
    .about__headline {
        font-size: clamp(15px, 5vw, 20px);
        line-height: 1.25;
    }
}

/* ─── 5.1: Скрыть кастомный курсор на touch-устройствах ─── */
@media (hover: none) {
    body { cursor: auto; }
    .cursor, .cursor-dot { display: none; }
}
