/* ═══════════════════════════════════════════════════════
   SONMAX WORLDWIDE — style.css

   ЗМІСТ
   01. Шрифт (@font-face, локальний Inter)
   02. Токени дизайну (:root)
   03. Базовий скид і типографіка
   04. Службові класи (доступність)
   05. Хелпери й кнопки
   06. Прелоадер
   07. Хедер і мобільне меню
   08. Hero
   09. Мозаїка фото (scatter)
   10. Напрямки перевезень (feature)
   11. Ніші (twocol + стрічка)
   12. Показники (snapshot)
   13. Відгуки
   14. Форма заявки (cta)
   15. Футер
   16. Reduced motion
   17. Адаптив

   ІМЕНУВАННЯ КЛАСІВ
   Скорочений BEM: <блок>-<елемент> для частин і <блок>--<варіант> для
   модифікаторів. Префікс блоку скорочується до 2–4 літер, коли блок
   згадується часто:
       .fcard / .fc-h / .fc-p          — картка напрямку
       .rcard / .rc-name / .rc-niche   — картка відгуку
       .hbtn / .hbtn--primary          — кнопка hero-типу
   Стан позначається класом is-*: .is-active. Класи, які додає JS,
   позначені коментарем у місці оголошення.
   ═══════════════════════════════════════════════════════ */


/* ── 01. ШРИФТ ─────────────────────────────────────────
   Inter Variable, 4 підмножини. Файли лежать у assets/fonts,
   зовнішніх запитів немає — сайт працює офлайн. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ── 02. ТОКЕНИ ──────────────────────────────────────── */
:root {
  /* Кольори */
  --ink:    #0A0A0A;   /* основний текст, темні секції */
  --ink-2:  #141410;   /* картки на темному тлі */
  --paper:  #FFFFFF;   /* світле тло */
  --paper-2:#F2F1ED;   /* тло полів вводу */
  --grey:   #6E6E6A;   /* другорядний текст */
  --line:   rgba(10,10,10,.12);   /* межі на світлому */
  --line-d: rgba(255,255,255,.14); /* межі на темному */
  --yellow: #FFF500;   /* акцент, CTA */

  /* Типографіка: --f-d — заголовки, --f-b — основний текст */
  --f-d: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-b: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Ритм */
  --pad: 40px;    /* горизонтальні поля секцій */
  --frame: 16px;  /* біла рамка навколо hero та форми */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── 03. БАЗА ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-b); background: var(--paper); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Lenis (плавний скрол) вимикає нативний smooth-scroll, щоб вони не конфліктували */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }


/* ── 04. СЛУЖБОВІ КЛАСИ ──────────────────────────────── */

/* Текст лише для скрінрідерів */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Посилання «до вмісту» — з'являється при першому натисканні Tab */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 12px 18px; background: var(--yellow); color: var(--ink);
  font-family: var(--f-d); font-weight: 700; font-size: 14px;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Видима рамка фокусу для клавіатурної навігації (миша її не викликає) */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.footer :focus-visible, .feature :focus-visible { outline-color: var(--yellow); }


/* ── 05. ХЕЛПЕРИ Й КНОПКИ ────────────────────────────── */
.eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.eyebrow--light { color: rgba(255,255,255,.55); }
.ic-arrow { flex-shrink: 0; transition: transform .3s var(--ease); }

/* Основна квадратна жовта кнопка */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-d); font-weight: 700; font-size: 15px;
  padding: 16px 24px; align-self: flex-start; min-width: 240px;
  transition: transform .3s var(--ease), background .3s;
}
.btn-solid:hover { transform: translateY(-2px); background: #fffa45; }
.btn-solid:hover .ic-arrow { transform: translateX(4px); }

/* Вторинна текстова кнопка з залитою іконкою */
.btn-sec { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-d); font-weight: 700; font-size: 14px; color: var(--paper); }
.btn-sec .ic-arrow { color: var(--yellow); }
.btn-sec:hover .ic-arrow { transform: translate(3px, -3px); }

