/* ==========================================================================
   Портфолио iri.studio — единый файл стилей для всех страниц.
   1. Шрифты  2. Токены  3. База  4. Шапка и подвал  5. Главная
   6. Кейс: секции  7. Анимации
   ========================================================================== */

/* 1. Шрифты: Inter Tight (заголовки) и Inter (текст). Лицензия SIL Open Font License,
   файлы лежат в fonts/, внешние сервисы не нужны. Поддерживают кириллицу. */
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  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: 'Inter Tight';
  src: url('../fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-cyrillic-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  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: 'Inter';
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 2. Токены ----------------------------------------------------------------
   Все цвета, шрифты, размеры и скорости — здесь. Поменяли значение — поменялся весь сайт. */
:root {
  --ink: #000008;          /* почти чёрный: шапка, подвал, заголовки */
  --bg: #fffffb;           /* тёплый белый фон */
  --text: #1c1c22;         /* основной текст */
  --muted: #74747c;        /* второстепенный текст, подписи */
  --line: #e7e6df;         /* тонкие линии на светлом */
  --line-dark: rgba(255, 255, 255, 0.16); /* линии на тёмном */
  --tint: #f3f1ea;         /* фон цветных секций; в кейсе переопределяется цветом проекта */

  --font-head: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Шкала размеров: каждый уровень иерархии — свой размер, без промежуточных. */
  --fs-label: 0.75rem;                                   /* метки, навигация */
  --fs-small: 0.875rem;                                  /* подписи, второстепенное */
  --fs-body: 1.0625rem;                                  /* основной текст */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* лид, акцентный текст */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);      /* подзаголовок */
  --fs-h2: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);     /* заголовок секции */
  --fs-h1: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);          /* заголовок страницы */

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
  --space-xl: clamp(4rem, 3rem + 4vw, 7.5rem);

  --page: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --header-h: 72px;        /* высота шапки: первый экран главной = экран минус шапка */

  /* Одна кривая и две длительности на весь сайт — движение ощущается единым и спокойным. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 250ms;
  --dur-slow: 800ms;
}

/* 3. База ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--muted); }

.container { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.label { font-family: var(--font-text); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--space-s); top: var(--space-s); background: var(--bg); padding: var(--space-xs) var(--space-s); z-index: 10; }

/* Кнопки: .btn — главная (залитая), .btn--ghost — второстепенная (контурная) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.75rem;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff;
  font-size: var(--fs-small); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Ссылка со стрелкой: «Learn more →» */
.arrow-link { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-small); font-weight: 500; color: var(--ink); text-decoration: none; }
.arrow-link::after { content: '→'; transition: transform var(--dur-fast) var(--ease); }
.arrow-link:hover::after, a:hover > .arrow-link::after { transform: translateX(4px); }

/* 4. Шапка и подвал ------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.header__logo { font-family: var(--font-head); font-weight: 600; font-size: 2rem; letter-spacing: 0.02em; text-decoration: none; line-height: 1; }
.header__nav { display: flex; gap: clamp(1.25rem, 3vw, 2rem); }
.header__nav a { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; text-decoration: none; opacity: 0.75; transition: opacity var(--dur-fast) var(--ease); }
.header__nav a:hover { opacity: 1; }

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: var(--fs-small); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-m); padding-block: var(--space-l); }
.footer__copy p { margin: 0; }
.footer__note { color: rgba(255, 255, 255, 0.4); font-size: var(--fs-label); max-width: 56ch; margin-top: 0.3em !important; }
.footer__social { display: flex; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.footer__social li { margin: 0; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: #fff;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer__social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 5. Главная -------------------------------------------------------------- */
/* Первый экран занимает всю высоту окна под шапкой (svh — без прыжков из-за панели браузера на телефоне). */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.intro__photo { position: relative; overflow: hidden; background: var(--ink); }
.intro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.intro__text { align-self: center; padding: var(--space-l) var(--gutter); max-width: 720px; }
.intro__roles { margin: var(--space-s) 0 var(--space-l); font-size: var(--fs-lead); color: var(--ink); }
.intro__tagline { font-weight: 600; color: var(--ink); margin-bottom: 0.4em; }
.intro__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }
.intro__loc { margin-top: var(--space-m); font-size: var(--fs-small); color: var(--muted); display: flex; align-items: center; gap: 0.4em; }
@media (max-width: 760px) {
  /* На телефоне фото забирает высоту, которая остаётся после текста, чтобы кнопки были видны без прокрутки. */
  .intro { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 1fr) auto; }
  .intro__text { padding-block: var(--space-m) var(--space-m); font-size: var(--fs-small); }
  .intro__roles { margin: var(--space-xs) 0 var(--space-m); font-size: var(--fs-body); }
  .intro__actions { margin-top: var(--space-m); gap: var(--space-xs); }
  .intro__actions .btn { flex: 1 1 0; padding-inline: 1rem; }
  .intro__loc { margin-top: var(--space-s); }
}

