/* ===================================================================
   ТИВАРИ — тивари.рф
   Тёмный премиум. Песочно-бронзовый акцент.
   =================================================================== */

/* ─── Токены ─────────────────────────────────────────────────────── */
:root {
  /* Фон: три ступени, разница едва заметна — именно так и надо */
  --bg:         #0d0d0d;
  --bg-alt:     #121212;
  --bg-card:    #171717;
  --bg-card-2:  #1c1b19;

  /* Текст тёплый, не чисто-серый: на чёрном это читается дороже */
  --text:       #b9b5ae;  /* 9.5:1 на --bg */
  --text-dim:   #8a857c;  /* 5.1:1 — приглушённый, но проходит WCAG AA */
  --text-ph:    #6d6961;  /* плейсхолдеры: подсказка, смысл несёт label */
  --white:      #f5f3f0;

  /* Акцент */
  --sand:       #c9a96a;
  --sand-soft:  #e8d5b0;
  --sand-deep:  #8c6d3f;

  --line:       rgba(255, 255, 255, .07);
  --line-2:     rgba(255, 255, 255, .12);

  --r:      14px;
  --r-sm:   10px;
  --ease:   cubic-bezier(.22, 1, .36, 1);
  --ease-2: cubic-bezier(.4, 0, .2, 1);
  --dur:    .45s;

  --shell:  1240px;
  --pad:    32px;
}

/* ─── Сброс ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

::selection { background: var(--sand); color: #0d0d0d; }

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed; top: -100px; left: 20px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--sand); color: #0d0d0d; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 20px; }

/* ─── Зерно: главный трюк «дорогого» тёмного фона ────────────────── */
.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  16%      { transform: translate(-6%, -3%); }
  33%      { transform: translate(3%, -6%); }
  50%      { transform: translate(-3%, 6%); }
  66%      { transform: translate(6%, 3%); }
  83%      { transform: translate(-6%, 3%); }
}

/* ─── Полоса прогресса ───────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 101; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sand-deep), var(--sand));
  transition: width .1s linear;
}

/* ─── Раскладка ──────────────────────────────────────────────────── */
.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--pad);
}

.section { position: relative; z-index: 2; padding: 140px 0; }
.section--alt { background: var(--bg-alt); }

/* ─── Типографика ────────────────────────────────────────────────── */
.h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--white);
}

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--sand); opacity: .5;
}

.head { margin-bottom: 72px; max-width: 720px; }
.head__note { margin-top: 24px; font-size: 17px; color: var(--text-dim); max-width: 560px; }
.head--row {
  max-width: none; display: flex;
  align-items: flex-end; justify-content: space-between; gap: 32px;
}

.link-arr {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--sand);
  white-space: nowrap;
  transition: gap .3s var(--ease);
}
.link-arr:hover { gap: 14px; }

/* ─── Кнопки ─────────────────────────────────────────────────────── */
.btn {
  --h: 54px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 30px;
  border: 1px solid transparent; border-radius: 100px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: color .35s var(--ease-2), border-color .35s var(--ease-2), transform .2s var(--ease-2);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 22px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 40px; font-size: 16px; }

/* Заливка едет из центра — сдержанно, без цирка */
.btn--primary { background: var(--sand); color: #0d0d0d; font-weight: 600; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--sand-soft);
  transform: scaleX(0); transform-origin: center;
  transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: scaleX(1); }
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost { border-color: var(--line-2); color: var(--white); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .05);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn--ghost:hover { border-color: var(--sand); }
.btn--ghost:hover::before { transform: scaleX(1); }

/* ─── Логотип ────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--sand);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(45deg); }
.logo__word {
  font-family: Montserrat, sans-serif;
  font-weight: 700; font-size: 16px;
  letter-spacing: .2em; color: var(--white);
}

/* ─── Хедер ──────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease-2), border-color .4s var(--ease-2), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(13, 13, 13, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__in {
  height: 78px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 14.5px; color: var(--text);
  transition: color .3s var(--ease-2);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--sand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__act { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-2); border-radius: 50%;
  cursor: pointer;
  place-items: center; gap: 5px;
}
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ─── Мобильное меню ─────────────────────────────────────────────── */
.mmenu {
  position: fixed; inset: 78px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease-2), transform .35s var(--ease);
}
.mmenu.is-open { opacity: 1; transform: none; }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: Montserrat, sans-serif;
  font-size: 26px; font-weight: 600; color: var(--white);
  letter-spacing: -.01em;
}
.mmenu__nav a span { font-size: 12px; color: var(--sand); font-family: Inter, sans-serif; font-weight: 500; }
.mmenu__foot { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-dim); }
.mmenu__foot a:hover { color: var(--sand); }

