/* tokens.css */
/*
 * Дизайн-токены сайта. Цвета сняты с логотипа: малиновый сердца,
 * оранжевый и жёлтый пламени, почти чёрная спичка.
 *
 * Брейкпоинты в переменные не вынести (медиазапросы их не читают), поэтому
 * они зафиксированы здесь словами и используются в блоках как есть:
 *   720px — телефон / всё остальное (sticky-кнопка, раскладка шапки);
 *   960px — две колонки на странице идеи.
 */
:root {
  --color-bg: #FFF7F4;
  --color-surface: #FFFFFF;
  --color-ink: #2B1B20;
  --color-ink-body: #3D2B31;
  --color-ink-soft: #6B565C;
  --color-ink-faint: #7D6C71;
  --color-line: rgba(43, 27, 32, .08);
  --color-line-strong: rgba(43, 27, 32, .12);

  --color-crimson: #D12A43;
  --color-crimson-deep: #A81D35;
  --color-crimson-darker: #7E1427;
  --color-crimson-light: #E04A5F;
  --color-on-crimson: #FFFFFF;

  --color-rose: #FDE1E4;
  --color-rose-soft: #FDE6E8;
  --color-rose-muted: #F3D3D7;
  --color-rose-number: #D9657B;

  --color-peach: #FFE8D2;
  --color-peach-soft: #FFF0E0;
  --color-peach-ink: #8A4210;
  --color-peach-strong: #B4560F;

  --color-flame: #F28A2E;
  --color-gold: #F6C343;
  --color-match: #1C1416;

  --color-chat-bg: #F6D8DA;
  --color-chat-button: #B8475C;
  --color-chat-command: #2F6FB3;

  --font-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 30px 70px -45px rgba(120, 30, 50, .45);
  --shadow-hover: 0 22px 44px -28px rgba(120, 30, 50, .4);
  --shadow-button: 0 12px 26px -12px rgba(168, 29, 53, .6);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 96px);
}

/* base.css */
/*
 * База документа: шрифты, reset и умолчания тегов.
 * Единственное место, где стили висят на тегах, — блоки этого не делают.
 */

/* Субсеты раздельные: цифры лежат в latin, и без него «2 341 пара»
   отрисовалась бы запасным шрифтом. Оба шрифта вариативные — один файл
   покрывает весь диапазон начертаний */
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-400-cyrillic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-400-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  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: 'Nunito';
  src: url('/assets/fonts/nunito-700-800-cyrillic.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-700-800-latin.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  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;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
}

p,
ol,
ul {
  margin: 0;
}

a {
  color: var(--color-crimson-deep);
}

a:hover {
  color: var(--color-crimson-darker);
}

svg {
  display: block;
  flex: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-flame);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* article.css */
/*
 * Страница идеи: текст в белой карточке и CTA-колонка рядом.
 * От 960px — две колонки, ниже CTA уходит под инструкцию.
 */
.article__layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.article__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.article__intro {
  margin-bottom: 36px;
}

.article__title {
  margin-bottom: 20px;
  font-size: 32px;
  letter-spacing: -.02em;
}

.article__aside {
  flex: 0 0 340px;
}

