/* ============================================================
   akitalab 秋田 — styles.css
   Дизайн-система: тёмная база Woodsmoke, акцент Maple точечно.
   ============================================================ */

/* ------------------------------------------------------------
   ДИЗАЙН-ТОКЕНЫ
   ------------------------------------------------------------ */
:root {
  /* Поверхности и фон */
  --bg:        #101011;            /* Woodsmoke — фон */
  --surface:   #17171A;            /* карточки */
  --surface-2: #1E1D1F;            /* приподнятые поверхности */

  /* Текст */
  --text:     #F5EDD8;             /* Cream — основной текст/заголовки */
  --text-mut: #D1B48C;             /* Tan — вторичный текст */
  --text-dim: rgba(209,180,140,.72); /* ~4.6:1 на --bg — WCAG AA для дрібного тексту */

  /* Акцент Maple (использовать точечно!) */
  --accent:    #7B0005;            /* главный акцент — ФОНЫ/рамки/градиенты */
  --accent-hi: #A8161C;            /* светлее — hover/glow */
  --accent-lo: #540003;            /* темнее — нажатие/градиент */
  --accent-text: #E0575C;          /* читаемый акцент для ТЕКСТА на тёмном фоне (~5:1, WCAG AA) */

  /* Линии и плашки */
  --line:    rgba(209,180,140,.14); /* бордеры-волоски */
  --line-hi: rgba(209,180,140,.30); /* бордер в hover */
  --badge-bg: rgba(123,0,5,.16);

  /* Шрифты */
  --font-display: 'Benzin', 'Arial Narrow', 'Oswald', sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-jp:      'Noto Sans JP', sans-serif;
}

/* ------------------------------------------------------------
   ЛОКАЛЬНЫЙ ШРИФТ BENZIN
   Файл: ./fonts/benzin-bold.woff2 (строчные, дефис, woff2).
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Benzin';
  src: url('./fonts/benzin-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

/* overflow-x:hidden держим ТОЛЬКО на body — он пропагируется на вьюпорт
   и гасит горизонтальный скролл, не делая body отдельным скролл-контейнером
   (иначе ломается window-скролл и sticky-хедер). */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ------------------------------------------------------------
   УТИЛИТЫ
   ------------------------------------------------------------ */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 40px;
}

section {
  padding-block: 130px;
  position: relative;
}

/* Заголовки и логотип — Benzin, сжатые капсом */
h1, h2, h3, h4,
.logo {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: .98;
}

/* Цветовые помощники */
.accent { color: var(--accent-text); }
.dim    { color: var(--text-mut); }
p       { color: var(--text-mut); }

/* Видимый фокус по умолчанию (клавиатура). Базовый уровень с нулевой
   специфичностью (:where) — компоненты со своим индикатором переопределяют. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* a11y-гарантія (WCAG 2.4.7/2.4.11): багато компонентів нижче ставлять
   outline:none заради власної бордової тіні, яка має контраст ~1.1:1
   (на червоній кнопці — 1:1, тобто невидима). Цей !important-блок завжди
   повертає видиму обводку var(--text) — тема-залежну, ~16:1 на будь-якій
   поверхні, поверх їхньої тіні. Єдине джерело правди для фокуса з клавіатури. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--text) !important;
  outline-offset: 2px !important;
}

/* Skip-link: виден только при фокусе с клавиатуры */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 1100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-hi);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Плашка-лейбл */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-mut);
  background: var(--badge-bg);
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 22px;
}

/* Японский кандзи в логотипе */
.logo__jp {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--accent-text);
  margin-left: .4em;
  font-size: .82em;
}

/* ------------------------------------------------------------
   КНОПКИ
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;            /* pill */
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              box-shadow .4s cubic-bezier(.22,.61,.36,1),
              border-color .3s ease,
              background-color .3s ease;
}

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

/* --- Primary: Maple, наливается снизу вверх --- */
.btn--primary {
  background: var(--accent-lo);
  color: var(--text);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, var(--accent-hi), var(--accent));
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(123,0,5,.35);
}

.btn--primary:hover::before {
  transform: translateY(0);
}

.btn--primary:active {
  transform: scale(.985);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123,0,5,.45);
}

/* --- Ghost: прозрачная с волоском-бордером --- */
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--badge-bg);
  transform: translateY(-2px);
}

.btn--ghost:active {
  transform: scale(.985);
}

.btn--ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123,0,5,.45);
}

/* ------------------------------------------------------------
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   Класс .in-view добавляется из script.js (IntersectionObserver).
   --d — индивидуальная задержка для каскада.
   ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity .9s ease,
              transform .9s cubic-bezier(.22,.61,.36,1),
              filter .9s ease;
  transition-delay: var(--d, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================================
   1. HEADER + НАВИГАЦИЯ
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  transition: background-color .3s ease,
              border-color .3s ease,
              backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(16,16,17,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 34px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  color: var(--text-mut);
  padding: 4px 0;
  transition: color .3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
  outline: none;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__contact {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .3s ease, background-color .3s ease;
}

.nav__contact:hover,
.nav__contact:focus-visible {
  border-color: var(--accent);
  background: var(--badge-bg);
  outline: none;
}

/* ------------------------------------------------------------
   БУРГЕР
   ------------------------------------------------------------ */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.burger--close span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.burger--close span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ------------------------------------------------------------
   МОБИЛЬНОЕ МЕНЮ (overlay)
   ------------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  /* visibility:hidden убирает закрытое меню из дерева доступности и из
     порядка табуляции; скрытие откладываем на .4s, чтобы не оборвать фейд. */
  visibility: hidden;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              opacity .4s ease,
              visibility 0s linear .4s;
}

.mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              opacity .4s ease,
              visibility 0s;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  flex-shrink: 0;
}

.mobile-menu__top .burger--close {
  display: flex;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.mobile-menu__nav a {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1);
}

.mobile-menu.open .mobile-menu__nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 70ms);
}

.mobile-menu__bottom {
  flex-shrink: 0;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.mobile-menu__cta {
  width: 100%;
}

.mobile-menu__socials {
  display: flex;
  gap: 12px;
}

/* ------------------------------------------------------------
   СОЦ-ИКОНКИ (общие для меню и футера)
   ------------------------------------------------------------ */
.mobile-menu__socials a,
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-mut);
  font-size: 17px;
  transition: color .3s ease, border-color .3s ease,
              background-color .3s ease, transform .3s ease;
}

