/* susanin.info — дизайн-система 11–12.11.2026: каркас в духе apple.com, палитра народных промыслов.
 *
 * Главная — история ценности: обещание → что вы получаете → как это выглядит → почему можно доверять →
 * вопросы → для партнёров → одно действие. На экране один главный элемент, остальное приглушено.
 *
 * Палитра (контраст по WCAG 2.1 AA; в браузере проверяет axe-core в qa/site-layout-check.mjs):
 *   лён #F5EFE4 и берёста #EBE2D2 — светлые секции; бумага #FFFCF6 — карточки;
 *   чернила #1E1B17 (15:1 на льне), приглушённый #5B5248 (6,7:1 на льне, 6,0:1 на берёсте);
 *   киноварь #B4391F — заливка кнопок (белый текст 5,9:1); киноварь для текста #A2321C (6,1:1 на льне);
 *   золотая охра #C9962F — только орнамент; на тёмном — #E4B95B (7,6:1 на кобальте);
 *   кобальт (гжель) #132A55 — тёмные секции, текст #F4EEE3 (12,2:1), приглушённый #BFC8DB (8,4:1).
 * Заголовки — PT Serif Bold (ParaType, SIL OFL 1.1, файлы в assets/fonts/, лицензия assets/fonts/OFL.txt),
 * основной текст — системный шрифт. Орнамент — свои SVG assets/ornament-*.svg, используются как маска.
 */

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/pt-serif-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/pt-serif-latin-700.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 {
  color-scheme: light;
  --linen: #f5efe4;
  --birch: #ebe2d2;
  --paper: #fffcf6;
  --app-bg: #f2efe7;
  --ink: #1e1b17;
  --muted: #5b5248;
  --cinnabar: #b4391f;
  --cinnabar-hover: #9a2f19;
  --cinnabar-ink: #a2321c;
  --ochre: #c9962f;
  --ochre-light: #e4b95b;
  --cobalt: #132a55;
  --cobalt-2: #1c3a6e;
  --on-dark: #f4eee3;
  --on-dark-muted: #bfc8db;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1120px;
  --gutter: max(22px, calc((100% - var(--wrap)) / 2));
  --header-h: 48px;
  --radius: 22px;
  --radius-lg: 26px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Контекст: светлая секция (по умолчанию). Тёмные и берестяные секции переопределяют эти значения. */
  --bg: var(--linen);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --accent-text: var(--cinnabar-ink);
  --card-bg: var(--paper);
  --card-border: rgba(30, 27, 23, 0.08);
  --chip-fg: var(--ink);
  --chip-border: rgba(30, 27, 23, 0.18);
  --chip-active-bg: var(--cobalt);
  --chip-active-fg: var(--on-dark);
  --btn-bg: var(--cinnabar);
  --btn-fg: #ffffff;
  --btn-bg-hover: var(--cinnabar-hover);
  --btn2-fg: var(--cinnabar-ink);
  --rule: rgba(30, 27, 23, 0.12);
  --focus: #2b57a3;
  --ornament: var(--ochre);
  --now-fg: var(--cobalt);
  --now-bg: rgba(19, 42, 85, 0.08);
  --soon-fg: var(--cinnabar-ink);
}

.tone-birch {
  --bg: var(--birch);
}

.tone-dark {
  --bg: var(--cobalt);
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --accent-text: var(--ochre-light);
  --card-bg: var(--cobalt-2);
  --card-border: rgba(244, 238, 227, 0.1);
  --chip-fg: var(--on-dark);
  --chip-border: rgba(244, 238, 227, 0.38);
  --chip-active-bg: var(--ochre-light);
  --chip-active-fg: var(--cobalt);
  --btn-bg: var(--ochre-light);
  --btn-fg: var(--cobalt);
  --btn-bg-hover: #efc979;
  --btn2-fg: var(--on-dark);
  --rule: rgba(244, 238, 227, 0.16);
  --focus: var(--ochre-light);
  --ornament: var(--ochre-light);
  --now-fg: var(--cobalt);
  --now-bg: var(--ochre-light);
  --soon-fg: #f2957a;
}

