/* «Положено» — стили. Mobile-first. */
:root {
  --bg: #F4FAF8;
  --bg-2: #EAF6F2;
  --surface: #FFFFFF;
  --ink: #0F2E29;
  --ink-2: #29473F;
  --muted: #5E7A73;
  --line: #DCEBE6;
  --line-2: #C9E2DB;

  --primary: #14B8A6;
  --primary-600: #0E9384;
  --primary-700: #0B7469;
  --primary-50: #E3F7F3;
  --primary-100: #C8EFE7;

  --coral: #FF7A59;
  --coral-600: #E65E3D;
  --coral-50: #FFF0EB;
  --gold: #F5B83D;
  --gold-50: #FFF6E0;
  --gold-700: #8A5B00;

  --danger: #D93A3F;
  --danger-50: #FDECEC;
  --ok: #15946F;
  --ok-50: #E3F6EE;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 46, 41, .06), 0 2px 8px rgba(15, 46, 41, .04);
  --shadow: 0 2px 6px rgba(15, 46, 41, .05), 0 12px 32px rgba(15, 46, 41, .08);
  --shadow-lg: 0 24px 64px rgba(15, 46, 41, .18);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --topbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; outline: none; min-width: 0; width: 100%; }
body > * { min-width: 0; max-width: 100%; }
img, svg { display: block; }
a { color: var(--primary-700); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; border-radius: 10px; }
.noscript { padding: 16px; text-align: center; background: var(--coral-50); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Демо-баннер ---------- */
.demo-banner {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: repeating-linear-gradient(-45deg, #FFE7A8, #FFE7A8 12px, #FFDF92 12px, #FFDF92 24px);
  color: #6B4700; font-weight: 700; font-size: 13.5px; letter-spacing: .01em;
  border-bottom: 1px solid #F2CD6B;
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 122, 89, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 122, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); } }
body.has-demo .topbar { top: 34px; }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 250, 248, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(220, 235, 230, .7);
}
.topbar__inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo__mark { color: var(--primary); display: inline-flex; filter: drop-shadow(0 4px 10px rgba(20, 184, 166, .35)); }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo__region { font-size: 11px; font-weight: 700; color: var(--primary-700); background: var(--primary-50); padding: 3px 8px; border-radius: 999px; display: none; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav__link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2);
  font-weight: 700; font-size: 14px; padding: 9px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.topnav__link:hover { background: var(--primary-50); color: var(--primary-700); }
.topnav__link.is-active { background: var(--primary-50); color: var(--primary-700); }
.topnav__link--accent { color: var(--coral-600); }
.topnav__link--accent:hover { background: var(--coral-50); color: var(--coral-600); }
@media (max-width: 479px) { .topnav__link:not(.topnav__link--accent) span { display: none; } .topnav__link { padding: 10px; } .logo__text { font-size: 17px; } }
@media (max-width: 340px) { .topnav__link span { display: none; } }
@media (min-width: 560px) { .logo__region { display: inline-block; } }