.mobile-menu__socials a:hover,
.mobile-menu__socials a:focus-visible,
.footer__socials a:hover,
.footer__socials a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: var(--badge-bg);
  transform: translateY(-2px);
  outline: none;
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 92px;
  /* overflow:visible — чтобы canvas-фон мог выйти ниже Hero и «перетечь»
     в начало следующей секции. По ширине canvas = 100%, горизонтального
     скролла не даёт; страховка — overflow-x:hidden на body. */
  overflow: visible;
  /* Мягкий тёплый фон-фолбэк (только сверху-справа — у низа он 0, чтобы
     не создавать тинт-обрыв на стыке с следующей секцией).
     Если WebGL-точки не загрузятся — Hero не будет плоско-чёрным. */
  background:
    radial-gradient(120% 85% at 75% -10%, rgba(123,0,5,.13), transparent 55%);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  /* Заходим на ~220px ниже Hero, чтобы дуга затухания успела
     плавно раствориться в начале следующей секции. */
  height: calc(100% + 220px);
  display: block;
  /* ЭЛЛИПТИЧЕСКАЯ маска: низ растворяется ДУГОЙ. Горизонтальный радиус
     сужен (90%), поэтому края и левая зона (где вуаль) гаснут в 0 ещё ДО
     стыка — там точек не остаётся, и вуаль/границы нечего «подсветить».
     Вниз «языком» тянется только центр. Никакой прямой линии. */
  -webkit-mask-image: radial-gradient(90% 100% at 50% 0%, #000 58%, rgba(0,0,0,0) 90%);
          mask-image: radial-gradient(90% 100% at 50% 0%, #000 58%, rgba(0,0,0,0) 90%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Затемнение для читаемости текста сфокусировано на ТЕКСТЕ (середина-низ
     слева) и СХОДИТ НА НЕТ ещё до самого низа Hero (~94% высоты). Раньше
     вуаль была самой тёмной у низа Hero и приглушала точки широкой полосой
     над стыком — отсюда перепад яркости (линия) на границе секций. */
  background: radial-gradient(100% 65% at 6% 55%,
              rgba(16,16,17,.96) 0%, transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(38px, 6.5vw, 76px);
  color: var(--text);
}

.hero__sub {
  max-width: 460px;
  margin: 24px 0 32px;
  color: var(--text-mut);
  font-size: 17px;
}

/* Ротатор слова: ширину/высоту держит невидимый образец,
   анимируемый текст лежит абсолютно — его «раздувание» катаканой
   НЕ влияет на раскладку, поэтому строка не дёргается. */
.hero__rotator {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.hero__rotator-size {
  visibility: hidden;       /* резерв по самому длинному слову «приводит лидов» */
  white-space: nowrap;
}

#scramble {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  text-align: left;
  transition: opacity .25s ease;
}

/* ============================================================
   5. ПОДХОД — процесс из 3 шагов
   ============================================================ */
.how__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.how h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--text);
}

.how__panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  display: block;            /* теперь это ссылка-карточка на страницу этапа */
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  overflow: hidden;
  color: inherit;
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              border-color .35s ease;
}

.panel:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,0,5,.4);
}

.panel__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.panel:hover .panel__more {
  transform: translateX(4px);
}

.panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

.panel:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
}

.panel:hover::before {
  transform: scaleY(1);
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
}

.panel p {
  font-size: 15px;
}

.panel__ico {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .9;
}

.panel__ico[data-ico="audit"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D1B48C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E");
}

.panel__ico[data-ico="track"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D1B48C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 16 9 10 13 14 21 6'/%3E%3Cpolyline points='21 11 21 6 16 6'/%3E%3C/svg%3E");
}

.panel__ico[data-ico="scale"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D1B48C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='20' x2='5' y2='13'/%3E%3Cline x1='12' y1='20' x2='12' y2='8'/%3E%3Cline x1='19' y1='20' x2='19' y2='4'/%3E%3C/svg%3E");
}

/* ============================================================
   7. УСЛУГИ — 4 карточки
   ============================================================ */
.why__head {
  max-width: 560px;
  margin-left: auto;
  text-align: right;
  margin-bottom: 56px;
}

.why__head h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  color: var(--text);
  margin-bottom: 18px;
}

.why__head p {
  font-size: 16px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              border-color .4s ease;
  transition-delay: var(--d, 0ms);
}

.fcard::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

.fcard:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
}

.fcard:hover::after {
  transform: scaleY(1);
}

.fcard__icon {
  position: relative;
  aspect-ratio: 1 / .82;
  background: radial-gradient(120% 95% at 50% 6%,
              rgba(123,0,5,.22), transparent 66%);
  transition: background .4s ease;
}

.fcard:hover .fcard__icon {
  background: radial-gradient(120% 95% at 50% 6%,
              rgba(123,0,5,.34), transparent 66%);
}

.fcard__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 42%;
  filter: drop-shadow(0 0 14px rgba(168,22,28,.35)); /* слабый glow */
}

.fcard__icon[data-icon="target"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EDD8' stroke-width='1.3'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3Ccircle cx='12' cy='12' r='1.8' fill='%237B0005' stroke='none'/%3E%3C/svg%3E");
}

.fcard__icon[data-icon="analytics"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='13' width='3.6' height='8' rx='1' fill='%237B0005'/%3E%3Crect x='10.2' y='8' width='3.6' height='13' rx='1' fill='%23A8161C'/%3E%3Crect x='16.4' y='4' width='3.6' height='17' rx='1' fill='%23F5EDD8'/%3E%3C/svg%3E");
}

.fcard__icon[data-icon="creative"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5EDD8'%3E%3Cpath d='M12 2 L13.6 10.4 L22 12 L13.6 13.6 L12 22 L10.4 13.6 L2 12 L10.4 10.4 Z'/%3E%3C/svg%3E");
}

.fcard__icon[data-icon="report"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EDD8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3 h7 l4 4 v14 H7 Z'/%3E%3Cpolyline points='14 3 14 7 18 7'/%3E%3Cline x1='10' y1='12' x2='16' y2='12'/%3E%3Cline x1='10' y1='16' x2='16' y2='16'/%3E%3C/svg%3E");
}

.fcard__body {
  padding: 22px 20px;
}

.fcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fcard h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
}

.fcard__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}

.fcard p {
  font-size: 15px;
}

/* Минимальная ссылка «детальніше →» в карточке услуги (стрелка — псевдоэлемент) */
.fcard__more {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-mut);
  text-decoration: none;
  transition: color .25s ease;
}

