/* Zyna — лендинг. Без сборки, системные шрифты. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fbfaf6;
  --ink: #16181d;
  --ink-2: #3d4048;
  --muted: #6b6d73;
  --line: #d9d3c6;
  --accent: #c4562b;
  --accent-ink: #9c3f1b;
  --ok: #2f6b4f;
  --bubble-out: #e3eedf;

  --serif: "PT Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --radius: 14px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
a { color: inherit; }

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

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.kicker { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.lead--narrow { margin-top: 14px; }
.muted { color: var(--muted); font-size: 15px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; margin-top: 22px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: var(--ink); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244, 241, 234, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); }

/* Первый экран */
.hero { padding: 64px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 32px; }
.hero__note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Макет переписки */
.chat { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 24px 48px -28px rgba(22,24,29,.35); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; flex: none; }
.chat__name { font-weight: 600; font-size: 15px; }
.chat__status { font-size: 13px; color: var(--muted); }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--paper-2); }
.msg { position: relative; max-width: 86%; padding: 9px 13px 20px; border-radius: 14px; font-size: 15px; line-height: 1.42; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--muted); }
.msg--out { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.msg--in { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; min-width: 120px; }
.chat__event { align-self: center; margin-top: 6px; }
.chat__event span { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ok); background: #fff; border: 1px solid #cfe0d4; border-radius: 999px; padding: 4px 12px; }
.chat figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* Проверенные цифры */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; background: var(--card); }
.proof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 22px; align-items: start; }
.stat__num { font-family: var(--serif); font-size: clamp(48px, 6vw, 68px); line-height: 1; font-weight: 700; color: var(--accent); }
.stat p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.proof__caveat { font-size: 15px; color: var(--muted); padding-left: 18px; border-left: 2px solid var(--accent); }

/* Секции */
.section { padding: 88px 0; scroll-margin-top: 64px; }
.section--tight { padding: 0 0 88px; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; border-top: 1px solid var(--ink); }
.step { padding: 22px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__n { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); margin-bottom: 14px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

.channels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.channels__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.channels__list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.channels__list strong { font-size: 17px; }
.channels__list span { font-size: 15px; color: var(--muted); }

/* Пилот */
.pilot { background: var(--ink); color: var(--paper); }
.pilot .eyebrow { color: #e9a07f; }
.pilot__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; margin-top: 36px; align-items: start; }
.price { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 28px; }
.price__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price__row:first-child { padding-top: 0; }
.price__label { color: var(--muted); font-size: 15px; }
.price__value { font-family: var(--serif); font-weight: 700; font-size: 28px; text-align: right; line-height: 1.15; }
.price__value small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.price__guarantee { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: #f6e3d9; color: #5a2511; font-size: 15px; }

.pilot__explain h3 { color: var(--paper); }
.pilot__explain h3 + p, .pilot__explain h3 + ul { margin-top: 12px; }
.pilot__explain h3:not(:first-child) { margin-top: 36px; }
.pilot__explain p { color: #c9c6be; }
.formula { margin-top: 16px !important; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--paper) !important; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #dedbd3; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid #e9a07f; border-bottom: 2px solid #e9a07f; transform: rotate(-45deg); }
.pilot .muted { margin-top: 28px; color: #9e9b94; }

/* Правила */
.rules__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rules__grid > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules__grid dt { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.rules__grid dd { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* Вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* Финал */
.final { padding: 0 0 88px; }
.final .final__box {
  background: var(--accent); color: #fff; border-radius: 24px;
  padding: 56px clamp(24px, 6vw, 72px);
  max-width: calc(1140px - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
.final h2 { max-width: 14em; }
.final p { margin: 16px 0 28px; font-size: 18px; max-width: 34em; color: #fff4ee; }

/* Футер */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.foot__row { display: grid; grid-template-columns: 1fr auto auto; gap: 28px 48px; align-items: start; }
.foot__brand { display: flex; flex-direction: column; gap: 4px; }
.foot__brand strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.foot__links, .foot__contact { display: flex; flex-direction: column; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Планшет */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__row { justify-content: space-between; }
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .chat { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 0 24px; }
  .step, .step + .step { padding: 20px 0 28px; border-left: 0; border-top: 1px solid var(--ink); }
  .channels, .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pilot__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .rules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__caveat { grid-column: 1 / -1; }
  .foot__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

/* Телефон */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .section--tight, .final { padding-bottom: 64px; }
  .steps, .channels__list, .rules__grid, .proof__grid, .foot__row { grid-template-columns: minmax(0, 1fr); }
  .proof__grid { gap: 24px; }
  .hero__cta .btn { width: 100%; }
  .price { padding: 22px 18px; }
  .price__value small { max-width: 12em; margin-left: auto; }
  .price__value { font-size: 24px; }
  .msg { font-size: 14px; }
  .final .final__box { padding: 40px 22px; border-radius: 18px; }
  .rules__grid > div { padding: 20px 18px; }
}
