/* =========================================================
   DANILOFF WOOD
   ========================================================= */

/* ---------- Локальные шрифты ----------
   Poiret One — крупные заголовки, Manrope (вариативный 300–700) — текст.
   Лицензии: fonts/OFL-PoiretOne.txt, fonts/OFL-Manrope.txt */

@font-face {
  font-family: 'PoiretOne-Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PoiretOne-Regular-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PoiretOne-Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PoiretOne-Regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PoiretOne-Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PoiretOne-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные (брендбук) ---------- */
:root {
  --cream: #F3EFE6;          /* главный фон — тёплый песочный */
  --paper: #F9F6F0;          /* светлая бумага */
  --slate: #3C4A4D;          /* тёмные блоки: шапка, подвал */
  --slate-soft: #4A5B5E;     /* центр градиента тёмных блоков */
  --sand: #B99B6B;           /* акцент */
  --sand-deep: #8E7348;      /* акцент для мелкого текста на светлом */

  /* пастель карточек — приглушённая, «бумажная» */
  --sage: #DDE3D4;           /* шалфейный */
  --peach: #F2E2C8;          /* мягкий персиковый */
  --dusty-blue: #D9E1E4;     /* пыльный голубой */

  --text: #333333;
  --muted: #6E6A64;
  --line: rgba(51, 51, 51, .12);
  --line-strong: rgba(60, 74, 77, .3);
  --line-light: rgba(244, 239, 230, .16);

  --font-display: 'PoiretOne-Regular', 'Poiret One', 'Century Gothic', sans-serif;
  --font-sans: 'Manrope', system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* бумажная зернистость */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: .06;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: none; }

::selection { background: var(--peach); color: var(--slate); }
:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--sand); }

/* =========================================================
   КУРСОР
   ========================================================= */
.cursor { display: none; }

body.has-cursor,
body.has-cursor a,
body.has-cursor button { cursor: none; }

body.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 28px;
  height: 28px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(185, 155, 107, .4), inset 0 0 8px rgba(185, 155, 107, .2);
  will-change: transform;
  transition: width .45s var(--ease), height .45s var(--ease),
              background-color .45s var(--ease), opacity .3s;
}
body.cursor-hover .cursor {
  width: 64px;
  height: 64px;
  background-color: rgba(185, 155, 107, .12);
}
body.cursor-hidden .cursor { opacity: 0; }

/* =========================================================
   ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--sand);
}

/* щедрые отступы — сайт «дышит» */
.section { padding: clamp(110px, 13vw, 190px) 0; }

.section__head { margin-bottom: clamp(56px, 7vw, 100px); }

/* Poiret One есть только в начертании 400: запрещаем браузеру «дорисовывать» жирность */
h1, h2, h3 { font-weight: 400; }
.hero__title,
.section__title,
.step__num,
.step__title,
.card__title,
.footer__statement,
.footer__value,
.plate li,
.logo__main {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.section__head--center { text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--slate);
}

/* ---------- Кнопка ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--cream);
  background-color: var(--slate);
  border: 1px solid var(--slate);
  border-radius: 100px;
  transition: background-color .4s ease, border-color .4s ease,
              color .4s ease, box-shadow .4s ease;
}
.btn:hover {
  color: var(--slate);
  background-color: var(--sand);
  border-color: var(--sand);
  box-shadow: 0 14px 30px -16px rgba(185, 155, 107, .9);
}
.btn__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .4s ease;
}
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- Ссылка с линией ---------- */
.link-line {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--slate);
  transition: color .4s ease;
}
.link-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--sand);
  transform-origin: left;
}
.link-line:hover { color: var(--sand-deep); }
.link-line:hover::after { animation: line-swipe .8s var(--ease); }

@keyframes line-swipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  45%  { transform: scaleX(0); transform-origin: right; }
  46%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* =========================================================
   ЛОГОТИП
   ========================================================= */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  color: var(--cream);
}
.logo__main {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: .16em;
  transition: color .4s ease;
}
.logo__sub {
  padding-left: .7em;
  border-left: 1px solid rgba(185, 155, 107, .55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4em;
  color: var(--sand);
  transition: color .4s ease, border-color .4s ease;
}
.logo:hover .logo__main { color: #FFFFFF; }
.logo:hover .logo__sub { color: var(--peach); border-color: var(--peach); }

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--slate);
  color: var(--cream);
  transition: height .5s var(--ease), box-shadow .5s;
}
.header--scrolled {
  height: 68px;
  box-shadow: 0 12px 40px -26px rgba(30, 38, 40, .8);
}
.header__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.header .logo { justify-self: start; }

.nav { display: flex; gap: clamp(28px, 3.5vw, 52px); }

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .78);
  transition: color .4s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
  transform: translate(-50%, 6px) scale(0);
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after { transform: translate(-50%, 6px) scale(1); }