.fcard__more::after {
  content: '→';
  margin-left: 6px;
  transition: transform .25s ease;
}

.fcard__more:hover,
.fcard__more:focus-visible {
  color: var(--accent-text);
  outline: none;
}

.fcard__more:hover::after,
.fcard__more:focus-visible::after {
  transform: translateX(4px);   /* стрелка сдвигается вправо */
}

/* Вся карточка услуги кликабельна: ссылка .fcard__more растягивается
   псевдоэлементом на всю карточку (переход на страницу услуги по клику
   в любом месте). Доступность сохранена — это та же ссылка, фокус с
   клавиатуры подсвечивает карточку через :focus-within. */
.fcard {
  cursor: pointer;
}

.fcard__more::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fcard:focus-within {
  border-color: var(--line-hi);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ============================================================
   8. СТЕК / ИНСТРУМЕНТЫ
   ============================================================ */
.features {
  overflow: hidden;
}

.features__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .6;
}

.features__inner {
  position: relative;
  z-index: 1;
}

.features__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.features__head h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  color: var(--text);
  margin-bottom: 26px;
}

.features__stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: 230px;
  height: 470px;
  border-radius: 42px;
  background: linear-gradient(180deg, #211c1a, #141112);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(123,0,5,.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 999px;
  background: #0c0a0b;
}

.phone__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone__logo {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 48px;
  color: var(--text);
  text-shadow: 0 0 20px rgba(123,0,5,.5);
}

.phone__tag {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mut);
}

.phone__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-top: 8px;
}

.phone__chart span {
  width: 14px;
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
}

.phone__chart span:last-child {
  background: linear-gradient(180deg, var(--text), var(--accent));
}

.ftag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 17px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  max-width: 300px;
  text-align: left;
  max-height: 52px;          /* свёрнуто: одна строка-пилюля */
  overflow: hidden;          /* клип контента во время плавного роста высоты */
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease,
              border-radius .14s ease,                       /* быстро → нет фазы «овала» */
              max-height .35s cubic-bezier(.22,.61,.36,1);   /* плавный рост/сжатие */
}

.ftag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.ftag:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,0,5,.45);
}

.ftag__sign {
  font-size: 18px;
  line-height: 1;
  color: var(--accent-text);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.ftag__more {
  display: none;
  color: var(--text-mut);
  font-size: 13px;
  width: 240px;
  max-width: 240px;
  line-height: 1.4;
}

/* Раскрытое состояние — аккуратная карточка, а не раздутый овал */
.ftag[aria-expanded="true"] {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
}

.ftag[aria-expanded="true"] .ftag__sign {
  position: absolute;
  top: 10px;
  right: 14px;
  transform: rotate(45deg);   /* + → × */
}

.ftag[aria-expanded="true"] .ftag__more {
  display: block;
  animation: ftagReveal .35s ease both;   /* мягкое проявление текста */
}

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

/* Позиции тегов: по бокам от телефона. Карточки раскрываются НАРУЖУ
   (левые растут вправо, но узкие 240px — до телефона не достают;
   правые анкерятся справа и растут влево). Центр под телефоном не занят. */
.ftag--tl { top: 5%;    left: 2%; }   /* Meta — верх-лево */
.ftag--ml { top: 39%;   left: 0; }    /* TikTok — середина-лево */
.ftag--bl { bottom: 5%; left: 2%; }   /* Автоматизація — низ-лево */
.ftag--tr { top: 5%;    right: 2%; }  /* Google — верх-право */
.ftag--br { bottom: 5%; right: 2%; }  /* Аналітика — низ-право */

/* ============================================================
   9. КЕЙСЫ / ОТЗЫВЫ
   ============================================================ */
.reviews__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.reviews__head {
  font-size: clamp(28px, 3.4vw, 46px);
  color: var(--text);
  line-height: 1.06;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review {
  position: relative;
  display: flex;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              border-color .35s ease;
  transition-delay: var(--d, 0ms);
}

.review::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

.review:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
}

.review:hover::before {
  transform: scaleY(1);
}

.review__ava {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
}

.review__name {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.review__metric {
  font-family: var(--font-display);
  color: var(--accent-text);
  font-size: 14px;
  letter-spacing: .02em;
  margin: 4px 0 8px;
}

.review p {
  font-size: 14px;
}

/* ============================================================
   FAQ — часті запитання (AEO)
   ============================================================ */
.faq__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.faq__head h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  color: var(--text);
}

/* MAIN FAQ — две НЕЗАВИСИМЫЕ по высоте flex-колонки.
   align-items:flex-start убирает взаимное растягивание: раскрытие блока
   двигает только то, что ниже него в ЕГО колонке, вторая стоит на месте. */
.faq__list {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.faq__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* STAGE FAQ (audit/launch/scaling) — простой Q&A-список (без аккордеона):
   ответы видны всегда, парные карточки в ряду одинаковой высоты. */
.faq.stage-section .faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.faq.stage-section .faq__a {
  max-height: none;
  opacity: 1;
  padding-top: 14px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  transition: border-color .35s ease,
              transform .35s cubic-bezier(.22,.61,.36,1);
}

.faq__item:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
}

.faq__q {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--text);
}

/* Вопрос-триггер аккордеона (только в главной FAQ — кнопка) */
button.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

button.faq__q:focus-visible {
  color: var(--accent-text);
}

/* Индикатор + / × в Maple */
.faq__ico {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--accent-text);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.faq__item.is-open .faq__ico {
  transform: rotate(45deg);   /* + → × */
}

/* Плавное раскрытие ответа (max-height + opacity).
   .faq__a-wrap — простая обёртка без своих стилей. */
.faq__a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  font-size: 15px;
  transition: max-height .35s cubic-bezier(.22,.61,.36,1),
              padding-top .35s ease,
              opacity .25s ease;
}

.faq__item.is-open .faq__a {
  max-height: 1500px;   /* fallback без JS; точну висоту задає script.js (scrollHeight) */
  opacity: 1;
  padding-top: 14px;
}

/* ============================================================
   СТРАНИЦЫ ЭТАПОВ (audit / launch / scaling)
   ============================================================ */
.stage-hero {
  padding-block: 140px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.stage-hero__inner {
  max-width: 820px;
}

.stage-hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  color: var(--text);
  margin: 6px 0 22px;
}

.stage-hero__intro {
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 30px;
}

/* Хлібні крихти (видимі) */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
}