@media (max-width: 959px) {
  .article__layout {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .article__aside {
    flex: none;
  }
}

@media (max-width: 719px) {
  .article__body {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .article__title {
    font-size: 26px;
  }
}

/* badge.css */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.badge__icon {
  width: 14px;
  height: 14px;
  color: var(--color-flame);
}

.badge--rose {
  background: var(--color-rose-soft);
  color: var(--color-crimson-deep);
}

.badge--white {
  background: var(--color-surface);
  color: var(--color-crimson-deep);
}

.badge--peach {
  padding: 6px 12px;
  background: var(--color-peach-soft);
  color: var(--color-peach-ink);
  font-size: 13px;
}

/* button.css */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button__icon {
  width: 18px;
  height: 18px;
}

.button--primary,
.button--primary:hover {
  background: var(--color-crimson);
  color: var(--color-surface);
}

.button--primary:hover {
  box-shadow: var(--shadow-button);
}

.button--ghost,
.button--ghost:hover {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink);
}

.button--inverse,
.button--inverse:hover {
  background: var(--color-surface);
  color: var(--color-crimson-deep);
}

.button--inverse:hover {
  box-shadow: 0 12px 26px -12px rgba(60, 10, 20, .5);
}

.button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.button--block {
  display: flex;
  width: 100%;
}

/* chat.css */
.chat {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 18px 18px 22px;
  border: 6px solid var(--color-surface);
  border-radius: var(--radius-xl);
  background-color: var(--color-chat-bg);
  background-image: radial-gradient(rgba(255, 255, 255, .6) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  box-shadow: 0 40px 80px -40px rgba(120, 30, 50, .45);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
}

.chat__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
}

.chat__logo {
  width: 22px;
  height: 28px;
}

.chat__who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chat__name {
  font-size: 15px;
  font-weight: 500;
}

.chat__role {
  font-size: 13px;
  color: var(--color-ink-soft);
}

.chat__date {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(43, 27, 32, .6);
  color: var(--color-surface);
  font-size: 13px;
}

.chat__bubble {
  padding: 16px 18px 10px;
  border-radius: var(--radius-m) var(--radius-m) var(--radius-m) 6px;
  background: var(--color-surface);
  font-size: 17px;
  line-height: 1.45;
}

.chat__bubble--reply {
  width: fit-content;
  max-width: 80%;
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 15px;
}

.chat__line + .chat__line {
  margin-top: 14px;
}

.chat__line--strong {
  font-weight: 500;
}

.chat__line--teaser {
  font-style: italic;
}

.chat__command {
  color: var(--color-chat-command);
}

.chat__time {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-ink-faint);
  text-align: right;
}

.chat__buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.chat__button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius-s);
  background: var(--color-chat-button);
  color: var(--color-surface);
  font-size: 16px;
}

@media (max-width: 719px) {
  .chat {
    padding: 14px 14px 18px;
    border-width: 5px;
    border-radius: 28px;
  }

  .chat__bubble {
    font-size: 16px;
  }

  .chat__button {
    font-size: 15px;
  }
}

/* chip.css */
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 1.3;
}

.chip--rose {
  background: var(--color-rose-soft);
  color: var(--color-crimson-deep);
  font-weight: 500;
}

.chip--peach {
  background: var(--color-peach-soft);
  color: var(--color-peach-ink);
}

/* container.css */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

/* crumbs.css */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.crumbs__link {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.crumbs__link:hover {
  color: var(--color-crimson-deep);
}

.crumbs__sep {
  color: #C9B5BA;
}

.crumbs__current {
  color: var(--color-ink);
}

/* cta.css */
/*
 * Призыв в бота: малиновая плашка с белой кнопкой.
 * band — текст слева, кнопка справа (на телефоне — столбиком);
 * panel — узкая колонка с логотипом; final — крупная полоса финала главной.
 */
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--color-crimson);
  color: var(--color-surface);
}

.cta__glow {
  position: absolute;
  top: -140px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-crimson-light);
}

.cta__spark {
  position: absolute;
  right: 28%;
  bottom: 20px;
  width: 32px;
  height: 32px;
  color: var(--color-gold);
}

.cta__body {
  position: relative;
  flex: 1 1 380px;
  min-width: 0;
}

.cta__logo {
  width: 40px;
  height: 50px;
  margin-bottom: 16px;
}

.cta__title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.cta__text {
  max-width: 520px;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-on-crimson);
}

.cta__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta__note {
  font-size: 14px;
  color: var(--color-on-crimson);
  text-align: center;
}

.cta--final {
  padding: clamp(36px, 6vw, 72px);
  border-radius: 40px;
}

.cta--final .cta__glow {
  top: -140px;
  right: -80px;
  width: 380px;
  height: 380px;
}