/* ---------------------------------------------------------------- база */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--linen);
  font: 400 17px/1.5 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button {
  color: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--cobalt);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-text);
  font: 600 15px/1.3 var(--sans);
  letter-spacing: 0;
}

.section-heading > .eyebrow::before,
.seo-hero .eyebrow::before,
.hero-copy > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  vertical-align: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.lead {
  color: var(--fg-muted);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
}

/* ---------------------------------------------------------------- кнопки и ссылки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 17px/1.2 var(--sans);
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button.primary {
  color: var(--btn-fg);
  background: var(--btn-bg);
}

.button.primary:hover {
  background: var(--btn-bg-hover);
}

.button.secondary,
.button.install-action {
  color: var(--btn2-fg);
  background: transparent;
  border-color: currentColor;
}

.button.secondary:hover {
  background: rgba(162, 50, 28, 0.06);
}

.tone-dark .button.secondary:hover {
  background: rgba(244, 238, 227, 0.08);
}

.link-more,
.route-open a,
.capability-rail a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.link-more::after,
.route-open a::after,
.capability-rail a::after {
  content: "›";
  margin-left: 5px;
  font-size: 1.15em;
  line-height: 1;
}

.link-more:hover,
.route-open a:hover,
.capability-rail a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-more {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 19px;
  text-align: center;
}

/* ---------------------------------------------------------------- шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding-inline: max(22px, calc((100% - 1024px) / 2));
  background: rgba(245, 239, 228, 0.86);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: rgba(30, 27, 23, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--ink);
  font: 700 20px/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(30, 27, 23, 0.84);
  font-size: 13px;
  line-height: var(--header-h);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

.nav-links .nav-download {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--cinnabar);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cinnabar-hover);
}

.nav-toggle {
  display: none;
}

/* ---------------------------------------------------------------- секции */

.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
  padding-inline: var(--gutter);
  color: var(--fg);
  background: var(--bg);
}

.section-heading {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
}

.section-heading h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}

.section-heading > p:not(.eyebrow) {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--fg-muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
}

/* Строчка вышивки сверху тёмной секции — как кайма рушника. */
.tone-dark::before,
.ornament-rule {
  content: "";
  height: 24px;
  background: var(--ornament);
  -webkit-mask: url("assets/ornament-band.svg") repeat-x center / 56px 24px;
  mask: url("assets/ornament-band.svg") repeat-x center / 56px 24px;
  pointer-events: none;
}

.tone-dark::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(420px, 70%);
  opacity: 0.55;
  transform: translateX(-50%);
}

.ornament-rule {
  width: min(280px, 60%);
  margin: clamp(48px, 6vw, 72px) auto;
  background: var(--cinnabar);
  opacity: 0.32;
}

/* ---------------------------------------------------------------- появление при прокрутке */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js.reveal-armed .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

.visual-gate .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.visual-gate *,
.visual-gate *::before,
.visual-gate *::after {
  animation: none !important;
  transition: none !important;
}

.visual-gate #install-app,
.visual-gate #install-status {
  display: none !important;
}

/* ---------------------------------------------------------------- первый экран главной: одно обещание */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
  overflow: hidden;
  text-align: center;
  background: var(--linen);
  isolation: isolate;
}

.hero::before,
.seo-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 78%;
  background: var(--ochre);
  opacity: 0.1;
  -webkit-mask: url("assets/ornament-field.svg") repeat center top / 112px 112px;
  mask: url("assets/ornament-field.svg") repeat center top / 112px 112px;
  pointer-events: none;
}

.hero::after,
.seo-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 80%;
  background: linear-gradient(180deg, rgba(245, 239, 228, 0) 0%, rgba(245, 239, 228, 0.55) 45%, var(--linen) 100%);
  pointer-events: none;
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.hero h1 .h1-line,
.hero h1 .h1-accent {
  display: block;
}

