/* «История за минуту» — чистый светлый интерфейс: крупная типографика, матовое стекло, мягкие тени. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hair: rgba(0, 0, 0, .08);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --blue: #0071e3;
  --blue-2: #0077ed;
  --blue-soft: rgba(0, 113, 227, .1);
  --green: #34c759;
  --green-text: #1a7f37;
  --green-soft: rgba(52, 199, 89, .14);
  --red: #ff3b30;
  --red-text: #c9150b;
  --red-soft: rgba(255, 59, 48, .1);
  --orange: #ff9500;
  --orange-soft: rgba(255, 149, 0, .14);
  --grad: linear-gradient(92deg, #ff8a00 0%, #ff375f 48%, #bf5af2 100%);
  --r-xl: 28px;
  --r-l: 22px;
  --r-m: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --shadow-l: 0 6px 16px rgba(0, 0, 0, .08), 0 30px 70px rgba(0, 0, 0, .16);
  --spring: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.47 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.028em; line-height: 1.1; text-wrap: balance; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 980px; z-index: 50; font-size: 14px; }
.skip:focus { left: 8px; }
.note { color: var(--text-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- панель навигации и подвал ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 252, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__mark { width: 28px; height: 28px; transition: transform .5s var(--spring); }
.logo:hover .logo__mark { transform: scale(1.08) rotate(-6deg); }
.logo__text { font-size: 17px; font-weight: 600; letter-spacing: -.022em; white-space: nowrap; }
.logo__text em { font-style: normal; color: var(--text-2); font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 980px; text-decoration: none; font-size: 14px; color: var(--text); opacity: .82; transition: background .2s, opacity .2s; }
.nav a:hover { opacity: 1; background: var(--fill); }
.nav a.on { opacity: 1; background: var(--fill); font-weight: 600; }
.nav .ic { width: 16px; height: 16px; }
#app { flex: 1; padding-top: 40px; padding-bottom: 88px; outline: none; }
.view { animation: rise .6s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.foot { border-top: 1px solid var(--hair); font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.foot__in { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 22px; }

/* ---------- общие детали ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: -.008em; }
.eyebrow--accent { color: #e8590c; }
.card { background: var(--surface); border-radius: var(--r-xl); padding: 26px 28px; box-shadow: var(--shadow); }
.card--dark { background: #000; color: #f5f5f7; }
.card h3 { font-size: 21px; letter-spacing: -.022em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s var(--spring), opacity .2s;
}
.btn:hover { background: var(--blue-2); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--ink { background: var(--text); }
.btn--ink:hover { background: #333336; }
.btn--plain { background: var(--fill); color: var(--text); }
.btn--plain:hover { background: var(--fill-2); }
.btn--s { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: none; color: var(--text-2); padding: 0 8px; font-size: 15px; }
.btn--ghost:hover { background: none; color: var(--text); }
.btn .ic { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 15px; font-weight: 500; text-decoration: none; }
.link::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--spring); }
:is(a, button):hover > .link::after, .link:hover::after { transform: translate(3px, -1px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips--center { justify-content: center; }
.chips__label { font-size: 14px; color: var(--text-3); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 980px; background: rgba(0, 0, 0, .05); font-size: 14px; line-height: 1.25; text-align: left; transition: background .2s, transform .2s var(--spring); }
.chip:hover { background: rgba(0, 0, 0, .09); }
.chip:active { transform: scale(.96); }
.chip--topic { background: var(--blue-soft); color: var(--blue); }
.chip--topic:hover { background: rgba(0, 113, 227, .17); }
.chip .ic { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 980px; font-size: 13px; font-weight: 500; background: rgba(0, 0, 0, .05); color: var(--text-2); letter-spacing: 0; }
.tag--good { background: var(--green-soft); color: var(--green-text); }
.tag--warm { background: var(--orange-soft); color: #9a5b00; }
.tag--bad { background: var(--red-soft); color: var(--red-text); }
.tag .ic { width: 14px; height: 14px; }
.bubble { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.bubble .ic { width: 22px; height: 22px; }
.bubble--warm { background: var(--orange-soft); color: #c96a00; }
.bubble--bad { background: var(--red-soft); color: var(--red-text); }
.bubble--violet { background: rgba(191, 90, 242, .14); color: #8944ab; }
.bubble--good { background: var(--green-soft); color: var(--green-text); }

/* ---------- страница вопроса ---------- */
.hero { text-align: center; padding: 34px 0 0; }
.hero h1 { font-size: clamp(40px, 7.2vw, 80px); letter-spacing: -.038em; line-height: 1.04; margin-top: 14px; }
.hero__lead { margin: 20px auto 0; max-width: 660px; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.4; color: var(--text-2); letter-spacing: -.016em; }
.ask { max-width: 860px; margin: 40px auto 0; padding: 0; border: 1px solid var(--hair); transition: box-shadow .3s, border-color .3s; }
.ask:focus-within { border-color: rgba(0, 113, 227, .45); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14), var(--shadow); }
.ask__field { display: block; padding: 22px 26px 4px; }
.ask__field textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent; font-size: clamp(19px, 2.3vw, 23px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; min-height: 62px; max-height: 220px; }
.ask__field textarea::placeholder { color: var(--text-3); font-weight: 400; }
.ask__count { padding: 0 26px 8px; font-size: 12px; color: var(--text-3); text-align: right; min-height: 20px; letter-spacing: 0; }
.ask__count.over { color: var(--red-text); font-weight: 600; }
.ask__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 14px 14px 22px; border-top: 1px solid var(--hair); }
.ask__bar .btn { margin-left: auto; }
.field-label { font-size: 14px; color: var(--text-2); }
.grades, .para { display: flex; align-items: center; gap: 10px; min-width: 0; }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 10px; background: var(--fill); }
.seg__thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n, 7)); border-radius: 8px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .32s var(--spring); }
.seg label { position: relative; z-index: 1; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg span { display: grid; place-items: center; min-width: 38px; height: 32px; font-size: 15px; font-weight: 500; color: var(--text); transition: opacity .2s; }
.seg input:not(:checked) + span { opacity: .78; }
.seg input:checked + span { font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: -2px; border-radius: 8px; }
.para select, .para input { height: 36px; border: 0; border-radius: 10px; background-color: var(--fill); padding: 0 14px; max-width: 230px; min-width: 0; font-size: 15px; }
.para select { appearance: none; -webkit-appearance: none; padding-right: 34px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.500 1.500 6 6l4.500-4.500' fill='none' stroke='%236e6e73' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px; }
.para input { width: 230px; }
.para input::placeholder { color: var(--text-3); }
.ask-extra { margin: 22px auto 0; max-width: 860px; display: grid; gap: 12px; }
.hint { max-width: 860px; margin: 14px auto 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--orange-soft); font-size: 14px; color: #7a4a00; display: flex; gap: 10px; align-items: flex-start; }
.hint .ic { margin-top: 2px; }
.section-title { text-align: center; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.034em; margin: 96px 0 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 30px 28px 32px; }
.step h3 { font-size: 23px; margin: 20px 0 8px; }
.step p { color: var(--text-2); font-size: 16px; line-height: 1.42; }
.step .bubble { width: 52px; height: 52px; }
.step .bubble .ic { width: 26px; height: 26px; }

/* ---------- отказ / подсказка ---------- */
.refusal { max-width: 860px; margin: 22px auto 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; animation: rise .5s var(--spring) both; }
.refusal__q { display: inline-block; margin: 10px 0 2px; padding: 8px 14px; border-radius: 18px 18px 18px 5px; background: var(--blue); color: #fff; font-size: 15px; max-width: 100%; overflow-wrap: anywhere; }
.refusal h3 { font-size: 24px; margin-top: 8px; }
.refusal__msg { margin-top: 8px; color: var(--text-2); max-width: 640px; }
.refusal__note { margin-top: 8px; font-size: 14px; color: var(--red-text); font-weight: 500; }
.refusal .chips, .refusal__actions { margin-top: 18px; }
.refusal__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.after-refusal { max-width: 860px; margin: 18px auto 0; }
.countdown { font-size: 17px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- экран ожидания ---------- */
.wait { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px; align-items: start; }
.wait__head { grid-column: 1 / -1; padding: 4px 4px 6px; }
.wait__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.wait__head h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.034em; margin-top: 8px; overflow-wrap: anywhere; }
.eta { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px 0 13px; border-radius: 980px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eta__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); } 60% { box-shadow: 0 0 0 7px rgba(0, 113, 227, 0); } }
.bar { margin-top: 22px; height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.bar__fill { position: relative; height: 100%; width: 2%; border-radius: 3px; background: var(--grad); background-size: 100vw 100%; transition: width 1.4s var(--spring); overflow: hidden; }
.bar__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); background-size: 240px 100%; background-repeat: no-repeat; animation: shine 2.2s linear infinite; }
@keyframes shine { from { background-position: -240px 0; } to { background-position: 100vw 0; } }
.stages { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.stage { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-3); transition: color .4s; }
.stage .ic { width: 16px; height: 16px; }
.stage.active { color: var(--text); font-weight: 600; }
.stage.active .ic { color: var(--blue); animation: bob 1.2s ease-in-out infinite; }
.stage.done { color: var(--text-2); }
.stage.done .ic { color: var(--green); }
.stage.failed { color: var(--red-text); }
@keyframes bob { 50% { transform: translateY(-2px) scale(1.12); } }

