/* пРАВИЛЬНОЕ ГДЗ — стили. Палитра и шрифты из утверждённого концепта. */
:root {
  --paper: #EFE9DD;
  --card: #F6F2E9;
  --line: #D9D0BF;
  --line-2: #B5AC9C;
  --ink: #1A1714;
  --graphite: #4A443D;
  --muted: #6E665C;
  --red: #C8412B;
  --red-dark: #9E2F1D;
  --ochre: #D4A04A;
  --green: #7C9A6B;
  --lavender: #A99BC9;
  --lavender-bg: #E4DDF0;
  --lavender-ink: #3E3263;
  --sans: "Onest", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(26,23,20,.08), 0 6px 18px rgba(26,23,20,.07);
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--red); }
img { display: block; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; }

/* --- экран и анимации ------------------------------------------------------ */
.screen {
  min-height: 100vh; display: flex; flex-direction: column;
  padding: calc(18px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  animation: screen-in .32s cubic-bezier(.2,.7,.2,1) both;
}
.screen.with-nav { padding-bottom: calc(96px + var(--safe-bottom)); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: screen-in .4s cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* --- типографика ------------------------------------------------------------ */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.h1 { font-size: clamp(30px, 9vw, 38px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; }
.h2 { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 18px; line-height: 1.42; font-weight: 500; letter-spacing: -.01em; }
.muted { color: var(--graphite); }
.serif-num { font-family: var(--serif); font-weight: 900; line-height: 1; }

.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; min-height: 28px; }
.topline a, .topline button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: none; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--red); border: 1px solid var(--red); border-radius: 6px; padding: 3px 6px; text-transform: uppercase; white-space: nowrap; }