.cta--final .cta__spark {
  right: 22%;
  bottom: 28px;
  width: 40px;
  height: 40px;
}

.cta--final .cta__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.cta--final .cta__text {
  font-size: 19px;
}

.cta--panel {
  flex-direction: column;
  align-items: stretch;
  padding: 32px;
}

.cta--panel .cta__glow {
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
}

.cta--panel .cta__spark {
  display: none;
}

.cta--panel .cta__body {
  flex: none;
}

.cta--panel .cta__title {
  font-size: 28px;
}

.cta--panel .cta__text {
  font-size: 17px;
}

.cta--panel .cta__actions {
  align-items: stretch;
}

@media (max-width: 719px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    border-radius: 28px;
  }

  .cta__glow,
  .cta--final .cta__glow {
    top: -100px;
    right: -90px;
    width: 220px;
    height: 220px;
  }

  .cta__spark {
    display: none;
  }

  .cta__body {
    flex: none;
  }

  .cta__title,
  .cta--final .cta__title {
    font-size: 28px;
  }

  .cta__text,
  .cta--final .cta__text {
    font-size: 16px;
  }

  .cta__actions {
    align-items: stretch;
  }
}

/* hero.css */
/*
 * Первый экран. home — текст слева, мокап чата справа;
 * catalog и idea — текст с декоративными пятнами в правом верхнем углу.
 */
.hero {
  position: relative;
  padding-block: clamp(16px, 3vw, 40px) clamp(32px, 5vw, 64px);
}

