/* ============================================================
   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,.55);

  /* Акцент Maple (использовать точечно!) */
  --accent:    #7B0005;            /* главный акцент */
  --accent-hi: #A8161C;            /* светлее — hover/glow */
  --accent-lo: #540003;            /* темнее — нажатие/градиент */

  /* Линии и плашки */
  --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); }
.dim    { color: var(--text-mut); }
p       { color: var(--text-mut); }

/* Плашка-лейбл */
.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);
  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 — индивидуальная задержка для каскада.
   ------------------------------------------------------------ */
.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;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              opacity .4s ease;
}

.mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.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: hidden;
  /* Мягкий тёплый фон-фолбэк: лежит позади canvas (прозрачного).
     Если WebGL-точки не загрузятся — Hero не будет плоско-чёрным. */
  background:
    radial-gradient(120% 85% at 75% -10%, rgba(123,0,5,.13), transparent 55%),
    radial-gradient(90% 70% at 8% 115%, rgba(168,22,28,.06), transparent 60%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 100% at 8% 100%,
              rgba(16,16,17,.96) 22%, transparent 72%);
}

.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;
}

/* ============================================================
   3. КРЕДО — «Я считаю»
   ============================================================ */
.believe {
  overflow: hidden;
}

.believe__silk {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .6;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(123,0,5,.16), transparent 60%),
    radial-gradient(50% 70% at 15% 90%, rgba(168,22,28,.10), transparent 60%),
    repeating-linear-gradient(118deg, #0f0f10 0 16px, #131214 16px 32px);
  filter: blur(2px);
}

.believe__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.believe__main h2 {
  font-size: clamp(28px, 3.8vw, 50px);
  color: var(--text);
  margin-bottom: 26px;
}

.believe__main p {
  font-size: 17px;
  max-width: 620px;
}

.believe__aside p {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  font-size: 15px;
}

/* ============================================================
   4. БОЛЬ КЛИЕНТА
   ============================================================ */
.have__q {
  font-size: clamp(26px, 3.4vw, 44px);
  max-width: 940px;
  line-height: 1.12;
  color: var(--text);
}

.have__answer {
  font-size: clamp(26px, 3.4vw, 44px);
  margin-top: 18px;
}

/* ============================================================
   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 {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              border-color .35s ease;
}

.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");
}

/* ============================================================
   6. ЦИФРЫ — блок доверия
   ============================================================ */
.stats {
  padding-block: 0;
  margin-top: -40px;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-block: 1px solid var(--line);
  padding-block: 48px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  color: var(--accent);
  line-height: 1;
}

.stat__lbl {
  color: var(--text-mut);
  font-size: 14px;
  margin-top: 10px;
  max-width: 220px;
}

/* ============================================================
   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);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}

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

/* ============================================================
   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: 280px;
  text-align: left;
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}

.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);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

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

.ftag[aria-expanded="true"] {
  background: var(--surface);
}

.ftag[aria-expanded="true"] .ftag__sign {
  transform: rotate(45deg);
}

.ftag[aria-expanded="true"] .ftag__more {
  display: inline;
}

.ftag--tl { top: 8%;  left: 4%; }
.ftag--tr { top: 8%;  right: 4%; }
.ftag--ml { top: 48%; left: 0; }
.ftag--mr { top: 54%; 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);
  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);
}

.faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

.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);
  margin-bottom: 12px;
}

.faq__a {
  font-size: 15px;
}

/* ============================================================
   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: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

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

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

.footer__col h4 {
  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;
  transition: color .3s ease;
}

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

.footer__socials {
  display: flex;
  gap: 12px;
}

.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);
  outline: none;
}

/* ============================================================
   КУРСОР-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); }
}

/* ============================================================
   МОДАЛКА ЗАЯВКИ
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.modal.open {
  display: grid;
  place-items: center;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  animation: toastIn .35s cubic-bezier(.22,.61,.36,1);
}

.modal__box h3 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.modal__box > p {
  font-size: 15px;
  margin-bottom: 22px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-mut);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}

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

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

.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 {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .3s ease;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.modal__submit {
  width: 100%;
  margin-top: 4px;
}

.modal__status {
  font-size: 14px;
  color: var(--text-mut);
  min-height: 1.2em;
}

.modal__status.is-error {
  color: var(--accent-hi);
}

.modal__status.is-ok {
  color: var(--text-mut);
}

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

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

  .faq__list {
    grid-template-columns: 1fr;
  }

  /* Футер сворачиваем уже здесь (≤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» раздувается шире экрана и контент торчит вправо. */
  .believe__inner > *,
  .how__inner > *,
  .reviews__inner > *,
  .faq__list > *,
  .panel,
  .review,
  .faq__item {
    min-width: 0;
  }

  .believe__main h2,
  .how h2,
  .reviews__head,
  .why__head h2,
  .cta__big,
  .have__q,
  .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;
  }

  /* Цифры */
  .stats {
    margin-top: 0;
  }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 36px;
  }

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

  .hero__sub {
    font-size: 15px;
  }

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

  .ftag {
    position: static !important;
    width: 100%;
    justify-content: space-between;
  }

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

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

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .features__head .btn,
  .cta__box .btn {
    width: auto;
  }

  /* --- 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;
  }
}
