/* =========================================================================
   Generation Yoga — корпоративное направление.
   Дизайн-система по «Визуальному стандарту GY».
   Приём: плотный капс Manrope 800 + курсивная строчная Fraunces на акценте.
   База сайта светлая; ink — чередующаяся секция, а не весь сайт.
   ========================================================================= */

:root {
  --ink:       #0E0E0E;   /* текст; тёмные секции; футер */
  --paper:     #F6F1E8;   /* основной фон; текст на ink */
  --cream:     #EFE7D6;   /* фон секции-чередования */
  --accent:    #F26B1F;   /* единственный горячий акцент */
  --accent-h:  #FF7D33;   /* hover заливки */
  --accent-d:  #D4560F;   /* hover ссылки */
  --muted:     #666;      /* второстепенный текст на светлом */
  --body:      #333;      /* абзацы на светлом */
  --body-card: #444;      /* абзацы в белой карточке */
  --hairline:  rgba(14,14,14,.12);
  --hairline-on-ink: rgba(246,241,232,.14);
  --on-ink:    rgba(246,241,232,.85);
  --on-ink-2:  rgba(246,241,232,.75);
  --on-ink-3:  rgba(246,241,232,.6);

  --font-ui:     "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --pad-section: clamp(56px, 8vw, 88px);
  --radius: 12px;
  --radius-s: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Шкала: максимум каждого шага = значение из стандарта. */
  --t-h1:     clamp(2.6rem, 1.4rem + 4.8vw, 5.25rem);   /* 84px */
  --t-h2:     clamp(1.9rem, 1.25rem + 2.6vw, 2.875rem); /* 46px */
  --t-h2-lg:  clamp(2.1rem, 1.3rem + 3.2vw, 3.25rem);   /* 52px */
  --t-h3:     clamp(1.4rem, 1.1rem + 1.1vw, 1.875rem);  /* 30px */
  --t-h4:     clamp(1.1rem, 1rem + .35vw, 1.25rem);     /* 20px */
  --t-lead:   clamp(1.15rem, 1rem + .6vw, 1.4375rem);   /* 23px */
  --t-body:   clamp(1rem, .95rem + .25vw, 1.125rem);    /* 18px */
  --t-body-lg:clamp(1.05rem, .97rem + .35vw, 1.25rem);  /* 20px */
  --t-cap:    1rem;                                     /* 16px */
  --t-small:  .875rem;                                  /* 14px */
  --t-eyebrow:.75rem;                                   /* 12px */
  --t-num:    clamp(2rem, 1.35rem + 2.6vw, 2.75rem);    /* 44px */
}

/* --- reset ------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Ссылки заданы явно — браузерных синих и подчёркнутых на сайте нет. */
a { color: var(--accent); text-decoration: none; transition: all .15s ease; }
a:hover { color: var(--accent-d); }

/* --- типографика -------------------------------------------------------- */
/* Display — Manrope 800 капсом. Заголовок целиком в Fraunces — ошибка. */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: .92;
  text-wrap: pretty;
}
h1 { font-size: var(--t-h1); line-height: .9; letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); line-height: .95; }
h2.h2--lg { font-size: var(--t-h2-lg); line-height: .94; }
h3 { font-size: var(--t-h3); line-height: 1; letter-spacing: -0.025em; }
h4 { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; text-transform: none; }

/* Акцент — Fraunces italic строчными, одно-два слова на заголовок. */
em, .serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em, h1 .serif, h2 .serif, h3 .serif {
  text-transform: none;
  color: var(--accent);
  font-size: .92em;
}
/* В абзаце курсив — тем же цветом, что и текст: оранжевый там спорит с кнопкой. */
p em, p .serif, li em { color: inherit; font-size: 1.02em; }
/* Точечные исключения. Селектор с `p` — чтобы перебить правило выше по специфичности. */
p .serif--ink { color: var(--ink); }
p .serif--accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-ui); font-weight: 800;
  font-size: var(--t-eyebrow); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); flex-shrink: 0; }