.hero h1 .h1-accent {
  color: var(--cinnabar-ink);
}

.hero .lead {
  max-width: 940px;
  margin: 22px auto 0;
  font-size: clamp(18px, 1.5vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 15px;
}

.install-status {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 15px;
}

.install-status:empty {
  display: none;
}

/* Рамка телефона для настоящих экранов приложения. */
.device {
  --device-w: 300px;
  position: relative;
  width: var(--device-w);
  max-width: 100%;
  margin: 0;
  padding: 9px;
  background: #1d1b19;
  border-radius: calc(var(--device-w) * 0.15);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 34px 70px -28px rgba(19, 42, 85, 0.45),
    0 18px 36px -20px rgba(30, 27, 23, 0.35);
}

.device picture {
  display: block;
}

.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top center;
  background: var(--app-bg);
  border-radius: calc(var(--device-w) * 0.15 - 9px);
}

/* Телефон на первом экране «уходит» за нижний край, как продуктовый кадр. */
.device--hero {
  --device-w: 330px;
  margin: clamp(44px, 5vw, 64px) auto calc(var(--device-w) * -0.62);
}

/* ---------------------------------------------------------------- что вы получаете */

.benefits-section {
  z-index: 1;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--wrap);
  margin: clamp(40px, 5vw, 64px) auto 0;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 40px) 0;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.benefit-card h3 {
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.1;
}

.benefit-card > p {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1.45;
}

.benefit-shot {
  margin: clamp(24px, 3vw, 36px) 0 0;
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 36px);
}

.benefit-shot picture {
  display: block;
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid rgba(30, 27, 23, 0.08);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.benefit-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center top;
}

/* ---------------------------------------------------------------- как это выглядит */

.screen-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--wrap);
  margin: clamp(48px, 6vw, 72px) auto 0;
}

.screen-shot {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
}

.device--rail {
  width: 100%;
  padding: 6px;
  border-radius: 26px;
}

.device--rail img {
  border-radius: 21px;
}

.screen-shot figcaption {
  max-width: 180px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

/* ---------------------------------------------------------------- почему можно доверять */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--wrap);
  margin: clamp(40px, 5vw, 64px) auto 0;
  text-align: center;
}

.proof-strip p {
  display: grid;
  align-content: start;
  gap: 8px;
}

.proof-strip strong {
  color: var(--fg);
  font: 700 clamp(32px, 3.2vw, 46px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
}

.proof-strip span {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.4;
}

.trust-note {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--fg-muted);
  font-size: 15px;
  text-align: center;
}

.city-heading h3 {
  font-size: clamp(26px, 3vw, 36px);
}

.city-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--wrap);
  margin: clamp(32px, 4vw, 48px) auto 0;
}

.city-link-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 22px 24px;
  color: var(--fg);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.city-link-card:hover {
  box-shadow: 0 18px 40px -26px rgba(19, 42, 85, 0.45);
  transform: translateY(-2px);
}

.city-link-card b {
  font: 700 24px/1.15 var(--serif);
  letter-spacing: -0.01em;
}

.city-link-card span {
  color: var(--fg-muted);
  font-size: 15px;
}

.city-link-card[aria-current="page"] {
  border-color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}

/* ---------------------------------------------------------------- карточки ценностей и сетки */

.value-grid,
.partner-grid,
.process-grid,
.route-card-grid {
  display: grid;
  gap: 20px;
  max-width: var(--wrap);
  margin: clamp(40px, 5vw, 64px) auto 0;
}

.value-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.partner-grid,
.route-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.value-card,
.partner-pack,
.process-grid article,
.real-route-card,
.answer-grid article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 32px);
  color: var(--fg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.value-card h3,
.partner-pack h3,
.process-grid h3,
.real-route-card h3 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
}

.value-card p,
.partner-pack p,
.process-grid p,
.real-route-card > p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.5;
}

