/* Медицинский ассистент для Windows — стили лендинга. Единственный внешний ресурс — Google Fonts (подключается в HTML). */
:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #edf2f7;
  --ink: #16203a;
  --muted: #515c76;
  --faint: #6f7a93;
  --line: #d9e1ea;
  --navy: #1a1f3d;
  --navy-2: #272d55;
  --on-navy: #ffffff;
  --mint: #1fa394;
  --mint-text: #0f8577;
  --mint-soft: #e2f4f1;
  --mint-line: #b9e3dc;
  --alert: #b42318;
  --alert-soft: #fdecea;
  --ok: #1d7a4b;
  --card: #ffffff;
  --card-ink: #1b1f2e;
  --card-line: #d5dde6;
  --btn-bg: var(--navy);
  --btn-ink: #ffffff;
  --btn-bg-hover: var(--navy-2);
  --focus: #1fa394;
  --shadow: 0 1px 2px rgba(26, 31, 61, .06), 0 18px 44px -18px rgba(26, 31, 61, .25);
  --shadow-s: 0 1px 2px rgba(26, 31, 61, .08);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1329; --surface: #171c38; --surface-2: #1f2547; --ink: #e9edf5; --muted: #b4bcd0; --faint: #8e97b0;
    --line: #2b3357; --navy: #1a1f3d; --navy-2: #272d55; --on-navy: #ffffff;
    --mint: #4fd1c1; --mint-text: #6fdccf; --mint-soft: #15302f; --mint-line: #255a55;
    --alert: #ff8a80; --alert-soft: #3a1f1c; --ok: #5fd39a;
    --card: #f3f5f8; --card-ink: #1b1f2e; --card-line: #cfd6df;
    --btn-bg: #4fd1c1; --btn-ink: #0f1329; --btn-bg-hover: #6fdccf; --focus: #6fdccf;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 22px 48px -18px rgba(0, 0, 0, .7);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1329; --surface: #171c38; --surface-2: #1f2547; --ink: #e9edf5; --muted: #b4bcd0; --faint: #8e97b0;
  --line: #2b3357; --navy: #1a1f3d; --navy-2: #272d55; --on-navy: #ffffff;
  --mint: #4fd1c1; --mint-text: #6fdccf; --mint-soft: #15302f; --mint-line: #255a55;
  --alert: #ff8a80; --alert-soft: #3a1f1c; --ok: #5fd39a;
  --card: #f3f5f8; --card-ink: #1b1f2e; --card-line: #cfd6df;
  --btn-bg: #4fd1c1; --btn-ink: #0f1329; --btn-bg-hover: #6fdccf; --focus: #6fdccf;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 22px 48px -18px rgba(0, 0, 0, .7);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
html.is-locked, html.is-locked body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.85rem); line-height: 1.1; }  /* заголовок чуть меньше по просьбе заказчика */
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p, ul, ol { margin: 0; }
p + p { margin-top: .8em; }
a { color: var(--mint-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r-s); box-shadow: var(--shadow); }
.skip:focus { left: 10px; }

section { padding: clamp(20px, 1.75vw + 8px, 36px) 0; }  /* отступы между блоками уменьшены на 65 % по просьбе заказчика */
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: none; margin-bottom: clamp(28px, 3vw, 48px); text-align: center; }  /* заголовки разделов и вводные абзацы — по центру, на всю ширину (просьба заказчика) */
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.12rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-mint { background: var(--mint-soft); color: var(--mint-text); border-color: var(--mint-line); }
.btn-mint:hover { background: var(--mint-line); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.05; display: block; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .78rem; color: var(--faint); margin-top: 2px; letter-spacing: .01em; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .98rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav:not(.is-open) + .header-tools { margin-left: auto; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--line); }
.lang:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: block; }
}
.header-cta { display: none; }
.nav-toggle { width: 42px; height: 42px; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .nt-close { display: none; }
.nav-toggle[aria-expanded="true"] .nt-open { display: none; }
.nav-toggle[aria-expanded="true"] .nt-close { display: block; }
.nav.is-open {
  display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 12px 16px 18px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px;
}
.nav.is-open a { padding: 12px 8px; border-radius: 8px; font-size: 1.1rem; color: var(--ink); }
.nav.is-open a:hover { background: var(--surface-2); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .header-tools { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 5vw, 88px) 0 clamp(17px, 1.75vw, 34px); background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 70%; pointer-events: none;
  background: radial-gradient(ellipse at 60% 60%, color-mix(in srgb, var(--mint) 18%, transparent) 0%, transparent 65%);
}
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-lead { margin-top: 22px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: .95rem; max-width: 36em; }
.hero-note a { color: var(--mint-text); }
.pulse { width: min(100%, 420px); height: 28px; margin-top: 26px; color: var(--mint); opacity: .9; }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
}