.crumbs a {
  color: var(--text-mut);
  transition: color .3s ease;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--text);
  outline: none;
}

.crumbs__sep {
  color: var(--text-dim);
}

.crumbs__current {
  color: var(--text);
}

.stage-section {
  padding-block: 70px;
}

.stage-section > .container > h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  color: var(--text);
  margin-bottom: 30px;
}

.stage-lead {
  max-width: 760px;
  font-size: 17px;
}

/* «Що входить» — карточки-кроки */
.stage-steps {
  display: grid;
  gap: 14px;
}

.stage-step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s ease;
}

.stage-step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

.stage-step:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
}

.stage-step:hover::before {
  transform: scaleY(1);
}

.stage-step__n {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-text);
}

.stage-step h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--text);
  margin: 6px 0 8px;
}

.stage-step p {
  font-size: 15px;
}

/* Чек-лист «Що ви отримаєте» */
.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text-mut);
}

.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--badge-bg);
  border: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.checklist--problems li::before { content: '✕'; }

/* «Скільки часу» — выноска */
.time-note {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 24px 26px;
  max-width: 760px;
}

.time-note strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--accent-text);
  white-space: nowrap;
}

.time-note span {
  color: var(--text-mut);
  font-size: 16px;
  flex: 1;
  min-width: 240px;
}

/* Міні-кейс */
.minicase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 30px 32px;
  max-width: 820px;
}

.minicase .badge {
  margin-bottom: 14px;
}

.minicase p {
  font-size: 16px;
}

/* Навигация между этапами (prev / next) */
.stage-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stage-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  color: inherit;
  transition: border-color .3s ease, transform .3s ease;
}

.stage-nav a:hover,
.stage-nav a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.stage-nav a.is-next {
  align-items: flex-end;
  text-align: right;
}

.stage-nav__dir {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.stage-nav__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
  .stage-nav {
    grid-template-columns: 1fr;
  }

  .stage-nav a.is-next {
    align-items: flex-start;
    text-align: left;
  }
}

/* ============================================================
   СТРАНИЦЫ УСЛУГ (/services/*) — без JS, FAQ на <details>
   ============================================================ */
.svc-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.svc-back {
  font-size: 15px;
  color: var(--text-mut);
  transition: color .3s ease;
}

.svc-back:hover,
.svc-back:focus-visible {
  color: var(--text);
  outline: none;
}

.svc-main {
  padding-bottom: 40px;
}

.svc-hero {
  padding-block: 110px 30px;
  max-width: 820px;
}

.svc-hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  color: var(--text);
  margin: 6px 0 18px;
}

.svc-hero__intro {
  font-size: 18px;
  color: var(--text-mut);
  max-width: 640px;
}

/* Блок-карточка раздела */
.svc-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 32px;
  margin-bottom: 16px;
  max-width: 860px;
}

.svc-block h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text);
  margin-bottom: 16px;
}

.svc-block p {
  font-size: 16px;
  color: var(--text-mut);
}

/* Список «Що входить» — маленькое Maple-тире как маркер */
.svc-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.svc-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--text-mut);
}

.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 9px;
  height: 2px;
  background: var(--accent);
}

/* CTA на странице услуги */
.svc-cta {
  text-align: center;
  padding-block: 46px 10px;
  max-width: 860px;
}

.svc-cta h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  color: var(--text);
  margin-bottom: 24px;
}

/* Пейджер по услугам (← / →) */
.service-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 860px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.service-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-mut);
  transition: color .25s ease;
}

.service-nav a.is-next {
  text-align: right;
  align-items: flex-end;
  margin-left: auto;
}

.service-nav__dir {
  font-size: 13px;
  color: var(--text-dim);
  transition: transform .25s ease;
}

.service-nav__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color .25s ease;
}

.service-nav a:hover .service-nav__name,
.service-nav a:focus-visible .service-nav__name {
  color: var(--accent-text);
}

.service-nav a:hover .service-nav__dir {
  transform: translateX(-4px);
}

.service-nav a.is-next:hover .service-nav__dir {
  transform: translateX(4px);
}

/* FAQ на нативных <details> */
.svc-faq details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  margin-bottom: 12px;
}

.svc-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.svc-faq summary::-webkit-details-marker {
  display: none;
}

.svc-faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--accent-text);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.svc-faq details[open] summary::after {
  transform: rotate(45deg);
}

.svc-faq details p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--text-mut);
}

/* (видалено мёртвый .svc-footer* — сторінки послуг використовують спільний .footer) */

@media (max-width: 600px) {
  .svc-block {
    padding: 24px 22px;
  }
}

/* ============================================================
   10. ФИНАЛЬНЫЙ CTA
   ============================================================ */
.cta {
  overflow: hidden;
}

.cta__grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    linear-gradient(rgba(209,180,140,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209,180,140,.04) 1px, transparent 1px);
  background-size: 46px 46px;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__big {
  font-size: clamp(28px, 4vw, 56px);
  max-width: 920px;
  color: var(--text);
  line-height: 1.04;
}

.cta__box {
  margin-left: auto;
  max-width: 540px;
  margin-top: 48px;
}

.cta__box h3 {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--text);
  margin-bottom: 24px;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  padding-block: 70px 36px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.logo--lg {
  font-size: 40px;
  color: var(--text);
}

.footer__brand p {
  margin-top: 14px;
  font-size: 15px;
  max-width: 280px;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer__col a {
  display: block;
  color: var(--text-mut);
  font-size: 14px;
  margin-bottom: 10px;
  overflow-wrap: break-word;   /* перенос по словам — email не рвётся посреди */
  transition: color .3s ease;
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--text);
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* SVG-иконки соцсетей (footer + мобильное меню) */
.footer__socials a svg,
.mobile-menu__socials a svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Перебиваем .footer__col a (display:block / margin) для иконок-боксов */
.footer__socials a {
  display: inline-flex;
  margin-bottom: 0;
}

/* hover соц-иконок в футере → Maple (читаемый акцент) */
.footer__socials a:hover,
.footer__socials a:focus-visible {
  color: var(--accent-text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: var(--text-dim);
  transition: color .3s ease;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--text-mut);
}

/* ============================================================
   КУРСОР-TRAIL (desktop)
   ============================================================ */
#cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   ТОСТЫ
   ============================================================ */
#toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  font-size: 14px;
  max-width: 320px;
  animation: toastIn .35s cubic-bezier(.22,.61,.36,1);
}