/* ---------- Кнопки ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh); padding: 0 20px; border-radius: 16px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 15.5px; text-decoration: none; letter-spacing: .005em;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { color: #fff; background: linear-gradient(135deg, #1CC7B3, var(--primary-600)); box-shadow: 0 8px 22px rgba(14, 147, 132, .32), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(14, 147, 132, .42), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn--primary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--coral { color: #fff; background: linear-gradient(135deg, #FF9270, var(--coral-600)); box-shadow: 0 8px 22px rgba(230, 94, 61, .3); }
.btn--coral:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(230, 94, 61, .4); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-700); }
.btn--soft { background: var(--primary-50); color: var(--primary-700); }
.btn--soft:hover { background: var(--primary-100); }
.btn--lg { --bh: 54px; font-size: 16px; border-radius: 18px; }
.btn--xl { --bh: 60px; font-size: 17px; border-radius: 20px; padding: 0 26px; }
.btn--sm { --bh: 38px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-2); flex: none; transition: background .2s; }
.icon-btn:hover { background: var(--primary-50); }

/* ---------- Экраны ---------- */
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .5s var(--ease) backwards; }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Главная ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 16px 8px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.blob--teal { width: 320px; height: 320px; background: #8EE6D6; top: -120px; right: -80px; }
.blob--coral { width: 220px; height: 220px; background: #FFC2AE; bottom: -40px; left: -90px; animation-duration: 17s; }
.blob--gold { width: 180px; height: 180px; background: #FFE29A; top: 120px; right: 30%; animation-duration: 20s; opacity: .4; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-30px, 24px) scale(1.12); } }
.hero__content { position: relative; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary-700); background: rgba(255,255,255,.75); border: 1px solid var(--primary-100); padding: 6px 12px; border-radius: 999px; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 8.4vw, 58px); letter-spacing: -.025em; line-height: 1.08; margin: 16px 0 14px; }
.hl { background: linear-gradient(100deg, var(--primary-600), #19B8A4 50%, var(--coral) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 14px; }
.hero__actions .btn { width: 100%; }
#start-btn { animation: nudge 3.2s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-3px) scale(1.015); } 94% { transform: translateY(0) scale(1); } }
.privacy-note { display: inline-flex; align-items: center; gap: 7px; color: var(--primary-700); font-weight: 700; font-size: 14px; background: var(--primary-50); padding: 7px 12px; border-radius: 12px; }
.hero__art { position: relative; max-width: 330px; margin: 10px auto 0; }
.art { width: 100%; height: auto; overflow: visible; }
.float { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.float--2 { animation-duration: 4.6s; animation-delay: -1s; }
.float--3 { animation-duration: 5.2s; animation-delay: -2s; }
.float--4 { animation-duration: 5.8s; animation-delay: -.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.ring { animation: spin 40s linear infinite; transform-origin: 186px 168px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spark { animation: twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.spark--2 { animation-delay: -.9s; } .spark--3 { animation-delay: -1.7s; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
.check-row { animation: rowIn .7s var(--ease) both; }
.check-row:nth-of-type(1) { animation-delay: .5s; } .check-row:nth-of-type(2) { animation-delay: .8s; } .check-row:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.block { margin: 30px 0; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.link-more { font-weight: 700; text-decoration: none; font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start;
  padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 700; font-size: 14.5px; color: var(--ink-2); text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary-700); transform: translateY(-1px); }
.chip.is-active { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.chip__ico { font-size: 17px; line-height: 1; }
.chip__count { font-size: 12px; background: var(--primary-50); color: var(--primary-700); padding: 1px 7px; border-radius: 999px; }
.chip.is-active .chip__count { background: rgba(255,255,255,.22); color: #fff; }

.news-grid { display: grid; gap: 12px; }
.news {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 16px 16px 16px 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow: hidden;
}
.news::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--coral), var(--gold)); }
.news__date { font-size: 12px; font-weight: 800; color: var(--coral-600); text-transform: uppercase; letter-spacing: .06em; }
.news__title { font-weight: 800; font-size: 16px; margin: 4px 0; }
.news__text { color: var(--muted); font-size: 14.5px; }

.steps-strip { display: grid; gap: 10px; }
.how { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-2); border-radius: var(--radius); padding: 14px 16px; }
.how__n { flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--surface); color: var(--primary-700); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.how b { display: block; font-size: 15.5px; }
.how p { font-size: 14px; color: var(--muted); }

.signature { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.signature--center { text-align: center; margin: 28px 0 8px; }

/* ---------- Опросник ---------- */
.quiz { max-width: 680px; margin: 0 auto; padding: 14px 16px 0; min-height: calc(100vh - var(--topbar-h) - 40px); display: flex; flex-direction: column; }
.quiz__top { display: flex; align-items: center; gap: 12px; }
.quiz__progress { flex: 1; }
.quiz__step-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.progress { height: 10px; border-radius: 999px; background: var(--primary-50); overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,46,41,.06); }
.progress__bar {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #3DDCC6, var(--gold));
  background-size: 200% 100%;
  transition: width .7s var(--ease);
  animation: shimmer 2.4s linear infinite;
  position: relative;
}
@keyframes shimmer { from { background-position: 0 0; } to { background-position: -200% 0; } }
.quiz__stage { flex: 1; position: relative; padding: 22px 0 120px; }
.q { animation: qIn .5s var(--ease) both; }
.q.is-back { animation-name: qInBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.q__kicker { font-size: 13px; font-weight: 800; color: var(--primary-700); text-transform: uppercase; letter-spacing: .07em; }
.q__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 6vw, 30px); letter-spacing: -.015em; margin: 8px 0 6px; }
.q__hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.options { display: grid; gap: 10px; }
.options--grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.options--grid .opt { min-height: 58px; padding: 9px 14px; }
.options > * { min-width: 0; }
.options--count { grid-template-columns: repeat(5, 1fr); }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 62px; padding: 12px 16px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background .2s, transform .18s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  animation: optIn .45s var(--ease) both;
}
.opt:hover { border-color: var(--primary-100); transform: translateY(-1px); box-shadow: var(--shadow); }
.opt:active { transform: scale(.985); }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); }
.opt__ico { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--bg-2); }
.opt[aria-checked="true"] .opt__ico, .opt[aria-pressed="true"] .opt__ico { background: #fff; }
.opt__text { flex: 1; }
.opt__sub { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.opt__mark { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.opt--radio .opt__mark { border-radius: 50%; }
.opt[aria-checked="true"] .opt__mark, .opt[aria-pressed="true"] .opt__mark { background: var(--primary); border-color: var(--primary); }
.opt__mark svg { opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); }
.opt[aria-checked="true"] .opt__mark svg, .opt[aria-pressed="true"] .opt__mark svg { opacity: 1; transform: none; }
.opt--count { justify-content: center; min-height: 72px; font-size: 24px; font-family: var(--font-display); padding: 10px 4px; }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.why { margin-top: 18px; }
.why__btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 2px; cursor: pointer; font-weight: 700; color: var(--primary-700); font-size: 14.5px; }
.why__i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); font-size: 13px; font-weight: 800; font-family: Georgia, serif; font-style: italic; }
.why__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.why__body > div { overflow: hidden; }
.why.is-open .why__body { grid-template-rows: 1fr; }
.why__text { margin-top: 6px; background: var(--bg-2); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: var(--ink-2); }