/* Кнопки hero, мобільного меню та футера */
.hbtn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; white-space: nowrap; font-family: var(--f-d); font-weight: 700; font-size: 15px; transition: transform .3s var(--ease), background .3s, color .3s; }
.hbtn:hover { transform: translateY(-2px); }
.hbtn:hover .ic-arrow { transform: translateX(4px); }
.hbtn--primary { background: var(--yellow); color: var(--ink); }
.hbtn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); flex-direction: row-reverse; justify-content: space-between; }
.hbtn--ghost:hover { background: rgba(255,255,255,.1); }

/* Рядок заголовка з маскою: padding з усіх боків + компенсуючий margin,
   щоб виносні елементи літер не різались краєм маски */
.ln { display: block; overflow: hidden; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
.ln > i { display: block; font-style: normal; will-change: transform; }

/* Обгортки, які створює splitChars() у main.js: .sw — слово, .sc — символ */
.sw { display: inline-block; white-space: nowrap; }
.sc { display: inline-block; will-change: transform, opacity; }


/* ── 06. ПРЕЛОАДЕР ───────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
/* тло з 5 вертикальних смуг-шторок */
.pl-blinds { position: absolute; inset: 0; z-index: 0; display: flex; }
.pl-blinds span { flex: 1; height: 100%; background: var(--yellow); will-change: transform; }
.pl-logo { position: relative; z-index: 1; display: inline-block; line-height: 1; }
.pl-sub { z-index: 1; }
.pl-ghost, .pl-fill {
  display: block; margin: 0;
  font-family: var(--f-d); font-weight: 900;
  font-size: clamp(56px, 10vw, 150px); line-height: 1; letter-spacing: -.045em;
  text-transform: uppercase; white-space: nowrap;
}
.pl-ghost { color: rgba(10,10,10,.2); }
.pl-fill  { position: absolute; inset: 0; color: var(--ink); clip-path: inset(0 100% 0 0); will-change: clip-path; }
.pl-cursor { position: absolute; top: 8%; bottom: 8%; left: 0; width: 4px; background: var(--ink); will-change: left; }
.pl-count {
  position: absolute; left: 100%; top: 4px; margin-left: 12px; transform: translateY(-30%);
  font-family: var(--f-d); font-weight: 700; font-size: clamp(13px, 1.3vw, 20px);
  letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pl-sub {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 6px .15em;
}
.pl-word {
  display: inline-block; font-family: var(--f-d); font-weight: 700; line-height: 1.4;
  font-size: clamp(18px, 2vw, 30px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}


/* ── 07. ХЕДЕР ───────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 28px 30px;
}
.nav-box {
  display: flex; align-items: center; height: 50px;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0,0,0,.10); color: var(--ink);
}
.nav-logo { padding: 0 22px; gap: 8px; font-family: var(--f-d); font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--ink); flex-shrink: 0; }
.nl-sub { font-size: 9px; font-weight: 600; letter-spacing: .18em; color: var(--grey); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { padding: 0 8px; }
.nav-links a { display: flex; align-items: center; height: 100%; padding: 0 15px; font-size: 13px; font-weight: 500; color: rgba(10,10,10,.6); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; }
.nbtn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 18px; font-family: var(--f-d); font-weight: 700; font-size: 13px; white-space: nowrap; transition: transform .25s var(--ease), background .25s; }
.nbtn-ic { display: flex; }
.nbtn:hover { transform: translateY(-1px); }
.nbtn--primary { background: var(--yellow); color: var(--ink); }
.nbtn--ghost { background: rgba(255,255,255,.85); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 18px rgba(0,0,0,.1); }

/* Бургер — лише на мобільних (див. розділ 17) */
.nav-burger { display: none; width: 50px; height: 50px; background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.1); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }

/* Повноекранне меню; клас .open перемикає main.js */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; padding: 18px var(--pad) 32px;
  transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.nav-overlay.open { transform: translateY(0); visibility: visible; }
.nav-overlay-top { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.nav-overlay-logo { font-family: var(--f-d); font-weight: 800; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; }
.nav-close { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--ink); margin-right: -10px; }
.nav-overlay-links { display: flex; flex-direction: column; margin-top: 5vh; }
.nav-overlay-links a { font-family: var(--f-d); font-weight: 700; font-size: 30px; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav-overlay-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 5vh; }
.nav-overlay-cta .hbtn { justify-content: space-between; }
.hbtn--ghost-dark { color: var(--ink); border-color: var(--line); }
.hbtn--ghost-dark:hover { background: rgba(10,10,10,.05); }


/* ── 08. HERO ────────────────────────────────────────── */
/* Рамка навколо відео; перехід «відео стискається в картку» керується GSAP-піном */
.hero { background: var(--paper); padding: var(--frame); height: 100vh; min-height: 660px; position: relative; z-index: 1; }
.hero-inner { position: relative; width: 100%; height: 100%; overflow: hidden; will-change: clip-path; }
/* темне тло — щоб блок лишався читабельним, поки відео не завантажилось */
.hero-media { position: absolute; inset: 0; background: var(--ink); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.62) 0%, rgba(10,10,10,.1) 46%, rgba(10,10,10,.34) 100%), rgba(10,10,10,.22); }
.hero-content { position: absolute; left: 44px; bottom: 7%; z-index: 2; max-width: min(1080px, 88%); display: flex; flex-direction: column; gap: 26px; color: #fff; }
.hero-h { font-family: var(--f-d); font-weight: 900; color: #fff; font-size: clamp(46px, 6vw, 108px); line-height: 1.06; letter-spacing: -.035em; }
.hero-sub { font-size: clamp(16px, 1.5vw, 22px); font-weight: 400; line-height: 1.55; color: rgba(255,255,255,.85); max-width: 680px; }
.hero-h .hl-y { color: var(--yellow); }
.hero-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.htag {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px;
  background: rgba(10,10,10,.42); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; text-align: center;
}
/* CTA в hero показується лише на смартфонах */
.hero-cta-mob { display: none; }

/* Картка лід-магніту в правому нижньому куті */
.hero-lead { position: absolute; right: 28px; bottom: 7%; z-index: 2; width: 300px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; transition: transform .35s var(--ease), background .3s; }
.hero-lead:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.hl-img { aspect-ratio: 16/9; overflow: hidden; }
.hl-img img { width: 100%; height: 100%; object-fit: cover; }
.hl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; color: #fff; }
.hl-tag { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.hl-title { font-family: var(--f-d); font-weight: 700; font-size: 15px; line-height: 1.25; }
.hl-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); margin-top: 4px; }
.hl-link svg { transition: transform .3s var(--ease); }
.hero-lead:hover .hl-link svg { transform: translate(3px,-3px); }


/* ── 09. МОЗАЇКА ФОТО ────────────────────────────────── */
.scatter { position: relative; z-index: 2; background: var(--paper); min-height: 122vh; padding: 8vh 0; overflow: hidden; }
.scatter-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* .float-wrap створює main.js навколо кожного .float-img (позиція з data-атрибутів) */
.float-wrap { position: absolute; will-change: transform; }
.float-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; opacity: 0; box-shadow: 0 14px 40px rgba(0,0,0,.12); will-change: transform; }
.scatter-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding: 26vh var(--pad) 0; max-width: 920px; margin: 0 auto; }
.scatter-h { font-family: var(--f-d); font-weight: 800; font-size: clamp(46px, 6.4vw, 112px); line-height: .94; letter-spacing: -.035em; }
.scatter-sub { font-size: clamp(14px,1.05vw,16.5px); line-height: 1.65; color: var(--grey); max-width: 560px; }
.scatter-center .btn-solid { align-self: center; margin-top: 6px; }


