/* Лендинг «Обоснуя». Шрифты — свои (Onest, Caveat, STIX Two Text; SIL OFL 1.1):
   сторонним сервисам адреса посетителей не уходят. */

@font-face { font-family: Onest; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/onest-math-wght-normal.woff2) format("woff2");
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF; }
@font-face { font-family: Caveat; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/caveat-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/caveat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-display: swap; font-weight: 400;
  src: url(fonts/stix-two-text-cyrillic-400-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-display: swap; font-weight: 400;
  src: url(fonts/stix-two-text-greek-400-italic.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-display: swap; font-weight: 400;
  src: url(fonts/stix-two-text-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --teal: #0E4549; --teal-d: #0A3336; --teal-l: #16595E; --teal-xd: #072628;
  --cream: #F5EAD2; --paper: #FBF6EA; --sheet: #FFFDF6;
  --mint: #9BE0BD; --mint-d: #4FBF8E; --mint-text: #2E9E6E; --mint-dd: #2E7D5B;
  --ink: #0D3236; --ink-2: #24494c; --muted: #4a6a6c; --hand: #29467A;
  --lav: #B7A7FF; --sky: #7CC8F2; --sun: #FFCB57; --coral: #FF8C69; --coral-d: #E0603F;
  --mono: ui-monospace, Menlo, monospace;
  --grid-paper: linear-gradient(rgba(13,50,54,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(13,50,54,.055) 1px, transparent 1px);
  --grid-note: linear-gradient(rgba(41,70,122,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(41,70,122,.08) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--teal); color: var(--ink); font: 400 18px/1.5 Onest, system-ui, sans-serif;
  overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint-text); }
a:hover { color: var(--ink); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.accent { color: var(--mint); }
.kicker { font-size: 14px; font-weight: 600; color: var(--mint); }
.marker { color: inherit; background: linear-gradient(transparent 56%, var(--mark, var(--mint)) 56%, var(--mark, var(--mint)) 92%, transparent 92%); }
.lead .marker { font-weight: 700; }
.formula { font-family: "STIX Two Text", serif; font-style: italic; font-size: 19px; white-space: nowrap; }
.formula-inline { font-family: "STIX Two Text", serif; font-style: italic; }

/* Зерно поверх всей страницы */
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Загнутый уголок: цвет фона под карточкой (--fold-bg) и цвет изнанки (--fold-c) */
.fold::before { content: ""; position: absolute; top: 0; right: 0; z-index: 1;
  width: var(--fold, 46px); height: var(--fold, 46px);
  border-radius: 0 var(--radius, 28px) 0 var(--fold-r, 14px);
  background: linear-gradient(225deg, var(--fold-bg, var(--cream)) 50%, var(--fold-c, var(--mint)) 50%);
  box-shadow: -3px 4px 8px rgba(13,50,54,.12); transition: width .25s, height .25s; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; cursor: pointer;
  font-weight: 700; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn-mint { background: var(--mint); color: var(--ink); box-shadow: 0 6px 0 var(--mint-d), 0 20px 34px -12px rgba(0,0,0,.5); }
.btn-mint:hover { color: var(--ink); transform: translateY(-1px); }
.btn-mint:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--mint-d), 0 6px 12px -6px rgba(0,0,0,.4); }
.btn-dark { background: var(--teal); color: var(--cream); box-shadow: 0 6px 0 var(--teal-d), 0 18px 30px -12px rgba(13,50,54,.5); }
.btn-dark:hover { color: var(--cream); }
.btn-dark:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--teal-d); }
.btn-sm { padding: 11px 18px; border-radius: 14px; font-size: 15px; white-space: nowrap; box-shadow: 0 4px 0 var(--mint-d); }
.btn-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mint-d); }
.btn-xs { padding: 12px 18px; border-radius: 14px; font-size: 15px; box-shadow: none; }
.btn-md { padding: 17px 26px; border-radius: 20px; font-size: 17px; }
.btn-lg { padding: 19px 30px; border-radius: 20px; font-size: 18px; }
.btn-xl { padding: 20px 32px; border-radius: 22px; font-size: 19px; }
.btn-ghost { padding: 17px 22px; border-radius: 20px; color: var(--cream); font-weight: 600; font-size: 17px;
  box-shadow: inset 0 0 0 2px rgba(245,234,210,.28); transition: box-shadow .2s; }
.btn-ghost:hover { color: var(--mint); box-shadow: inset 0 0 0 2px var(--mint); }