.cinema { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: #000; color: #f5f5f7; box-shadow: var(--shadow-l); isolation: isolate; }
.cinema__frames { position: absolute; inset: 0; }
.cinema__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: blur(18px) saturate(.3) brightness(1.25); transition: opacity 1.2s, transform 7s var(--spring), filter 1.8s; }
.cinema__frames img.show { opacity: 1; transform: scale(1); filter: none; }
.cinema__dial { position: absolute; inset: 0; border: 3px solid transparent; border-radius: 0; transition: transform 1.1s var(--spring), background .8s, border-color .8s, border-radius .8s; transform-origin: 100% 0; }
/* когда появился кадр, кольцо уезжает в угол — как «картинка в картинке» на матовом стекле */
.cinema.has-frame .cinema__dial { transform: scale(.25) translate(-6.5%, 11%); border-radius: 72px; overflow: hidden; background: rgba(22, 22, 24, .62); border-color: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(60px) saturate(180%); backdrop-filter: blur(60px) saturate(180%); }
.cinema__dial canvas { width: 100%; height: 100%; }
.cinema.has-frame .cinema__glyph { top: 50%; }
.cinema__glyph { position: absolute; left: 50%; top: var(--cy, 44%); width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; color: #fff; }
.cinema__glyph .ic { width: 62%; height: 62%; stroke-width: 1.5; animation: glyph .6s var(--spring) both; }
@keyframes glyph { from { opacity: 0; transform: scale(.6); } }
.cinema__caption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 20px; border-radius: 20px; background: rgba(22, 22, 24, .6); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); border: 1px solid rgba(255, 255, 255, .14); }
.cinema__now { font-size: clamp(17px, 2.1vw, 22px); font-weight: 600; letter-spacing: -.022em; line-height: 1.2; }
.cinema__sub { margin-top: 3px; font-size: 14px; color: rgba(245, 245, 247, .72); min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinema__badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 980px; background: rgba(22, 22, 24, .6); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 500; letter-spacing: 0; animation: fade .5s both; }