.value-card--link {
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.value-card--link h3::after {
  content: " ›";
  color: var(--accent-text);
}

.value-card--link:hover {
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.process-grid article > b {
  color: var(--accent-text);
  font: 700 28px/1 var(--serif);
}

.process-grid article > .feature-status {
  align-self: flex-start;
  margin-top: auto;
}

/* Пример роли места — пунктиром, как намеченная вышивка: это образец, а не действующий партнёр. */
.pilot-example {
  max-width: 720px;
  margin: clamp(28px, 3vw, 40px) auto 0;
  padding: 24px 28px;
  text-align: center;
  border: 1px dashed rgba(162, 50, 28, 0.5);
  border-radius: var(--radius);
}

.pilot-example .eyebrow {
  margin-bottom: 6px;
}

.pilot-example h3 {
  font-size: clamp(22px, 2vw, 26px);
}

.pilot-example p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--fg-muted);
}

.partner-pack > span {
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.capability-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 36px auto 0;
}

.capability-rail span,
.capability-rail a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: var(--chip-fg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  font-size: 15px;
}

.capability-rail a {
  color: var(--accent-text);
  border-color: currentColor;
}

/* ---------------------------------------------------------------- перечни возможностей с метками */

.cap-list,
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: var(--wrap);
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 0;
  list-style: none;
}

.cap-list--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cap-list li,
.feature-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}

.feature-item {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title status"
    "text text";
  column-gap: 14px;
}

.cap-list b,
.feature-item > b {
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.feature-item > b {
  grid-area: title;
}

.cap-list span,
.feature-item > span:not(.feature-status) {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.45;
}

.feature-item > span:not(.feature-status) {
  grid-area: text;
}

.feature-item > .feature-status {
  grid-area: status;
  align-self: start;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.feature-status--now {
  color: var(--now-fg);
  background: var(--now-bg);
}

/* «Скоро» — пунктиром, как намеченная, ещё не вышитая строчка. */
.feature-status--soon {
  color: var(--soon-fg);
  border: 1px dashed currentColor;
}

.feature-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin-top: 24px;
  color: var(--fg-muted);
  font-size: 15px;
}

.feature-intro {
  padding-bottom: clamp(40px, 5vw, 56px);
}

.cap-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 920px;
  margin: 32px auto 0;
}

.cap-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: var(--chip-fg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
}

.cap-toc a:hover {
  border-color: var(--chip-fg);
}

.cap-more {
  margin-top: 36px;
  text-align: center;
}

/* ---------------------------------------------------------------- маршруты на страницах городов */

.builder-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.builder-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--chip-fg);
  background: var(--card-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}

.builder-tabs button:hover {
  border-color: var(--chip-fg);
}

.builder-tabs button.is-active {
  color: var(--chip-active-fg);
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
}

.live-builder {
  display: grid;
  gap: 24px;
  max-width: 920px;
  margin: clamp(40px, 5vw, 56px) auto 0;
}

.real-route-card .eyebrow {
  margin: 0;
}

.route-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}

.route-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 10px 14px 10px 50px;
  background: var(--bg);
  border-radius: 14px;
  counter-increment: stop;
}

.route-steps li::before {
  content: counter(stop);
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: var(--cinnabar);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.route-steps li b {
  font-weight: 600;
}

.route-steps li span,
.route-steps li small {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.4;
}

.source-note {
  color: var(--fg-muted);
  font-size: 15px;
}

.source-note b {
  color: var(--fg);
}

.route-open {
  margin-top: auto;
}

/* ---------------------------------------------------------------- партнёрам: условия */

.partner-economy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.partner-economy p {
  flex: 1 1 420px;
  color: var(--fg-muted);
}

.partner-economy p b {
  color: var(--fg);
}

/* ---------------------------------------------------------------- вопросы */

.faq-list {
  max-width: 840px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  border-bottom: 1px solid var(--rule);
}

.faq-list details {
  border-top: 1px solid var(--rule);
}

.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: var(--fg);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list details p {
  max-width: 720px;
  padding: 0 0 24px;
  color: var(--fg-muted);
}

/* ---------------------------------------------------------------- одно действие: заявка */

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: 1040px;
  margin: 0 auto;
}