/* ---------- patient card (hero) ---------- */
.sheet-box { position: relative; }
.sheet-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.sheet-tabs button { border: 0; background: transparent; color: var(--muted); padding: .55em 1em; border-radius: 9px; font-weight: 600; font-size: .95rem; cursor: pointer; min-height: 40px; }
.sheet-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.sheet {
  position: relative; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line);
  border-radius: var(--r-m); padding: 22px 24px 26px; box-shadow: var(--shadow); font-size: .97rem; line-height: 1.5;
  background-image: linear-gradient(to bottom, transparent 0 calc(100% - 1px), transparent);
}
.sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1.5px solid var(--navy); }
.sheet-top b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.sheet-top span { color: #5e6680; font-size: .88rem; }
.sheet-grid { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin-top: 14px; }
.sheet-grid dt { color: #5e6680; font-size: .9rem; }
.sheet-grid dd { margin: 0; font-weight: 500; }
.sheet-sect { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--card-line); }
.sheet-sect h3 { font-size: .82rem; letter-spacing: .02em; color: #5e6680; font-weight: 600; margin-bottom: 6px; }
.sheet-sect table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sheet-sect td { padding: 3px 0; border-bottom: 1px solid #e6ebf1; }
.sheet-sect td:last-child { text-align: right; color: #5e6680; }
.sheet-sect .low { color: var(--alert); font-weight: 600; }
.pd { position: relative; display: inline; }
.pd .tok { display: none; font-family: "Consolas", "Cascadia Mono", ui-monospace, monospace; font-size: .86em; background: #dff3ef; color: #0d6b60; border: 1px solid #a9ddd3; border-radius: 6px; padding: 0 .45em; white-space: nowrap; vertical-align: 1px; }
.sheet.is-masked .pd .real { display: none; }
.sheet.is-masked .pd .tok { display: inline-block; animation: tokIn .38s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes tokIn { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
.sheet-stamp { position: absolute; right: 18px; top: 60px; width: 108px; height: 108px; opacity: 0; transform: rotate(-14deg) scale(.6); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.3); pointer-events: none; }
.sheet.is-masked .sheet-stamp { opacity: .92; transform: rotate(-12deg) scale(1); }
.sheet-caption { margin-top: 14px; font-size: .92rem; color: var(--faint); max-width: 36em; }
@media (max-width: 480px) { .sheet { padding: 18px 16px 20px; } .sheet-stamp { display: none; } .sheet-grid { grid-template-columns: 1fr; gap: 2px; } .sheet-grid dd { margin-bottom: 6px; } }

/* ---------- pains ---------- */
.pains { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pain { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pain h3 { font-size: 1.12rem; color: var(--ink); }
.pain .fix { color: var(--muted); position: relative; padding-left: 26px; }
.pain .fix::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
@media (min-width: 760px) {
  .pain { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
}

/* ---------- features ---------- */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: var(--mint-text); display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); max-width: 40em; }
.plan-tag { display: inline-block; margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: .15em .7em; }
@media (min-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; position: relative; }
.step { counter-increment: step; position: relative; padding-left: 60px; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--on-navy); font: 600 1.1rem/42px var(--font-display); text-align: center;
}
:root[data-theme="dark"] .step::before { background: var(--mint); color: #0f1329; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step::before { background: var(--mint); color: #0f1329; } }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 62px; }
  .step::before { top: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -22px; height: 1px; border-top: 2px dashed var(--line); }
}

/* ---------- security ---------- */
.sec-grid { display: grid; gap: 36px; align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.sec-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.sec-list svg { width: 26px; height: 26px; color: var(--mint-text); margin-top: 2px; }
.sec-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.sec-list p { color: var(--muted); }
.callout { background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: var(--r-m); padding: 18px 20px; color: var(--ink); }
.callout + .callout { margin-top: 14px; }
.callout strong { display: block; margin-bottom: 6px; }
.callout.alert { background: var(--alert-soft); border-color: color-mix(in srgb, var(--alert) 35%, transparent); }
@media (min-width: 900px) { .sec-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

/* ---------- audiences ---------- */
.who { display: grid; gap: 24px; }
.who-item { padding: 26px 0 0; border-top: 3px solid var(--navy); }
:root[data-theme="dark"] .who-item { border-top-color: var(--mint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who-item { border-top-color: var(--mint); } }
.who-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin-bottom: 10px; }
.who-item p { color: var(--muted); }
.who-item ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink); }
.who-item li { padding-left: 1.4em; position: relative; }
.who-item li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .65em; height: .35em; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.who-item .plan-link { display: inline-block; margin-top: 16px; font-weight: 600; }
@media (min-width: 820px) { .who { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- pricing ---------- */
.period-switch { display: inline-flex; align-items: center; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 0 28px; position: relative; }
.period-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.period-switch label { position: relative; display: block; cursor: pointer; }
.period-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.period-switch span { display: block; padding: .6em 1.1em; border-radius: 9px; font-weight: 600; color: var(--muted); min-height: 40px; }
.period-switch span small { font-weight: 500; color: var(--mint-text); margin-left: 6px; }
.period-switch input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.period-switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.plans { display: grid; gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px 26px; display: flex; flex-direction: column; position: relative; }
.plan.is-featured { border: 2px solid var(--mint); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -14px; left: 22px; background: var(--mint); color: #0f1329; font-size: .82rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.plan-for { color: var(--faint); font-size: .95rem; margin-top: 4px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price [data-price] { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; line-height: 1; letter-spacing: -.01em; }
.price small { color: var(--muted); font-size: 1rem; }
.price-alt { margin-top: 6px; color: var(--faint); font-size: .92rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; font-size: .98rem; }
.plan li { padding-left: 1.6em; position: relative; }
.plan li::before { content: ""; position: absolute; left: .15em; top: .62em; width: .7em; height: .38em; border-left: 2px solid var(--mint-text); border-bottom: 2px solid var(--mint-text); transform: rotate(-45deg); }
.plan li.quota { color: var(--muted); }
.plan li.quota::before { border: 0; width: .45em; height: .45em; background: var(--faint); border-radius: 50%; top: .55em; transform: none; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-note { display: block; margin-top: 2px; color: var(--faint); font-size: .88rem; line-height: 1.4; }
.plan-custom { border-style: dashed; }
.price .price-custom { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.05; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } .plan { padding: 26px 22px; } }
.pricing-notes { display: grid; gap: 14px; margin-top: 30px; color: var(--muted); font-size: .97rem; }
.pricing-notes strong { display: block; color: var(--ink); margin-bottom: 2px; }
.pricing-notes > div { padding: 16px 18px; border-left: 3px solid var(--mint-line); background: var(--surface); border-radius: 0 var(--r-s) var(--r-s) 0; }
@media (min-width: 820px) { .pricing-notes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- faq ---------- */
.faq { max-width: none; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.12rem; font-weight: 600; display: inline; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s, top .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: none; }

/* ---------- download ---------- */
.download { display: grid; gap: 28px; align-items: center; }
.dl-card { background: var(--navy); color: var(--on-navy); border-radius: var(--r-l); padding: 30px 28px; position: relative; overflow: hidden; }
.dl-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mint) 40%, transparent), transparent 70%); pointer-events: none; }
.dl-card h3 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.dl-card p { color: #cdd3e6; margin-top: 10px; }
.dl-card .btn-primary { background: var(--mint); color: #0f1329; margin-top: 22px; }
.dl-card .btn-primary:hover { background: #6fdccf; }
.dl-meta { margin-top: 14px; font-size: .92rem; color: #aeb6d0; }
.dl-meta a { color: #cfe9e5; }
.req { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.req li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.req svg { width: 22px; height: 22px; color: var(--mint-text); margin-top: 2px; }
.req b { color: var(--ink); display: block; }
@media (min-width: 900px) { .download { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- final CTA ---------- */
.final .wrap { display: grid; gap: 22px; }
.final h2 { max-width: none; text-align: center; }
.final > .wrap > p:not(.disclaimer) { text-align: center; }
.final .hero-actions { justify-content: center; }
.final p { color: var(--muted); max-width: none; }
.disclaimer { padding: 18px 20px; border-radius: var(--r-m); background: var(--alert-soft); border: 1px solid color-mix(in srgb, var(--alert) 30%, transparent); color: var(--ink); font-size: .97rem; max-width: none; }
.disclaimer b { color: var(--alert); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }  /* на мобильных — две колонки (просьба заказчика) */
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid h2 { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--faint); }
.cc-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.cc-link:hover { color: var(--ink); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; } .footer-grid > div:first-child { grid-column: auto; } }

/* ---------- buy dialog ---------- */
.buy { border: 0; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.buy::backdrop { background: rgba(10, 14, 30, .55); backdrop-filter: blur(2px); }
.buy form { padding: 24px 22px 22px; display: grid; gap: 18px; margin: 0; }
.buy-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.buy-head h2 { font-size: 1.5rem; }
.buy fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.buy legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice-row { display: grid; gap: 8px; }
.choice-row.three { grid-template-columns: repeat(3, 1fr); }
.choice-row.two { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--bg); }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice b { display: block; font-weight: 600; }
.choice span { display: block; font-size: .86rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--mint); background: var(--mint-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.field input:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--mint-soft); }
.hint { margin-top: 6px; font-size: .88rem; color: var(--faint); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mint); }
.form-error { display: none; background: var(--alert-soft); border: 1px solid color-mix(in srgb, var(--alert) 45%, transparent); color: var(--ink); border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.form-error.is-on { display: block; }
.buy-small { font-size: .88rem; color: var(--faint); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.buy-total b { font: 600 1.6rem/1 var(--font-display); }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.buy-actions .btn-primary { flex: 1 1 220px; }
@media (max-width: 480px) { .choice-row.three { grid-template-columns: 1fr; } }

/* ---------- cookie banner (как на myneurodoctor.ai, в стиле лендинга) ---------- */
.cc { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin: 0 auto; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 24px 60px -16px rgba(10, 14, 30, .45); padding: 18px 20px; font-size: .95rem; line-height: 1.45; }
.cc h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cc p { color: var(--muted); margin-bottom: 12px; }
.cc-cats { display: grid; gap: 8px; margin-bottom: 14px; }
.cc-cat { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.cc-cat input { margin: 3px 0 0; grid-row: 1 / span 2; width: 18px; height: 18px; accent-color: var(--mint); }
.cc-cat input[disabled] { cursor: not-allowed; opacity: .7; }
.cc-name { font-weight: 600; color: var(--ink); }
.cc-desc { font-size: .88rem; color: var(--faint); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) { .cc-actions .btn { flex: 1 1 auto; } }

/* ---------- pay page / 404 ---------- */
.pay-main { padding: 48px 0 80px; }
.pay-card { max-width: 700px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px 26px; box-shadow: var(--shadow); }
.pay-card h1, .pay-card .pay-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin-bottom: 14px; }
.pay-card h3 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; margin-top: 26px; }
.pay-card p { color: var(--muted); }
.pay-state[hidden] { display: none; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--mint); animation: spin .9s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-line { margin-top: 12px; font-size: .95rem; color: var(--faint); min-height: 1.4em; }
.key-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; padding: 16px; border-radius: var(--r-m); background: var(--mint-soft); border: 1px solid var(--mint-line); }
.key-box output { font: 700 clamp(1.3rem, 1rem + 1.6vw, 1.9rem)/1.2 "Consolas", "Cascadia Mono", ui-monospace, monospace; letter-spacing: .06em; color: var(--ink); word-break: break-all; flex: 1 1 260px; }
.howto { margin: 10px 0 0; padding-left: 1.3em; color: var(--muted); display: grid; gap: 6px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