.toast.out {
  animation: toastOut .35s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   LEAD — секция формы заявки (диагностика)
   ============================================================ */
.lead__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
  align-items: start;
}

.lead__head {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

.lead__head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  color: var(--text);
}

.lead__form {
  display: grid;
  gap: 12px;
}

.lead__submit {
  margin-top: 6px;
}

.lead__aside p {
  font-size: 16px;
  margin-bottom: 18px;
}

.lead__aside .checklist {
  margin: 0 0 18px;
}

.lead__aside .badge {
  margin-bottom: 0;
}

/* Поля формы (общие) */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: 14px;
  color: var(--text-mut);
}

.field__opt {
  color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,0,5,.35);
}

/* select — кастомная стрелка (Tan), тёмная тема */
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D1B48C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.field select option {
  background: var(--surface-2);
  color: var(--text);
}

/* ============================================================
   КАСТОМНЫЙ SEARCHABLE-DROPDOWN (ниша проекта)
   ============================================================ */
.dropdown {
  position: relative;
}

/* Триггер — выглядит как обычный инпут формы */
.dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.dropdown__trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,0,5,.35);
}

.dropdown.is-open .dropdown__trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,0,5,.35);
}

.dropdown__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown__value.is-placeholder {
  color: var(--text-dim);
}

.dropdown__arrow {
  flex-shrink: 0;
  color: var(--accent-text);
  font-size: 12px;
  line-height: 1;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.dropdown.is-open .dropdown__arrow {
  transform: rotate(180deg);
}

/* Панель */
.dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  padding: 10px;
  animation: dropdownIn .2s cubic-bezier(.22,.61,.36,1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Поле поиска */
.dropdown__search {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.dropdown__search::placeholder {
  color: var(--text-dim);
}

.dropdown__search:focus {
  outline: none;
  border-color: var(--accent);
}

/* Список опций — тонкий тёмный скролбар */
.dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-hi) transparent;
}

.dropdown__list::-webkit-scrollbar {
  width: 8px;
}

.dropdown__list::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown__list::-webkit-scrollbar-thumb {
  background: var(--line-hi);
  border-radius: 8px;
}

.dropdown__option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-mut);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.dropdown__option:hover,
.dropdown__option.is-active {
  background: var(--badge-bg);
  color: var(--text);
}

.dropdown__option.is-selected {
  color: var(--accent-text);
}

.dropdown__option[hidden] {
  display: none;
}

.dropdown__empty {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-dim);
}

/* Мобайл — крупнее тап-таргеты */
@media (max-width: 600px) {
  .dropdown__option {
    padding: 12px 14px;
  }
}

/* honeypot — скрыт от людей */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 14px;
  color: var(--text-mut);
  min-height: 1.2em;
  margin-top: 4px;
}

.form-status.is-error {
  color: var(--accent-text); /* #E0575C ~4.6:1 (—accent-hi #A8161C давав 2.53:1, провал WCAG) */
}

/* Две CTA-кнопки рядом в блоке .cta */
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .lead__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lead__submit {
    width: 100%;
  }
}

/* ============================================================
   АДАПТИВ (mobile-first) — ЭТАП 12
   ============================================================ */
@media (max-width: 900px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how__inner,
  .reviews__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq__list,
  .faq.stage-section .faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Футер сворачиваем уже здесь (≤900), иначе 4 колонки не влезают
     в диапазоне 768–900px и соцблок торчит за край. */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__inner > * {
    min-width: 0;
  }

  .why__head {
    text-align: left;
    margin-left: 0;
  }

  /* Защита от grid-blowout: даём грид-колонкам сжиматься ниже
     min-content содержимого, а длинным заголовкам — переноситься.
     Иначе «1fr» раздувается шире экрана и контент торчит вправо. */
  .how__inner > *,
  .reviews__inner > *,
  .faq__list > *,
  .panel,
  .review,
  .faq__item {
    min-width: 0;
  }

  .how h2,
  .reviews__head,
  .why__head h2,
  .cta__big,
  .features__head h2,
  .faq__head h2,
  .faq__q {
    overflow-wrap: break-word;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }

  section {
    padding-block: 80px;
  }

  /* Навигация → бургер */
  .nav,
  .nav__contact {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Услуги в один столбец */
  .why__grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    min-height: 92vh;
  }

  /* Меньший заход фона под следующую секцию на мобайле */
  .hero__bg {
    height: calc(100% + 120px);
  }

  .hero__sub {
    font-size: 15px;
  }

  /* Стек: телефон сверху, теги в поток на всю ширину */
  .features__stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* relative (а не static) — тег в потоке, но служит контейнером
     для абсолютного знака ×, иначе × «убегает» к секции. */
  .ftag {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  /* На мобайле описание тянем на всю ширину тега (а не фикс. 240px) */
  .ftag__more {
    width: auto;
    max-width: none;
  }

  .phone {
    order: -1;
    margin-bottom: 20px;
  }

  /* CTA */
  .cta__box {
    margin-left: 0;
  }

  /* Footer (грид-колапс уже застосовано в @media ≤900) */
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Кнопки на всю ширину, кроме точечных исключений */
  .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .features__head .btn {
    width: auto;
  }

  /* CTA-кнопки в стек, full width */
  .cta__actions {
    flex-direction: column;
  }

  /* --- Hero-заголовок: убрать nowrap-распорку, не распирать экран --- */
  .hero__title {
    font-size: clamp(30px, 8vw, 40px);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Ротатор слова на мобайле: обычный поток, перенос разрешён.
     Невидимый образец с white-space:nowrap раздувал min-content
     контейнера за пределы экрана — отключаем его. */
  .hero__rotator {
    display: inline;
  }

  .hero__rotator-size {
    display: none;
  }

  #scramble {
    position: static;
    min-width: 0;
    white-space: normal;
  }

  /* --- Sticky-хедер: непрозрачный фон при скролле, чтобы текст
     под ним не просвечивал --- */
  .header.scrolled {
    background: rgba(16, 16, 17, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Лого компактнее, чтобы «akitalab 秋田» влезал рядом с бургером */
  .header .logo {
    font-size: 19px;
  }

  /* Крупное лого футера ужимаем, чтобы не распирало узкий экран */
  .logo--lg {
    font-size: 32px;
  }
}

/* ------------------------------------------------------------
   ДОСТУПНОСТЬ: УВАЖЕНИЕ К prefers-reduced-motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .mobile-menu__nav a {
    opacity: 1;
    transform: none;
  }
}

/* Футер: на узком мобайле — один столбец */
@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   БЛОГ — індекс + статті
   ============================================================ */
.blog-hero { padding-block: 130px 46px; }
.blog-hero h1 { font-size: clamp(30px,4.6vw,52px); color: var(--text); max-width: 900px; }
.blog-hero__intro { margin-top: 18px; max-width: 760px; font-size: 17px; color: var(--text-mut); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; align-items: start; }
.blog-card { container-type: inline-size; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .35s ease, transform .35s cubic-bezier(.22,.61,.36,1); }
.blog-card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.blog-card img { width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.blog-card__body { padding: 20px 22px; }
.blog-card__meta { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.blog-card h2 { font-family: var(--font-body); font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3; color: var(--text); margin-bottom: 8px; }
.blog-card p { font-size: 14px; }
.blog-card__link::after { content: ''; position: absolute; inset: 0; }
.blog-card:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }

.article { max-width: 760px; margin-inline: auto; }
.article__byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-dim); margin: 4px 0 30px; }
.article__byline strong { color: var(--text-mut); font-weight: 600; }
.article p { font-size: 17px; line-height: 1.7; margin-bottom: 18px; color: var(--text-mut); }
.article > p.lead { color: var(--text); font-size: 18px; }
.article h2 { font-size: clamp(22px,3vw,30px); color: var(--text); margin: 44px 0 16px; }
.article h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); margin: 28px 0 12px; }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--text-mut); font-size: 17px; line-height: 1.7; }
.article li { margin-bottom: 8px; }
.article a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--text); }
.article blockquote { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 20px; margin: 24px 0; border-radius: 0 12px 12px 0; color: var(--text); font-style: italic; }
.article figure { margin: 28px 0; }
.article figure svg { width: 100%; height: auto; display: block; }
.article figcaption { margin-top: 8px; font-size: 13px; color: var(--text-dim); text-align: center; }

