/* Общая тема сайта: крупная типографика, матовые поверхности
   и цвет ночного леса. Подключается после базовых компонентов. */
body {
  --bg: var(--brand-bg);
  --bg-alt: var(--brand-bg-alt);
  --bg-card: var(--brand-surface);
  --text: var(--brand-text);
  --muted: var(--brand-muted);
  --accent: var(--brand-accent);
  --accent-text: var(--brand-on-accent);
  --line: var(--brand-line);
  --nav-bg: var(--brand-nav);
  --maxw: 1120px;
  --radius: 12px;
}
body .nav { border-bottom: 1px solid var(--line); }
body .nav-in { height: 64px; }
body .nav-brand { white-space: nowrap; letter-spacing: -.04em; }
body .nav-links { gap: 24px; }
body .nav-links a { font-size: 13px; }
body section { padding-block: 112px; scroll-margin-top: 64px; }
body h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.045em; text-wrap: balance; }
body h3 { letter-spacing: -.025em; }
body .eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .04em; margin-bottom: 22px; }
body .btn { padding: 14px 25px; font-size: 15px; }
body .btn.ghost { border-color: transparent; padding-inline: 12px; }
body .btn.ghost::after {
  content: ""; display: inline-block; flex: 0 0 1em; width: 1em; height: 1em; margin-left: 10px;
  background: currentColor; mask: var(--icon-arrow-up-right) center / contain no-repeat;
  -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat;
}
body :is(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 5px;
}

/* Первая сцена: название, обещание, затем сам продукт. */
body .hero { padding: 72px 0 104px; background: var(--bg); }
body .hero h1 { margin: 0 auto; }
body .hero-name {
  display: block; font-size: clamp(64px, 11.5vw, 140px);
  font-weight: 600; letter-spacing: -.05em; word-spacing: .035em; line-height: 1.05;
}
body .hero-description {
  display: block; margin-top: 20px; font-size: clamp(22px, 3vw, 34px);
  font-weight: 500; letter-spacing: -.035em;
}
body .hero .lead { max-width: 600px; margin-top: 24px; font-size: 19px; line-height: 1.55; }
body .voice-badge { background: none; padding: 0; max-width: 430px; margin-top: 18px; border-radius: 0; font-size: 13px; }
body .hero .btn-row { margin-top: 26px; }
body .hero .small { font-size: 12px; }
body .phone {
  position: relative; width: 320px; max-width: 100%; margin-top: 54px;
  padding: 7px; border: 1px solid #828b84;
  border-radius: 43px; background: #26352e;
  box-shadow: 0 0 0 3px #c3c9c2, 0 24px 64px rgba(32, 41, 35, .16);
}
body .phone-screen { border-radius: 35px; padding-top: 32px; background: #e3e9de; }
body .phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 5px; border-radius: 8px; background: #26352e;
}
body .bubble { box-shadow: none; }
body .bubble.me { background: #caddc6; }

/* Возможности читаются как единый набор, без девяти отдельных коробок. */
body #features .center { text-align: left; }
body #features h2 { max-width: 680px; }
body #features .grid { gap: 0 40px; margin-top: 48px; }
body .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 30px 0; }
body #features .card { border-top: 1px solid var(--line); }
body .card .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 28px; }
body .ico svg { stroke-width: var(--brand-icon-stroke); }
body .ico svg { display: block; width: 100%; height: 100%; }
body .card h3 { font-size: 22px; margin-bottom: 14px; }
body .card p { font-size: 16px; line-height: 1.6; }
body .pain { gap: 0 36px; padding-block: 32px; }
body .pain .q { font-size: 24px; font-weight: 500; }
body .pain .a { font-size: 16px; line-height: 1.65; }

