/* АллергоДневник — сайт. Фарфор, чернила и «тепло» симптомов. */
@font-face { font-family: Golos; font-weight: 400; font-display: swap; src: url(/fonts/golos-400.woff2) format("woff2"); }
@font-face { font-family: Golos; font-weight: 600; font-display: swap; src: url(/fonts/golos-600.woff2) format("woff2"); }
@font-face { font-family: Golos; font-weight: 800; font-display: swap; src: url(/fonts/golos-800.woff2) format("woff2"); }

:root {
  --bg: #E9EDF2;
  --bg-2: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #1A2140;
  --ink-2: #4E5876;
  --faint: #8A93AB;
  --line: #D6DCE6;
  --heat-1: #FFC53D;
  --heat-2: #FF8F2E;
  --heat-3: #F0384C;
  --mint: #1FA67E;
  --btn: #1A2140;
  --on-btn: #FFFFFF;
  --glow: rgba(255, 255, 255, .95);
  --shadow: 0 24px 60px -30px rgba(26, 33, 64, .45);
  --font: Golos, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
:root.dark {
  --bg: #0E1120;
  --bg-2: #13172A;
  --surface: #181C31;
  --ink: #EEF1F8;
  --ink-2: #A9B0CA;
  --faint: #6E7593;
  --line: #262C4A;
  --btn: #EEF1F8;
  --on-btn: #151A33;
  --glow: rgba(46, 56, 102, .9);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--heat-2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--on-btn); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .hdr .btn-sm { display: none; }
  .mnav.open { display: grid; gap: 2px; padding: 8px 0 16px; }
  .mnav a { text-decoration: none; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--line); }
}

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 18px; text-decoration: none; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--btn); color: var(--on-btn); box-shadow: 0 16px 30px -18px rgba(26, 33, 64, .9); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-sm { min-height: 42px; padding: 0 16px; border-radius: 14px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 400; opacity: .7; line-height: 1.1; }
.btn .two { line-height: 1.15; text-align: left; }
.soon { display: none; font-size: 14px; color: var(--ink-2); margin-top: 12px; }
body[data-soon="1"] .soon { display: block; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 12px; min-height: min(86vh, 780px); }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em; margin: 0 0 22px; }
.hero h1 .warm { background: linear-gradient(100deg, var(--heat-2), var(--heat-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 30em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.facts li { font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.stage { position: relative; height: min(80vh, 720px); min-height: 460px; }
.stage::before { content: ""; position: absolute; inset: 6% 4% 0; background: radial-gradient(closest-side, var(--glow), transparent 75%); pointer-events: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; touch-action: pan-y; }
.stage.live canvas { opacity: 1; }
.stage .fallback { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(78%, 460px); transition: opacity .6s; }
.stage.live .fallback { opacity: 0; pointer-events: none; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero-lines path { stroke: var(--ink); stroke-width: 1.3; fill: none; opacity: .65; }
.hero-lines circle { fill: var(--ink); opacity: .75; }
.zl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.2; opacity: 0; transition: opacity .35s; white-space: nowrap; z-index: 2; }
.zl.on { opacity: 1; }
.zl i { width: 11px; height: 11px; border-radius: 50%; background: var(--sev, var(--heat-2)); flex: none; }
.zl b { display: block; font-weight: 600; }
.zl span { color: var(--ink-2); font-size: 13px; }
.stage:not(.live) .zl { display: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .stage { height: 64vh; min-height: 400px; margin-top: -10px; }
  .zl { font-size: 13px; padding: 6px 10px; }
}

/* ---------- разделы ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 130px) 0; }
.sec h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; max-width: 16em; }
.sec .intro { color: var(--ink-2); font-size: 19px; max-width: 34em; margin: 0 0 48px; }

/* три касания — это последовательность, поэтому с номерами */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: st; }
.step { counter-increment: st; }
.step .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font-weight: 800; margin-bottom: 14px; }
.step .num::before { content: counter(st); }
.step h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.step p { margin: 0 0 22px; color: var(--ink-2); }
.phone { position: relative; border-radius: 34px; padding: 9px; background: #0B0D16; box-shadow: var(--shadow); max-width: 300px; }
.phone img { border-radius: 26px; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background: var(--bg-2); }
.step .phone { transform: translateY(24px); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.step.in .phone { transform: none; opacity: 1; }
.step:nth-child(2) .phone { transition-delay: .12s; }
.step:nth-child(3) .phone { transition-delay: .24s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } .phone { max-width: 280px; } }

/* возможности — как подписи к телу */
.feat-map { display: grid; grid-template-columns: 1fr minmax(240px, 340px) 1fr; gap: 28px 36px; align-items: center; }
.feat-col { display: grid; gap: 30px; }
.feat { position: relative; }
.feat h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.feat h3 i { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--heat-2)); flex: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--heat-2)) 22%, transparent); }
.feat p { margin: 0; color: var(--ink-2); font-size: 16px; }
.feat-col.l .feat { text-align: right; }
.feat-col.l .feat h3 { flex-direction: row-reverse; }
.feat-figure { position: relative; }
.feat-figure img { width: 100%; filter: drop-shadow(0 30px 40px rgba(26, 33, 64, .25)); }
@media (max-width: 960px) {
  .feat-map { grid-template-columns: 1fr; }
  .feat-figure { order: -1; max-width: 260px; margin: 0 auto; }
  .feat-col.l .feat { text-align: left; }
  .feat-col.l .feat h3 { flex-direction: row; }
}