.eyebrow--plain::before { display: none; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { display: none; }

.lede { font-size: var(--t-lead); line-height: 1.45; max-width: 46ch; }
.measure { max-width: 62ch; }
.fine, .form-note, .pill-note, .src { font-size: var(--t-small); color: var(--muted); line-height: 1.45; }
.on-ink .fine, .on-ink .form-note, .on-ink .pill-note, .on-ink .src { color: var(--on-ink-3); }

/* --- сетка -------------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 820px); margin-inline: auto; }
.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }

/* Между секциями — либо смена фона, либо hairline. Не оба сразу. */
.on-ink { background: var(--ink); color: var(--paper); }
.on-cream { background: var(--cream); border-top: 1px solid var(--hairline); }
.on-ink + .on-ink { border-top: 1px solid var(--hairline-on-ink); }
.on-ink p, .on-ink li { color: var(--on-ink); }
.on-cream + .section:not(.on-ink):not(.on-cream) { border-top: 1px solid var(--hairline); }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 44px); }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 22px; color: var(--body); max-width: 62ch; }
.on-ink .section-head p { color: var(--on-ink); }

.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
/* Футер формы: кнопка слева, «свяжемся в течение дня» справа. */
.cta-row--split { margin-top: 24px; justify-content: space-between; }

/* Разделитель внутри колонки текста (не имитирует границу секции). */
.rule { height: 2px; background: var(--accent); width: 100%; }
.rule--hair { height: 1px; background: var(--hairline); }
.on-ink .rule--hair { background: var(--hairline-on-ink); }

/* --- кнопки и ссылки-действия ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-ui); font-weight: 800;
  font-size: var(--t-cap); letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.1; text-align: center;
  padding: .9em 1.7em; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--ink);
  transition: all .15s ease;
}
.btn:hover { background: var(--accent-h); border-color: var(--accent-h); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-ink .btn--ghost, .hero .btn--ghost, .site-header.on-ink .btn--ghost {
  border-color: rgba(246,241,232,.35); color: var(--paper); background: transparent;
}
.on-ink .btn--ghost:hover, .hero .btn--ghost:hover, .site-header.on-ink .btn--ghost:hover {
  background: var(--paper); border-color: var(--paper); color: var(--ink);
}

/* Второстепенное действие в герое — текст с нижней границей, не вторая кнопка. */
.link-under {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 800; font-size: var(--t-cap); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(246,241,232,.8); border-bottom: 1px solid rgba(246,241,232,.35);
  padding-bottom: 3px; transition: all .15s ease;
}
.link-under:hover { color: var(--paper); border-color: var(--paper); }
.link-under--ink { color: var(--ink); border-color: var(--hairline); }
.link-under--ink:hover { color: var(--accent); border-color: var(--accent); }

/* Ссылка-действие в карточке и в тексте. */
.link-arw {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-ui); font-weight: 800;
  font-size: var(--t-cap); letter-spacing: .04em; color: var(--accent);
}
.link-arw:hover { color: var(--accent-d); }
.link-quiet {
  font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.on-ink .link-quiet, .hero .link-quiet { color: var(--on-ink-3); }
.link-quiet:hover { color: var(--accent); }

/* --- шапка -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header.on-ink { background: color-mix(in srgb, var(--ink) 86%, transparent); border-color: var(--hairline-on-ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.brand { display: inline-flex; align-items: baseline; gap: 10px; color: inherit; }
.brand:hover { color: inherit; }
.brand b { font-family: var(--font-ui); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.brand span { font-family: var(--font-accent); font-style: italic; font-size: 19px; color: var(--muted); }
.on-ink .brand span { color: var(--on-ink-2); }

.aud-nav { display: flex; align-items: center; gap: 4px; }
/* :not(.btn) — иначе правила навигации перебивают кнопку по специфичности. */
.aud-nav a:not(.btn) {
  font-weight: 800; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .55em .7em; border-radius: 999px; white-space: nowrap;
  color: var(--muted); transition: all .15s ease;
}
.aud-nav a:not(.btn):hover { color: var(--ink); }
.on-ink .aud-nav a:not(.btn) { color: var(--on-ink-2); }
.on-ink .aud-nav a:not(.btn):hover { color: var(--paper); }
.aud-nav a:not(.btn)[aria-current="page"] { color: var(--ink); background: var(--cream); }
.on-ink .aud-nav a:not(.btn)[aria-current="page"] { color: var(--paper); background: rgba(246,241,232,.12); }
.aud-nav .btn { margin-left: 10px; padding: .62em 1.2em; font-size: .8125rem; }
.header-cta { display: inline-flex; }
.burger { display: none; }

@media (max-width: 1120px) {
  .aud-nav a:not(.btn) { font-size: .75rem; letter-spacing: .05em; padding: .55em .5em; }
  .aud-nav .btn { font-size: .75rem; padding: .6em 1em; }
}

/* --- герой -------------------------------------------------------------- */
/* Фото на всю площадь + защитный градиент к низу. Контент прижат к низу. */
.hero {
  position: relative; min-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--paper);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* один радиальный подтон под текстом… */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(130% 90% at 18% 42%, rgba(14,14,14,.55), transparent 68%);
}
/* …и защитный градиент, привязанный к низу: верх кадра остаётся читаемым. */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.1) 40%, rgba(14,14,14,.85) 100%);
}
/* Кадр главной — вертикальный, в широком герое от него остаётся полоса.
   При центре в кадр попадали вода и небо, а практика срезалась нижней
   кромкой. 70% поднимают кадр: люди целиком, вода — узкой полосой сверху. */