.strip { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.strip::-webkit-scrollbar { display: none; }
.strip__slot { position: relative; flex: 1 0 74px; max-width: 140px; aspect-ratio: 16 / 9; border-radius: 12px; background: rgba(0, 0, 0, .07); overflow: hidden; transition: box-shadow .3s; }
.strip__slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .7) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer 2.4s linear infinite; }
.strip__slot.done::after { display: none; }
.strip__slot.now { box-shadow: 0 0 0 2.5px var(--blue); }
.strip__slot img { width: 100%; height: 100%; object-fit: cover; animation: develop 1.4s var(--spring) both; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@keyframes develop { from { opacity: 0; filter: blur(10px) saturate(0); transform: scale(1.18); } }
.strip__n { position: absolute; left: 7px; bottom: 5px; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.strip__slot.done .strip__n { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.voice { margin-top: 18px; }
.voice__head { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.eq { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--grad); background-size: 100% 18px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.2s; }
.eq i:nth-child(2) { animation-delay: -.5s; }
.eq i:nth-child(3) { animation-delay: -.8s; }
.eq i:nth-child(4) { animation-delay: -.35s; }
.eq i:nth-child(5) { animation-delay: -.65s; }
.eq.idle i { animation-play-state: paused; opacity: .35; transform: scaleY(.3); }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.voice__text { margin-top: 12px; font-size: clamp(18px, 2vw, 21px); font-weight: 500; line-height: 1.42; letter-spacing: -.018em; min-height: 3em; transition: opacity .35s; }
.voice__text.swap { opacity: 0; }
.voice__meta { margin-top: 10px; font-size: 13px; color: var(--text-3); letter-spacing: 0; }

.side { display: grid; gap: 18px; position: sticky; top: 74px; }
.quiz__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz__head h3 { font-size: 19px; }
.score { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px 0 9px; border-radius: 980px; background: var(--orange-soft); color: #9a5b00; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score .ic { width: 15px; height: 15px; color: var(--orange); }
.score.pop { animation: pop .55s var(--spring); }
@keyframes pop { 35% { transform: scale(1.25); } }
.quiz__src { margin-top: 14px; font-size: 13px; color: var(--text-3); letter-spacing: 0; }
.quiz__q { margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.quiz__q:first-child { margin-top: 14px; }
.quiz__opts { display: grid; gap: 8px; margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px 11px 11px; border-radius: var(--r-m); background: var(--bg); font-size: 16px; line-height: 1.3; transition: background .2s, transform .2s var(--spring), box-shadow .2s; }
.opt__k { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--hair); font-size: 13px; font-weight: 600; color: var(--text-2); }
.opt:not(:disabled):hover { background: #ebebf0; }
.opt:not(:disabled):active { transform: scale(.98); }
.opt:disabled { cursor: default; color: var(--text); }
.opt.right { background: var(--green-soft); box-shadow: inset 0 0 0 1.5px rgba(52, 199, 89, .55); }
.opt.right .opt__k { background: var(--green); color: #fff; box-shadow: none; }
.opt.wrong { background: var(--red-soft); box-shadow: inset 0 0 0 1.5px rgba(255, 59, 48, .45); animation: shake .4s; }
.opt.wrong .opt__k { background: var(--red); color: #fff; box-shadow: none; }
.opt.dim { opacity: .45; }
.opt__k .ic { width: 15px; height: 15px; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.quiz__fb { margin-top: 14px; min-height: 24px; font-size: 15px; font-weight: 600; }
.quiz__fb.ok { color: var(--green-text); }
.quiz__fb.no { color: var(--red-text); }
.quiz__quote { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--bg); font-size: 14px; line-height: 1.45; color: var(--text-2); display: flex; gap: 8px; }
.quiz__quote .ic { color: var(--text-3); margin-top: 2px; width: 15px; height: 15px; }
.quiz__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--text-3); min-height: 36px; letter-spacing: 0; }
.quiz__auto { height: 2px; margin-top: 12px; border-radius: 1px; background: var(--fill); overflow: hidden; }
.quiz__auto i { display: block; height: 100%; width: 100%; background: var(--text-3); transform-origin: left; animation: drain linear both; }
@keyframes drain { to { transform: scaleX(0); } }
.notify { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.notify h3 { font-size: 19px; }
.notify p { color: var(--text-2); font-size: 15px; line-height: 1.4; margin: 6px 0 14px; }
.notify p:last-child { margin-bottom: 0; }
.notify .ok { color: var(--green-text); font-weight: 500; }

/* ---------- страница ролика ---------- */
.watch__head { padding: 4px 4px 0; }
.watch__head h1 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.036em; margin-top: 8px; overflow-wrap: anywhere; }
.watch { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.player { border-radius: 24px; overflow: hidden; background: #000; box-shadow: var(--shadow-l); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player.vertical { max-width: 400px; margin: 0 auto; }
.player.vertical { max-width: min(400px, 40vh); }
.player.vertical video { aspect-ratio: 9 / 16; }
.track { display: flex; gap: 4px; padding: 10px 14px 14px; background: #000; }
.track button { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; min-width: 8px; transition: transform .2s var(--spring), background .2s; }
.track button::before { content: ""; position: absolute; inset: -8px 0; }
.track button i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.track button.past i { transform: scaleX(1); }
.track button:hover { background: rgba(255, 255, 255, .4); transform: scaleY(1.6); }
.under { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 0 2px; }
.under .btn { margin-left: auto; }
.chapters { margin-top: 20px; padding: 24px 16px 14px; }
.chapters h3 { padding: 0 12px; }
.chapters ol { list-style: none; margin: 12px 0 0; padding: 0; }
.chapters li + li { border-top: 1px solid var(--hair); }
.chapters li:has(.on), .chapters li:has(.on) + li { border-top-color: transparent; }
.ch { display: grid; grid-template-columns: 46px 96px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 16px; text-align: left; transition: background .2s; }
.ch:hover { background: var(--bg); }
.ch.on { background: var(--blue-soft); }
.ch__t { font-size: 14px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ch.on .ch__t { color: var(--blue); }
.ch__img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.ch__img img { width: 100%; height: 100%; object-fit: cover; }
.ch__title { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.016em; }
.ch__text { font-size: 14px; line-height: 1.4; color: var(--text-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch.on .ch__text { -webkit-line-clamp: unset; }
.react { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding: 18px 24px; }
.react__q { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-right: 6px; }
.react .btn--ghost { margin-left: auto; }
.react__done { font-size: 15px; font-weight: 500; color: var(--green-text); display: flex; gap: 8px; align-items: center; }
.side-col { display: grid; gap: 18px; }
.remember__date { font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -.045em; margin: 12px 0 14px; width: fit-content; }
.remember__text { font-size: 21px; font-weight: 600; line-height: 1.28; letter-spacing: -.02em; }
.source { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.source b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.018em; margin-top: 2px; }
.source span.book { font-size: 14px; color: var(--text-2); }
.answer { font-size: 15px; line-height: 1.45; color: var(--text-2); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hair); }
.more { margin-top: 84px; }
.more h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.034em; text-align: center; }
.more__lead { text-align: center; color: var(--text-2); margin-top: 10px; font-size: 19px; }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.more__card { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; text-align: left; padding: 24px 26px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.022em; transition: transform .35s var(--spring), box-shadow .35s; }
.more__card:hover { transform: scale(1.02); box-shadow: var(--shadow-l); }
.more__own { display: flex; gap: 10px; margin: 20px auto 0; max-width: 720px; padding: 7px 7px 7px 24px; align-items: center; background: var(--surface); border-radius: 980px; box-shadow: var(--shadow); border: 1px solid var(--hair); transition: box-shadow .3s, border-color .3s; }
.more__own:focus-within { border-color: rgba(0, 113, 227, .45); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14), var(--shadow); }
.more__own input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; height: 40px; }
.more__own input::placeholder { color: var(--text-3); }
.send { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s var(--spring); }
.send:hover { background: var(--blue-2); }
.send:active { transform: scale(.9); }
.send .ic { width: 20px; height: 20px; transform: rotate(-90deg); }
.withdrawn { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 9; padding: 28px; background: var(--surface); color: var(--text); }
.withdrawn .bubble { margin: 0 auto 14px; }
.withdrawn h3 { font-size: 22px; margin-bottom: 8px; }
.withdrawn p { max-width: 420px; font-size: 15px; }

/* ---------- мои ролики ---------- */
.my__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 4px 0; }
.my__head h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -.038em; margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 30px; }
.vcard { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--spring), box-shadow .35s; }
.vcard:hover { transform: scale(1.02); box-shadow: var(--shadow-l); }
.vcard__img { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 30, 32, .5); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.vcard__play .ic { width: 17px; height: 17px; margin-left: 2px; }
.vcard__dur { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 980px; background: rgba(30, 30, 32, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.vcard__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.vcard__q { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.vcard__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-3); align-items: center; letter-spacing: 0; }
.vcard.off .vcard__img img { filter: grayscale(1) brightness(.55); }
.empty { max-width: 560px; margin: 40px auto 0; text-align: center; padding: 48px 28px; }
.empty h3 { font-size: 26px; margin: 18px 0 8px; }
.empty p { color: var(--text-2); margin-bottom: 24px; }
.empty .logo__mark { width: 64px; height: 64px; margin: 0 auto; }
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 860px; margin: 24px auto 0; padding: 12px 12px 12px 18px; border-radius: var(--r-l); font-size: 15px; }
.banner > span:not(.bubble) { flex: 1; min-width: 180px; }
.banner .bubble { width: 36px; height: 36px; }
.banner .bubble .ic { width: 18px; height: 18px; }
.my .banner { max-width: none; }
.spinner { width: 34px; height: 34px; margin: 110px auto; border-radius: 50%; border: 3px solid var(--fill-2); border-top-color: var(--text-3); animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- окно подтверждения, всплывающая строка ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s both; }
.modal__box { width: min(420px, 100%); padding: 28px; text-align: center; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--shadow-l); animation: zoom .35s var(--spring) both; }
@keyframes zoom { from { opacity: 0; transform: scale(1.08); } }
.modal__box h3 { font-size: 21px; }
.modal__box p { margin: 10px 0 22px; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; padding: 12px 20px; border-radius: 980px; background: rgba(30, 30, 32, .82); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: #fff; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-l); animation: rise .4s var(--spring) both; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- узкие экраны ---------- */
@media (max-width: 980px) {
  .wait, .watch { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 3; }
  /* в одну колонку разминка встаёт сразу под «экраном», текст диктора — после неё */
  .wait__main { display: contents; }
  .wait__head { order: 0; }
  .cinema { order: 1; }
  .strip { order: 2; margin-top: -8px; }
  .voice { order: 4; margin-top: 0; }
  .more__grid, .steps { grid-template-columns: 1fr; }
  .steps { max-width: 560px; margin: 0 auto; }
  .section-title { margin-top: 72px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  #app { padding-top: 22px; padding-bottom: 56px; }
  .top__in { height: 48px; }
  .logo__text { font-size: 16px; }
  .nav a { padding: 0 9px; }
  .nav a span { display: none; }
  .nav a .ic { width: 19px; height: 19px; }
  .hero { padding-top: 18px; }
  .card { padding: 20px; border-radius: 22px; }
  .ask { margin-top: 28px; padding: 0; }
  .ask__field { padding: 18px 20px 2px; }
  .ask__count { padding: 0 20px 6px; }
  .ask__bar { padding: 14px 16px 16px; gap: 14px; }
  .ask__bar .btn { width: 100%; margin-left: 0; min-height: 50px; }
  .grades, .para { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
  .seg span { min-width: 0; height: 36px; }
  .para select, .para input { width: 100%; max-width: none; height: 40px; }
  .chips--center { justify-content: flex-start; }
  .refusal { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wait__top { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .stages { gap: 6px 16px; }
  .stage { font-size: 13px; }
  .cinema { border-radius: 22px; }
  .cinema__caption { left: 8px; right: 8px; bottom: 8px; padding: 10px 14px; border-radius: 16px; }
  .cinema__sub { font-size: 12.5px; }
  .cinema__badge { left: 10px; top: 10px; font-size: 11.5px; padding: 5px 10px; }
  .strip { gap: 8px; }
  .strip__slot { flex-basis: 62px; border-radius: 9px; }
  .notify { grid-template-columns: minmax(0, 1fr); }
  .notify .bubble { display: none; }
  .player { border-radius: 20px; }
  .chapters { padding: 20px 8px 8px; }
  .ch { grid-template-columns: 38px 76px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .react { padding: 16px 18px; }
  .react .btn--ghost, .under .btn { margin-left: 0; }
  .remember__date { font-size: 60px; }
  .more { margin-top: 60px; }
  .more__lead { font-size: 17px; }
  .more__own { padding-left: 18px; }
  .foot__in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