.akita-table { width: 100%; border-collapse: collapse; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 15px; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.akita-table th { background: var(--accent-lo); color: var(--text); font-weight: 600; text-align: left; padding: 12px 16px; }
.akita-table td { border-top: 1px solid rgba(209,180,140,.14); padding: 11px 16px; color: var(--text-mut); }
.akita-table tr:hover td { background: rgba(123,0,5,.08); }
.akita-table .hl { color: var(--accent-text); font-weight: 600; }

.article-faq { margin-top: 44px; }
.article-cta { margin: 46px auto 0; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; }
.article-cta h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--text); margin-bottom: 14px; }

/* «Детальніше →» з FAQ головної на статтю блогу */
.faq__readmore { display: inline-block; margin-top: 12px; color: var(--accent-text); font-size: 14px; text-decoration: none; }
.faq__readmore:hover { color: var(--text); }

/* ============================================================
   СТОРІНКА /about «Про мене» + фото
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 14px;
}
.about-photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 638 / 856;   /* портретна фігура, обрізана по контуру (без рамки/підкладки) */
  object-fit: contain;
  filter: drop-shadow(0 22px 48px rgba(0,0,0,.55));
}
.about-hero__role { color: var(--text-mut); font-size: 15px; margin-top: 8px; }
.about-hero__intro {
  margin-top: 18px; font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-mut); max-width: 54ch; line-height: 1.6;
}
.about-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.about-social a {
  font-size: 14px; color: var(--text-mut);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: color .3s ease, border-color .3s ease;
}
.about-social a:hover, .about-social a:focus-visible {
  color: var(--text); border-color: var(--line-hi); outline: none;
}
.about-cta { margin-top: 26px; }

/* Більше повітря між абзацом і наступним блоком (список/кнопка) на /about */
.about-page .stage-lead + .stage-lead { margin-top: 18px; }
.about-page .stage-lead + .checklist,
.about-page .stage-lead + div { margin-top: 32px; }
@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about-photo { max-width: 230px; margin-inline: auto; }
  .about-hero__intro { margin-inline: auto; }
  .about-social { justify-content: center; }
}

/* Картка «Про мене» у сітці блогу — закріплена в правій (останній) колонці,
   оформлена як стаття: бренд-обкладинка + Benzin-заголовок + фото + 秋田 */
.blog-card--about { grid-column: -2 / -1; }
/* Єдиний компонент-обкладинка карток блогу (статті + «Про мене»).
   Розміри в cqw → масштабуються пропорційно ширині картки за будь-якої
   сітки й ніколи не переповнюють кадр. Контент притиснутий до верху —
   мітка/заголовок стоять на однаковій висоті в усіх картках. */
.post-cover, .about-cover {
  position: relative; aspect-ratio: 1200 / 630; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(130% 150% at 18% 0%, #2a0a0c 0%, #14080a 44%, #101011 100%);
  padding: 5cqw 6cqw; display: flex; flex-direction: column; justify-content: flex-start;
}
.post-cover__label, .about-cover__label {
  position: relative; z-index: 1;
  font-size: 2cqw; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 600;
}
.post-cover__label::after {
  content: ''; display: block; width: 6cqw; height: .5cqw;
  margin-top: 2cqw; border-radius: 2px; background: var(--accent-hi);
}
.post-cover__title, .about-cover__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 5.8cqw;
  line-height: 1.02; text-transform: uppercase; color: var(--text); margin-top: 2.8cqw;
}
.post-cover__sub, .about-cover__sub {
  position: relative; z-index: 1; margin-top: 2.6cqw; font-size: 2.9cqw;
}
.post-cover__sub { color: var(--accent-text); font-weight: 700; }
.about-cover__sub { color: var(--text-mut); font-weight: 600; }
.post-cover__mark, .about-cover__mark {
  position: absolute; right: -1cqw; bottom: -3cqw; z-index: 0;
  font-family: 'Noto Sans JP', serif; font-weight: 700; font-size: 22cqw; line-height: .8;
  color: rgba(168,22,28,.32); pointer-events: none; user-select: none;
}
@media (max-width: 520px) { .blog-card--about { grid-column: auto; } }

/* ============================================================
   ТЕМА: світла версія (перемикач-pill у шапці). Темна — дефолт.
   Повна адаптація: токени + точкові оверрайди захардкоджених
   під темну місць (шапка-скрол, вуаль hero, іконки, сітки, таблиці).
   Палітру WebGL-точок hero і слід курсора перемикає JS
   (подія akita:theme). Бренд: Cream-фон, еспресо-текст, Maple-акцент.
   ============================================================ */