.hero__inner {
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero__crumbs {
  margin-bottom: 24px;
}

.hero__badge {
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.hero__accent {
  color: var(--color-crimson);
}

.hero__lede {
  max-width: 620px;
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 24px;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__blob--rose {
  top: -120px;
  right: -60px;
  width: 420px;
  height: 420px;
  background: var(--color-rose);
}

.hero__blob--peach {
  top: 220px;
  right: 300px;
  width: 240px;
  height: 240px;
  background: var(--color-peach);
}

.hero__spark {
  position: absolute;
  top: 40px;
  right: 180px;
  width: 36px;
  height: 36px;
}

.hero__spark--gold {
  color: var(--color-gold);
}

.hero__spark--flame {
  top: auto;
  right: auto;
  bottom: 60px;
  left: 4%;
  width: 18px;
  height: 18px;
  color: var(--color-flame);
}

/* Главная: две колонки, пятна и искры вокруг мокапа */
.hero--home {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.hero--home .hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero--home .hero__content {
  flex: 1 1 480px;
  min-width: 0;
}

.hero--home .hero__media {
  flex: 1 1 420px;
  min-width: 0;
}

.hero--home .hero__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
}

.hero--home .hero__lede {
  max-width: 520px;
}

.hero--home .hero__blob--rose {
  top: -10px;
  right: auto;
  left: 6%;
  width: 360px;
  height: 360px;
}

.hero--home .hero__blob--peach {
  top: auto;
  right: 4%;
  bottom: -20px;
  width: 240px;
  height: 240px;
}

.hero--home .hero__spark--gold {
  top: 8px;
  right: 14%;
  width: 30px;
  height: 30px;
}

/* Мокап встаёт над пятнами */
.hero__chat {
  z-index: 1;
}

@media (max-width: 719px) {
  .hero__title,
  .hero--home .hero__title {
    font-size: 38px;
    line-height: 1.05;
  }

  .hero__lede {
    font-size: 17px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__note {
    text-align: center;
  }

  .hero__blob--rose {
    top: -40px;
    right: -100px;
    width: 220px;
    height: 220px;
  }

  /* На узком экране персиковое пятно легло бы под лид и мешало читать */
  .hero__blob--peach {
    display: none;
  }

  .hero__spark {
    top: 24px;
    right: 30px;
    width: 24px;
    height: 24px;
  }

  .hero--home .hero__inner {
    gap: 32px;
  }

  .hero--home .hero__blob--rose {
    top: -10px;
    left: -40px;
    width: 260px;
    height: 260px;
  }

  .hero--home .hero__blob--peach {
    display: block;
    right: -50px;
    bottom: 0;
    width: 180px;
    height: 180px;
  }

  .hero--home .hero__spark--gold {
    top: 0;
    right: 24px;
  }
}

.hero__stats {
  margin-top: 36px;
}

@media (max-width: 719px) {
  .hero__stats {
    margin-top: 24px;
  }
}

/* idea-card.css */
.idea-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.idea-card:hover {
  color: var(--color-ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.idea-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--color-rose);
  color: var(--color-crimson);
}

.idea-card__icon--peach {
  background: var(--color-peach);
  color: var(--color-flame);
}

.idea-card__spark {
  width: 20px;
  height: 20px;
}

.idea-card__title {
  font-size: 22px;
  line-height: 1.25;
}

.idea-card__excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.idea-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.idea-card--compact {
  min-height: 0;
  padding: 22px;
}

.idea-card--compact .idea-card__title {
  font-size: 20px;
}

/* idea-grid.css */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.idea-grid__item {
  /* grid, а не block: карточка внутри растягивается на высоту строки */
  display: grid;
  min-width: 0;
}

/* CTA в сетке занимает всю строку */
.idea-grid__item--wide {
  grid-column: 1 / -1;
}

@media (max-width: 719px) {
  .idea-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* logo.css */
/* Размер задаёт элемент блока-родителя; здесь только цвета частей */
.logo__heart,
.logo__dot {
  fill: var(--color-crimson);
}

.logo__flame {
  fill: var(--color-flame);
}

.logo__core {
  fill: var(--color-gold);
}

.logo__match {
  fill: var(--color-match);
}

.logo--inverse .logo__heart,
.logo--inverse .logo__dot {
  fill: var(--color-surface);
}

/* metrika-pixel.css */
/* Пиксель Метрики для посетителей без JS: должен грузиться, но не быть видим */
.metrika-pixel {
  position: absolute;
  left: -9999px;
}

/* page.css */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

.page__main {
  flex: 1;
}

/* Место под закреплённую кнопку: иначе в конце страницы она закрывала бы подвал */
@media (max-width: 719px) {
  .page {
    padding-bottom: 88px;
  }
}

/* pager.css */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: none;
}

.pager__link:hover {
  border-color: var(--color-crimson);
  color: var(--color-crimson-deep);
}

.pager__link--current,
.pager__link--current:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-surface);
}

.pager__link--step {
  padding: 0 18px;
}

.pager__icon {
  width: 18px;
  height: 18px;
}

/* prose.css */
/*
 * Текст из базы: фильтр paragraphs отдаёт голые <p>, классы на них не повесить.
 * Поэтому prose — единственный блок со стилями по тегу внутри.
 */
.prose p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-ink-body);
}

.prose p + p {
  margin-top: 18px;
}

@media (max-width: 719px) {
  .prose p {
    font-size: 17px;
  }
}

/* related.css */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.related__item {
  display: grid;
  min-width: 0;
}

