/* Страница шага: текст, видео, слайды, списки, ключ, праздничный экран. */

.lesson { max-width: 820px; gap: var(--s5); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); color: var(--muted); font-size: var(--t-xs); font-weight: 500; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px var(--s3) 8px var(--s2); border-radius: 999px; }
.crumbs a:hover { background: rgba(14, 14, 17, .05); color: var(--ink); }
.crumbs .icon { width: 16px; height: 16px; }
.crumbs span::before { content: '·'; margin-right: var(--s3); color: var(--faint); }
.lesson-head { display: flex; gap: var(--s5); align-items: flex-start; }
.lesson-art { width: 92px; height: 92px; }
.lesson-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.lesson-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.author-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-inner); border: 1.5px dashed #C9C9D2; font-size: var(--t-xs); color: var(--muted); }
.author-bar .draft { margin: 0; }
.author-bar .btn { margin-left: auto; }
.lesson-body { display: flex; flex-direction: column; gap: var(--s5); }
.lesson-body > .prose { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s6) var(--s7); }
.block-title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s3); }
.block-title > span { color: var(--muted); font-size: var(--t-xs); font-weight: 400; margin-left: auto; }
.block-title .icon { color: var(--accent); }

.lesson-foot { position: sticky; bottom: var(--s4); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3); border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lift); }
.foot-prev { display: inline-flex; align-items: center; gap: var(--s2); padding: 0 var(--s4); min-height: 44px; color: var(--muted); font-size: var(--t-xs); font-weight: 500; border-radius: 999px; min-width: 0; }
.foot-prev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.foot-prev:hover { color: var(--ink); background: var(--wash); }
.lesson-action { display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); margin-left: auto; min-width: 0; }
.action-hint { color: var(--muted); font-size: var(--t-xs); text-align: right; }
.done-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; padding: 0 var(--s3); white-space: nowrap; }
.btn.is-waiting { opacity: .55; box-shadow: none; }

/* ——— Текст ——— */
.prose { font-size: var(--t-md); line-height: 1.6; max-width: 72ch; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { font-size: var(--t-lg); margin-top: var(--s7); }
.prose h3 { font-size: var(--t-md); font-weight: 600; margin-top: var(--s6); }
.prose h4 { font-size: var(--t-sm); font-weight: 600; margin: var(--s5) 0 0; }
.prose > :first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(47, 174, 143, .45); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--s2); }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ''; position: absolute; left: -1.1em; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { font-weight: 600; color: var(--muted); }
.prose li > ul, .prose li > ol { margin-top: var(--s2); }
.prose code { font: 500 .88em/1.4 var(--mono); padding: 2px 6px; border-radius: 7px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: var(--s6) 0; }
.prose blockquote { margin: var(--s4) 0 0; padding: var(--s3) var(--s5); border-radius: var(--r-inner); background: var(--wash); color: #3A3A42; }
.prose mark.todo { background: var(--todo); color: #4D3F00; padding: 1px 6px; border-radius: 6px; font-size: .86em; font-weight: 500; }
.pre-wrap { position: relative; border-radius: var(--r-inner); background: var(--dark); }
.prose pre { margin: 0; padding: var(--s4) var(--s5); padding-right: 132px; color: #E8E8EE; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { background: none; box-shadow: none; padding: 0; font: 400 var(--t-xs)/1.65 var(--mono); color: inherit; }
.pre-copy { position: absolute; top: var(--s3); right: var(--s3); display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s3); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: var(--t-xs); font-weight: 600; }
.pre-copy:hover { background: rgba(255, 255, 255, .2); }
.pre-copy .icon { width: 15px; height: 15px; }

.table-wrap { overflow-x: auto; margin-left: calc(var(--s2) * -1); margin-right: calc(var(--s2) * -1); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.45; }
.prose th { text-align: left; font-weight: 600; color: var(--muted); font-size: var(--t-xs); padding: var(--s2) var(--s3); border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.prose td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
/* На телефоне таблица превращается в карточки: строка — карточка, заголовок колонки — подпись. */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; margin: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: var(--s3) var(--s4); border-radius: var(--r-inner); background: var(--wash); }
  .prose tr + tr { margin-top: var(--s2); }
  .prose td { padding: var(--s1) 0; border: 0; }
  .prose td:empty { display: none; }
  .prose td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.6875rem; font-weight: 600; }
  .prose td:first-child { font-weight: 600; }
  .prose td:first-child::before { display: none; }
}