/* Шапка */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 20px 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s, padding .3s, box-shadow .3s; }
.site-header.is-scrolled { padding: 10px 0; background: rgba(10,51,54,.9); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.header-row { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand img { width: 46px; height: 46px; object-fit: contain; transform: scale(1.3); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.brand span { font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.header-nav { display: flex; gap: 28px; font-size: 16px; font-weight: 600; }
.header-nav a { color: var(--cream); text-decoration: none; opacity: .85; }
.header-nav a:hover { color: var(--mint); opacity: 1; }

/* Секции */
.section { position: relative; padding: clamp(72px,10vw,140px) 20px; }
.section-paper { background-color: var(--cream); background-image: var(--grid-paper); background-size: 28px 28px; }
.section-teal { background: var(--teal); color: var(--cream); }
.section-deep { background: var(--teal-d); color: var(--cream); }
.h2 { font-weight: 800; font-size: clamp(36px,5.4vw,66px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: clamp(18px,1.5vw,21px); color: var(--ink-2); text-wrap: pretty; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 24px; }
.head-mascot { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; }
.head-mascot-img { width: clamp(110px,13vw,170px); filter: drop-shadow(0 16px 18px rgba(13,50,54,.28)); }

/* Парящие фигуры. Обёртку двигает параллакс (transform), фигура парит сама (translate) */
.par { position: absolute; pointer-events: none; }
.shape-tetra { width: 72px; height: 64px; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(140deg, #D2F5E2 0%, #9BE0BD 45%, #5DB58C 100%);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.3)); animation: float 7s ease-in-out infinite; }
.shape-torus { width: 44px; height: 44px; border-radius: 50%; border: 20px solid #F2E4C6;
  box-shadow: inset -4px -6px 10px rgba(120,90,40,.28), inset 3px 3px 6px rgba(255,255,255,.6), 0 18px 28px rgba(0,0,0,.35), -3px -4px 8px rgba(120,90,40,.2);
  animation: float 8s ease-in-out -2s infinite; }
.shape-torus-sm { width: 36px; height: 36px; border-width: 18px; animation-delay: -3s; }
.shape-ball { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ECE6FF, #B7A7FF 50%, #8571E0);
  box-shadow: 0 14px 20px rgba(0,0,0,.3); animation: float 6s ease-in-out -1s infinite; }
.shape-cube { width: 46px; height: 46px; border-radius: 12px; rotate: 16deg; background: linear-gradient(150deg, #FFE3A3, #FFCB57 55%, #E3A92F);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 16px 22px rgba(0,0,0,.3); animation: float 10s ease-in-out -3s infinite; }
.shape-glyph { font-weight: 800; line-height: 1; animation: float 8s ease-in-out infinite; }
.glyph-cream { color: var(--cream); text-shadow: 0 3px 0 #CDBB94, 0 18px 24px rgba(0,0,0,.35); }
.glyph-mint { color: var(--mint); text-shadow: 0 3px 0 var(--mint-d), 0 16px 22px rgba(0,0,0,.35); }

/* Первый экран */
.hero { position: relative; overflow: hidden; color: var(--cream); padding: clamp(104px,12vw,150px) 20px clamp(64px,8vw,110px);
  background: radial-gradient(120% 90% at 75% 40%, #16595E 0%, #0E4549 48%, #0A3336 100%); }
.hero-grid { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,480px), 1fr)); gap: clamp(40px,5vw,64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: rgba(155,224,189,.13); color: var(--mint);
  font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(155,224,189,.25); }
.hero h1 { font-weight: 800; font-size: clamp(46px,7vw,92px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { font-size: clamp(18px,1.5vw,21px); color: rgba(245,234,210,.88); max-width: 560px; text-wrap: pretty; }
.hero-lead strong { color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; margin-top: 4px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gift { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 15px;
  white-space: nowrap; rotate: -2deg; box-shadow: 0 3px 0 #E3A92F, 0 10px 18px -8px rgba(0,0,0,.45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 8px; border-radius: 999px;
  background: rgba(10,51,54,.55); font-size: 14px; font-weight: 500; }
.chip-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; }

.hero-visual { position: relative; width: 100%; max-width: 580px; margin: 0 auto; display: flex; justify-content: flex-end; padding: 20px 0 10px; }
.hero-mascot { position: absolute; z-index: 1; left: -6%; bottom: -6%; width: clamp(190px,52%,330px); aspect-ratio: 1;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.hero-mascot img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mascot .blink { opacity: 0; animation: blink 4.5s linear 1.2s infinite; }
.accuracy-badge { position: absolute; z-index: 3; left: 2%; top: 6%; display: flex; flex-direction: column; align-items: center;
  padding: 14px 18px 12px; border-radius: 24px; background: var(--cream); color: var(--ink); text-decoration: none; rotate: -6deg;
  box-shadow: inset 0 2px 0 #fff, inset 0 -5px 0 rgba(13,50,54,.08), 0 20px 30px -10px rgba(0,0,0,.5); }
.accuracy-badge:hover { color: var(--ink); }
.accuracy-badge small { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.accuracy-badge b { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.accuracy-badge sup, .meter-value sup, .star-link { color: var(--coral-d); text-decoration: none; }
.accuracy-badge sup { font-size: 20px; vertical-align: top; }

/* Телефон с перепиской */
.phone { position: relative; z-index: 2; width: clamp(262px,25vw,312px); aspect-ratio: 9 / 18.6; border-radius: 46px; background: var(--teal-xd);
  padding: 10px; box-shadow: inset 0 1px 0 #2a7277, 0 0 0 2px var(--teal-d), 0 44px 80px -24px rgba(0,0,0,.7); }
.phone-screen { height: 100%; border-radius: 37px; overflow: hidden; background: #EFE5CF; display: flex; flex-direction: column; color: var(--ink); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 10px; background: var(--paper); border-bottom: 1px solid rgba(13,50,54,.08); }
.chat-back { color: var(--mint-d); font-size: 20px; line-height: 1; }
.avatar { flex: none; display: block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--teal); }
.avatar img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.25); }
.avatar-sm { width: 32px; height: 32px; }
.chat-title { line-height: 1.2; }
.chat-title b { display: block; font-weight: 700; font-size: 14px; }
.chat-status { display: block; min-height: 14px; font-size: 12px; color: var(--mint-text); }
.chat-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px;
  font-size: 12.5px; line-height: 1.38; background-image: linear-gradient(rgba(13,50,54,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(13,50,54,.045) 1px, transparent 1px);
  background-size: 18px 18px; }
.msg-photos { align-self: flex-end; max-width: 86%; padding: 4px; border-radius: 16px 16px 4px 16px; background: #CDEEDC; animation: pop .35s ease-out both; }
.photo-pair { display: flex; gap: 4px; }
.photo-cond, .photo-sol { width: 88px; height: 104px; overflow: hidden; background-color: var(--sheet); }
.photo-cond { border-radius: 12px 4px 4px 4px; padding: 7px; font: italic 9px/1.35 "STIX Two Text", serif; color: #3d5557; }
.photo-sol { border-radius: 4px 12px 4px 4px; padding: 6px; font: 500 11px/1 Caveat, cursive; color: var(--hand);
  background-image: linear-gradient(rgba(41,70,122,.12) 1px, transparent 1px); background-size: 100% 11px; }
.msg-time { text-align: right; font-size: 10px; color: var(--mint-dd); padding: 3px 6px 0; }
.msg-in { align-self: flex-start; max-width: 80%; padding: 8px 11px; border-radius: 16px 16px 16px 4px; background: var(--sheet);
  box-shadow: 0 1px 0 rgba(13,50,54,.08); animation: pop .35s ease-out both; }
.msg-in time { margin-left: 4px; font-size: 10px; color: #6b8486; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--sheet); animation: pop .3s ease-out both; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-d); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.msg-result { align-self: flex-start; max-width: 94%; display: flex; flex-direction: column; gap: 4px; animation: pop .4s ease-out both; }
.bubble { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border-radius: 16px 16px 16px 4px; background: var(--sheet); box-shadow: 0 1px 0 rgba(13,50,54,.08); }
.bubble time { text-align: right; font-size: 10px; color: #6b8486; }
.muted-chat { color: #5a7476; }
.chat-button { padding: 8px; border-radius: 10px; background: rgba(14,69,73,.12); text-align: center; font-weight: 600; font-size: 12px; color: var(--teal); }
.chat-input { display: flex; gap: 8px; align-items: center; padding: 8px 10px 14px; background: var(--paper); border-top: 1px solid rgba(13,50,54,.08); }
.chat-input span { flex: 1; height: 30px; display: flex; align-items: center; padding: 0 12px; border-radius: 15px; background: #EFE5CF; font-size: 12px; color: #7d9192; }
.chat-input i { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); }

/* Карточки с записью от руки */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 28px; background: var(--paper);
  box-shadow: 0 2px 0 rgba(13,50,54,.05), 0 28px 48px -24px rgba(13,50,54,.4); transition: transform .25s; }
.card h3 { padding-right: 44px; font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.card p { font-size: 17px; color: var(--ink-2); }
.lift:hover { --fold: 64px; transform: translateY(-4px) rotate(-.4deg); }
.lift:nth-child(2):hover { transform: translateY(-4px) rotate(.4deg); }
.note { position: relative; display: flex; flex-direction: column; min-height: 120px; padding: 16px 72px 16px 18px; border-radius: 18px;
  background-color: var(--sheet); background-image: var(--grid-note); background-size: 22px 22px;
  font: 500 27px/1.3 Caveat, cursive; color: var(--hand); }
.ring { display: inline-block; padding: 0 8px; border: 2.5px solid var(--coral); border-radius: 50% / 48%; rotate: -2deg; }
.wavy { text-decoration: underline wavy var(--coral); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.remark { align-self: flex-end; margin: 6px -58px 0 0; font-weight: 700; font-size: 26px; rotate: -4deg; }
.note-flag { font-weight: 700; font-size: 24px; }
.note-score { position: absolute; right: 14px; top: 10px; font-weight: 700; font-size: 24px; rotate: 8deg; }
.bad { color: var(--coral-d); }
.good { color: var(--mint-text); }

/* Мини-игра */
.game { position: relative; overflow: hidden; padding: clamp(24px,4vw,48px); border-radius: 32px; background: var(--teal); color: var(--cream);
  box-shadow: 0 36px 60px -30px rgba(13,50,54,.7); }
.game-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.game h3 { font-weight: 800; font-size: clamp(28px,3.6vw,44px); line-height: 1.05; letter-spacing: -.03em; }
.game-progress { display: flex; gap: 6px; }
.game-progress span { width: 34px; height: 8px; border-radius: 4px; background: rgba(245,234,210,.2); }
.game-progress .is-current { background: var(--cream); }
.game-progress .is-done { background: var(--mint); }
.game-play { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,400px), 1fr)); gap: 28px; align-items: start; }
.game-meta { font-size: 14px; color: rgba(245,234,210,.75); }
.game-cond { font-size: 17px; line-height: 1.45; }
.note-game { min-height: 0; padding: 16px 20px; border-radius: 20px; font-size: clamp(23px,2.2vw,27px); rotate: -.6deg; }
.criteria { padding: 16px 18px; border-radius: 18px; background: rgba(10,51,54,.6); font-size: 15px; color: rgba(245,234,210,.9); }
.criteria-title { margin-bottom: 6px; font-weight: 700; color: var(--mint); }
.criteria b { color: var(--cream); }
.game-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.game-pick > span { font-weight: 600; }
.score-btn { width: 64px; height: 64px; border: none; border-radius: 20px; cursor: pointer; font-weight: 800; font-size: 28px; color: var(--ink);
  background: var(--cream); box-shadow: 0 5px 0 rgba(0,0,0,.22); transition: transform .12s, box-shadow .12s, opacity .2s; }
.score-btn:hover { transform: translateY(-2px); }
.score-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.score-btn:disabled { cursor: default; transform: none; }
.score-btn.is-correct { background: var(--mint); }
.score-btn.is-wrong { background: var(--coral); }
.score-btn.is-dim { opacity: .4; }
.verdict { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--cream); color: var(--ink); animation: pop .35s ease-out both; }
.verdict-pose { flex: 0 0 96px; width: 96px; height: 96px; margin: -8px 0; filter: drop-shadow(0 10px 12px rgba(13,50,54,.25)); }
.verdict-body { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; }
.verdict-title { font-weight: 800; font-size: 20px; }
.verdict-why { color: var(--ink-2); }
.btn-next { align-self: flex-start; margin-top: 6px; padding: 11px 18px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--teal); color: var(--cream); font-weight: 700; font-size: 15px; box-shadow: 0 4px 0 var(--teal-d); }
.btn-next:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-d); }
.game-done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; animation: pop .4s ease-out both; }
.game-done-title { font-weight: 800; font-size: clamp(28px,4vw,48px); line-height: 1.05; letter-spacing: -.03em; }
.game-done p { max-width: 560px; font-size: 19px; color: rgba(245,234,210,.88); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-outline-light { padding: 15px 20px; border: none; border-radius: 18px; cursor: pointer; background: transparent; color: var(--cream);
  font-weight: 600; font-size: 16px; box-shadow: inset 0 0 0 2px rgba(245,234,210,.3); }
.confetti { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.confetti span { position: absolute; top: 0; opacity: 0; }

/* Статистика ФИПИ */
.facts-title { font-weight: 700; font-size: 18px; }
.facts-sub { max-width: 720px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,160px), 1fr)); gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--paper); }
.fact > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.fact-no { font-weight: 700; font-size: 13px; color: var(--muted); }
.fact-name { font-weight: 600; font-size: 15px; }
.fact-val { font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.bar { height: 8px; border-radius: 4px; background: rgba(13,50,54,.08); }
.bar i { display: block; width: var(--v); height: 100%; border-radius: 4px; background: var(--c); }
.source { font-size: 13px; color: var(--muted); }

/* Как это работает */
.how { padding-bottom: 0; }
.how .split-head p { max-width: 440px; font-size: 18px; color: rgba(245,234,210,.82); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,250px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 28px; background: var(--teal-l); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-n { font-weight: 800; font-size: 44px; line-height: 1; color: var(--mint); }
.step-tag { padding: 6px 10px; border-radius: 10px; background: var(--teal-d); font-weight: 600; font-size: 14px; color: var(--mint); }
.step-title { font-weight: 700; font-size: 20px; line-height: 1.25; }
.step-note { font-size: 15px; color: rgba(245,234,210,.78); }
.step-dispute { padding: 22px; background: transparent; box-shadow: inset 0 0 0 2px rgba(255,140,105,.55); }
.step-dispute .step-n, .step-dispute .step-tag { color: var(--coral); }
.step-dispute .step-note { font-size: 14px; font-weight: 600; color: #FFB59E; }
.tips { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(16px,3vw,32px); align-items: center;
  padding: clamp(20px,3vw,32px); border-radius: 28px; background: var(--cream); color: var(--ink); }
.tips-mascot { width: clamp(100px,12vw,150px); filter: drop-shadow(0 14px 16px rgba(13,50,54,.25)); }
.tips-title { font-weight: 800; font-size: clamp(20px,2.2vw,26px); letter-spacing: -.02em; }
.tips-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; font-size: 16px; list-style: none; }

/* Что происходит внутри: на широком экране лента едет вбок, пока секция прокручивается */
.story { position: relative; margin-top: clamp(64px,8vw,110px); }
.story-pin { padding: 84px 0 40px; }
.story-pin > .wrap { width: 100%; }
.story-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.story-head h3 { font-weight: 800; font-size: clamp(30px,4vw,48px); line-height: 1.05; letter-spacing: -.03em; }
.story-head span { font-size: 16px; color: rgba(245,234,210,.8); }
.timeline { position: sticky; top: 70px; z-index: 3; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 0; background: var(--teal); }
.timeline span { font-weight: 700; font-size: 14px; color: var(--mint); }
.timeline-bar { position: relative; flex: 1; height: 10px; border-radius: 5px; background: rgba(245,234,210,.14); }
.timeline-bar i { display: block; width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--mint-d), var(--mint)); }
.story-viewport { margin-top: 22px; }
.story-track { display: flex; flex-direction: column; gap: 20px; padding: 0; list-style: none; will-change: transform; }
.station { --fold-bg: var(--teal); --radius: 30px; position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border-radius: 30px; background: var(--cream); color: var(--ink); transition: opacity .35s; box-shadow: 0 30px 50px -28px rgba(0,0,0,.6); }
.station-top { display: flex; align-items: center; gap: 14px; }
.station-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; font-weight: 800; font-size: 32px;
  background: linear-gradient(150deg, var(--c1), var(--c2) 55%, var(--c3));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(0,0,0,.08), 0 14px 20px -8px rgba(13,50,54,.45); }
.station-no { font-weight: 700; font-size: 15px; color: var(--sc); }
.station-title { font-weight: 800; font-size: 30px; letter-spacing: -.025em; }
.station p { font-size: 17px; color: var(--ink-2); }
.station-mascot { position: absolute; right: 6px; bottom: -26px; width: 112px; height: 112px; display: none; filter: drop-shadow(0 12px 14px rgba(0,0,0,.3)); }
.station.is-active .station-mascot { display: block; animation: pop .3s ease-out both; }
@media (min-width: 760px) {
  .js .story { height: calc(100vh + 1700px); }
  .js .story-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .js .story-track { flex-direction: row; }
  .js .station { flex: 0 0 440px; opacity: .5; }
  .js .station.is-active { opacity: 1; }
}
.station6 { padding: clamp(40px,6vw,72px) 0 clamp(72px,10vw,140px); }
.dashed-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #FFB59E; font-weight: 600; font-size: 15px; }
.dashed-label::before { content: ""; flex: 0 0 40px; border-top: 2px dashed var(--coral); }
.expert-card { --fold: 60px; --fold-bg: var(--teal); --fold-c: var(--coral); --radius: 32px; --fold-r: 18px;
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,340px), 1fr)); gap: clamp(24px,4vw,48px); align-items: center;
  padding: clamp(28px,4vw,52px); border-radius: 32px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); }
.expert-frame { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: 30px; background: radial-gradient(70% 70% at 50% 45%, #16595E 0%, #0E4549 70%); }
.expert-frame img { position: absolute; inset: 4%; width: 92%; height: 92%; filter: drop-shadow(0 20px 24px rgba(0,0,0,.35)); }
.expert-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pill-coral { padding: 6px 12px; border-radius: 999px; background: #FFE1D6; color: #9A3B20; font-weight: 700; font-size: 14px; }
.expert-title { font-weight: 800; font-size: clamp(34px,4.6vw,56px); line-height: 1.02; letter-spacing: -.03em; }
.expert-copy p { font-size: 19px; color: var(--ink-2); text-wrap: pretty; }

/* Пример разбора: строка ответа подсвечивает место в решении (data-hl на #example-board) */
.hint { font-size: 17px; color: var(--ink-2); }
.hint-tap { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-tap { display: inline; } }
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,440px), 1fr)); gap: 28px; align-items: start; }
.sheet { position: relative; padding: 28px 24px 30px 64px; border-radius: 28px; rotate: -.5deg; background-color: var(--sheet);
  background-image: linear-gradient(90deg, transparent 46px, rgba(255,140,105,.45) 46px, rgba(255,140,105,.45) 48px, transparent 48px), var(--grid-note);
  background-size: 100% 100%, 24px 24px, 24px 24px; box-shadow: 0 30px 50px -28px rgba(13,50,54,.45); }
.sheet-cond { margin: 0 30px 14px -10px; padding: 10px 12px; border-radius: 12px; background: rgba(13,50,54,.04); transition: background .2s;
  font: italic 18px/1.5 "STIX Two Text", serif; color: var(--ink-2); }
.sheet-cond b { font: normal 700 14px Onest, sans-serif; color: var(--ink); }
.sheet-hand { display: flex; flex-direction: column; gap: 2px; font: 500 clamp(25px,2.4vw,30px)/1.35 Caveat, cursive; color: var(--hand); }
.sheet-a, .sheet-b { position: relative; margin-left: -10px; padding: 2px 10px; border-radius: 10px; transition: background .2s; }
.sheet-b { margin-top: 8px; }
.sheet-b .ring { rotate: 0deg; padding: 0 6px; border-color: rgba(255,140,105,.5); border-radius: 50% / 46%; transition: border-color .2s; }
.sheet .mark { position: absolute; font-weight: 700; transition: opacity .2s; }
.sheet-a .mark { left: -44px; top: 30%; font-size: 34px; color: var(--mint-text); opacity: .55; }
.sheet-b .mark { left: -46px; top: 6%; font-size: 30px; color: var(--coral-d); opacity: .5; }
.sheet-remark { margin: 14px 0 10px; font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--coral-d); rotate: -1deg; opacity: .5; transition: opacity .2s; }
.reply { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 24px 24px 24px 8px; background: var(--sheet);
  box-shadow: 0 30px 50px -28px rgba(13,50,54,.45); font-size: 17px; line-height: 1.5; }
.reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 0 6px 8px; border-bottom: 1px solid rgba(13,50,54,.08); }
.reply-head time { margin-left: auto; font-size: 13px; color: #6b8486; }
.reply-text { padding: 6px 10px; }
.reply .muted { color: var(--muted); }
.reply-row { display: block; width: 100%; padding: 8px 10px; border: none; border-radius: 12px; background: transparent; color: inherit;
  text-align: left; line-height: 1.5; cursor: pointer; transition: background .2s; }
.reply-foot { padding: 8px 10px 2px; font-size: 14px; color: var(--muted); }
.reply-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reply-actions span { flex: 1; min-width: 160px; padding: 12px; border-radius: 14px; background: rgba(13,50,54,.08); text-align: center; font-weight: 600; font-size: 15px; }
.reply-actions .reply-action-main { min-width: 200px; background: var(--teal); color: var(--cream); }
[data-hl="a"] .sheet-a { background: rgba(155,224,189,.5); }
[data-hl="a"] .sheet-a .mark { opacity: 1; }
[data-hl="b"] .sheet-b, [data-hl="f"] .sheet-b { background: rgba(255,140,105,.25); }
[data-hl="b"] .sheet-b .ring, [data-hl="f"] .sheet-b .ring { border-color: var(--coral); }
[data-hl="b"] .sheet-b .mark, [data-hl="f"] .sheet-b .mark,
[data-hl="b"] .sheet-remark, [data-hl="f"] .sheet-remark { opacity: 1; }
[data-hl="c"] .sheet-cond { background: rgba(124,200,242,.32); }
[data-hl="a"] [data-row="a"] { background: #E2F5EA; }
[data-hl="b"] [data-row="b"], [data-hl="f"] [data-row="f"] { background: #FFE8E0; }
[data-hl="c"] [data-row="c"] { background: #E3F2FB; }

/* Манифест: листы стопкой прилипают друг на друга */
.manifest { max-width: 1000px; }
.manifest .h2 { margin-bottom: clamp(36px,5vw,64px); }
.manifest-list { display: flex; flex-direction: column; gap: 22vh; }
.manifest-card { --fold: 54px; --fold-bg: var(--teal-d); --radius: 32px; --fold-r: 16px;
  position: sticky; top: var(--top); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(28px,4vw,52px); border-radius: 32px; background: var(--bg, var(--paper)); color: var(--ink); rotate: var(--rot);
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.4); }
.manifest-no { font-weight: 700; font-size: 16px; color: var(--mint-dd); }
.manifest-title { font-weight: 800; font-size: clamp(34px,5.4vw,68px); line-height: 1; letter-spacing: -.035em; }
.manifest-card p { max-width: 640px; font-size: clamp(18px,1.6vw,22px); color: var(--ink-2); }
.manifest-card-mint { --bg: var(--mint); --fold-c: var(--cream); --mark: var(--cream); }
.manifest-card-mint .manifest-no { color: var(--teal); }
.manifest-card-mint p { color: var(--ink); }

/* Люди */
.people-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.people-main { --fold: 58px; --fold-c: var(--paper); --radius: 32px; --fold-r: 18px;
  position: relative; grid-row: span 3; display: flex; flex-direction: column; gap: 20px; padding: clamp(26px,3.5vw,44px); border-radius: 32px;
  background: var(--mint); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 30px 50px -26px rgba(13,50,54,.5); }
.people-main img { width: clamp(120px,15vw,180px); filter: drop-shadow(0 14px 16px rgba(13,50,54,.25)); }
.people-title { font-weight: 800; font-size: clamp(30px,3.8vw,46px); line-height: 1.02; letter-spacing: -.03em; }
.people-main p { font-size: 18px; }
.people-main .people-bonus { font-size: 17px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 9px 14px; border-radius: 14px; background: rgba(13,50,54,.1); font-weight: 600; font-size: 15px; }
.tag-dark { background: var(--teal); color: var(--cream); }
.people-card { --fold: 42px; --fold-r: 12px; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 28px;
  background: var(--paper); box-shadow: 0 24px 40px -26px rgba(13,50,54,.45); }
.people-card h3 { padding-right: 40px; font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
.people-card p { font-size: 17px; color: var(--ink-2); }
.path-title { font-weight: 700; font-size: 18px; }
.path-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.path-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 24px; }
.path-auto { flex: 3 1 460px; background: rgba(13,50,54,.06); box-shadow: inset 0 0 0 2px rgba(79,191,142,.5); }
.path-human { flex: 2 1 320px; box-shadow: inset 0 0 0 2px rgba(255,140,105,.6); }
.path-label { font-size: 14px; font-weight: 700; color: var(--mint-dd); }
.path-human .path-label { color: #B6482A; }
.path-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.path-steps span { padding: 12px 16px; border-radius: 16px; background: var(--paper); }
.path-steps i { font-style: normal; font-weight: 800; color: var(--mint-text); }
.path-human .path-steps i { color: var(--coral-d); }
.path-steps .path-mint { background: var(--mint); }
.path-steps .path-coral { background: #FFD3C4; }

/* Сравнение */
.compare-title { font-size: clamp(32px,4.8vw,58px); line-height: 1.04; max-width: 820px; }
.night { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.night img { width: clamp(110px,12vw,150px); filter: drop-shadow(0 14px 18px rgba(0,0,0,.4)); }
.night span { font: 500 22px Caveat, cursive; color: var(--mint); rotate: -3deg; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 17px; }
.cmp thead th { padding: 18px 16px; text-align: left; vertical-align: bottom; font-weight: 700; font-size: 16px; color: rgba(245,234,210,.8); }
.cmp thead th.ours { --fold: 40px; --fold-bg: var(--teal); --fold-c: var(--cream); --radius: 26px; --fold-r: 12px;
  position: relative; padding: 22px 22px 18px; border-radius: 26px 26px 0 0; background: var(--mint); color: var(--ink); font-size: 20px; font-weight: 800; }
.cmp tbody th, .cmp tbody td { padding: 18px 16px; border-top: 1px solid rgba(245,234,210,.14); text-align: left; vertical-align: top; }
.cmp tbody th { padding-left: 0; font-weight: 600; }
.cmp tbody td { color: rgba(245,234,210,.78); }
.cmp td.ours { padding: 18px 22px; border-top-color: rgba(13,50,54,.12); background: var(--mint); color: var(--ink); font-weight: 700; }
.cmp tr:last-child td.ours { border-radius: 0 0 26px 26px; }
.cmp-cards { display: none; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.cmp-cards li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 22px; background: var(--teal-l); }
.cmp-cards b { font-size: 17px; }
.cmp-cards span { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: rgba(245,234,210,.8); text-align: right; }
.cmp-cards i { font-style: normal; text-align: left; }
.cmp-cards .ours { padding: 10px 12px; border-radius: 14px; background: var(--mint); color: var(--ink); font-weight: 700; }

/* Что проверяем */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,210px), 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 30px; background: var(--c); transition: transform .2s;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -6px 0 rgba(0,0,0,.07), 0 22px 36px -18px rgba(13,50,54,.45); }
.tile:hover { transform: translateY(-4px) rotate(-1deg); }
.tile:nth-child(even):hover { transform: translateY(-4px) rotate(1deg); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-no { font-weight: 800; font-size: 22px; }
.tile-name { font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.tile-desc { font-size: 15px; font-weight: 600; }
.tile-soon { background: none; color: var(--muted); box-shadow: inset 0 0 0 2px rgba(13,50,54,.15); }
.tile-soon:hover, .tile-soon:nth-child(even):hover { transform: none; }
.tile-soon .tile-top { align-items: center; }
.tile-soon .tile-desc { font-weight: 400; }
.soon { padding: 5px 10px; border-radius: 999px; background: rgba(13,50,54,.08); font-size: 13px; font-weight: 700; }
.ruble { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 3.5px var(--ink); font-weight: 800; font-size: 20px; }
.small-note { max-width: 760px; font-size: 15px; color: var(--muted); }

/* Точность */
.accuracy { overflow: hidden; color: var(--cream); background: radial-gradient(90% 90% at 30% 50%, #16595E 0%, #0E4549 55%, #0A3336 100%); }
.accuracy-grid { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,380px), 1fr));
  gap: clamp(36px,5vw,72px); align-items: center; }
.meter { --acc: 98; justify-self: center; width: clamp(260px,32vw,380px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--acc) * 3.6deg), rgba(245,234,210,.12) 0); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }
.meter-core { width: 78%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 38% 30%, #FFFBF1, #F5EAD2 55%, #E5D4B0); box-shadow: inset 0 -8px 16px rgba(120,90,40,.2), 0 10px 20px rgba(0,0,0,.25); }
.meter-core small { font-weight: 600; font-size: clamp(15px,1.4vw,18px); }
.meter-value { font-weight: 800; font-size: clamp(64px,8vw,104px); line-height: .95; letter-spacing: -.05em; }
.meter-value sup { font-size: .45em; vertical-align: top; }
.accuracy-title { font-size: clamp(34px,4.8vw,58px); line-height: 1.03; }
.accuracy-lead { font-size: clamp(18px,1.5vw,21px); color: rgba(245,234,210,.88); }
.accuracy-lead strong { color: var(--cream); }
.footnote { margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(245,234,210,.18); font-size: 14px; line-height: 1.55; color: rgba(245,234,210,.78); }

/* Цены */
.prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px), 1fr)); gap: 18px; }
.price { --fold: 42px; --fold-r: 12px; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px;
  background: var(--paper); box-shadow: 0 24px 40px -26px rgba(13,50,54,.45); }
.price-name { font-weight: 700; font-size: 17px; }
.price-value { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.price-note { font-size: 16px; color: var(--ink-2); }
.price-best { --fold-c: var(--paper); background: var(--mint); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 24px 40px -22px rgba(13,50,54,.55); }
.price-best .price-note { color: var(--ink); }
.badge-dark { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--teal); color: var(--mint); font-size: 13px; font-weight: 700; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr)); gap: 12px 28px; padding: 0; font-size: 17px; list-style: none; }
.perks li { display: flex; align-items: center; gap: 12px; }
.perk-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--c); font-weight: 800; font-size: 15px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.buy-row span { font-size: 15px; color: var(--muted); }