.download-copy h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
}

.download-copy > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: clamp(18px, 1.5vw, 21px);
}

.download-copy > p.download-fine {
  margin-top: 14px;
  font-size: 15px;
}

.signup {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid rgba(30, 27, 23, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -40px rgba(19, 42, 85, 0.45);
}

label {
  font-size: 15px;
  font-weight: 600;
}

.signup label:not(.consent):not(:first-child) {
  margin-top: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(30, 27, 23, 0.24);
  border-radius: 14px;
  font-size: 17px;
}

input::placeholder,
textarea::placeholder {
  color: #776d62;
}

input[aria-invalid="true"] {
  border-color: var(--cinnabar-ink);
  box-shadow: 0 0 0 1px var(--cinnabar-ink);
}

input[type="checkbox"] {
  accent-color: var(--cinnabar);
}

.role-hint {
  color: var(--muted);
  font-size: 15px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  font-weight: 400;
  line-height: 1.4;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
}

.field-error {
  display: none;
  color: var(--cinnabar-ink);
  font-size: 14px;
  font-weight: 600;
}

.field-error.is-visible {
  display: block;
}

.signup button[type="submit"] {
  margin-top: 12px;
  min-height: 52px;
}

.form-status {
  font-size: 15px;
  line-height: 1.45;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  padding: 12px 14px;
  color: var(--cobalt);
  background: rgba(19, 42, 85, 0.08);
  border-radius: 12px;
}

.form-status.is-error,
.form-status.is-fallback {
  padding: 12px 14px;
  color: var(--cinnabar-ink);
  background: rgba(180, 57, 31, 0.08);
  border-radius: 12px;
}

/* ---------------------------------------------------------------- коротко о контактах и подвал */

.privacy-mini {
  padding: 28px var(--gutter);
  color: var(--muted);
  background: var(--linen);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  text-align: center;
}

.privacy-mini strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.privacy-mini p {
  max-width: 760px;
  margin: 0 auto;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  padding: 64px var(--gutter) 48px;
  color: var(--muted);
  background: var(--birch);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 18px;
  right: var(--gutter);
  left: var(--gutter);
  height: 24px;
  background: var(--ochre);
  opacity: 0.45;
  -webkit-mask: url("assets/ornament-band.svg") repeat-x left center / 56px 24px;
  mask: url("assets/ornament-band.svg") repeat-x left center / 56px 24px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font: 700 22px/1.1 var(--serif);
}

.site-footer p {
  max-width: 380px;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer a {
  color: #3f3831;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .footer-attribution {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}

.noscript-note {
  padding: 12px var(--gutter);
  color: var(--ink);
  background: var(--birch);
  font-size: 14px;
  text-align: center;
}

/* ---------------------------------------------------------------- страницы городов, партнёров, возможностей */

.seo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(56px, 6vw, 80px);
  overflow: hidden;
  background: var(--linen);
  isolation: isolate;
}

.seo-hero h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.016em;
}

.seo-hero .lead {
  max-width: 640px;
  margin-top: 22px;
}

.seo-hero .hero-actions {
  justify-content: flex-start;
}

.seo-device {
  --device-w: 290px;
  position: relative;
  width: var(--device-w);
  max-width: 100%;
  margin: 0 0 34px;
  padding: 9px;
  background: #1d1b19;
  border-radius: calc(var(--device-w) * 0.15);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 34px 70px -28px rgba(19, 42, 85, 0.45),
    0 18px 36px -20px rgba(30, 27, 23, 0.35);
}

.seo-device picture {
  display: block;
}

.seo-device img {
  width: 100%;
  height: auto;
  background: var(--app-bg);
  border-radius: calc(var(--device-w) * 0.15 - 9px);
}

.seo-device figcaption {
  position: absolute;
  top: calc(100% + 12px);
  right: -20px;
  left: -20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.seo-proof-panel,
.trust-passport {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.seo-proof-panel {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.seo-proof-panel span,
.trust-passport span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seo-proof-panel b,
.trust-passport b {
  color: var(--fg);
  font: 700 clamp(26px, 2.6vw, 34px) / 1.1 var(--serif);
  letter-spacing: -0.01em;
}

.seo-proof-panel small,
.trust-passport small {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.35;
}

.trust-passport {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: var(--wrap);
  margin: clamp(40px, 5vw, 56px) auto 0;
}

.trust-passport span {
  padding: 22px 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.answer-grid {
  display: grid;
  max-width: 880px;
  margin: 0 auto;
}

.answer-grid h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.answer-grid p {
  color: var(--fg-muted);
  font-size: clamp(18px, 1.5vw, 21px);
}

.ai-answer-section {
  padding-block: clamp(48px, 6vw, 72px);
}

.seo-page .partner-economy,
.seo-page .city-link-grid {
  margin-top: clamp(32px, 4vw, 48px);
}

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 1068px) {
  .screen-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }

  .screen-shot {
    scroll-snap-align: start;
  }

  .partner-grid,
  .route-card-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }

  .cap-list--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }

  .seo-proof-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle__bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.25s var(--ease);
  }

  .site-header.is-open .nav-toggle__bar:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle__bar:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .js .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    padding: 4px max(22px, calc((100% - 1024px) / 2)) 22px;
    overflow-y: auto;
    background: rgba(245, 239, 228, 0.98);
    border-bottom: 1px solid rgba(30, 27, 23, 0.1);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }

  .js .site-header.is-open .nav-links {
    display: flex;
  }

  .js .nav-links a,
  .js .nav-links .nav-download {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 27, 23, 0.1);
    font-size: 17px;
    line-height: 1.4;
  }

  /* Без JavaScript меню показывается строкой ссылок под шапкой. */
  html:not(.js) .site-header {
    flex-wrap: wrap;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .nav-links {
    order: 3;
    flex-wrap: wrap;
    gap: 4px 18px;
    width: 100%;
    padding-bottom: 8px;
  }

  html:not(.js) .nav-links a {
    line-height: 1.8;
  }

  .nav-cta {
    min-height: 30px;
    padding: 0 12px;
  }

  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }

  .feature-list,
  .cap-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }
}