.nav__phone-mobile { display: none; }

.header__phone {
  justify-self: end;
  padding-bottom: 3px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  background: linear-gradient(var(--sand), var(--sand)) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease), color .4s ease;
}
.header__phone:hover {
  color: var(--peach);
  background-size: 100% 1px;
  background-position: 0 100%;
}

.burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  overflow: hidden;   /* детали стула прилетают из-за краёв экрана */
  padding: calc(var(--header-h) + clamp(64px, 8vw, 120px)) 0 clamp(90px, 10vw, 150px);
  background: radial-gradient(ellipse 80% 75% at 40% 45%, #FAF6EF 0%, rgba(244, 239, 230, 0) 70%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero__title {
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: clamp(60px, 8.4vw, 128px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--slate);
}

.hero__subtitle {
  max-width: 480px;
  margin-bottom: 44px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
}

/* ---------- Анимация «Сборка стула» ----------
   Детали прилетают с разных сторон (--fx, --fy, --fr) с задержкой --delay.
   Запуск — классом .is-assembling (добавляет script.js). */
.hero__art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 540px;
}
.chair { width: 100%; height: auto; overflow: visible; }

.art__layer { will-change: transform; }

/* чертёж */
.chair__ghost rect,
.chair__ghost path {
  stroke: var(--sand);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
}
.chair__ghost { opacity: 0; }
.chair__floor { stroke: var(--line-strong); stroke-width: 1; stroke-linecap: round; }

/* детали */
.chair__part {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--fx), var(--fy)) rotate(var(--fr));
}
.chair__leg {
  stroke: var(--slate);
  stroke-width: 9;
  stroke-linecap: round;
}
.chair__seat {
  fill: var(--sage);
  stroke: var(--slate);
  stroke-width: 2;
}
.chair__back rect {
  fill: var(--peach);
  stroke: var(--slate);
  stroke-width: 2;
}

/* выноски 1-2-3 */
.chair__label { opacity: 0; }
.chair__label path {
  stroke: var(--sand);
  stroke-width: 1.2;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}
.chair__label circle {
  fill: var(--paper);
  stroke: var(--sand);
  stroke-width: 1.2;
}
.chair__label text {
  font-family: var(--font-display);
  font-size: 19px;
  fill: var(--slate);
  text-anchor: middle;
}
.chair__label .chair__label-text {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .08em;
  fill: var(--muted);
  text-anchor: start;
}
.chair__label--left .chair__label-text { text-anchor: end; }

/* финал */
.chair__done {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.chair__done circle { fill: var(--sage); }
.chair__done path {
  stroke: var(--slate);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.chair__done text {
  font-family: var(--font-display);
  font-size: 26px;
  fill: var(--slate);
}

/* кнопка «Собрать заново» */
.chair__replay {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s, color .4s ease;
}
.chair__replay svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--ease);
}
.chair__replay:hover { color: var(--sand-deep); }
.chair__replay:hover svg { transform: rotate(-180deg); }
.hero__art.is-done .chair__replay { opacity: 1; visibility: visible; }

/* --- запуск сборки --- */
.is-assembling .chair__ghost { animation: fade-in 1.2s ease .2s forwards; }
.is-assembling .chair__part {
  animation: part-in 1.8s cubic-bezier(.16, 1, .3, 1) var(--delay) forwards;
}
.is-assembling .chair__label { animation: fade-in .8s ease var(--delay) forwards; }
.is-assembling .chair__label path { animation: draw .9s ease var(--delay) forwards; }
.is-assembling .chair__done { animation: done-in 1s cubic-bezier(.16, 1, .3, 1) 6.4s forwards; }
.is-assembling .chair__done path { animation: draw .7s ease 6.8s forwards; }

@keyframes part-in {
  0%   { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes done-in {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   ПЛАШКА С НАПРАВЛЕНИЯМИ
   ========================================================= */
.plate {
  width: 100%;
  padding: 38px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.plate__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 0;
}
.plate li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--slate);
}
.plate li + li::before {
  content: '•';
  margin: 0 clamp(16px, 2.6vw, 36px);
  font-size: .8em;
  color: var(--sand);
}

/* =========================================================
   КАК МЫ РАБОТАЕМ
   ========================================================= */
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
/* точка на линии */
.step::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
}

.step__num {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  color: var(--sand);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  border: 1px solid rgba(185, 155, 107, .6);
  border-radius: 50%;
  color: var(--slate);
  transition: background-color .5s ease, border-color .5s ease;
}
.step__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step:hover .step__icon {
  background-color: var(--sage);
  border-color: var(--sage);
}

.step__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--slate);
}
.step__text {
  max-width: 340px;
  color: var(--muted);
}

/* =========================================================
   ЭКОНОМИЯ
   ========================================================= */