:root[data-theme="light"] {
  --bg: #F7F3EA;             /* теплий кремовий (Cream-сімʼя бренду) */
  --surface: #FFFFFF;
  --surface-2: #EFE8D8;
  --text: #1A1714;           /* еспресо */
  --text-mut: #5C5346;
  --text-dim: rgba(40,32,24,.58);
  --accent-text: #8E0207;    /* Maple для тексту на світлому (~7:1) */
  --line: rgba(40,32,24,.14);
  --line-hi: rgba(40,32,24,.28);
  --badge-bg: rgba(123,0,5,.08);
}

/* Шапка при скролі — світле «скло» замість темного */
:root[data-theme="light"] .header.scrolled {
  background: rgba(247,243,234,.85);
}

/* Hero: вуаль читабельності тексту — світла (замість затемнення) */
:root[data-theme="light"] .hero__veil {
  background: radial-gradient(100% 65% at 6% 55%,
              rgba(247,243,234,.94) 0%, transparent 60%);
}

/* Кнопки на бордовому градієнті — текст завжди кремовий */
:root[data-theme="light"] .btn--primary { color: #F5EDD8; }

/* Іконки етапів (були Tan під темну) → еспресо-браун */
:root[data-theme="light"] .panel__ico[data-ico="audit"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5346' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .panel__ico[data-ico="track"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5346' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 16 9 10 13 14 21 6'/%3E%3Cpolyline points='21 11 21 6 16 6'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .panel__ico[data-ico="scale"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5346' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='20' x2='5' y2='13'/%3E%3Cline x1='12' y1='20' x2='12' y2='8'/%3E%3Cline x1='19' y1='20' x2='19' y2='4'/%3E%3C/svg%3E");
}

/* Іконки послуг (були Cream під темну) → глибокий Maple */
:root[data-theme="light"] .fcard__icon[data-icon="target"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23540003' stroke-width='1.3'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3Ccircle cx='12' cy='12' r='1.8' fill='%237B0005' stroke='none'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .fcard__icon[data-icon="analytics"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='13' width='3.6' height='8' rx='1' fill='%237B0005'/%3E%3Crect x='10.2' y='8' width='3.6' height='13' rx='1' fill='%23A8161C'/%3E%3Crect x='16.4' y='4' width='3.6' height='17' rx='1' fill='%23540003'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .fcard__icon[data-icon="creative"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23540003'%3E%3Cpath d='M12 2 L13.6 10.4 L22 12 L13.6 13.6 L12 22 L10.4 13.6 L2 12 L10.4 10.4 Z'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .fcard__icon[data-icon="report"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23540003' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3 h7 l4 4 v14 H7 Z'%3E%3C/path%3E%3Cpolyline points='14 3 14 7 18 7'/%3E%3Cline x1='10' y1='12' x2='16' y2='12'/%3E%3Cline x1='10' y1='16' x2='16' y2='16'/%3E%3C/svg%3E");
}

/* select-стрілка форми → еспресо */
:root[data-theme="light"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5346' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* CTA-сітка (були Tan-лінії) → еспресо-лінії */
:root[data-theme="light"] .cta__grid {
  background:
    linear-gradient(rgba(40,32,24,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,32,24,.05) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* Таблиці статей */
:root[data-theme="light"] .akita-table td { border-top-color: rgba(40,32,24,.14); }
:root[data-theme="light"] .akita-table tr:hover td { background: rgba(123,0,5,.05); }
/* th: --accent-lo (#540003) не переопределяется в светлой теме, а --text там
   становится тёмным (#1A1714) → тёмное на тёмно-бордовом (~1.4:1). Возвращаем
   кремовый текст, как у .review__ava / .btn--primary. */
:root[data-theme="light"] .akita-table th { color: #F5EDD8; }

/* Тост — мʼякша тінь на світлому */
:root[data-theme="light"] .toast { box-shadow: 0 10px 40px rgba(40,32,24,.25); }

/* ------------------------------------------------------------
   ПЕРЕМИКАЧ ТЕМИ — pill із бігунком (бордовий градієнт бренду).
   Темна: бігунок ліворуч із місяцем; світла: праворуч із сонцем.
   ------------------------------------------------------------ */
.theme-toggle {
  flex: 0 0 auto; margin-left: 12px; margin-right: 14px;
  position: relative;
  width: 62px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--surface-2);
  cursor: pointer; padding: 0;
  transition: border-color .3s ease, background-color .3s ease;
}
.theme-toggle:hover { border-color: var(--accent-text); }
.theme-toggle:focus-visible {
  outline: none; border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(123,0,5,.35);
}

.theme-toggle__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
:root[data-theme="light"] .theme-toggle__thumb { transform: translateX(30px); }

.theme-toggle__sun,
.theme-toggle__moon { width: 14px; height: 14px; color: #F5EDD8; display: block; }
.theme-toggle__sun { display: none; }                                  /* темна → місяць */
:root[data-theme="light"] .theme-toggle .theme-toggle__moon { display: none; }   /* світла → сонце */
:root[data-theme="light"] .theme-toggle .theme-toggle__sun { display: block; }

/* --- Доводка світлої теми за фідбеком --- */

/* 1) Кейси: ініціали на бордовій плашці — завжди кремові */
:root[data-theme="light"] .review__ava { color: #F5EDD8; }

/* 2) Телефон-мокап = темний «екран пристрою»: всередині лишаємо темні токени,
      щоб 秋田 і підпис читались; рамка теж під темний корпус */
:root[data-theme="light"] .phone {
  --text: #F5EDD8;
  --text-mut: #D1B48C;
  --text-dim: rgba(209,180,140,.72);
  --line: rgba(209,180,140,.20);
  box-shadow: 0 24px 60px rgba(123,0,5,.16);
}

/* 3) Сервісні картки: легкий чистий «румʼянець» замість брудного градієнта */
:root[data-theme="light"] .fcard__icon {
  background: radial-gradient(120% 95% at 50% 6%,
              rgba(123,0,5,.08), transparent 60%);
}
:root[data-theme="light"] .fcard:hover .fcard__icon {
  background: radial-gradient(120% 95% at 50% 6%,
              rgba(123,0,5,.14), transparent 60%);
}
:root[data-theme="light"] .fcard__icon::before {
  filter: drop-shadow(0 0 10px rgba(168,22,28,.16));
}

/* 5) Обкладинки карток блогу — світла версія */
:root[data-theme="light"] .post-cover,
:root[data-theme="light"] .about-cover {
  background: radial-gradient(130% 150% at 18% 0%,
              #F2E0CE 0%, #F9F3E8 55%, #FFFFFF 100%);
}
:root[data-theme="light"] .post-cover__mark,
:root[data-theme="light"] .about-cover__mark { color: rgba(123,0,5,.16); }

/* ============================================================
   ПЕРЕМИКАЧ МОВИ (UA / RU / EN) — сегмент-пігулка в шапці.
   Кожна сторінка лінкує на СВОЇ відповідники в /ru і /en.
   ============================================================ */
.lang-switch {
  flex: 0 0 auto; margin-left: auto;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-hi); border-radius: 999px;
  background: var(--surface-2); padding: 3px; gap: 2px;
}
.lang-switch__item {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--text-mut); padding: 5px 9px; border-radius: 999px;
  transition: color .25s ease, background-color .25s ease;
}
.lang-switch__item:hover, .lang-switch__item:focus-visible {
  color: var(--text); outline: none;
}
.lang-switch__item.is-active {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  color: #F5EDD8;
}

/* Мови у мобільному меню (рядок біля соцмереж) */
.mobile-menu__langs { display: inline-flex; gap: 6px; margin-right: auto; }
.mobile-menu__langs a {
  font-size: 13px; font-weight: 600; color: var(--text-mut);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.mobile-menu__langs a.is-active { color: #F5EDD8; background: var(--accent-lo); border-color: var(--accent); }

@media (max-width: 540px) {
  .lang-switch { display: none; } /* на вузьких екранах мова — в мобільному меню */
}

/* ============================================================
   Cookie-consent банер (Google Consent Mode v2). Тема-залежний.
   ============================================================ */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 600px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-hi);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transform: translateY(150%); opacity: 0;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
}
.cookie-bar.is-shown { transform: translateY(0); opacity: 1; }
.cookie-bar.is-hiding { transform: translateY(150%); opacity: 0; }
.cookie-bar__text { flex: 1 1 240px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-mut); }
.cookie-bar__text a { color: var(--accent-text); text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-bar__actions .btn { padding: 9px 16px; font-size: 13px; }
:root[data-theme="light"] .cookie-bar { box-shadow: 0 18px 50px rgba(40,32,24,.2); }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: opacity .2s ease; transform: none; } }
@media (max-width: 480px) {
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; }
}

/* ============================================================
   КЕЙС: картка-кейс на головній + сторінка кейса (графіка, таблиці)
   ============================================================ */
/* Картка-кейс у секції результатів — клікабельна, веде на сторінку кейса */
.review--case { cursor: pointer; }
.review__title {
  font-family: var(--font-display); font-size: 19px; line-height: 1.15;
  text-transform: none; color: var(--text); margin: 10px 0 14px;
}
.case-metrics { list-style: none; display: grid; gap: 12px; margin: 0 0 6px; }
.case-metrics li { display: flex; flex-direction: column; gap: 2px; }
.case-metrics b {
  font-family: var(--font-display); color: var(--accent-text);
  font-size: 18px; letter-spacing: .01em;
}
.case-metrics span { font-size: 12.5px; color: var(--text-mut); }
.review--case:focus-within { border-color: var(--line-hi); outline: 2px solid var(--text); outline-offset: 2px; }

/* Таблиці кейса — горизонтальний скрол на вузьких екранах */
.case-table-wrap { overflow-x: auto; margin: 8px 0; }
.case-table-wrap .akita-table { margin: 8px 0; }

/* Інлайн-графіка кейса (SVG у бренд-токенах) */
.case-figure {
  margin: 28px 0 8px; padding: 22px 22px 18px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface);
}
.case-figure svg { display: block; width: 100%; height: auto; }
.case-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--text-mut); text-align: center; }