@media (max-width: 734px) {
  body {
    font-size: 16px;
  }

  .section {
    padding-block: clamp(64px, 16vw, 88px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.6vw, 46px);
    line-height: 1.06;
  }

  .hero .lead {
    font-size: 18px;
  }

  .device--hero {
    --device-w: min(280px, 70vw);
    margin-top: 40px;
  }

  .section-heading h2 {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.08;
  }

  .section-heading > p:not(.eyebrow) {
    font-size: 17px;
  }

  .benefit-card h3 {
    font-size: 26px;
  }

  .benefit-card > p {
    font-size: 17px;
  }

  .proof-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .city-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .city-link-card {
    padding: 16px;
  }

  .city-link-card b {
    font-size: 19px;
  }

  .city-link-card span {
    font-size: 14px;
  }

  .cap-list--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "status"
      "text";
  }

  .feature-item > .feature-status {
    justify-self: start;
  }

  .seo-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .seo-hero .hero-actions {
    justify-content: center;
  }

  .seo-hero .lead {
    margin-inline: auto;
  }

  .seo-hero h1 {
    font-size: clamp(34px, 9.6vw, 46px);
  }

  .seo-device {
    --device-w: min(260px, 64vw);
  }

  .seo-proof-panel {
    width: 100%;
    text-align: left;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 19px;
  }

  .nav-cta {
    padding: 0 10px;
    font-size: 12px;
  }

  .seo-proof-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js.reveal-armed .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