/* ─── Хиро ───────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Тёплое свечение сверху — «источник света» на сцене */
.hero__glow {
  position: absolute; top: -30%; left: 50%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 169, 106, .13) 0%, rgba(201, 169, 106, .04) 38%, transparent 66%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.09); }
}

.hero__in { position: relative; }

.hero__h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.04;
  letter-spacing: -.028em;
  color: var(--white);
  max-width: 15ch;
  margin-bottom: 34px;
}
.hero__h1 em {
  font-style: normal;
  color: var(--sand);
  /* Тонкая подсветка под ключевым словом */
  background: linear-gradient(transparent 62%, rgba(201, 169, 106, .16) 62%);
}

/* Строки выезжают из-под маски — самый убедительный reveal для заголовка */
.hero__h1 .line { display: block; overflow: hidden; }
.js .hero__h1 .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.hero.is-in .line:nth-child(1) > span { transform: none; transition-delay: .1s; }
.hero.is-in .line:nth-child(2) > span { transform: none; transition-delay: .22s; }
.hero.is-in .line:nth-child(3) > span { transform: none; transition-delay: .34s; }

.hero__sub { font-size: clamp(16px, 1.5vw, 19px); max-width: 54ch; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.hero__scroll {
  position: absolute; bottom: 42px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll i {
  width: 1px; height: 46px;
  background: linear-gradient(var(--sand), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 40%; background: var(--sand);
  animation: drop 2.1s var(--ease-2) infinite;
}
@keyframes drop {
  0%       { transform: translateY(-100%); }
  60%, 100% { transform: translateY(250%); }
}

/* ─── Услуги ─────────────────────────────────────────────────────── */
/* Сетка на «схлопнутых» бордерах: тонкие линии вместо тяжёлых карточек */
.svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.svc__i {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 290px; padding: 38px 34px 34px;
  background: var(--bg-alt);
  transition: background .5s var(--ease-2);
}
/* Подсветка ползёт снизу при наведении */
.svc__i::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(201, 169, 106, .09), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease-2);
}
.svc__i:hover { background: var(--bg-card-2); }
.svc__i:hover::before { opacity: 1; }

.svc__n {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: .1em;
  color: var(--sand); opacity: .55;
  margin-bottom: 26px;
  transition: opacity .4s var(--ease-2);
}
.svc__i:hover .svc__n { opacity: 1; }

.svc__i h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 22px; letter-spacing: -.01em; line-height: 1.25;
  color: var(--white);
  margin-bottom: 14px;
}
.svc__i p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

.svc__arr {
  margin-top: auto; padding-top: 24px;
  font-size: 19px; color: var(--sand);
  opacity: 0; transform: translate(-6px, 6px);
  transition: opacity .4s var(--ease-2), transform .4s var(--ease);
}
.svc__i:hover .svc__arr { opacity: 1; transform: none; }

/* ─── Цифры ──────────────────────────────────────────────────────── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 44px;
}
.stat { border-top: 1px solid var(--line-2); padding-top: 28px; }
.stat__n {
  display: block;
  font-family: Montserrat, sans-serif; font-weight: 700;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1; letter-spacing: -.04em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat__l {
  display: block; margin: 16px 0 14px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sand);
}
.stat p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

/* ─── Подход ─────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  transition: border-color .5s var(--ease-2);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { border-top-color: var(--sand); }

.step__n {
  font-family: Montserrat, sans-serif; font-weight: 700;
  font-size: 54px; line-height: 1; letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color .5s var(--ease-2), color .5s var(--ease-2);
}
.step:hover .step__n { -webkit-text-stroke-color: var(--sand); }

.step__b { max-width: 660px; }
.step__b h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.015em;
  color: var(--white);
  margin-bottom: 14px;
}
.step__b p { font-size: 16px; color: var(--text-dim); }
.step__out {
  display: inline-block; margin-top: 22px;
  padding: 7px 16px;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 12.5px; color: var(--sand);
  transition: border-color .4s var(--ease-2), background .4s var(--ease-2);
}
.step:hover .step__out { border-color: rgba(201, 169, 106, .45); background: rgba(201, 169, 106, .06); }

/* ─── Почему мы ──────────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why__i {
  position: relative;
  padding: 36px 32px 34px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .5s var(--ease-2), transform .5s var(--ease), background .5s var(--ease-2);
}
.why__i::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  opacity: 0; transition: opacity .5s var(--ease-2);
}
.why__i:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: var(--bg-card-2);
}
.why__i:hover::before { opacity: .7; }
.why__i h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 18px; line-height: 1.35; letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 14px;
}
.why__i p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }

/* ─── Материалы ──────────────────────────────────────────────────── */
.jrn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jrn__i {
  display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .5s var(--ease-2), transform .5s var(--ease);
}
.jrn__i:hover { transform: translateY(-5px); border-color: var(--line-2); }
.jrn__tag {
  align-self: flex-start; margin-bottom: 22px;
  padding: 5px 13px;
  border: 1px solid rgba(201, 169, 106, .3); border-radius: 100px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sand);
}
.jrn__i h3 {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 18px; line-height: 1.35; letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 12px;
  transition: color .35s var(--ease-2);
}
.jrn__i:hover h3 { color: var(--sand-soft); }
.jrn__i > p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.jrn__more {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--sand);
}
.jrn__more i { font-style: normal; transition: transform .35s var(--ease); }
.jrn__i:hover .jrn__more i { transform: translateX(5px); }