/* ── 10. НАПРЯМКИ ПЕРЕВЕЗЕНЬ ─────────────────────────── */
.feature { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--paper); align-items: start; }
.feature-media { position: sticky; top: 0; height: 100vh; padding: 28px; }
.fm-inner { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ink-2); }
.fm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); transform-origin: center; will-change: transform, opacity; }
.fm-img.is-active { opacity: 1; }
/* Заголовок ближче до верху, картки рознесені рівномірно; знизу запас,
   щоб остання картка дійшла до центру екрана до відкріплення піна */
.feature-content { display: flex; flex-direction: column; padding: 120px var(--pad) 42vh; }
.feature-head { display: flex; flex-direction: column; gap: 22px; }
.feature-h { font-family: var(--f-d); font-weight: 800; font-size: clamp(36px, 4vw, 70px); line-height: .96; letter-spacing: -.03em; max-width: 12ch; }
.feature-cards { display: flex; flex-direction: column; }
.fcard {
  background: var(--ink-2); padding: 30px 30px 42px; display: flex; flex-direction: column; gap: 26px;
  min-height: 420px; margin-top: 24px;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.fcard:first-child { margin-top: 6vh; }
.fcard:hover { background: #20201A; transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.fcard-txt { display: flex; flex-direction: column; gap: 12px; }
.fc-h { font-family: var(--f-d); font-weight: 800; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; }
.fc-p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.58); max-width: 48ch; }
.fcard .btn-sec { align-self: flex-end; margin-top: auto; }