.projects { padding-block: var(--space-xl); scroll-margin-top: var(--header-h); }
.projects__title { text-align: center; margin-bottom: var(--space-l); }
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-l) var(--space-m); }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
a.card:hover .card__media img { transform: scale(1.03); }
.card__title { margin-top: var(--space-m); }
.card__text { margin: var(--space-xs) 0 var(--space-m); color: var(--muted); font-size: var(--fs-small); }
.card .arrow-link, .card__soon { margin-top: auto; }
.card__soon { font-size: var(--fs-small); color: var(--muted); }

/* 6. Кейс: общие секции ---------------------------------------------------
   Кейс собирается из секций. Каждая секция — <section class="section …">. */
.section { padding-block: var(--space-xl); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }

/* Первый экран кейса: текст слева, картинка справа */
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); background: var(--tint); }
.case-hero__text { padding: var(--space-xl) var(--space-l) var(--space-xl) max(var(--gutter), calc((100vw - var(--page)) / 2)); align-self: end; }
.case-hero__back { display: inline-block; margin-bottom: var(--space-l); font-size: var(--fs-small); color: var(--muted); text-decoration: none; }
.case-hero__back:hover { color: var(--ink); }
.case-hero__subtitle { margin-top: var(--space-s); font-size: var(--fs-lead); color: var(--ink); }
.case-hero__media { min-height: 420px; position: relative; overflow: hidden; }
.case-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); margin: var(--space-l) 0 0; padding-top: var(--space-m); border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.facts dt { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.facts dd { margin: 0.3em 0 0; font-size: var(--fs-small); color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-hero__media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .case-hero__text { padding: var(--space-l) var(--gutter); }
  .lists-media__body { padding-inline: var(--gutter); }
}

/* Заголовок слева, текст справа (Overview, Designing from user behaviour…) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: var(--space-l); }
.split__note { margin-top: var(--space-s); color: var(--muted); font-size: var(--fs-small); max-width: 30ch; }
.split__body { max-width: 62ch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: var(--space-m); } }

/* Картинка + текст рядом. .media-text--reverse меняет стороны местами. */
.media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-l); align-items: center; }
.media-text--reverse > :first-child { order: 2; }
.media-text__media img { border-radius: var(--radius); margin-inline: auto; }
/* Подпись под картинкой: <figure><img><figcaption class="caption">…</figcaption></figure> */
figure { margin: 0; }
.caption { margin-top: var(--space-s); color: var(--muted); font-size: var(--fs-small); text-align: center; max-width: 46ch; margin-inline: auto; }
.media-text__body h2, .media-text__body h3 { margin-bottom: var(--space-m); }
@media (max-width: 760px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text--reverse > :first-child { order: 0; }
}

/* Фото на всю ширину экрана */
.band { height: clamp(180px, 22vw, 340px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* Заголовок секции по центру с короткой линией под ним */
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-l); }
.section-head h2::after { content: ''; display: block; width: 56px; height: 1px; background: currentColor; margin: var(--space-m) auto 0; }
.section-head p { margin-top: var(--space-m); color: var(--text); }

/* Крупная мысль по центру */
.statement { max-width: 820px; margin-inline: auto; text-align: center; }
.statement__text { font-family: var(--font-head); font-size: var(--fs-h3); line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.statement__text::after { content: ''; display: block; width: 56px; height: 1px; background: currentColor; margin: var(--space-m) auto; opacity: 0.4; }
.statement p:not(.statement__text) { color: var(--muted); max-width: 62ch; margin-inline: auto; }

/* Этапы работы: нумерованная линия */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 620px; counter-reset: step; }
.timeline__step { position: relative; padding: 0 0 var(--space-l) 3.25rem; margin: 0; counter-increment: step; }
.timeline__step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: var(--fs-small); font-weight: 500;
}
.timeline__step::after { content: ''; position: absolute; left: calc(1rem - 0.5px); top: 2.25rem; bottom: 0.25rem; width: 1px; background: var(--ink); opacity: 0.35; transform-origin: top; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step:last-child::after { display: none; }
.timeline__step h3 { font-size: var(--fs-body); font-family: var(--font-text); font-weight: 600; letter-spacing: 0; line-height: 2rem; }
.timeline__step p { color: var(--muted); font-size: var(--fs-small); margin-top: 0.25em; }

/* Стайлгайд: шрифты и цвета */
.palette { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: var(--space-s); }
.palette li { margin: 0; text-align: center; font-size: var(--fs-label); color: var(--muted); letter-spacing: 0.06em; }
.palette__swatch { display: block; aspect-ratio: 2 / 1; margin-bottom: 0.5em; border: 1px solid var(--line); }
.styleguide__block + .styleguide__block { margin-top: var(--space-l); }
.styleguide__block h2 + p { margin: var(--space-xs) 0 var(--space-m); font-size: var(--fs-small); color: var(--muted); max-width: 52ch; }

/* Пункты с метками: <div class="points"><div class="points__item"><p class="label">…</p><p>…</p></div></div>.
   points__item--accent выделяет главный пункт (например, Challenge) цветом проекта. */
.points__item + .points__item { margin-top: var(--space-m); padding-top: var(--space-m); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.points__item .label { margin-bottom: var(--space-xs); }
.points__item--accent { background: var(--tint); border-radius: var(--radius); padding: var(--space-m); }
.points__item--accent + .points__item { border-top: 0; }

/* Варианты решения: большой заголовок, описание, цель */
.option__label { margin-bottom: var(--space-xs); }
.option__lead { color: var(--muted); font-size: var(--fs-small); margin: var(--space-s) 0 var(--space-m); }
.option__media img { max-height: 760px; width: auto; box-shadow: 0 24px 60px -30px rgba(0, 0, 8, 0.35); }
.media-text + .media-text { margin-top: var(--space-xl); }
.tag { display: inline-block; margin-left: var(--space-xs); padding: 0.2em 0.7em; border-radius: 99px; background: var(--ink); color: #fff; font-size: var(--fs-label); font-family: var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; font-weight: 500; }

/* Итог с цифрой */
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-l); align-items: stretch; margin-top: var(--space-xl); }
.result h2 { margin-bottom: var(--space-m); }
.result__media img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.result__aside { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-l); }
.stat__value { margin: 0; font-family: var(--font-head); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat__caption { font-size: var(--fs-small); margin-top: var(--space-xs); max-width: 26ch; }
/* Ряд цифр: <div class="stats"> с несколькими .stat внутри. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); text-align: center; }
.stats .stat__caption { margin-inline: auto; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .result { grid-template-columns: 1fr; } }

/* Две колонки списков + картинка справа на всю высоту */
.lists-media { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); background: var(--tint); }
.lists-media__body { padding: var(--space-xl) var(--space-l) var(--space-xl) max(var(--gutter), calc((100vw - var(--page)) / 2)); }
.lists-media__body h2 { margin-bottom: var(--space-l); }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); font-size: var(--fs-small); }
.lists h3 { font-size: var(--fs-body); font-family: var(--font-text); font-weight: 600; letter-spacing: 0; margin-bottom: var(--space-s); }
.lists-media__media { position: relative; min-height: 360px; }
.lists-media__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .lists-media { grid-template-columns: 1fr; }
  .lists { grid-template-columns: 1fr; }
}