.hero--home .hero__media img { object-position: center 70%; }
.hero__top { position: relative; z-index: 3; padding-block: 30px; }
.hero__top .header-row { min-height: 0; }
.hero__inner {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 28px; padding-bottom: clamp(48px, 8vh, 84px); padding-top: clamp(40px, 8vh, 80px);
}
.hero h1 { max-width: 16ch; }
.hero__sub { font-size: var(--t-lead); line-height: 1.45; max-width: 560px; color: var(--on-ink); }
.hero .cta-row { margin-top: 8px; }
.hero .eyebrow { color: var(--accent); }
.hero .brand { color: var(--paper); }
.hero .brand span { color: var(--on-ink-2); }

/* Первый экран = герой + полоса доверия ровно в высоту окна. Полоса берёт
   свою высоту, герой забирает остаток — поэтому цифры никогда не обрубает
   нижней кромкой (при 92vh в экран влезала половина строки доверия, а
   обрубленная цифра читается как поломка). Магических чисел нет: сколько
   строк ни перенесётся в подписях, расчёт остаётся верным.
   Обёртка нужна только на главной: там шапка живёт внутри героя, поэтому
   первый экран равен окну. На остальных страницах липкая шапка съедает верх,
   и полоса доверия и так уходит целиком под сгиб — резать нечего. */
@media (min-width: 901px) {
  .first-screen { min-height: 100vh; display: flex; flex-direction: column; }
  .first-screen .hero { flex: 1 1 auto; min-height: 560px; }
}

/* --- полоса доверия ----------------------------------------------------- */
/* Цифры и подписи никогда не лежат поверх фото — только на ровном ink. */
.trust { background: var(--ink); color: var(--paper); border-top: 1px solid var(--hairline-on-ink); }
/* 30px вместо предписанных стандартом 44: полоса стоит впритык к герою и
   каждый её лишний пиксель съедает кадр. Цифры от этого не теряют вес —
   их держит кегль, а не воздух вокруг. */
.trust .wrap { padding-block: 30px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.fact .k {
  font-family: var(--font-ui); font-weight: 800; font-size: var(--t-num);
  line-height: .92; letter-spacing: -0.03em; color: var(--accent);
}
/* Одно нечисловое значение в ряду — курсивом Fraunces. */
.fact .k--word, .fact .k em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; }
.fact .v { margin-top: 8px; font-size: var(--t-cap); line-height: 1.4; color: var(--on-ink-2); }
.section:not(.on-ink) .fact .v { color: var(--muted); }
.trust .clients { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline-on-ink); font-size: var(--t-small); color: var(--on-ink-3); }

/* --- крупные цифры в тексте --------------------------------------------- */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.stat .num {
  font-family: var(--font-ui); font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: .92; letter-spacing: -0.03em;
}
.stat .num em { font-family: var(--font-ui); font-style: normal; font-weight: 800; font-size: 1em; color: var(--accent); letter-spacing: -0.03em; }
.stat .cap { margin-top: .7em; font-size: var(--t-cap); line-height: 1.45; max-width: 34ch; }
.stat .src { display: block; margin-top: .6em; }

/* --- карточки ----------------------------------------------------------- */
.cards { display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden; min-height: 260px;
  box-shadow: 0 1px 4px rgba(14,14,14,.08);
  transition: all .15s ease;
}
a.card:hover, .card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(14,14,14,.1); color: var(--ink); }
/* 240px вместо 170: на узкой шапке кадр резался в полоску, люди в кадре
   теряли головы или ноги. 240 при ширине колонки ~340 — это почти 3:2,
   то есть родная пропорция съёмки, и кроп почти не работает. */