.benefits {
  border-top: 1px solid rgba(185, 155, 107, .45);
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #FAF6EF 0%, rgba(244, 239, 230, 0) 70%);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}

.card {
  padding: clamp(32px, 3.5vw, 48px);
  border-radius: 6px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -34px rgba(60, 74, 77, .45);
}
.card--sage  { background: var(--sage); }
.card--peach { background: var(--peach); }
.card--blue  { background: var(--dusty-blue); }

.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: var(--slate);
}
.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--slate);
}
.card__text { color: var(--text); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 13vw, 180px) 0 40px;
  background:
    radial-gradient(ellipse 70% 70% at 50% 30%, var(--slate-soft) 0%, rgba(60, 74, 77, 0) 72%),
    var(--slate);
  color: var(--cream);
  border-top: 1px solid var(--sand);
}
.footer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
}

.footer__statement {
  max-width: 1000px;
  margin: 0 auto clamp(80px, 9vw, 130px);
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.15;
  text-align: center;
  color: var(--cream);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.footer__col { padding: 32px 24px 32px 0; }
.footer__col + .footer__col {
  padding-left: 32px;
  border-left: 1px solid var(--line-light);
}

.footer__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer__value {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  color: var(--cream);
}
.footer__link {
  padding-bottom: 2px;
  background: linear-gradient(var(--sand), var(--sand)) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease), color .4s ease;
}
.footer__link:hover {
  color: var(--peach);
  background-size: 100% 1px;
  background-position: 0 100%;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  padding-top: 36px;
  font-size: 13px;
  color: rgba(244, 239, 230, .55);
}
.footer__bottom .logo__main { font-size: 20px; }
.footer__up { transition: color .4s ease; }
.footer__up:hover { color: var(--peach); }

/* =========================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.hero__content .reveal:nth-child(2) { transition-delay: .1s; }
.hero__content .reveal:nth-child(3) { transition-delay: .2s; }
.hero__content .reveal:nth-child(4) { transition-delay: .3s; }
.hero__art.reveal { transition-delay: .25s; }
.steps__list .step:nth-child(2),
.benefits__grid .card:nth-child(2) { transition-delay: .12s; }
.steps__list .step:nth-child(3),
.benefits__grid .card:nth-child(3) { transition-delay: .24s; }

/* после появления карточки реагируют на hover без задержки */
.card.is-visible { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;   /* стул сразу показывается собранным */
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1024px) {
  .benefits__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header--scrolled { height: 64px; }

  .header__inner { grid-template-columns: 1fr auto; }
  .header__phone { display: none; }
  .header .logo { position: relative; z-index: 102; }

  /* бургер */
  .burger {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 7px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding-right: 8px;
  }
  .burger span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--cream);
    transition: transform .5s var(--ease), width .5s var(--ease);
  }
  .burger span:last-child { width: 16px; }
  .menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .burger span:last-child { width: 26px; transform: translateY(-4px) rotate(-45deg); }

  /* полноэкранное меню */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--slate);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .menu-open { overflow: hidden; }
  .menu-open .nav { opacity: 1; visibility: visible; }

  .nav__link {
    font-family: var(--font-display);
    font-size: clamp(36px, 9vw, 52px);
    letter-spacing: .02em;
    text-transform: none;
    color: var(--cream);
    opacity: 0;
    transform: translateY(20px);
    transition: transform .7s var(--ease), opacity .7s var(--ease), color .4s ease;
  }
  .nav__link::after { display: none; }
  .nav__link:hover { color: var(--peach); }
  .menu-open .nav__link { opacity: 1; transform: none; }
  .menu-open .nav__link:nth-child(2) { transition-delay: .06s; }
  .menu-open .nav__link:nth-child(3) { transition-delay: .12s; }

  .nav__phone-mobile {
    display: inline-block;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line-light);
    font-size: 16px;
    letter-spacing: .06em;
    color: var(--sand);
  }

  /* hero в один столбик */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; }

  /* этапы в один столбик */
  .steps__list { grid-template-columns: 1fr; gap: 48px; }
  .step__text { max-width: 520px; }

  /* подвал */
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col,
  .footer__col + .footer__col { padding: 24px 0; border-left: none; }
  .footer__col + .footer__col { border-top: 1px solid var(--line-light); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  .logo__main { font-size: 21px; letter-spacing: .12em; }
  .logo__sub { font-size: 10px; letter-spacing: .32em; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .link-line { align-self: center; }
  .hero__art { max-width: 340px; }

  /* плашка — сетка 2×2 без разделителей */
  .plate { padding: 24px var(--gutter); }
  .plate__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    text-align: center;
  }
  .plate li { justify-content: center; white-space: normal; letter-spacing: .1em; }
  .plate li + li::before { display: none; }

  .step__num { margin-bottom: 20px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .logo__main { font-size: 19px; letter-spacing: .1em; }
  .logo__sub { letter-spacing: .24em; }
}