.agebox { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 8px 0 14px; }
.agebox__btn { width: 60px; height: 60px; border-radius: 18px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); font-size: 28px; font-weight: 700; cursor: pointer; color: var(--primary-700); }
.agebox__btn:hover { background: var(--primary-50); }
.agebox__input { width: 130px; height: 76px; border-radius: 20px; border: 2px solid var(--primary-100); background: var(--surface); text-align: center; font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.agebox__input::-webkit-outer-spin-button, .agebox__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.agebox__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.agebox__unit { text-align: center; color: var(--muted); font-weight: 700; }
.quick-ages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }

.calc { margin-top: 16px; border-radius: var(--radius); background: linear-gradient(160deg, #FFFFFF, var(--gold-50)); border: 1.5px dashed #F2CD6B; padding: 16px; }
.calc__title { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.calc__grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; padding: 0 14px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20, 184, 166, .16); }
.calc__out { border-radius: 14px; padding: 12px 14px; font-weight: 700; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.calc__out.is-below { background: var(--ok-50); border-color: #BCE8D6; color: #0B6B4F; }
.calc__out.is-above { background: var(--coral-50); border-color: #FFD3C5; color: #9A3A20; }
.calc__pm { font-size: 13px; color: var(--muted); margin-top: 8px; }

.summary { display: grid; gap: 8px; }
.summary__row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; animation: optIn .45s var(--ease) both; }
.summary__k { font-size: 13px; color: var(--muted); font-weight: 700; }
.summary__v { font-weight: 800; }
.summary__row > div { flex: 1; }
.summary__edit { background: none; border: 0; color: var(--primary-700); font-weight: 800; cursor: pointer; padding: 8px; border-radius: 10px; font-size: 14px; }
.summary__edit:hover { background: var(--primary-50); }

.quiz__nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(244,250,248,0));
}
.quiz__nav .btn--primary { width: 100%; }

/* ---------- Результат ---------- */
.result-hero {
  position: relative; overflow: hidden; margin: 18px 0 16px; border-radius: var(--radius-lg); padding: 24px 20px 22px;
  background: radial-gradient(120% 120% at 100% 0%, #3DDCC6 0%, var(--primary-600) 45%, #0A6B61 100%);
  color: #fff; box-shadow: 0 20px 50px rgba(14, 147, 132, .3);
}
.result-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -120px; border-radius: 50%; background: rgba(255, 210, 120, .35); filter: blur(10px); }
.result-hero__kicker { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.result-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 6vw, 34px); line-height: 1.15; margin: 8px 0 10px; position: relative; z-index: 1; }
.count { display: inline-block; font-size: 1.9em; line-height: 1; color: #FFE08A; vertical-align: -0.12em; min-width: 1ch; text-shadow: 0 4px 18px rgba(0,0,0,.15); }
.result-hero__sub { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.pill-w { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 13.5px; }
.pill-w b { font-size: 15px; }
.result-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.result-hero__actions > :first-child:not(:only-child) { grid-column: 1 / -1; }
.result-hero__actions .btn { padding: 0 12px; white-space: normal; text-align: center; line-height: 1.2; }
.result-hero__actions .btn--ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.result-hero__actions .btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.result-hero__actions .btn--white { background: #fff; color: var(--primary-700); box-shadow: 0 8px 20px rgba(0,0,0,.12); }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 4px 16px 6px; position: sticky; top: var(--topbar-h); z-index: 10; background: linear-gradient(var(--bg) 80%, rgba(244,250,248,0)); }
body.has-demo .tabs { top: calc(var(--topbar-h) + 34px); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--primary-700); }
.tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.tab__n { opacity: .6; margin-left: 4px; font-weight: 700; }

.group { margin-bottom: 20px; }
.group__title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--ink-2); margin: 18px 2px 10px; }
.group__title .dot { width: 10px; height: 10px; border-radius: 50%; }
.group__title .dot--ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-50); }
.group__title .dot--maybe { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-50); }
.subgroup { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 12px 2px 8px; }
.cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.cards > * { min-width: 0; }

.mcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%;
  background: var(--surface); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-100); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.mcard__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .01em; }
.badge--federal { background: #E8EEFF; color: #3348A8; }
.badge--regional { background: var(--primary-50); color: var(--primary-700); }
.badge--ok { background: var(--ok-50); color: #0B6B4F; }
.badge--maybe { background: var(--gold-50); color: var(--gold-700); }
.badge--verified { background: var(--ok-50); color: #0B6B4F; }
.badge--unverified { background: var(--coral-50); color: #A1381C; }
.badge--danger { background: var(--danger-50); color: var(--danger); }
.mcard__title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.mcard__link { color: inherit; text-decoration: none; }
.mcard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.mcard__link:focus-visible { outline: none; }
.mcard__link:focus-visible::after { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; border-radius: var(--radius); }
.mcard__summary { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__amount { display: flex; align-items: flex-start; gap: 8px; font-weight: 800; color: var(--ink); font-size: 15px; background: var(--bg-2); border-radius: 12px; padding: 9px 12px; }
.mcard__amount .ru { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(var(--gold), #F09E2E); color: #fff; display: grid; place-items: center; font-size: 13px; }
.mcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.mcard__agency { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.mcard__agency span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard__more { flex: none; font-weight: 800; color: var(--primary-700); }
.mcard__hint { font-size: 13.5px; background: var(--gold-50); color: #6B4700; border-radius: 12px; padding: 9px 12px; display: flex; gap: 8px; align-items: flex-start; }
.mcard__hint button { position: relative; z-index: 1; margin-left: auto; flex: none; border: 0; background: #fff; color: var(--gold-700); font-weight: 800; border-radius: 10px; padding: 4px 10px; cursor: pointer; }

.empty { text-align: center; padding: 30px 16px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line-2); }
.empty__ico { font-size: 40px; }
.empty h3 { margin: 8px 0; font-size: 18px; }
.empty p { color: var(--muted); }

/* Помощь (CTA) */
.help-cta {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin: 18px 0;
  padding: 16px; border-radius: var(--radius); cursor: pointer; text-align: left; width: 100%; border: 0;
  background: linear-gradient(120deg, var(--coral-50), #FFF8EA); box-shadow: inset 0 0 0 1.5px #FFD8CA;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.help-cta:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--coral), var(--shadow); }
.help-cta__ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #FF9270, var(--coral-600)); color: #fff; box-shadow: 0 8px 18px rgba(230, 94, 61, .3); }
.help-cta__t { font-weight: 800; font-size: 16px; display: block; }
.help-cta__s { font-size: 13.5px; color: var(--ink-2); display: block; }
.help-cta__arrow { margin-left: auto; flex: none; font-weight: 800; color: var(--coral-600); font-size: 20px; }

/* Подписка (демо) */
.subscribe { margin: 26px 0; border-radius: var(--radius-lg); padding: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.subscribe::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; background: var(--primary-50); }
.subscribe > * { position: relative; }
.subscribe__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.subscribe__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.tag-demo { font-size: 11px; font-weight: 800; letter-spacing: .08em; background: var(--gold); color: #4A3000; padding: 3px 8px; border-radius: 6px; }
.subscribe__text { color: var(--muted); margin: 6px 0 14px; font-size: 14.5px; }
.seg { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 14px; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 800; cursor: pointer; color: var(--muted); font-size: 14px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.subscribe__row { display: flex; flex-direction: column; gap: 10px; }
.subscribe__ok { display: flex; gap: 12px; align-items: center; background: var(--ok-50); color: #0B6B4F; border-radius: 16px; padding: 14px; font-weight: 700; animation: optIn .5s var(--ease) both; }
.subscribe__fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Каталог ---------- */
.page-head { margin: 22px 0 14px; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 6vw, 36px); letter-spacing: -.02em; }
.page-sub { color: var(--muted); margin-top: 6px; }
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 46px; height: 54px; border-radius: 18px; font-weight: 600; }
.catalog-filters { display: grid; gap: 10px; margin-bottom: 8px; }
.catalog-filters .seg { justify-self: start; }
.catalog-count { font-size: 14px; color: var(--muted); font-weight: 700; margin: 6px 2px 12px; }

/* ---------- Оверлеи ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(9, 32, 28, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative; width: 100%; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  animation: sheetUp .45s var(--ease) both;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.sheet--measure { overflow: hidden; display: flex; flex-direction: column; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.sheet--measure .sheet__grab { position: absolute; left: 50%; transform: translateX(-50%); top: 0; z-index: 2; }
.sheet__grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 10px auto 0; }

/* Карточка меры */
.md__head { padding: 18px 18px 18px; background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); }
.md__head-row { display: flex; align-items: flex-start; gap: 10px; }
.md__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 5.4vw, 27px); letter-spacing: -.015em; margin: 10px 54px 8px 0; line-height: 1.2; }
.md__summary { color: var(--ink-2); }
.md__body { padding: 16px 16px 24px; display: grid; gap: 12px; }
.md__amount { border-radius: var(--radius); padding: 16px; background: linear-gradient(140deg, #FFFFFF, var(--gold-50)); border: 1px solid #F7DE9C; }
.md__amount-v { font-size: 19px; font-weight: 800; margin: 4px 0 8px; }
.md__k { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.md__grid { display: grid; gap: 12px; }
.md__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.md__box p { margin-top: 4px; }
.md__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.md__list li { display: flex; gap: 10px; align-items: flex-start; }
.md__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 8px; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.checklist label:hover { background: var(--bg-2); }
.checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); margin: 1px 0 0; display: grid; place-items: center; transition: background .2s, border-color .2s; cursor: pointer; }
.checklist input:checked { background: var(--primary); border-color: var(--primary); }
.checklist input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

.legal { border-radius: var(--radius); border: 2px solid var(--primary-100); background: var(--surface); overflow: hidden; }
.legal__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--primary-50); font-weight: 800; color: var(--primary-700); }
.legal__item { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.legal__item:first-of-type { border-top: 0; }
.legal__act { font-weight: 800; line-height: 1.35; }
.legal__art { font-size: 14px; color: var(--ink-2); }
.legal__art b { color: var(--muted); font-weight: 700; }
.legal__link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--primary-700); background: var(--primary-50); padding: 7px 12px; border-radius: 10px; transition: background .2s; }
.legal__link:hover { background: var(--primary-100); }
.legal__missing { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--danger); font-weight: 800; background: var(--danger-50); }
.legal__missing-sub { font-weight: 600; font-size: 13.5px; color: #8E2A2E; padding: 0 16px 14px; background: var(--danger-50); }
.sources { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.sources a { word-break: break-all; font-size: 14px; font-weight: 600; }
.md__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.md__note { font-size: 14px; background: var(--gold-50); border-radius: 14px; padding: 12px 14px; color: #5E4300; }
.status-line { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14.5px; }
.status-line--ok { background: var(--ok-50); color: #0B6B4F; }
.status-line--maybe { background: var(--gold-50); color: #6B4700; }

/* Помощь (панель) */
.sheet--help { max-width: 520px; background: var(--surface); }
.help { padding: 34px 22px 26px; text-align: center; }
.help__icon { position: relative; width: 76px; height: 76px; border-radius: 26px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, #FF9270, var(--coral-600)); box-shadow: 0 14px 30px rgba(230, 94, 61, .35); }
.help__pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 122, 89, .5); animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, .45); } 80%, 100% { box-shadow: 0 0 0 22px rgba(255, 122, 89, 0); } }
.help__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.help__text { color: var(--coral-600); font-weight: 800; margin-top: 6px; }
.help__phone { display: inline-block; margin: 18px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 8vw, 34px); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.help__sub { color: var(--muted); font-size: 14.5px; max-width: 380px; margin: 0 auto; }
.help__actions { display: grid; gap: 10px; margin-top: 20px; }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

/* ---------- Подвал ---------- */
.footer { margin-top: 30px; background: var(--surface); border-top: 1px solid var(--line); }
.footer__inner { max-width: 1120px; margin: 0 auto; padding: 22px 16px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.footer__disclaimer { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.footer__meta { font-size: 13px; color: var(--muted); }
body.is-quiz .footer { display: none; }

/* ---------- Версия для печати на экране (#print) ---------- */
.print-view { display: none; }
body.is-print-preview > *:not(.print-view):not(.demo-banner) { display: none !important; }
body.is-print-preview .print-view { display: block; padding: 16px; }
.pv-toolbar { max-width: 820px; margin: 0 auto 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.pv { max-width: 820px; margin: 0 auto; background: #fff; color: #111; border-radius: 6px; box-shadow: var(--shadow); padding: 34px 32px; font-size: 13.5px; line-height: 1.45; }
.pv__head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 3px solid var(--primary-600); padding-bottom: 14px; margin-bottom: 14px; }
.pv__brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--primary-700); }
.pv__title { font-size: 20px; font-weight: 800; margin-top: 4px; }
.pv__meta { color: #555; margin-top: 4px; }
.pv__qr { flex: none; text-align: center; font-size: 10px; color: #666; width: 96px; }
.pv__qr svg { width: 86px; height: 86px; margin: 0 auto 4px; }
.pv__profile { background: #F3F8F7; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.pv__item { border: 1px solid #D9E5E2; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; break-inside: avoid; page-break-inside: avoid; }
.pv__item h3 { font-size: 15.5px; display: flex; gap: 8px; align-items: flex-start; }
.pv__box { width: 14px; height: 14px; border: 1.5px solid #333; border-radius: 3px; flex: none; margin-top: 3px; }
.pv__tags { font-size: 11.5px; color: #555; margin: 4px 0 8px; }
.pv__row { margin: 4px 0; }
.pv__row b { color: #333; }
.pv__docs { margin: 4px 0 6px 0; padding-left: 0; list-style: none; columns: 2; column-gap: 20px; }
.pv__docs li { display: flex; gap: 6px; break-inside: avoid; margin-bottom: 2px; }
.pv__docs li::before { content: "☐"; flex: none; }
.pv__legal { background: #F5F9F8; border-left: 3px solid var(--primary-600); padding: 6px 10px; margin-top: 6px; font-size: 12.5px; }
.pv__legal a { color: #0B6B61; word-break: break-all; }
.pv__miss { color: #C62828; font-weight: 800; }
.pv__help { border: 2px dashed var(--coral); border-radius: 10px; padding: 12px 14px; margin: 16px 0 10px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.pv__help b { font-size: 17px; }
.pv__foot { border-top: 1px solid #ddd; padding-top: 10px; margin-top: 14px; font-size: 11.5px; color: #555; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv__sample { background: #FFF1C9; color: #6B4700; font-weight: 800; padding: 6px 10px; border-radius: 6px; margin-bottom: 12px; }

/* ---------- Планшет и десктоп ---------- */
@media (min-width: 720px) {
  .container { padding: 0 28px; }
  .topbar__inner { padding: 0 28px; }
  .hero { padding: 48px 28px 10px; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; overflow: visible; }
  .hero__bg { overflow: hidden; left: calc(50% - 50vw); right: auto; width: 100vw; }
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
  .hero__art { max-width: 420px; margin: 0; }
  .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-strip { grid-template-columns: repeat(3, 1fr); }
  .options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .options--grid .opt { min-height: 66px; }
  .calc__grid { grid-template-columns: 1fr 1fr; }
  .quiz { padding-top: 30px; }
  .quiz__stage { padding-bottom: 30px; }
  .quiz__nav { position: static; background: none; padding: 0 0 40px; grid-template-columns: auto auto; justify-content: space-between; }
  .quiz__nav .btn--primary { width: auto; min-width: 200px; }
  .result-hero { padding: 34px 36px 30px; margin-top: 28px; }
  .result-hero__actions { display: flex; flex-wrap: wrap; }
  .result-hero__actions .btn { padding: 0 20px; }
  .tabs { margin: 0 0 14px; padding: 4px 0 8px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-cta { padding: 20px 24px; }
  .subscribe__row { flex-direction: row; }
  .subscribe__row .input { flex: 1; }
  .catalog-filters { grid-template-columns: 1fr; }
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; max-width: 760px; max-height: 90vh; }
  .sheet--help { max-width: 480px; }
  .sheet__grab { display: none; }
  .md__head { padding: 26px 28px 20px; }
  .md__body { padding: 20px 28px 28px; }
  .md__grid { grid-template-columns: 1fr 1fr; }
  .help__actions { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 32px; }
}
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__title { font-size: 52px; }
}

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .blob, .float, .ring, .spark, #start-btn, .progress__bar, .demo-dot, .help__pulse { animation: none !important; }
}

.demo-banner[hidden] { display: none !important; }