/* Родителям */
.parents-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr)); gap: clamp(32px,5vw,72px); }
.parents-title { font-size: clamp(36px,5vw,60px); }
.parents-lead { font-size: 18px; color: rgba(245,234,210,.82); }
.facts-list > div { display: grid; grid-template-columns: minmax(120px,170px) minmax(0,1fr); gap: 8px 20px; padding: 20px 0; border-top: 1px solid rgba(245,234,210,.16); }
.facts-list > div:last-child { border-bottom: 1px solid rgba(245,234,210,.16); }
.facts-list dt { font-weight: 700; color: var(--mint); }
@media (max-width: 479px) { .facts-list > div { grid-template-columns: minmax(0,1fr); gap: 4px; } }

/* Вопросы */
.faq { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 22px; background: var(--paper); box-shadow: 0 14px 26px -22px rgba(13,50,54,.5); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 18px; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--mint);
  font-size: 22px; font-weight: 600; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; font-size: 17px; color: var(--ink-2); }
.tutors { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: 26px;
  box-shadow: inset 0 0 0 2px rgba(13,50,54,.14); }
.tutors b { font-weight: 800; font-size: 20px; }
.tutors span { font-size: 16px; color: var(--ink-2); }

/* Финал */
.final { position: relative; overflow: hidden; padding: clamp(72px,10vw,130px) 20px; color: var(--cream);
  background: radial-gradient(100% 90% at 50% 30%, #16595E 0%, #0E4549 50%, #0A3336 100%); }
.final-inner { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final-mascot { width: clamp(200px,24vw,290px); filter: drop-shadow(0 24px 30px rgba(0,0,0,.4)); animation: float 6s ease-in-out infinite; }
.final h2 { font-weight: 800; font-size: clamp(52px,9vw,120px); line-height: .95; letter-spacing: -.045em; }
.final p { font-size: clamp(18px,1.6vw,22px); color: rgba(245,234,210,.88); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 8px; }
.qr-box { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 22px; background: rgba(10,51,54,.6); text-align: left; }
.qr-box img { width: 88px; height: 88px; padding: 4px; border-radius: 14px; background: var(--cream); }
.qr-box .stack > span { font-size: 14px; color: rgba(245,234,210,.8); }
.copy { padding: 6px 10px; border: none; border-radius: 10px; cursor: pointer; background: var(--teal-l); color: var(--cream); text-align: left;
  font: 600 15px var(--mono); }
.copy span { font: 13px Onest, sans-serif; color: var(--mint); }

/* Подвал */
.site-footer { padding: 48px 20px; background: var(--teal-xd); color: rgba(245,234,210,.8); font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--mint); }
.footer-legal { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(245,234,210,.12); font-size: 14px; line-height: 1.55; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: none; padding: 17px; border-radius: 20px; font-size: 17px;
  box-shadow: 0 5px 0 var(--mint-d), 0 18px 30px -8px rgba(0,0,0,.55); transition: transform .25s, opacity .25s; }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 759px) {
  .header-nav, .cmp, .qr-box, .par-wide { display: none; }

  /* Первый экран: телефон по центру, маскот поверх его угла, кнопки во всю ширину */
  .hero-actions, .hero-cta { align-self: stretch; }
  .hero-actions .btn, .final-actions .btn { width: 100%; padding: 18px 20px; font-size: 17px; }
  .final-actions { align-self: stretch; }
  .hero-visual { justify-content: center; }
  .hero-mascot { z-index: 3; width: 120px; left: -2%; bottom: -3%; }

  /* Маскот у заголовка — над ним, а не сбоку: иначе заголовок сжимается в колонку */
  .head-mascot { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .head-mascot > img, .head-mascot > .night { order: -1; justify-self: start; }
  .head-mascot-img { width: 96px; }
  .night { flex-direction: row; gap: 12px; }
  .night img { width: 96px; }

  .tips { grid-template-columns: minmax(0,1fr); }
  .tips-mascot { width: 88px; }

  .game-pick > span { flex-basis: 100%; }
  .note-game { font-size: 19px; }

  .sheet { padding-left: 44px; background-image: linear-gradient(90deg, transparent 30px, rgba(255,140,105,.45) 30px, rgba(255,140,105,.45) 32px, transparent 32px), var(--grid-note); }
  .sheet-cond { margin-right: 24px; font-size: 16px; }
  .sheet-hand { font-size: 21px; }
  .sheet-a .mark { left: -32px; font-size: 26px; }
  .sheet-b .mark { left: -36px; font-size: 22px; }
  .sheet-remark { font-size: 20px; }

  .cmp-cards { display: flex; }
  .station { padding-bottom: 64px; }
  .station-mascot { width: 88px; height: 88px; bottom: -20px; }
  .people-grid { grid-template-columns: 1fr; }
  .people-main { grid-row: auto; }
  .site-footer { padding-bottom: 110px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-links a { padding: 10px 0; }
  .sticky-cta { display: flex; }
}

/* Узкие телефоны: логотип и кнопка шапки должны поместиться в 320 px */
@media (max-width: 379px) {
  .header-row { gap: 12px; padding: 0 16px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 20px; }
  .btn-sm { padding: 10px 14px; font-size: 14px; }
  .hero-actions .btn, .final-actions .btn, .sticky-cta { padding-left: 14px; padding-right: 14px; font-size: 15px; }
}

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes blink { 0%, 90%, 100% { opacity: 0; } 91.5%, 95% { opacity: 1; } }
@keyframes confetti { 0% { transform: translateY(-30px) rotate(0); opacity: 1; } 100% { transform: translateY(360px) rotate(620deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