/* --- логотип ---------------------------------------------------------------- */
.logo { font-weight: 800; letter-spacing: -.045em; line-height: 1; font-size: clamp(40px, 12.5vw, 52px); }
.logo .row { display: flex; align-items: baseline; }
.logo .strip { display: inline-block; background: var(--red); color: var(--card); padding: .12em .1em .06em; margin: 0 .04em; transform: rotate(-2deg); }
.strip { clip-path: polygon(0 6%,8% 0,19% 5%,33% 1%,47% 6%,61% 0,76% 4%,89% 0,100% 5%,99% 50%,100% 95%,88% 100%,74% 95%,60% 100%,46% 96%,31% 100%,17% 95%,6% 100%,0 94%,1% 50%); }
.torn { clip-path: polygon(0 3%,6% 0,14% 2%,22% 0,31% 3%,40% 1%,52% 3%,61% 0,70% 2%,80% 0,90% 3%,100% 1%,99% 22%,100% 47%,98% 72%,100% 97%,90% 100%,79% 97%,68% 100%,57% 98%,45% 100%,34% 97%,23% 100%,12% 98%,0 100%,2% 76%,0 51%,1% 26%); }
.grid-paper { background-image: linear-gradient(rgba(26,23,20,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(26,23,20,.08) 1px, transparent 1px); background-size: 20px 20px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; background: var(--card); padding: 5px 8px; box-shadow: 0 1px 3px rgba(26,23,20,.18); text-transform: uppercase; }

/* --- кнопки ----------------------------------------------------------------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: var(--r-md); border: 1.5px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s, background .2s, opacity .2s; width: 100%; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--red); color: var(--card); min-height: 58px; font-size: 17px; justify-content: space-between; }
.btn-primary.center { justify-content: center; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-boost { background: var(--lavender-ink); color: var(--card); }
.btn-soft-boost { background: var(--lavender-bg); color: var(--lavender-ink); }
.btn-ink { background: var(--ink); color: var(--card); }
.btn-small { min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; width: auto; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* --- обложка ---------------------------------------------------------------- */
.collage { position: relative; width: calc(100% + 40px); margin: 14px -20px 0; aspect-ratio: 1 / 1; max-height: 52vh; }
.collage > * { position: absolute; }
.welcome .collage .gp { left: 5%; right: 5%; top: 6%; bottom: 7%; border: 1px solid rgba(26,23,20,.12); }
.welcome .sun { left: 9%; top: 1.5%; width: 21.5%; aspect-ratio: 1; border-radius: 50%; background: var(--ochre); }
.welcome .ship { right: 1.5%; top: 4.5%; width: 50%; transform: rotate(3deg); box-shadow: 0 2px 6px rgba(26,23,20,.12); }
.welcome .map { left: 1%; top: 44%; width: 43.5%; transform: rotate(-5deg); opacity: .92; }
.welcome .redrect { left: 28.7%; top: 16.4%; width: 38.5%; height: 66.7%; background: var(--red); }
.welcome .hero { left: 18%; bottom: 7%; height: 81.5%; }
.welcome .redcircle { right: 7%; bottom: 7%; width: 28.7%; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.welcome .hero2 { right: 4.6%; bottom: 7%; height: 45.6%; }
.welcome .date { left: 5.6%; bottom: 8.7%; font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 13.8vw, 58px); color: var(--red); line-height: 1; }
.welcome .date2 { right: 5.6%; top: 45%; display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px; background: var(--paper); padding: 0 6px 2px; }
.welcome .date2::before { content: ""; width: 26px; border-top: 2px dotted var(--red); }
.welcome .who { left: 38%; bottom: 1.5%; transform: rotate(-1.5deg); }

/* --- читательский билет ------------------------------------------------------ */
.ticket-wrap { position: relative; margin: 18px -4px 0; padding: 24px 30px 18px 4px; }
.ticket-wrap .ms { position: absolute; right: 0; top: 0; width: 38%; transform: rotate(6deg); opacity: .9; }
.ticket { position: relative; background: var(--card); border-radius: 6px; box-shadow: 0 1px 2px rgba(26,23,20,.12), 0 8px 24px rgba(26,23,20,.10); transform: rotate(-1.5deg); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.ticket .head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.ticket .no { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 16px; color: var(--red); }
.avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--red); color: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.field { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.field .k { font-family: var(--mono); font-size: 11px; color: var(--graphite); letter-spacing: .06em; }
.field .fill { flex: 1; border-bottom: 1px dotted var(--muted); }
.field .v { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.ticket .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--line); padding-top: 12px; gap: 12px; }
.stamp { width: 92px; height: 92px; flex-shrink: 0; border-radius: 50%; border: 2px dashed var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--mono); font-size: 10px; line-height: 1.3; letter-spacing: .08em; color: var(--graphite); transform: rotate(-8deg); }
.stamp.ok { border: 3px solid var(--red); color: var(--red); font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: 0; animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(1.8); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; margin-top: 4px; }
.notice.warn { border: 1px solid var(--red); }