/* сезон пыльцы */
.season { background: var(--surface); border-radius: 28px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.months { display: grid; grid-template-columns: 140px repeat(12, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 13px; color: var(--faint); }
.months .m { text-align: center; }
.months .m.now { color: var(--ink); font-weight: 800; }
.plant { display: grid; grid-template-columns: 140px 1fr; gap: 6px; align-items: center; margin-top: 12px; }
.plant b { font-weight: 600; font-size: 15px; }
.track { position: relative; height: 30px; border-radius: 10px; background: var(--bg-2); }
.track span { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--heat-1), var(--heat-2) 55%, var(--heat-3)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.season.in .track span { transform: scaleX(1); }
.plant:nth-of-type(3) .track span { transition-delay: .1s; } .plant:nth-of-type(4) .track span { transition-delay: .2s; } .plant:nth-of-type(5) .track span { transition-delay: .3s; } .plant:nth-of-type(6) .track span { transition-delay: .4s; }
.today { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--ink); border-radius: 2px; }
.season-note { margin: 20px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 700px) { .months { grid-template-columns: 84px repeat(12, minmax(0, 1fr)); gap: 2px; font-size: 9px; } .plant { grid-template-columns: 84px 1fr; gap: 2px; } .plant b { font-size: 13px; } }

/* отчёт и приватность */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .phone { max-width: 320px; margin: 0 auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 17px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.privacy { background: var(--ink); color: var(--bg); border-radius: 32px; padding: clamp(28px, 5vw, 64px); }
:root.dark .privacy { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.privacy h2 { color: inherit; }
.privacy .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 32px 0; }
.privacy h3 { font-size: 20px; margin: 0 0 6px; }
.privacy p { margin: 0; opacity: .78; }
.privacy .links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.privacy .links a { font-weight: 600; }
@media (max-width: 860px) { .privacy .cols { grid-template-columns: 1fr; } }

/* вопросы */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 18px; color: var(--ink-2); max-width: 44em; }

/* скачать */
.get { text-align: left; }
.get-box { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 72px); background: var(--surface); border: 1px solid var(--line); }
.get-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--heat-2) 55%, transparent), transparent); pointer-events: none; }
.get-box h2 { position: relative; }

/* подвал */
.ftr { padding: 48px 0 60px; color: var(--ink-2); font-size: 15px; }
.ftr-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 32px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr .disc { max-width: 520px; }

/* ---------- документы ---------- */
.doc-hero { padding: 56px 0 24px; }
.doc-hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.02; margin: 0 0 12px; }
.doc-hero .meta { color: var(--ink-2); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 80px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: 26px; letter-spacing: -.02em; margin: 44px 0 12px; scroll-margin-top: 90px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body .note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--heat-2); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-body th { color: var(--ink-2); font-weight: 600; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 32px; }
.summary div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; font-size: 15px; }
.summary b { display: block; font-size: 17px; margin-bottom: 4px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } .summary { grid-template-columns: 1fr; } }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.nf h1 { font-size: clamp(64px, 12vw, 140px); margin: 0; letter-spacing: -.05em; }