.related__link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related__link:hover {
  color: var(--color-ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.related__num {
  flex: none;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-rose-number);
}

.related__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.related__meta {
  font-size: 14px;
  color: var(--color-ink-soft);
}

@media (max-width: 719px) {
  .related {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .related__link {
    padding: 20px;
  }
}

/* section.css */
.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: 0 var(--section);
}

.section--flush-top {
  padding-top: 0;
}

.section--white {
  background: var(--color-surface);
}

.section__head {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section__head--center {
  text-align: center;
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section__title {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.02em;
}

.section__lede {
  max-width: 560px;
  margin-top: 12px;
  font-size: 18px;
  color: var(--color-ink-soft);
}

.section__head--center .section__lede {
  margin-inline: auto;
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.section__more-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 719px) {
  .section__lede {
    font-size: 16px;
  }

  .section__more {
    justify-content: center;
    width: 100%;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-ink);
  }
}

/* site-footer.css */
.site-footer {
  border-top: 1px solid var(--color-line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 36px;
  font-size: 15px;
  color: var(--color-ink-soft);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo {
  width: 18px;
  height: 23px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__link {
  color: var(--color-ink-soft);
  text-decoration: none;
}

/* site-header.css */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  text-decoration: none;
}

.site-header__brand:hover {
  color: var(--color-ink);
}

.site-header__logo {
  width: 30px;
  height: 38px;
}

.site-header__wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.site-header__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}

.site-header__cta-short {
  display: none;
}

@media (max-width: 719px) {
  .site-header__inner {
    padding-block: 16px;
  }

  .site-header__logo {
    width: 24px;
    height: 30px;
  }

  .site-header__wordmark {
    font-size: 21px;
  }

  .site-header__link,
  .site-header__cta-long {
    display: none;
  }

  .site-header__cta-short {
    display: inline;
  }
}

/* Над декоративными пятнами первого экрана: те заходят под шапку */
.site-header {
  position: relative;
  z-index: 2;
}

/* stats.css */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
}

.stats__tile {
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

.stats__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats__icon {
  width: 26px;
  height: 26px;
  color: var(--color-crimson);
}

.stats__icon--peach {
  width: 24px;
  height: 24px;
  color: var(--color-flame);
}

.stats__value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-crimson);
}

.stats__value--peach {
  color: var(--color-peach-strong);
}

.stats__label {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-ink-soft);
}

@media (max-width: 719px) {
  .stats {
    gap: 12px;
  }

  .stats__tile {
    padding: 18px;
  }

  .stats__value {
    font-size: 36px;
  }

  .stats__label {
    font-size: 14px;
  }
}

/* steps.css */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.steps__item {
  padding: 32px;
  border-radius: 28px;
  background: var(--color-bg);
}

.steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-m);
  background: var(--color-rose);
  color: var(--color-crimson-deep);
}

.steps__icon--peach {
  background: var(--color-peach);
  color: var(--color-peach-strong);
}

.steps__svg {
  width: 32px;
  height: 32px;
}

.steps__label {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-crimson);
}

.steps__title {
  margin-top: 6px;
  font-size: 24px;
}

.steps__text {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

@media (max-width: 719px) {
  .steps {
    gap: 14px;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    padding: 22px;
    border-radius: var(--radius-l);
  }

  .steps__icon {
    grid-row: span 3;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .steps__svg {
    width: 26px;
    height: 26px;
  }

  .steps__label {
    margin-top: 0;
    font-size: 14px;
  }

  .steps__title {
    margin-top: 4px;
    font-size: 20px;
  }

  .steps__text {
    margin-top: 6px;
    font-size: 16px;
  }
}

/* sticky-cta.css */
/*
 * Закреплённая кнопка — только на телефоне: на широких экранах кнопка
 * всегда видна в шапке. Появляется после прокрутки (скрипт в layout).
 */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  background: rgba(255, 247, 244, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform .25s ease;
}

.sticky-cta--visible {
  transform: none;
}

.sticky-cta__button {
  min-height: 54px;
}

@media (min-width: 720px) {
  .sticky-cta {
    display: none;
  }
}

/* try.css */
.try {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.try__progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.try__dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-rose-muted);
  transition: background-color .2s ease;
}

.try__dot--active {
  background: var(--color-crimson);
}

.try__state {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.try__logo {
  width: 56px;
  height: 70px;
  margin-bottom: 16px;
}

.try__title {
  margin-top: 16px;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -.02em;
}

.try__state > .try__title:first-child,
.try__logo + .try__title {
  margin-top: 0;
}

.try__text {
  max-width: 560px;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.try__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-crimson-deep);
}

.try__stat-icon {
  width: 16px;
  height: 16px;
  color: var(--color-crimson);
}

.try__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 719px) {
  .try {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .try__title {
    font-size: 28px;
    line-height: 1.15;
  }

  .try__text {
    font-size: 16px;
  }

  .try__actions {
    flex-direction: column;
    align-self: stretch;
  }
}