/* --- классы ----------------------------------------------------------------- */
.grades-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.grade-card { position: relative; height: 292px; border-radius: 20px; background: var(--card); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.grade-card:active { transform: scale(.98); }
.grade-card.single { grid-column: span 2; height: 240px; }
.grade-card .gp { position: absolute; inset: 0; }
.grade-card .shape { position: absolute; background: var(--red); }
.grade-card .shape.rect { left: 28%; top: 70px; width: 55%; height: 150px; }
.grade-card .shape.circle { left: 20%; top: 74px; width: 70%; aspect-ratio: 1; max-width: 124px; border-radius: 50%; }
.grade-card .pic { position: absolute; left: 4px; bottom: 50px; height: 182px; max-width: 100%; object-fit: contain; object-position: left bottom; }
.grade-card .num { position: absolute; left: 14px; top: 8px; font-family: var(--serif); font-weight: 900; font-size: 76px; line-height: 1; }
.grade-card .kl { position: absolute; right: 14px; top: 20px; }
.grade-card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: var(--ink); color: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; font-weight: 600; }
.divider { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tile { position: relative; height: 122px; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--muted); background: transparent; cursor: pointer; }
.tile img { position: absolute; right: -14px; bottom: -8px; height: 104px; opacity: .32; mix-blend-mode: multiply; }
.tile .n { position: absolute; left: 12px; top: 6px; font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: 1; }
.tile .yr { position: absolute; right: 8px; bottom: 6px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 26px; color: #CFC6B6; }
.tile .s { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.tile.boost { background: var(--lavender-bg); border: 0; color: var(--lavender-ink); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; line-height: 1.25; font-weight: 700; text-align: left; }

/* --- «скоро» ------------------------------------------------------------------ */
.soon-art { position: relative; height: 290px; margin-top: 18px; }
.soon-art > * { position: absolute; }
.soon-art .sheet { left: 10px; top: 20px; width: 250px; height: 250px; max-width: 66%; background-color: var(--card); transform: rotate(-3deg); }
.soon-art .block { right: 18px; top: 40px; width: 36%; height: 190px; background: var(--lavender); }
.soon-art .big { left: 24px; top: 4px; font-family: var(--serif); font-weight: 900; font-size: 220px; line-height: 1; letter-spacing: -.04em; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.soon-art .stampbig { right: 22px; bottom: 6px; width: 124px; height: 124px; border-radius: 50%; border: 3px solid var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-12deg); color: var(--red); background: rgba(239,233,221,.88); }
.soon-art .stampbig b { font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.soon-art .stampbig span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.soon-art .label { left: 22px; bottom: 6px; transform: rotate(-1.5deg); }
.boost-card { margin-top: 18px; border-radius: 18px; background: var(--lavender-bg); padding: 16px; display: flex; flex-direction: column; gap: 6px; color: #2E2547; }
.boost-card b { font-size: 16px; line-height: 1.3; }
.boost-card small { font-size: 13px; line-height: 1.4; color: #4A3F6B; }

/* --- разделы ----------------------------------------------------------------- */
.section-card { position: relative; display: block; height: 340px; margin-top: 18px; border-radius: var(--r-lg); background: var(--card); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.section-card:active { transform: scale(.985); }
.section-card .gp { position: absolute; inset: 0; }
.section-card .bg { position: absolute; left: -8px; top: 22px; width: 62%; transform: rotate(-3deg); opacity: .9; }
.section-card .shape { position: absolute; right: 36px; top: 30px; width: 120px; height: 170px; background: var(--red); }
.section-card .pic { position: absolute; right: 14px; top: 34px; height: 196px; }
.section-card .bigword { position: absolute; right: 16px; top: 18px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 110px; line-height: 1; color: var(--red); opacity: .9; }
.pill { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 99px; padding: 5px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.section-card .foot { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--ink); padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.title-caps { font-weight: 800; font-size: 25px; line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; }
.round-go { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; }
.section-soon { position: relative; display: block; width: 100%; height: 128px; margin-top: 12px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); overflow: hidden; text-decoration: none; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.section-soon .ghost { position: absolute; right: 14px; top: -6px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 84px; color: #DDD4C3; line-height: 1; }
.section-soon .mono { position: absolute; left: 16px; top: 16px; }
.section-soon .title-caps { position: absolute; left: 16px; bottom: 16px; font-size: 22px; color: var(--graphite); }

/* --- каталог ----------------------------------------------------------------- */
.search { margin-top: 16px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 500; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); }
.course-title { margin-top: 18px; }
.para-list { display: flex; flex-direction: column; margin-top: 6px; }
.para-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.para-row .num { font-family: var(--serif); font-weight: 900; font-size: 26px; color: var(--red); white-space: nowrap; }
.para-row .t { font-weight: 600; font-size: 16px; line-height: 1.25; }
.para-row .m { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.empty { text-align: center; padding: 40px 10px; color: var(--graphite); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty .serif-num { font-size: 64px; color: var(--line-2); }

/* --- параграф ---------------------------------------------------------------- */
.p-hero { position: relative; min-height: 250px; margin-top: 14px; }
.p-hero .gp { position: absolute; right: -20px; top: 0; width: 200px; height: 236px; border-left: 1px solid rgba(26,23,20,.12); }
.p-hero .sun { position: absolute; right: 18px; top: 20px; width: 110px; height: 110px; border-radius: 50%; background: var(--ochre); }
.p-hero .pic { position: absolute; right: -14px; bottom: 14px; height: 210px; }
.p-hero .sec { position: absolute; left: 0; top: -6px; font-family: var(--serif); font-weight: 900; font-size: clamp(76px, 26vw, 112px); line-height: 1; color: var(--red); letter-spacing: -.03em; white-space: nowrap; }
.p-hero h1 { position: absolute; left: 0; bottom: 14px; width: 62%; font-size: 26px; line-height: 1.06; font-weight: 800; letter-spacing: -.035em; background: var(--paper); padding: 6px 8px 6px 0; }
.mat-text { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 170px; padding: 18px; border-radius: var(--r-lg); background: var(--ink); color: var(--card); text-decoration: none; overflow: hidden; }
.mat-text .ms { position: absolute; right: 70px; top: -30px; width: 110px; transform: rotate(8deg); opacity: .4; }
.mat-text .mono { color: #CFC6B6; position: relative; }
.mat-text .row { position: relative; display: flex; justify-content: space-between; align-items: flex-end; }
.mat-row { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; min-height: 104px; padding: 0 18px; border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.mat-row .ttl { font-weight: 800; font-size: 20px; letter-spacing: -.025em; margin-top: 6px; display: block; }
.video-card { margin-top: 10px; display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); border: 1.5px solid var(--ink); }
.video-card .thumb { position: relative; height: 120px; border-radius: 14px; background: var(--ink); overflow: hidden; }
.video-card .thumb img { position: absolute; left: -12px; bottom: 0; height: 112px; opacity: .85; }
.video-card .play { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; }
.video-card .vt { font-weight: 700; font-size: 15px; line-height: 1.25; }
.video-card .body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* --- чтение ------------------------------------------------------------------ */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; background: transparent; z-index: 20; }
.progress i { display: block; height: 3px; width: 0; background: var(--red); transition: width .1s linear; }
.prose { font-size: 19px; line-height: 1.62; display: flex; flex-direction: column; gap: 18px; padding: 0 2px; overflow-wrap: break-word; }
.prose h2 { font-size: 23px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin-top: 8px; }
.prose h3 { font-size: 20px; line-height: 1.2; font-weight: 800; margin-top: 4px; }
.prose mark { color: inherit; font-weight: 700; background: linear-gradient(transparent 62%, rgba(200,65,43,.22) 62%); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose blockquote { margin: 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 14px 0; font-size: 17px; line-height: 1.5; }
.prose.small { font-size: 17px; gap: 12px; line-height: 1.6; }
.read-bar { position: sticky; bottom: 0; margin: 24px -20px calc(-24px - var(--safe-bottom)); padding: 14px 20px calc(18px + var(--safe-bottom)); background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.read-bar.one { grid-template-columns: 1fr; }

/* --- ответы ------------------------------------------------------------------ */
.qa { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.qa-item { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; transition: background .2s, box-shadow .2s; }
.qa-item.open { background: var(--card); border-color: transparent; box-shadow: var(--shadow); }
.qa-item > button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; background: transparent; border: 0; text-align: left; cursor: pointer; }
.qa-item .qn { font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--red); min-width: 34px; }
.qa-item .ql { flex: 1; font-weight: 700; font-size: 16px; }
.qa-item .chev { transition: transform .2s; }
.qa-item.open .chev { transform: rotate(180deg); }
.qa-body { display: none; padding: 0 16px 16px; flex-direction: column; gap: 12px; }
.qa-item.open .qa-body { display: flex; animation: screen-in .25s both; }
.qa-q { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--graphite); padding: 10px 12px; background: var(--paper); border-radius: 10px; white-space: pre-line; }

/* --- нижнее меню ------------------------------------------------------------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); }
.nav-inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 68px; }
.nav a, .nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: none; border: 0; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--graphite); cursor: pointer; }
.nav .on { color: var(--red); font-weight: 700; }
.nav .boost { color: var(--lavender-ink); }

/* --- служебное --------------------------------------------------------------- */
.loader { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.loader i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 50; animation: screen-in .25s both; max-width: 90vw; text-align: center; }
.card { background: var(--card); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); }
.about-logo { margin-top: 22px; }
.about-text { margin-top: 18px; white-space: pre-line; }
.sources { margin-top: 24px; font-size: 12px; color: var(--muted); line-height: 1.5; }
