/* Публичный сайт. Системные шрифты (без загрузки со сторонних серверов),
   крупный базовый размер для пожилых пользователей, контраст не ниже WCAG AA. */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe8;
  --card: #ffffff;
  --text: #1c2523;
  --muted: #4f5b58;
  --brand: #0f5c55;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0ed;
  --line: #d9d5ca;
  --warn-bg: #fff4d6;
  --warn-line: #b7791f;
  --focus: #b4530a;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121816;
    --bg-alt: #19211f;
    --card: #1f2826;
    --text: #e9efed;
    --muted: #b3c0bc;
    --brand: #5cc2b4;
    --brand-ink: #0b1513;
    --brand-soft: #1d3430;
    --line: #34413e;
    --warn-bg: #3a2e12;
    --warn-line: #e0a63a;
    --focus: #f0a35c;
    color-scheme: dark;
  }
}

*,
*::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(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--brand); color: var(--brand-ink); border-radius: 8px; }
.skip:focus { top: 8px; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; min-width: 0; }
.brand span { overflow-wrap: anywhere; }
.logo { color: var(--brand); flex: none; }
.top nav { margin-left: auto; }
.top nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; }
.btn-small { padding: 8px 14px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) {
  .top { position: static; }
  .top nav { order: 3; width: 100%; margin-left: 0; }
  .btn-small { margin-left: auto; }
}

/* Блоки */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.lead { font-size: 1.2rem; max-width: 46em; }
.tag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .9rem; }
.section { padding: 56px 0; }
.alt { background: var(--bg-alt); }

.btn, .waitlist button {
  display: inline-block; padding: 14px 24px; min-height: 48px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover, .waitlist button:hover { filter: brightness(1.08); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .4em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.ticks.no li::before { content: "✕"; color: var(--warn-line); }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.offers .card { display: flex; flex-direction: column; }
.offers .more { margin-top: auto; font-weight: 600; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; }

.two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

/* Форма листа ожидания */
.waitlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 90px; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 6px; }
.waitlist input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 14px; margin-bottom: 18px; font: inherit; color: var(--text);
  background: var(--bg); border: 2px solid var(--line); border-radius: 10px;
}
.waitlist input[type="email"]:focus { border-color: var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 3px; accent-color: var(--brand); }
.check label { font-weight: 400; font-size: .95rem; margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Юридические страницы, FAQ, ошибки */
.draft-banner { background: var(--warn-bg); border-left: 5px solid var(--warn-line); padding: 14px 18px; border-radius: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; }
details p { margin: 10px 0 0; }
.reason { scroll-margin-top: 90px; display: none; background: var(--warn-bg); border-left: 5px solid var(--warn-line); padding: 14px 18px; border-radius: 8px; }
.reason:target { display: block; }
.reason:target ~ .reason-default { display: none; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .95rem; }
.disclaimer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.foot-links { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px 22px; }