/* Голос ночью — смысловой и цветовой акцент страницы. */
body .voice-section {
  --text: var(--brand-voice-text); --muted: var(--brand-voice-muted);
  --accent: var(--brand-voice-accent); --accent-text: var(--brand-voice-bg);
  background: var(--brand-voice-bg); color: var(--text); padding-block: 132px;
}
body .voice-section h2 { font-size: clamp(42px, 6vw, 72px); line-height: 1.06; }
body .voice-section .lead { font-size: 22px; line-height: 1.5; }
body .voice-section .eyebrow { color: var(--brand-voice-muted); }
body .voice-section a:not(.btn) { text-decoration: underline; text-underline-offset: 4px; }
body .privacy-section .card { border-top: 1px solid var(--line); }
body .privacy-section .grid { gap: 0 36px; }
body .plans { gap: 0; align-items: stretch; background: var(--bg-card); border-radius: 16px; overflow: hidden; }
body .plan { padding: 34px; border: 0; border-radius: 0; background: transparent; }
body .plan + .plan { border-left: 1px solid var(--line); }
body .plan.featured { box-shadow: none; background: #e2e9de; }
body .plan .price { font-size: 46px; letter-spacing: -.055em; }
body .badge { background: none; color: var(--accent); padding: 0; margin-bottom: 16px; }
body #faq h2 { text-align: left; }
body details { padding-block: 25px; }
body details summary { font-size: 19px; letter-spacing: -.015em; }
body details summary::after { color: var(--muted); }
body #contact { background: var(--bg); border-top: 1px solid var(--line); }
body #contact .lead { font-size: 21px; }
body input[type=text], body textarea { background: var(--bg-alt); border-color: transparent; border-radius: 8px; }
body footer { padding-top: 36px; }

/* Общие страницы: статьи и документы сохраняют удобную длину строки. */
body .doc { padding-block: 76px 96px; }
body .doc h1 { letter-spacing: -.04em; text-wrap: balance; }
body .doc .card h3 { margin-top: 0; }
body .doc .card:hover { text-decoration: none; }
body .doc .card:hover h3 { color: var(--accent); }
body .table-scroll { max-width: 100%; overflow-x: auto; margin: 22px 0; }
body .table-scroll table { margin: 0; }
body .table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body .step-number { font-size: 17px; font-variant-numeric: tabular-nums; }
body .plans.four { gap: 0; max-width: 520px; }
body .plans.four .plan { display: flex; flex-direction: column; }
body .plans.four .plan ul { margin-bottom: 22px; }
body .plans.four .plan .btn { margin-top: auto; }
body .plans.four .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
body .plans.four .price { font-size: clamp(30px, 3vw, 40px); white-space: nowrap; }
body .plans.four .btn.ghost { border-color: var(--line); }
body .plans.four .btn.ghost::after { content: none; }
@media (min-width: 560px) {
  body .plans.four { max-width: 800px; }
  body .plans.four .plan { padding: 28px; }
  body .plans.four .plan + .plan { border-top: 0; }
  body .plans.four .plan:nth-child(even) { border-left: 1px solid var(--line); }
  body .plans.four .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 880px) {
  body .plans.four { max-width: none; }
  body .plans.four .plan { padding: 28px 22px; }
  body .plans.four .plan + .plan { border-top: 0; border-left: 1px solid var(--line); }
}

@media (prefers-color-scheme: dark) {
  body {
    --bg: var(--brand-dark-bg); --bg-alt: var(--brand-dark-bg-alt); --bg-card: var(--brand-dark-surface);
    --text: var(--brand-dark-text); --muted: var(--brand-dark-muted); --line: var(--brand-dark-line);
    --accent: var(--brand-dark-accent); --accent-text: var(--brand-dark-on-accent);
    --nav-bg: var(--brand-dark-nav);
  }
  body .phone-screen { background: #23372b; }
  body .bubble { background: #33483a; color: #f0f1e9; }
  body .bubble.me { background: #4a634b; }
  body .plan.featured { background: #304333; }
}
@media (max-width: 900px) {
  body .nav-links { gap: 16px; }
  body .nav-links .hide-sm { display: none; }
}
@media (max-width: 860px) {
  body .plans { max-width: 520px; }
  body .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body .pain { gap: 12px; }
}
@media (max-width: 680px) {
  body section { padding-block: 76px; }
  body .nav-in { height: 60px; gap: 12px; padding-inline: 18px; }
  body .nav-links { gap: 14px; }
  body .nav-links a:last-child { display: none; }
  body .hero { padding: 54px 0 80px; }
  body .hero-name { font-size: clamp(58px, 12vw, 80px); }
  body .hero .lead { font-size: 17px; max-width: 440px; }
  body .hero .lead br { display: none; }
  body .hero .btn-row { gap: 8px; }
  body .hero .btn { font-size: 14px; padding-inline: 18px; }
  body .phone { width: 290px; margin-top: 44px; }
  body .voice-section { padding-block: 90px; }
  body .voice-section .lead { font-size: 19px; }
  body #features .grid { gap: 0 26px; }
  body .card .ico { margin-bottom: 20px; }
  body .plan { padding: 30px; }
}