/* ——— Врезка ——— */
.callout { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5); border-radius: var(--r-card); background: var(--accent-wash); }
.callout-art { width: 44px; height: 44px; }
.callout b { display: block; font-weight: 600; font-size: var(--t-md); margin-bottom: 2px; }
.callout .prose { font-size: var(--t-sm); }
.callout.tone-warn { background: var(--warn-wash); }
.callout.tone-info { background: #E6EEFA; }
.callout.tone-author { background: none; border: 1.5px dashed #C9C9D2; }

/* ——— Видео ——— */
.video { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s2); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: calc(var(--r-card) - var(--s2)); background: var(--dark); }
.video figcaption { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4) var(--s2); font-size: var(--t-sm); }
.video figcaption .icon { color: var(--accent); }
.video figcaption b { font-weight: 600; }
.video figcaption span { color: var(--muted); margin-left: auto; font-size: var(--t-xs); }
.video.is-empty { box-shadow: none; background: none; border: 1.5px dashed #C9C9D2; }
.video-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s7) var(--s5); text-align: center; }
.video-empty span { color: var(--muted); font-size: var(--t-xs); max-width: 52ch; }
.video-art { width: 72px; height: 72px; }
.video-empty .btn { margin-top: var(--s3); }

/* ——— Список «Готово, когда» ——— */
.checklist { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s5) var(--s6); scroll-margin-top: 96px; transition: box-shadow .3s; }
.checklist.is-complete { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.check-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s2); }
.check-count { color: var(--muted); font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checklist.is-complete .check-count { color: var(--accent-ink); }
.check-note { color: var(--muted); font-size: var(--t-xs); margin-bottom: var(--s2); }
.check { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: flex-start; padding: var(--s3) 0; cursor: pointer; border-top: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
.check:first-of-type { border-top: 0; }
.check input { position: absolute; opacity: 0; width: 30px; height: 30px; margin: 0; }
.check-box { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); box-shadow: inset 0 0 0 1.5px #CFCFD8; color: transparent; transition: background .15s, transform .2s var(--ease); }
.check-box .icon { width: 19px; height: 19px; stroke-width: 2.5; }
.check input:checked + .check-box { background: var(--accent); box-shadow: none; color: #fff; transform: scale(1.06); }
.check input:focus-visible + .check-box { outline: 3px solid var(--g3); outline-offset: 3px; }
.check-text { font-size: var(--t-md); line-height: 1.45; padding-top: 2px; }
.check-text code { font: 500 .88em var(--mono); padding: 1px 5px; border-radius: 6px; background: var(--wash); }
.check input:checked ~ .check-text { color: var(--muted); }

/* ——— Вопросы ——— */
.quiz { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s5) var(--s6); display: flex; flex-direction: column; gap: var(--s5); }
.quiz .block-title { margin: 0; }
.quiz .block-title .e3d { width: 28px; height: 28px; }
.quiz-text { font-weight: 600; font-size: var(--t-md); margin-bottom: var(--s3); display: flex; gap: var(--s2); }
.quiz-text span { color: var(--faint); }
.quiz-options { display: flex; flex-direction: column; gap: var(--s2); }
.quiz-option { display: flex; align-items: center; gap: var(--s3); text-align: left; padding: var(--s3) var(--s4); border-radius: var(--r-inner); background: var(--wash); font-size: var(--t-sm); transition: background .15s; }
.quiz-option:hover { background: #EBEBF0; }
.quiz-letter { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-weight: 600; font-size: var(--t-xs); }
.quiz-option.is-right { background: var(--accent-wash); }
.quiz-option.is-right .quiz-letter { background: var(--accent); color: #fff; }
.quiz-option.is-wrong { background: var(--life-wash); }
.quiz-option.is-wrong .quiz-letter { background: var(--life); color: #fff; }
.quiz-feedback { margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-small); font-size: var(--t-sm); background: var(--wash); }
.quiz-feedback.right b { color: var(--accent-ink); }
.quiz-feedback.wrong b { color: var(--life); }

/* ——— Ключ ——— */
.keycard { background: var(--dark); color: var(--on-dark); border-radius: var(--r-card); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s5); }
.keycard header { display: flex; gap: var(--s4); align-items: flex-start; }
.key-art { width: 60px; height: 60px; }
.keycard header p { color: var(--on-dark-muted); font-size: var(--t-xs); margin-top: var(--s1); max-width: 56ch; }
.key-body { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.key-body > .btn { background: #fff; color: var(--ink); }
.key-body > .btn .icon { color: var(--accent); }
.key-set { display: flex; flex-direction: column; gap: var(--s2); width: 100%; }
.key-tier { font-size: var(--t-xs); color: var(--on-dark-muted); }
.key-field { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4); border-radius: var(--r-inner); background: rgba(255, 255, 255, .07); }
.key-field > span { color: var(--on-dark-muted); font-size: var(--t-xs); }
.key-field code { font: 500 var(--t-xs)/1.4 var(--mono); overflow-wrap: anywhere; user-select: all; }
.key-field .btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.key-field .btn-dark { background: #fff; color: var(--ink); }
.key-limit { display: flex; align-items: center; gap: var(--s2); color: var(--on-dark-muted); font-size: var(--t-xs); }
.key-limit .e3d { width: 22px; height: 22px; }
.key-empty { color: var(--on-dark-muted); }

.file { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.file-art { width: 44px; height: 44px; }
.file b { display: block; font-weight: 600; }
.file i { font-style: normal; color: var(--muted); font-size: var(--t-xs); }
.file .icon { margin-left: auto; color: var(--accent); }

.locked-page { max-width: 640px; }
.locked-card { display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; padding: var(--s8) var(--s6); }
.locked-art { width: 104px; height: 104px; }
.locked-why { font-weight: 600; }
.locked-offer { margin-top: var(--s3); padding: var(--s5); border-radius: var(--r-inner); background: var(--wash); text-align: left; width: 100%; }
.locked-offer p { color: var(--muted); }

@media (max-width: 700px) {
  .lesson-head { gap: var(--s4); }
  .lesson-art { width: 60px; height: 60px; }
  .lesson-body > .prose { padding: var(--s5); }
  .prose { font-size: var(--t-sm); }
  .prose pre { padding-right: var(--s5); padding-bottom: 60px; }
  .pre-copy { top: auto; bottom: var(--s3); }
  .checklist, .quiz { padding: var(--s4) var(--s5); }
  .check-text { font-size: var(--t-sm); }
  .lesson-foot { bottom: calc(var(--tabbar) + var(--safe-bottom) + var(--s3)); padding: var(--s2); }
  .foot-prev span { display: none; }
  .action-hint { display: none; }
  .lesson-action .btn { padding: 0 var(--s5); }
  .key-field { grid-template-columns: minmax(0, 1fr) auto; }
  .key-field > span { grid-column: 1 / -1; }
  .key-field code { grid-column: 1 / -1; }
  .block-title > span { margin-left: 0; flex-basis: 100%; }
}

/* ——— Презентация. Размеры внутри слайда считаются от его ширины (1cqw = 1% ширины),
       поэтому слайд одинаково выглядит на телефоне и на проекторе. ——— */
.deck { margin: 0; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s2); outline-offset: 4px; }
.deck-frame { container-type: inline-size; border-radius: calc(var(--r-card) - var(--s2)); overflow: hidden; background: var(--bg); }
.deck-stage { position: relative; aspect-ratio: 16 / 9; background: #F1F1F3; color: #0E0E11; padding: 5cqw; display: flex; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; overflow: hidden; }
.deck-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s1) 0; }
.deck-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.deck-btn:hover { background: var(--wash); }
.deck-btn[disabled] { color: var(--line); cursor: default; }
.deck-next { background: var(--dark); color: var(--on-dark); }
.deck-next:hover { background: var(--dark-2); }
.deck-next[disabled] { background: var(--wash); color: var(--faint); }
.deck-count { font-size: var(--t-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deck-dots { display: flex; justify-content: center; gap: 5px; flex: 1; flex-wrap: wrap; }
.deck-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.deck-dot.on { width: 22px; border-radius: 999px; background: var(--dark); }
.deck-notes { margin: var(--s3) var(--s2) var(--s2); padding: var(--s4); border-radius: var(--r-inner); border: 1.5px dashed #C9C9D2; font-size: var(--t-xs); color: #3A3A42; display: flex; flex-direction: column; gap: 4px; }
.deck-notes > b { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.deck-notes .icon { width: 15px; height: 15px; }

.deck.is-full { position: fixed; z-index: 80; inset: 0; border-radius: 0; background: #0B0B0D; padding: var(--s3); display: flex; flex-direction: column; justify-content: center; gap: var(--s2); }
.deck.is-full .deck-frame { width: min(100%, calc((100dvh - 96px) * 16 / 9)); margin: 0 auto; border-radius: 14px; }
.deck.is-full .deck-bar { width: min(100%, 720px); margin: 0 auto; }
.deck.is-full .deck-btn { color: #fff; }
.deck.is-full .deck-btn:hover { background: rgba(255, 255, 255, .12); }
.deck.is-full .deck-btn[disabled] { color: rgba(255, 255, 255, .25); }
.deck.is-full .deck-next, .deck.is-full .deck-next:hover { background: #fff; color: #0E0E11; }
.deck.is-full .deck-next[disabled] { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .3); }
.deck.is-full .deck-count { color: rgba(255, 255, 255, .7); }
.deck.is-full .deck-dot { background: rgba(255, 255, 255, .25); }
.deck.is-full .deck-dot.on { background: #fff; }
.deck.is-full .deck-notes { display: none; }
.deck-open { overflow: hidden; }

.sl-plate { position: absolute; top: 4.6cqw; left: 5cqw; display: flex; align-items: center; gap: 1cqw; font-weight: 600; font-size: 1.35cqw; letter-spacing: -0.01em; }
.sl-plate-mark { width: 3.1cqw; height: 3.1cqw; border-radius: 50%; background: #DDDDE3; color: #6E6E78; display: grid; place-items: center; font-size: .95cqw; font-weight: 600; }
.sl-foot { position: absolute; left: 5cqw; right: 5cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; color: #A6A6AF; font-size: 1cqw; }
.sl { flex: 1; min-width: 0; display: flex; padding-top: 3.4cqw; padding-bottom: 1.6cqw; }
.sl strong { font-weight: 700; }
.sl-title { font-size: 4.5cqw; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.sl-title span { display: block; }
.sl-title.big { font-size: 6.4cqw; }
.sl-title.center { text-align: center; font-size: 4cqw; }
.sl-cover { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.4cqw; }
.sl-cover-art { width: 10cqw; height: 10cqw; }
.sl-kicker { padding: .8cqw 2cqw; border-radius: 99cqw; background: #fff; box-shadow: 0 1.2cqw 2.4cqw -1cqw rgba(14, 14, 17, .22); color: #6E6E78; font-size: 1.15cqw; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sl-sub { color: #6E6E78; font-size: 2.2cqw; line-height: 1.3; max-width: 30em; }
.sl-rule { font-size: 4.3cqw; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; max-width: 17em; text-wrap: balance; }
.sl-rule strong { font-weight: 800; }
.sl-split { align-items: center; gap: 4cqw; }
.sl-left { flex: 0 0 36%; display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; }
.sl-right { flex: 1; min-width: 0; }
.sl-note { color: #6E6E78; font-size: 1.5cqw; line-height: 1.4; }
.sl-done-art { width: 7.4cqw; height: 7.4cqw; }
.sl-card { background: #fff; border-radius: 2.4cqw; box-shadow: 0 .2cqw .4cqw rgba(14, 14, 17, .04), 0 2cqw 3.4cqw -1.6cqw rgba(14, 14, 17, .2); padding: 2.6cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.6cqw; min-width: 0; }
.sl-card p { font-size: 2.15cqw; line-height: 1.3; text-wrap: balance; }
.sl-card b { font-size: 2.3cqw; font-weight: 800; letter-spacing: -0.02em; }
.sl-card-art { width: 6.6cqw; height: 6.6cqw; }
.sl-statement { padding: 3.4cqw; align-items: flex-start; text-align: left; }
.sl-statement p { font-size: 2.6cqw; line-height: 1.28; }
.sl-stack { flex-direction: column; gap: 2.6cqw; justify-content: center; }
.sl-cards { display: grid; gap: 2.2cqw; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0 1 46%; }
.sl-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-cards.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sl-cards.n4 .sl-card p { font-size: 1.75cqw; }
.sl-cards.compare { flex-basis: 62%; }
.sl-cards.compare .sl-card.better { background: #111113; color: #F4F4F6; }
.sl-rows { display: flex; flex-direction: column; gap: 1.2cqw; margin: 0; padding: 0; list-style: none; }
.sl-rows.tight { gap: .85cqw; }
.sl-rows.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8cqw; }
.sl-row { display: flex; align-items: center; gap: 1.5cqw; background: #fff; border-radius: 1.9cqw; padding: 1.6cqw 2cqw; box-shadow: 0 .2cqw .4cqw rgba(14, 14, 17, .04), 0 1.6cqw 2.6cqw -1.5cqw rgba(14, 14, 17, .2); }
.sl-rows.tight .sl-row { padding: 1.15cqw 1.7cqw; }
.sl-rows.two .sl-row { padding: 1cqw 1.3cqw; gap: 1cqw; }
.sl-row div { min-width: 0; flex: 1; }
.sl-row b { display: block; font-size: 1.75cqw; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.sl-row b.plain { font-weight: 500; font-size: 1.7cqw; }
.sl-rows.two .sl-row b.plain { font-size: 1.3cqw; }
.sl-row div span { display: block; color: #6E6E78; font-size: 1.3cqw; margin-top: .3cqw; }
.sl-row em { font-style: normal; color: #A6A6AF; font-size: 1.2cqw; white-space: nowrap; }
.sl-row .sl-num { width: 2.8cqw; height: 2.8cqw; border-radius: 50%; background: #0E0E11; color: #fff; display: grid; place-items: center; font-size: 1.25cqw; font-weight: 700; flex: none; }
.sl-check { width: 2.6cqw; height: 2.6cqw; flex: none; }
.sl-rows.two .sl-check, .sl-rows.two .sl-row .sl-num { width: 2cqw; height: 2cqw; font-size: 1cqw; }
.sl-next { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin-top: .4cqw; padding: 1.7cqw 2.2cqw; border-radius: 1.9cqw; background: #111113; color: #fff; font-size: 1.65cqw; font-weight: 600; }
.sl-next .icon { width: 1.9cqw; height: 1.9cqw; color: #63D6C6; }
.sl-code { margin: 0; background: #111113; color: #E8E8EE; border-radius: 2cqw; padding: 2.4cqw; font: 400 1.22cqw/1.55 var(--mono); white-space: pre-wrap; overflow: hidden; max-height: 100%; }
.sl .grad { padding-bottom: .08em; }

/* ——— Праздничный экран ——— */
.celebrate { position: fixed; z-index: 85; inset: 0; display: grid; place-items: center; padding: var(--s4); background: rgba(11, 11, 13, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; opacity: 0; transition: opacity .25s; }
.celebrate.in { opacity: 1; }
.cel-card { position: relative; z-index: 1; width: min(100%, 520px); display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; padding: var(--s8) var(--s6) var(--s6); border-radius: 36px; background: var(--dark); color: var(--on-dark); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: translateY(24px) scale(.96); transition: transform .5s var(--ease); }
.celebrate.in .cel-card { transform: none; }
.cel-art { width: 132px; height: 132px; margin-top: -92px; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55)); animation: pop .7s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.3) rotate(-18deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.cel-card h2 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.cel-title { color: var(--on-dark-muted); }
.cel-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: var(--s2) 0; }
.cel-reward { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 600; font-variant-numeric: tabular-nums; }
.cel-reward .e3d { width: 24px; height: 24px; }
.cel-reward b { font-weight: 800; }
.cel-reward.xp { color: var(--g1-dark); }
.cel-reward.coin { color: #FFD15C; }
.cel-reward.day { color: var(--on-dark-muted); font-weight: 500; font-size: var(--t-xs); }
.cel-level { display: flex; align-items: center; gap: var(--s4); width: 100%; padding: var(--s4); border-radius: var(--r-card); background: rgba(255, 255, 255, .06); text-align: left; }
.cel-level > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cel-level b { font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.cel-level i { font-style: normal; color: var(--on-dark-muted); font-size: var(--t-xs); }
.cel-level .bar { margin-top: var(--s2); }
.cel-new { font-size: var(--t-xs); font-weight: 600; color: var(--g1-dark); }
.cel-new.muted { color: var(--on-dark-muted); }
.cel-next { color: var(--on-dark-muted); font-size: var(--t-xs); }
.cel-level.is-up { background: linear-gradient(120deg, rgba(88, 201, 90, .2), rgba(74, 134, 208, .2)); box-shadow: inset 0 0 0 1px rgba(127, 227, 131, .35); }
.cel-level.is-up .avatar .arc.on { animation: arc-in .9s var(--ease) both; }
@keyframes arc-in { from { opacity: 0; stroke-width: 14; } }
.cel-awards { display: flex; flex-direction: column; gap: var(--s2); width: 100%; }
.cel-award { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-inner); background: rgba(255, 255, 255, .06); text-align: left; }
.cel-award .e3d { width: 36px; height: 36px; }
.cel-award span { flex: 1; min-width: 0; }
.cel-award b { display: block; font-weight: 600; }
.cel-award i { font-style: normal; color: var(--on-dark-muted); font-size: var(--t-xs); }
.cel-award em { font-style: normal; font-weight: 800; color: #FFD15C; }
.cel-streak { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: var(--t-sm); }
.cel-streak .e3d { width: 22px; height: 22px; }
.cel-streak span { color: var(--on-dark-muted); font-weight: 400; }
.cel-actions { display: flex; flex-direction: column; gap: var(--s2); width: 100%; margin-top: var(--s3); }
.cel-actions .btn { width: 100%; }
@media (max-width: 700px) { .cel-card { padding: var(--s8) var(--s5) var(--s5); border-radius: 30px; } .cel-art { width: 108px; height: 108px; margin-top: -78px; } }