/* Ссылка на следующий кейс */
.next { display: block; padding-block: var(--space-xl); text-decoration: none; text-align: center; border-top: 1px solid var(--line); }
.next h2 { margin-top: var(--space-s); }
.next .arrow-link { margin-top: var(--space-m); }

/* 7. Анимации ---------------------------------------------------------------
   Каждая анимация отвечает на вопрос «зачем»:
   — data-reveal: блок мягко проявляется, когда до него доходит взгляд (раз и навсегда);
   — .timeline: этапы появляются по очереди и линия «дорисовывается» — видно, что это последовательность;
   — карточки и ссылки: плавный отклик на наведение показывает, что элемент кликабельный.
   Без JS и при системной настройке «уменьшить движение» всё видно сразу. */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .timeline[data-reveal] { opacity: 1; transform: none; }
.js .timeline .timeline__step { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .timeline .timeline__step::after { transform: scaleY(0); transition: transform var(--dur-slow) var(--ease); }
.js .timeline.is-visible .timeline__step { opacity: 1; transform: none; }
.js .timeline.is-visible .timeline__step::after { transform: scaleY(1); }
.timeline__step:nth-child(1), .timeline__step:nth-child(1)::after { transition-delay: 0ms; }
.timeline__step:nth-child(2), .timeline__step:nth-child(2)::after { transition-delay: 120ms; }
.timeline__step:nth-child(3), .timeline__step:nth-child(3)::after { transition-delay: 240ms; }
.timeline__step:nth-child(4), .timeline__step:nth-child(4)::after { transition-delay: 360ms; }
.timeline__step:nth-child(5), .timeline__step:nth-child(5)::after { transition-delay: 480ms; }
.timeline__step:nth-child(6), .timeline__step:nth-child(6)::after { transition-delay: 600ms; }
.timeline__step:nth-child(n+7), .timeline__step:nth-child(n+7)::after { transition-delay: 720ms; }

/* Плавная смена страниц (Chrome, Safari 18+; в остальных браузерах — обычный переход). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .timeline .timeline__step { opacity: 1; transform: none; }
  .js .timeline .timeline__step::after { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation-duration: 0.01ms !important; }
}

/* Заглушка для раздела, который ещё пишется. Удалите блок .todo, когда вставите настоящий текст. */
.todo { border: 1px dashed var(--muted); border-radius: var(--radius); padding: var(--space-m); color: var(--muted); font-size: var(--fs-small); }
.todo::before { content: 'Draft · coming soon'; display: block; margin-bottom: var(--space-xs); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.todo ul { margin-top: var(--space-xs); }
/* Место под картинку: <div class="todo todo--media">что за картинка</div>. Замените на <img>, когда картинка будет готова. */
.todo--media { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--tint) 40%, transparent); }
.statement .label + .todo { margin-top: var(--space-s); }

/* Три списка в ряд (например, для пользователей, курьеров и бизнеса). */
.lists--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .lists--3 { grid-template-columns: 1fr; } }