.card__photo { height: 240px; flex-shrink: 0; overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
/* Скоуп обязателен: общий center 55% режет голову на вертикальных кадрах.
   Модификатор вешаем на figure — видно прямо в разметке, какой карточке правили кадр. */
.card__photo--anchor-top img { object-position: center 42%; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px 32px; flex: 1; }
.tag { font-size: var(--t-eyebrow); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.on-ink .tag { color: var(--on-ink-3); }
.card p { font-size: var(--t-body); line-height: 1.45; color: var(--body-card); }
.card .price { font-family: var(--font-ui); font-weight: 800; font-size: var(--t-h4); letter-spacing: -0.02em; color: var(--ink); }
.card .price small { font-weight: 500; color: var(--muted); font-size: .7em; letter-spacing: 0; }
/* Ссылка-действие прижата к низу карточки. */
.card .link-arw, .card__act { margin-top: auto; padding-top: 20px; align-self: flex-start; }

/* --- причины / шаги ------------------------------------------------------ */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 56px); }
.reason { padding: 26px 0; border-top: 1px solid var(--hairline); display: flex; gap: 20px; }
.on-ink .reason { border-top-color: var(--hairline-on-ink); }
/* Маркер, а не нумерация: список причин не последовательный, и 01–04 читались
   как шаги процесса. Ширина колонки прежняя: 1.44em × 1.25 кегля = те же 1.8em. */
.reason::before {
  content: "+"; font-family: var(--font-ui); font-weight: 800;
  font-size: calc(var(--t-h4) * 1.25); line-height: 1;
  color: var(--accent); flex: none; width: 1.44em;
}
.reason h4 { margin-bottom: 8px; }
.reason p { font-size: var(--t-cap); line-height: 1.45; color: var(--body); }
.on-ink .reason p { color: var(--on-ink); }
/* Список причин в узкой колонке — в один столбец. */
.reasons--stack { grid-template-columns: 1fr; margin-top: 28px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-ui); font-weight: 800; font-size: var(--t-h4);
  letter-spacing: -0.02em; color: var(--accent);
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: var(--t-small); line-height: 1.45; color: var(--body); }
.on-ink .step p { color: var(--on-ink); }
/* Шаги под другим блоком той же секции — с увеличенным отступом сверху. */
.steps--spaced { margin-top: clamp(44px, 6vw, 72px); }

/* --- кейсы --------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); }
.cases--2 { grid-template-columns: repeat(2, 1fr); }
.case { border-top: 2px solid var(--accent); padding-top: 16px; }
/* Имена компаний не капсим: befree и Yclients пишутся своим регистром. */
.case .who { font-family: var(--font-ui); font-weight: 800; font-size: var(--t-h4); letter-spacing: -0.02em; }
.case .what { display: block; margin-top: 8px; font-size: var(--t-small); font-weight: 700; }
.case p { margin-top: 10px; font-size: var(--t-small); line-height: 1.5; color: var(--body); }
.on-ink .case p { color: var(--on-ink-2); }

/* --- полоса-призыв внутри секции ---------------------------------------- */
.concept-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 36px);
  background: #fff; border: 1px solid var(--hairline); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.concept-cta span { font-size: var(--t-body-lg); line-height: 1.45; max-width: 62ch; }
.concept-cta b { font-weight: 800; }

/* --- фото внутри страницы ------------------------------------------------ */
.figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,14,14,0) 55%, rgba(14,14,14,.8) 100%);
}
.figure figcaption {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-size: var(--t-eyebrow); font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper);
}
.figure--tall { height: 260px; }

/* Колонка с заголовком и фото добирает высоту соседней текстовой колонки:
   фото тянется до её нижней кромки, и блок заканчивается одной линией.
   margin-top задан здесь, а не утилитой в разметке, — иначе воздух над фото
   пришлось бы держать в двух местах. */