/* Порівняння креативів — дві HTML-картки (читабельно ботами, адаптивно) */
.creative-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 8px; }
.creative-cmp__card { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--surface); }
.creative-cmp__card--win { border-color: var(--accent); }
.creative-cmp__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); font-weight: 600; }
.creative-cmp__card--win .creative-cmp__tag { color: var(--accent-text); }
.creative-cmp__card h4 { font-size: 15px; color: var(--text); margin: 8px 0 12px; }
.creative-cmp__card ul { list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--text-mut); }
.creative-cmp__card b { color: var(--accent-text); font-family: var(--font-display); }
.creative-cmp__note { margin-top: 16px; text-align: center; font-size: 15px; color: var(--text); }
@media (max-width: 600px) { .creative-cmp { grid-template-columns: 1fr; } }

/* Підсумковий CTA кейса */
.case-cta { text-align: center; margin-top: 8px; }
.case-cta h2 { margin-bottom: 22px; }

/* Кейс-сторінка: вертикальний ритм підрозділів усередині секцій
   (кілька h3 + списків + абзаців в одній .stage-section — даємо повітря). */
.case-page .stage-section > .container > h3 {
  font-family: var(--font-display); font-size: 19px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .01em; color: var(--text);
  margin: 44px 0 14px;
}
.case-page .stage-lead { margin: 18px 0 0; }
.case-page .checklist,
.case-page .case-table-wrap,
.case-page .creative-cmp { margin-top: 20px; }
.case-page .case-figure { margin-top: 28px; }
.case-page .creative-cmp__note { margin-top: 16px; }

/* Кейс: блок «Підсумки» — сітка ключових бізнес-цифр */
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 4px; }
.case-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.case-stats b { font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); line-height: 1; color: var(--accent-text); }
.case-stats span { font-size: 13px; color: var(--text-mut); line-height: 1.35; }
@media (max-width: 760px) { .case-stats { grid-template-columns: 1fr 1fr; } }

/* Кейс: «До / Після» */
.case-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 4px; }
.case-ba__col { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--surface); }
.case-ba__col--after { border-color: var(--accent); }
.case-ba__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); font-weight: 600; }
.case-ba__col--after .case-ba__tag { color: var(--accent-text); }
.case-ba__col ul { list-style: none; display: grid; gap: 9px; margin-top: 12px; font-size: 14px; color: var(--text-mut); }
.case-ba__col li { display: flex; gap: 9px; align-items: flex-start; }
.case-ba__col li::before { content: '—'; color: var(--accent-text); flex-shrink: 0; }
@media (max-width: 600px) { .case-ba { grid-template-columns: 1fr; } }