/* ── 11. НІШІ ────────────────────────────────────────── */
.twocol { position: sticky; top: 0; z-index: 2; background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 16vh var(--pad); align-items: start; }
.tc-h { font-family: var(--f-d); font-weight: 800; font-size: clamp(36px, 5vw, 92px); line-height: .92; letter-spacing: -.035em; }
.tc-right { display: flex; flex-direction: column; gap: 30px; padding-top: 12px; }
.tc-right p { font-size: 16px; line-height: 1.7; max-width: 480px; }

/* Сходинкова стрічка фото по низу секції; зсув керується скролом */
.dir-strip {
  grid-column: 1 / -1;
  width: calc(100% + var(--pad) * 2);
  margin: 10vh calc(-1 * var(--pad)) calc(-16vh);
  overflow: hidden;
}
.dir-track {
  display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 10px;
  width: max-content; will-change: transform;
}
.ds-img { flex: 0 0 auto; object-fit: cover; aspect-ratio: 3/4; width: auto; }
.ds-img.large { height: clamp(180px, 24vw, 340px); }
.ds-img.small { height: clamp(120px, 16vw, 230px); }


/* ── 12. ПОКАЗНИКИ ───────────────────────────────────── */
.snapshot { position: relative; z-index: 3; background: var(--paper); padding: 14vh var(--pad) 16vh; border-top: 1px solid var(--line); }
.snap-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6vh; }
.snap-year { font-family: var(--f-d); font-weight: 600; font-size: 13px; color: var(--grey); }
.snap-main { display: flex; flex-direction: column; gap: 26px; padding-bottom: 7vh; border-bottom: 1px solid var(--line); }
.snap-big { font-family: var(--f-d); font-weight: 800; font-size: clamp(120px, 22vw, 360px); line-height: .8; letter-spacing: -.05em; display: flex; align-items: flex-start; color: var(--ink); }
.snap-big .suf { font-size: .36em; margin-top: .1em; color: var(--ink); }
.snap-progress { height: 20px; width: 100%; background: rgba(10,10,10,.1); position: relative; overflow: hidden; }
.sp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--yellow); }
.snap-caption { font-size: 15px; color: var(--grey); max-width: 520px; }
.snap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 7vh; }
.sg { padding: 8px 24px 8px 0; }
.sg-n { font-family: var(--f-d); font-weight: 800; font-size: clamp(48px, 6vw, 92px); line-height: 1; letter-spacing: -.04em; display: flex; align-items: flex-start; }
.sg-acc { font-size: .42em; margin-top: .35em; color: var(--grey); }
.sg-k { font-size: 13.5px; color: var(--grey); margin-top: 14px; line-height: 1.4; max-width: 16ch; }
.snap-btn { margin-top: 7vh; }