.split--fill .figure--tall { margin-top: 52px; }
@media (min-width: 901px) {
  .split--fill { align-items: stretch; }
  .split--fill > div { display: flex; flex-direction: column; }
  /* min-height ниже обычных 260: иначе высоту ряда задаёт фото, и левая
     колонка снова уезжает ниже правой. Пусть ряд задаёт текст, а фото
     добирает ровно остаток. */
  .split--fill .figure--tall { height: auto; min-height: 180px; flex: 1 1 auto; }
  /* Текст справа распределяется на всю высоту ряда — тогда обе колонки
     заканчиваются одной линией, а фото не приходится ужимать в полоску. */
  .split--fill > div:last-child { justify-content: space-between; }
}

/* Галерея кадров: ровная плитка 4:3, фото говорят сами — без подписей и рамок.
   Живёт на главной, но компонент общий: можно поставить на любую страницу.
   Ховера нет намеренно: плитки некликабельны, а стандарт запрещает масштаб
   и сдвиг на наведении (§10) — двигаться тут было бы нечему и незачем. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* --- лид-магнит ---------------------------------------------------------- */
.leadmag {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.leadmag h3 { margin-top: 14px; margin-bottom: 12px; }
.leadmag p { color: var(--body); font-size: var(--t-cap); line-height: 1.45; }
.leadmag .mini-form { display: flex; gap: 10px; flex-wrap: wrap; }
.leadmag input { flex: 1 1 200px; }
.leadmag--stack { grid-template-columns: 1fr; }
.leadmag + .leadmag { margin-top: 22px; }

/* --- формы --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: var(--t-small); font-weight: 700; letter-spacing: .02em; }
input, select, textarea {
  font: inherit; font-size: var(--t-cap);
  padding: .85em 1em; border-radius: var(--radius-s);
  border: 1.5px solid var(--hairline); background: #fff; color: var(--ink);
  width: 100%; transition: border-color .15s ease;
}
.on-ink input, .on-ink select, .on-ink textarea {
  background: rgba(246,241,232,.06); border-color: var(--hairline-on-ink); color: var(--paper);
}
.on-ink input::placeholder { color: rgba(246,241,232,.4); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
/* согласие на обработку ПД — обязательный элемент форм (152-ФЗ) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); color: var(--muted); margin-top: 16px; cursor: pointer; max-width: 54ch; }
.consent input { width: 15px; height: 15px; padding: 0; margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent a { text-decoration: underline; }
.on-ink .consent { color: var(--on-ink-3); }
.form-ok { display: none; padding: 24px; border: 1px solid var(--accent); border-radius: var(--radius); background: rgba(242,107,31,.08); }
.form-ok.show { display: block; }
.form-error { color: #C2410C; }
.form-error:empty { display: none; }
/* Ловушка для ботов: поле видит только автозаполнялка, человек — нет.
   Не display:none — часть ботов такие поля как раз пропускает. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- модальное окно ------------------------------------------------------ */
/* Нативный <dialog>: Esc, фокус и подложка — работой браузера, а не нашей. */
/* margin: auto возвращаем руками — глобальный reset обнулил margin всему,
   а центрирование <dialog> в браузере держится именно на нём. */
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: 0;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.modal::backdrop { background: rgba(14,14,14,.6); }
/* position — на теле, а не на самом dialog: у dialog своя раскладка в
   верхнем слое, и position:relative на нём ломает центрирование. */
.modal__body { position: relative; padding: clamp(24px, 4vw, 40px); }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; transition: all .15s ease;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal h3 { font-size: var(--t-h3); }
.modal .form-grid { gap: 14px; }
.modal .field { margin-top: 14px; }
.modal .btn { width: 100%; justify-content: center; margin-top: 20px; }
.modal .form-note { display: block; margin-top: 12px; }
@media (max-width: 620px) { .modal .form-grid { grid-template-columns: 1fr; } }

/* --- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-ui); font-weight: 800; font-size: var(--t-h4);
  letter-spacing: -0.01em; line-height: 1.3; transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 20px;
  font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--accent);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 44px 26px 0; color: var(--body); max-width: 70ch; font-size: var(--t-cap); line-height: 1.5; }

/* --- лента дедлайна ------------------------------------------------------ */
.deadline {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: var(--t-small); font-weight: 700; letter-spacing: .02em; text-align: left;
  color: var(--ink); background: rgba(242,107,31,.16);
  padding: .7em 1.2em; border-radius: 999px;
}
.on-ink .deadline { color: var(--paper); background: rgba(242,107,31,.18); }
.deadline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* --- футер --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-3); padding-block: clamp(40px, 6vw, 56px); }
.site-footer .brand { color: var(--paper); }
.site-footer .brand span { color: rgba(246,241,232,.7); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: rgba(246,241,232,.8); font-size: .9375rem; font-weight: 700; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav a.is-site { color: var(--accent); }
.footer-nav a.is-site:hover { color: var(--accent-h); }
.footer-bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline-on-ink);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: var(--t-small); line-height: 1.5;
}
.footer-bottom a { color: rgba(246,241,232,.8); }
.footer-bottom a:hover { color: var(--accent); }
/* Служебная страница: футер без верхней линии и отступа — над ним ничего нет. */
.footer-bottom--bare { margin-top: 0; padding-top: 0; border-top: none; }