/* ─── Контакты ───────────────────────────────────────────────────── */
.contact { padding-bottom: 160px; }
.contact__in {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.contact__l { position: sticky; top: 120px; }
.contact__note { margin-top: 26px; font-size: 16px; color: var(--text-dim); max-width: 42ch; }
.contact__direct { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.contact__direct a {
  width: fit-content;
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 19px; color: var(--white);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color .35s var(--ease-2), border-color .35s var(--ease-2);
}
.contact__direct a:hover { color: var(--sand); border-color: var(--sand); }

/* ─── Форма ──────────────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: 13px; color: var(--text-dim); }
.field label b { color: var(--sand); font-weight: 400; }

.field input,
.field textarea,
.sel select {
  width: 100%;
  padding: 15px 17px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 15px;
  transition: border-color .3s var(--ease-2), background .3s var(--ease-2);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-ph); }

.field input:focus,
.field textarea:focus,
.sel select:focus {
  outline: none;
  border-color: var(--sand);
  background: var(--bg-card-2);
}
.field.has-err input,
.field.has-err textarea,
.field.has-err .sel select { border-color: #d9634f; }

.sel { position: relative; }
.sel select { appearance: none; cursor: pointer; padding-right: 44px; }
.sel select:invalid { color: var(--text-ph); }
.sel option { background: var(--bg-card); color: var(--white); }
.sel i {
  position: absolute; right: 18px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--sand);
  border-bottom: 1.5px solid var(--sand);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.err { font-size: 12px; color: #d9634f; min-height: 0; }

.form__bot { flex-direction: row; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.form__legal { font-size: 12px; color: var(--text-dim); line-height: 1.5; max-width: 44ch; }
.form__legal a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.form__legal a:hover { color: var(--sand); }

.form__ok {
  grid-column: 1 / -1;
  padding: 18px 22px;
  background: rgba(201, 169, 106, .08);
  border: 1px solid rgba(201, 169, 106, .3);
  border-radius: var(--r-sm);
  color: var(--sand-soft); font-size: 15px;
}

/* ─── Футер ──────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 80px 0 34px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { margin-top: 20px; font-size: 14.5px; color: var(--text-dim); max-width: 30ch; }

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col h4 {
  margin-bottom: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  font-family: Inter, sans-serif;
}
.footer__col a { font-size: 14.5px; color: var(--text); transition: color .3s var(--ease-2); }
.footer__col a:hover { color: var(--sand); }

.footer__bot {
  padding-top: 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}

/* ─── Reveal при скролле ─────────────────────────────────────────── */
/* Скрываем только под .js — без скрипта контент виден сразу, а не никогда */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-2), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

/* ─── Адаптив ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .jrn { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__in { grid-template-columns: 1fr; gap: 52px; }
  .contact__l { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .section { padding: 96px 0; }
  .nav { display: none; }
  .header__act .btn { display: none; }
  .burger { display: grid; }
  .head { margin-bottom: 52px; }
  .head--row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .jrn { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .step__n { font-size: 40px; }
  .form { grid-template-columns: 1fr; }
  .form__bot { flex-direction: column; align-items: stretch; }
  .form__bot .btn { width: 100%; }
  .form__legal { max-width: none; }
}

@media (max-width: 620px) {
  .svc { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__scroll { display: none; }
  .svc__i { min-height: 0; padding: 30px 26px; }
  /* На мобильном hover нет — открываем стрелку и номер сразу */
  .svc__arr { opacity: 1; transform: none; }
  .svc__n { opacity: 1; }
}

/* ─── Уважение к настройкам пользователя ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__h1 .line > span { transform: none; }
  .grain { animation: none; }
}