/* ── 13. ВІДГУКИ ─────────────────────────────────────── */
.news { position: sticky; top: 0; z-index: 3; background: var(--paper); padding: 8vh 0 16vh; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--pad) 40px; }
.news-h { font-family: var(--f-d); font-weight: 800; font-size: clamp(32px, 4vw, 68px); line-height: .95; letter-spacing: -.03em; }
.news-ctrl { display: flex; gap: 10px; }
.nc-btn { width: 54px; height: 54px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .25s, color .25s; }
.nc-btn:hover { background: var(--ink); color: var(--paper); }
.news-track { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--pad) 12px; scrollbar-width: none; }
.news-track::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 clamp(300px, 26vw, 380px); display: flex; flex-direction: column; gap: 18px; cursor: pointer; }
.rcard-video { position: relative; aspect-ratio: 9/16; overflow: hidden; background: var(--ink); }
.rcard-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.rcard:hover .rcard-video img { transform: scale(1.05); }
/* затемнення поверх фото, під кнопкою відтворення */
.rcard-video::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.25); opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.rcard:hover .rcard-video::after { opacity: 1; }
.rc-play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--ink); border-radius: 100px; font-size: 18px;
  transition: transform .3s ease, background-color .3s ease;
}
.rcard:hover .rc-play { transform: scale(1.15); background: var(--yellow); color: var(--ink); }
.rcard-meta { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.rc-name { font-family: var(--f-d); font-weight: 700; font-size: 18px; }
.rc-niche { font-size: 13px; color: var(--grey); }


/* ── 14. ФОРМА ЗАЯВКИ ────────────────────────────────── */
/* Рамка, секція наїжджає поверх відгуків */
.cta { position: relative; z-index: 4; background: var(--paper); padding: var(--frame); height: 100vh; min-height: 680px; }
.cta-inner { position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.5), rgba(10,10,10,.3) 45%, rgba(10,10,10,.62) 100%); }
.cta-top { position: absolute; left: 44px; right: 44px; top: 12vh; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.cta-h { font-family: var(--f-d); font-weight: 800; font-size: clamp(48px, 7vw, 130px); line-height: 1.04; letter-spacing: -.04em; }
.cta-sub { font-size: clamp(14px,1.05vw,16.5px); line-height: 1.6; color: rgba(255,255,255,.8); max-width: 480px; }
.cta-form { position: absolute; right: 32px; bottom: 6%; z-index: 2; width: min(400px, calc(100% - 64px)); background: var(--paper); color: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 11px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.cf-field input, .cf-field textarea { width: 100%; background: var(--paper-2); border: 1px solid var(--line); border-radius: 0; padding: 14px 15px; font-family: var(--f-b); font-size: 14px; color: var(--ink); outline: none; resize: none; transition: border-color .2s, background .2s; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #767672; }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--ink); background: #fff; }
.cf-field input:focus-visible, .cf-field textarea:focus-visible { outline-offset: 0; }
.cf-submit { width: 100%; min-width: 0; margin-top: 6px; }
.cf-note { font-size: 13px; color: #1a7a3c; font-weight: 500; }


/* ── 15. ФУТЕР ───────────────────────────────────────── */
.footer { position: relative; z-index: 5; background: var(--ink); color: var(--paper); padding: 9vh var(--pad) 3vh; }
.footer-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; }
.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-logo { font-family: var(--f-d); font-weight: 900; font-size: clamp(30px, 3.2vw, 50px); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.footer-logo .nl-sub { font-size: 12px; color: rgba(255,255,255,.5); }
.footer-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 360px; }
.footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.75); transition: color .2s; }
.footer-social a:hover { color: var(--yellow); }
.fs-ic { width: 20px; text-align: center; }
.footer-phones { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.footer-phones a { font-size: 13px; color: rgba(255,255,255,.62); transition: color .2s; }
.footer-phones a:hover { color: var(--yellow); }
.footer-phones a span { font-size: 11px; color: rgba(255,255,255,.42); margin-left: 6px; }
.footer-nav-wrap { display: flex; flex-direction: column; gap: 44px; }
.footer-menu { display: flex; flex-direction: column; }
.footer-menu a {
  font-family: var(--f-d); font-weight: 700; font-size: clamp(24px, 2.6vw, 40px);
  letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid var(--line-d);
  display: flex; justify-content: space-between; align-items: center; transition: color .2s, padding-left .25s var(--ease);
}
.footer-menu a:first-child { border-top: 1px solid var(--line-d); }
.footer-menu a:hover { color: var(--yellow); padding-left: 10px; }
.fm-arrow { color: var(--yellow); opacity: 0; transform: translate(-8px, 8px); transition: opacity .25s, transform .25s var(--ease); }
.footer-menu a:hover .fm-arrow { opacity: 1; transform: none; }
.footer-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.footer-cta .hbtn { justify-content: center; }
.footer-cta .hbtn--ghost { border-color: rgba(255,255,255,.3); }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 9vh; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }


/* ── 16. REDUCED MOTION ──────────────────────────────── */
/* Користувач попросив ОС прибрати анімації — поважаємо це.
   main.js додатково вимикає GSAP-сценарії через matchMedia. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .float-img { opacity: 1 !important; }
}


/* ── 17. АДАПТИВ ─────────────────────────────────────── */
/* ── ВУЗЬКІ НОУТБУКИ (≤1200px) ──
   Навігація тут ще вміщується повністю, але заголовок hero підходить
   до картки «Гайд» упритул (лишалося 2px). Звужуємо текстову колонку. */
@media (max-width: 1200px) {
  .hero-h { font-size: clamp(40px, 5.4vw, 84px); }
  .hero-content { max-width: calc(100% - 400px); }
}

/* ── ПЛАНШЕТИ (≤1100px) ──
   Повна навігація тут уже не вміщується: логотип + 5 пунктів + дві кнопки
   потребують ~1056px. Лишаємо жовту CTA (вона приносить заявки) і бургер,
   решту ховаємо. Картка лід-магніту та мозаїка теж заходили на текст —
   тому звужуємо колонку hero і вмикаємо підкладку під текстом мозаїки. */
@media (max-width: 1100px) {
  :root { --pad: 28px; }
  .snap-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }

  /* Хедер: пункти меню переїжджають у бургер, Telegram — у меню */
  #nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-actions .nbtn--ghost { display: none; }
  .nav-burger { display: flex; }

  /* Hero: текст не повинен заходити під картку «Гайд» */
  .hero-h { font-size: clamp(40px, 5vw, 76px); }
  .hero-content { max-width: calc(100% - 380px); }
  .hero-lead { width: 260px; right: 24px; }

  /* Мозаїка: фото лягають поверх тексту — підкладаємо матове скло */
  .scatter-center {
    z-index: 3; padding: 24px; border-radius: 12px;
    background: rgba(255,255,255,.75);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    margin: 26vh var(--pad) 0;
  }
}
@media (max-width: 900px) {
  #nav { padding: 16px; }
  .nav-actions { display: none; }
  .hero-lead { display: none; }
  .hero-h { font-size: clamp(34px, 9vw, 58px); line-height: 1.05; }
  .hero-content { left: 22px; right: 22px; bottom: 5%; max-width: none; gap: 16px; }
  .hero-sub { font-size: 15px; max-width: none; }
  .hero-cta-mob { display: inline-flex; align-self: stretch; justify-content: space-between; }
  .hero-tags { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; width: 100%; margin-top: -6px; }
  .htag { width: 100%; white-space: normal; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { position: relative; height: 70vw; padding: 14px; }
  .feature-content { padding: 8vh var(--pad); }
  .fcard, .fcard:first-child { margin-top: 20px; }
  .twocol { grid-template-columns: 1fr; gap: 26px; }
  .snap-big { font-size: clamp(96px, 30vw, 200px); }
  .cta { height: auto; min-height: 0; margin-top: 0; }
  .cta-inner { display: flex; flex-direction: column; }
  .cta-media { position: relative; height: 60vw; }
  .cta-top { position: relative; left: 0; right: 0; top: 0; padding: 8vh var(--pad) 4vh; color: var(--ink); }
  .cta-h { color: var(--ink); }
  .cta-sub { color: var(--grey); }
  .cta-form { position: relative; right: 0; bottom: 0; margin: 0 var(--pad) 6vh; width: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  /* Підкладку під текстом мозаїки задано вище, у блоці ≤1100px */
  .scatter-h { font-size: clamp(40px, 11vw, 64px); }
}
@media (max-width: 560px) {
  .snap-grid { grid-template-columns: 1fr; }
  .footer-cta { flex-direction: column; }
  .footer-cta .hbtn { width: 100%; }
  .footer-legal { flex-direction: column; gap: 8px; }
}