/* --- заглушки прототипа -------------------------------------------------- */
/* .tbd — значение, которое команда ещё не утвердила. Намеренно заметно. */
.tbd {
  display: inline-block; font-family: var(--font-ui); font-weight: 700;
  font-size: .86em; letter-spacing: .02em;
  color: var(--accent-d); background: rgba(242,107,31,.1);
  border: 1px dashed var(--accent); border-radius: 3px;
  padding: .1em .5em;
}
.on-ink .tbd { color: #FFB27A; background: rgba(242,107,31,.14); }

/* .ph — плейсхолдер под фото. Подпись = бриф на съёмку. */
.ph {
  position: relative; display: flex; align-items: flex-end;
  background:
    repeating-linear-gradient(135deg, rgba(14,14,14,.05) 0 10px, transparent 10px 20px),
    var(--cream);
  border: 1px dashed rgba(14,14,14,.3); border-radius: var(--radius);
  aspect-ratio: 4 / 3; overflow: hidden; padding: 16px;
}
.ph span { font-size: var(--t-small); font-weight: 600; color: var(--muted); line-height: 1.35; }
.ph::before {
  content: "ФОТО"; position: absolute; top: 14px; left: 16px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .2em; color: rgba(14,14,14,.4);
}
.ph--wide { aspect-ratio: 16 / 9; }
/* шапка карточки: та же высота, что и у фото-шапки */
.ph--card { aspect-ratio: auto; height: 240px; flex-shrink: 0; border: none; border-bottom: 1px dashed rgba(14,14,14,.25); border-radius: 0; }
.ph--tall { aspect-ratio: auto; height: 260px; }
/* фон героя, пока нет кадра */
.ph--hero {
  position: absolute; inset: 0; aspect-ratio: auto; border: none; border-radius: 0; padding: 0;
  background:
    repeating-linear-gradient(135deg, rgba(246,241,232,.05) 0 12px, transparent 12px 24px),
    var(--ink);
}
.ph--hero::before { color: rgba(246,241,232,.4); top: 16%; left: 50%; transform: translateX(-50%); }
.ph--hero span {
  position: absolute; top: calc(16% + 26px); left: 50%; transform: translateX(-50%);
  width: min(90%, 40ch); text-align: center; color: rgba(246,241,232,.5);
}

/* --- появление секций ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* =========================================================================
   Утилиты вместо инлайновых style=
   Инлайн перебивал и медиазапросы, и компонентные правила. Поэтому утилиты
   стоят после компонентов, а у текстовых в селекторе есть элемент: иначе
   `.p-sm` (0,1,0) проигрывает `.card p` (0,1,1) и кегль не применяется.
   ========================================================================= */
p.p-lg, .p-lg { font-size: var(--t-body-lg); color: var(--body); }
.on-ink p.p-lg, .on-ink .p-lg { color: var(--on-ink); }
p.p-sm, .p-sm { font-size: var(--t-small); }
.lede--wide { max-width: 62ch; }
.section-head--tight { margin-bottom: 32px; }
/* Шапка блока перед формой заявки. */
.form-head { margin-bottom: 36px; }
.form-head .deadline { margin-bottom: 24px; }

/* =========================================================================
   Страничные блоки
   Компоненты, которые живут на одной странице. Держим здесь, а не в <style>
   страницы: так они кэшируются вместе с системой и не разъезжаются с ней.
   ========================================================================= */

/* --- /hr: демо-полоса и конструктор события ------------------------------ */
/* Оранжевый здесь — только кнопка, заливки блока нет. */
.demo-band .inner { display: grid; grid-template-columns: 1.15fr auto; gap: 28px 40px; align-items: center; }
.demo-band p { max-width: 62ch; margin-top: 14px; color: var(--body); }
@media (max-width: 900px) { .demo-band .inner { grid-template-columns: 1fr; } }

.builder { counter-reset: bstep; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.b-step {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); transition: all .15s ease;
}
.b-step:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(14,14,14,.1); }
.b-step::before {
  counter-increment: bstep; content: "0" counter(bstep); display: block;
  font-family: var(--font-ui); font-weight: 800; font-size: var(--t-h4);
  letter-spacing: -0.02em; color: var(--accent);
}
.b-step h3 { font-size: var(--t-h4); margin-top: 10px; text-transform: uppercase; letter-spacing: -0.02em; }
.b-step .sub { display: block; font-size: var(--t-small); color: var(--muted); margin-top: 6px; }
.b-step ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.b-step li { font-size: var(--t-small); line-height: 1.4; color: var(--body-card); padding-left: 18px; position: relative; }
.b-step li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

/* --- /pr: заход и wow-форматы -------------------------------------------- */
/* Скоуп обязателен: без .hero--pr правило сдвинуло бы кадр во всех героях.
   Кадр оранжереи: держим в кадре и купол, и поднятые руки — режем снизу. */
.hero--pr .hero__media img { object-position: center 42%; }

/* Акцент в заголовке /hr — целая фраза, а не слово, поэтому держим её отдельной
   строкой: иначе на узком экране «команде лучше,» слипается в одну строку из
   гротеска и курсива. Скоуп по .hero--hr: в agency акцент стоит в середине
   фразы, там блок разорвал бы заголовок пополам. */
.hero--hr h1 em { display: block; }
/* Крупная строка-утверждение. Не заголовок — обычный регистр. */
.statement { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); line-height: 1.35; max-width: 30ch; font-weight: 400; }
.wow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wow-item { display: flex; flex-direction: column; gap: 14px; }
.wow-item img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; }
.wow-item h4 { text-transform: uppercase; letter-spacing: -0.02em; }
.wow-item p { font-size: var(--t-small); line-height: 1.45; color: var(--body); }
@media (max-width: 900px) { .wow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wow { grid-template-columns: 1fr; } }

/* --- /agency: каталог форматов и условия партнёрства ---------------------- */
.ag-hero h1 .keep { white-space: nowrap; } /* «wow-модуль» не рвём переносом */

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-col {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); transition: all .15s ease;
}
.cat-col:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(14,14,14,.1); }
.cat-col h3 { font-size: var(--t-h4); margin-top: 12px; text-transform: uppercase; letter-spacing: -0.02em; }
.cat-col ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cat-col li { font-size: var(--t-small); line-height: 1.45; padding-left: 18px; position: relative; color: var(--body-card); }
.cat-col li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 900px) { .catalog { grid-template-columns: 1fr; } }

.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.term { border-top: 2px solid var(--accent); padding-top: 18px; }
.term h4 { margin-bottom: 8px; }
.term p { font-size: var(--t-small); line-height: 1.45; }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr; } }

/* --- /privacy: текст документа -------------------------------------------- */
.policy h1 { font-size: var(--t-h2); line-height: .95; }
.policy h2 { font-size: var(--t-h4); margin-top: 36px; }
.policy p, .policy li { color: var(--body); margin-top: 12px; font-size: var(--t-cap); line-height: 1.5; }
.policy ul { margin: 8px 0 0 20px; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width: 1000px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .aud-nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--hairline); border-radius: 999px; }
  .site-header.on-ink .burger { border-color: var(--hairline-on-ink); }
  .hero { min-height: 88vh; }
  .hero h1 { max-width: 18ch; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .leadmag { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .concept-cta { flex-direction: column; align-items: flex-start; }

  /* выпадающее меню: всегда полные канонические имена */
  .aud-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 12px var(--gutter) 20px; gap: 4px;
  }
  .site-header.on-ink .aud-nav.open { background: var(--ink); border-color: var(--hairline-on-ink); }
  .aud-nav.open a:not(.btn) { padding: .85em 1em; font-size: .8125rem; letter-spacing: .07em; }
  .aud-nav.open .header-cta { display: inline-flex; margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; gap: 22px; }
  .steps { grid-template-columns: 1fr; }
  .card__body { padding: 24px 24px 28px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .link-under, .cta-row .link-arw { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .link-arw, .link-under, a { transition: none !important; }
}
