/* ЗНДХ · вводный курс. Цвета из ../assets/tokens.css (бренд zndkh.ru).
   DIN Pro не выкладываем (коммерческая лицензия), вместо него Roboto / Roboto Condensed. */

:root {
  --zn-orange-logo: #FAB20B;
  --zn-green-logo: #17AD49;
  --zn-yellow: #FFB338;
  --zn-yellow-light: #FFC971;
  --zn-green: #00B15D;
  --zn-green-light: #12C771;
  --zn-ink: #100821;
  --zn-graphite: #464E56;
  --zn-bg: #FAFBFC;
  --zn-panel: #FFFFFF;
  --zn-gray-section: #F2F2F2;
  --zn-line: rgba(70, 78, 86, 0.3);
  --zn-overlay: rgba(4, 9, 17, 0.5);

  --font: "DIN Pro", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Roboto Condensed", "DIN Pro", "Roboto", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;

  --r-card: 20px;
  --r-sm: 10px;
  --r-pill: 130px;
  --topbar-h: 68px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--zn-bg); color: var(--zn-ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--zn-green); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--zn-yellow); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 28px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, transform .15s var(--ease), box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--lg { min-height: 60px; padding: 0 12px 0 32px; font-size: 18px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--yellow { background: var(--zn-yellow); color: var(--zn-ink); }
.btn--yellow:hover:not(:disabled) { background: var(--zn-yellow-light); }
.btn--green { background: var(--zn-green); color: #fff; }
.btn--green:hover:not(:disabled) { background: var(--zn-green-light); }
.btn--ghost { border-color: var(--zn-yellow); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 179, 56, .15); }
.btn--ghost-dark { border-color: var(--zn-yellow); color: var(--zn-ink); background: transparent; }
.btn--ghost-dark:hover { background: rgba(255, 179, 56, .15); }
.btn--link { background: none; color: var(--zn-graphite); padding: 0 8px; text-decoration: underline; text-underline-offset: 4px; }
.arrow-dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--zn-ink); position: relative; flex: none;
}
.arrow-dot::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-right: 2px solid var(--zn-yellow); border-bottom: 2px solid var(--zn-yellow);
  transform: translateX(-2px) rotate(-45deg);
}
.btn--lg:hover .arrow-dot { transform: translateX(3px); transition: transform .2s var(--ease); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zn-green); box-shadow: 0 0 0 4px rgba(0, 177, 93, .25); }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 0 24px; color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.topbar.is-solid { background: rgba(250, 251, 252, .94); color: var(--zn-ink); box-shadow: 0 1px 0 var(--zn-line); backdrop-filter: blur(10px); }
.topbar.is-solid.is-dark { background: rgba(16, 8, 33, .9); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.topbar__logo img { height: 34px; width: auto; }
.topbar .logo-on-light { display: none; }
.topbar.is-solid:not(.is-dark) .logo-on-light { display: block; }
.topbar.is-solid:not(.is-dark) .logo-on-dark { display: none; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.score { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.score b { font-size: 28px; font-weight: 700; color: var(--zn-yellow); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.score small { font-size: 13px; opacity: .75; }
.score.bump b { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; background: none; display: grid; place-items: center; opacity: .8; }
.icon-btn:hover { opacity: 1; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .snd-off, .icon-btn.muted .snd-on { display: none; }
.icon-btn.muted .snd-off { display: block; }

/* Трубопровод прогресса: нефть течёт от станции к станции */
.pipe { position: relative; display: flex; justify-content: space-between; max-width: 560px; width: 100%; justify-self: center; }
.pipe__track {
  position: absolute; left: 11px; right: 11px; top: 11px; height: 6px; border-radius: 3px;
  background: currentColor; opacity: 1; overflow: hidden;
}
.pipe__track { background: rgba(127, 127, 127, .35); }
.pipe__oil {
  height: 100%; width: 0; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--zn-yellow) 0 14px, var(--zn-orange-logo) 14px 20px);
  background-size: 40px 100%; animation: flow 1.2s linear infinite; transition: width .9s var(--ease);
}
@keyframes flow { to { background-position: 40px 0; } }
.pipe__st { position: relative; z-index: 1; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; }
.pipe__st i {
  width: 28px; height: 28px; margin-top: -3px; border-radius: 50%; border: 2px solid rgba(127,127,127,.6);
  background: var(--zn-ink); display: grid; place-items: center; transition: all .3s;
}
.topbar.is-solid:not(.is-dark) .pipe__st i { background: var(--zn-bg); }
.topbar .pipe .pipe__st.is-done i { border-color: var(--zn-green); background: var(--zn-green); }
.pipe__st.is-done i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.pipe__st.is-current i { border-color: var(--zn-yellow); box-shadow: 0 0 0 5px rgba(255, 179, 56, .25); }
.pipe__st span { opacity: .8; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--zn-ink); }
.hero__bg { position: absolute; inset: -4%; background-size: cover; background-position: center 60%; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1.5%, -1%); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,9,17,.55) 0%, rgba(4,9,17,.35) 40%, rgba(16,8,33,.92) 100%); }
.hero__inner { position: relative; padding: calc(var(--topbar-h) + 40px) 0 110px; }
.hero__mark { width: clamp(64px, 9vw, 110px); margin-bottom: 28px; }
.hero__mark svg { width: 100%; height: auto; overflow: visible; }
.mark-path {
  fill: var(--zn-orange-logo); fill-opacity: 0; stroke: var(--zn-orange-logo); stroke-width: 8;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease) .3s forwards, fillin .8s ease 2.1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-width: 0; } }
.hero .eyebrow { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.hero__title { font-size: clamp(56px, 11vw, 150px); font-weight: 500; letter-spacing: -.03em; line-height: .92; text-transform: none; }
.hero__title em { font-style: normal; color: var(--zn-yellow); }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.88); margin: 26px 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.hero__meta { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.hero__meta b { display: block; font-family: var(--font-display); font-size: 26px; color: #fff; font-weight: 500; line-height: 1.1; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.6); border-radius: 12px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--zn-yellow); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

/* ---------- Секции ---------- */
.sec { position: relative; padding: 110px 0 120px; overflow: hidden; }
.sec__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; will-change: transform; }
.sec--dark { background: var(--zn-ink); color: #fff; }
.sec--dark .sec__bg { opacity: .22; }
.sec--dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--zn-ink) 0%, rgba(16,8,33,.4) 30%, rgba(16,8,33,.6) 70%, var(--zn-ink) 100%); z-index: 0; }
.sec > .wrap { position: relative; z-index: 1; }
.sec__head { max-width: 720px; margin-bottom: 44px; }
.sec__head h2 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.02em; }
.sec__sub { font-size: 18px; margin: 18px 0 0; color: var(--zn-graphite); }
.sec--dark .sec__sub { color: rgba(255,255,255,.78); }
.step-label { margin: 0 0 16px; }
.step-label span { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--zn-yellow); color: var(--zn-yellow); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.sec--tasks .step-label span, .sec--diploma .step-label span { color: var(--zn-ink); background: var(--zn-yellow); }

/* ---------- Видео ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.video-frame iframe, .video-frame #kplayer { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.chapters { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-card); padding: 22px; backdrop-filter: blur(8px); }
.chapters__title { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.chapters ol { list-style: none; margin: 0; padding: 0; position: relative; }
.chapters ol::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: rgba(255,255,255,.2); }
.chapters li button {
  width: 100%; display: grid; grid-template-columns: 12px 44px 1fr; gap: 10px; align-items: center; text-align: left;
  background: none; border: 0; padding: 7px 0; color: rgba(255,255,255,.78); font-size: 15px; border-radius: 8px;
}
.chapters li button:hover { color: #fff; }
.chapters li i { width: 11px; height: 11px; border-radius: 50%; background: var(--zn-yellow); position: relative; z-index: 1; transition: all .3s; }
.chapters li code { font-family: var(--font-mono); font-size: 13px; color: var(--zn-yellow); }
.chapters li.is-seen i { background: var(--zn-graphite); }
.chapters li.is-active button { color: #fff; font-weight: 500; }
.chapters li.is-active i { background: var(--zn-green); box-shadow: 0 0 0 4px rgba(0,177,93,.3); }
.watch { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.watch__bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.watch__bar i { display: block; height: 100%; width: 0; background: var(--zn-green); transition: width .4s; }
.watch__txt { font-size: 14px; color: rgba(255,255,255,.7); margin: 10px 0 14px; }
.watch.is-done .watch__txt { color: var(--zn-green-light); }

/* ---------- Задания ---------- */
.sec--tasks { background: var(--zn-gray-section); }
.sec__bg--blur { opacity: .16; filter: blur(14px) saturate(.6); }
.locked {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 26px;
  border-radius: var(--r-card); background: var(--zn-panel); border: 1px dashed var(--zn-line);
}
.locked p { margin: 0; font-weight: 500; }
.locked::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--zn-graphite); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.quiz.is-locked { filter: grayscale(.6); opacity: .45; pointer-events: none; user-select: none; }

.quiz__nav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.qdot {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--zn-line); background: var(--zn-panel);
  font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--zn-graphite); transition: all .25s;
}
.qdot.is-current { border-color: var(--zn-yellow); background: var(--zn-yellow); color: var(--zn-ink); }
.qdot.is-ok { border-color: var(--zn-green); background: var(--zn-green); color: #fff; }
.qdot.is-part { border-color: var(--zn-yellow); color: var(--zn-ink); background: rgba(255,179,56,.35); }
.qdot.is-bad { border-color: var(--zn-graphite); background: var(--zn-graphite); color: #fff; }
.qdot:disabled { cursor: default; }

.task {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--zn-panel);
  border-radius: var(--r-card); overflow: hidden; box-shadow: 0 20px 60px rgba(16,8,33,.08);
  animation: taskIn .5s var(--ease);
}
@keyframes taskIn { from { opacity: 0; transform: translateY(18px); } }
.task__body { padding: 36px 40px 32px; display: flex; flex-direction: column; min-width: 0; }
.task__kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--zn-graphite); margin: 0 0 10px; display: flex; justify-content: space-between; gap: 12px; }
.task__kicker b { color: var(--zn-green); font-weight: 500; }
.task__q { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.task__hint { color: var(--zn-graphite); margin: 0 0 24px; font-size: 16px; }
.task__play { flex: 1; min-height: 240px; display: flex; flex-direction: column; justify-content: center; }
.task__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.task__pts { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--zn-green); }
.task__pts.zero { color: var(--zn-graphite); }

/* Фото-награда за матовым стеклом */
.reveal { position: relative; min-height: 340px; background: var(--zn-ink); overflow: hidden; }
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) grayscale(1) brightness(.75); transform: scale(1.15); transition: filter 1.6s var(--ease), transform 1.6s var(--ease); }
.reveal.is-open img { filter: none; transform: scale(1); }
.reveal.is-half img { filter: blur(7px) grayscale(.7) brightness(.8); transform: scale(1.06); }
.reveal__lock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; gap: 12px; transition: opacity .6s; }
.reveal__lock span { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 1px dashed rgba(255,255,255,.6); display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; }
.reveal__lock p { margin: 0; font-size: 14px; opacity: .8; max-width: 200px; }
.reveal.is-open .reveal__lock, .reveal.is-half .reveal__lock { opacity: 0; }
.reveal__cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; border-radius: 14px;
  background: rgba(16,8,33,.82); color: #fff; backdrop-filter: blur(6px); font-size: 15px; line-height: 1.4;
  opacity: 0; transform: translateY(14px); transition: all .6s var(--ease) .5s;
}
.reveal__cap b { display: block; font-family: var(--font-display); color: var(--zn-yellow); font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.reveal.is-open .reveal__cap, .reveal.is-half .reveal__cap { opacity: 1; transform: none; }

/* Реплика Артёма */
.artem { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; animation: taskIn .5s var(--ease); }
.artem img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--zn-yellow); }
.artem p { margin: 0; background: var(--zn-gray-section); padding: 12px 16px; border-radius: 4px 16px 16px 16px; font-size: 15px; line-height: 1.45; }
.artem .who { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--zn-graphite); margin-bottom: 2px; font-weight: 500; }
.artem.ok p { background: rgba(0,177,93,.1); }
.artem.bad p { background: rgba(255,179,56,.18); }

/* T1 · карта и слайдер */
.map { position: relative; border-radius: 16px; background: var(--zn-ink); overflow: hidden; }
.map svg { width: 100%; height: auto; display: block; }
.km { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.km output { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--zn-ink); min-width: 4.2ch; line-height: 1; }
.km output small { font-size: 18px; font-weight: 500; color: var(--zn-graphite); margin-left: 4px; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 44px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--zn-yellow) var(--p, 0%), var(--zn-line) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--zn-line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--zn-yellow); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--zn-yellow); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(16,8,33,.3); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--zn-yellow); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(16,8,33,.3); }

/* T2 · таймлайн */
.chips { display: flex; flex-wrap: wrap; gap: 10px; min-height: 52px; margin-bottom: 26px; }
.chip {
  text-align: left; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--zn-line); background: var(--zn-panel);
  font-size: 15px; line-height: 1.25; touch-action: none; user-select: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.chip:hover { border-color: var(--zn-yellow); }
.chip.is-picked { border-color: var(--zn-yellow); background: var(--zn-yellow); box-shadow: 0 6px 18px rgba(255,179,56,.4); }
.chip.is-ghost { position: fixed; z-index: 200; pointer-events: none; box-shadow: 0 16px 40px rgba(16,8,33,.25); transform: rotate(-2deg); background: var(--zn-yellow); border-color: var(--zn-yellow); }
.chip.is-dragging { opacity: .3; }
.tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 30px; }
.tl::before { content: ""; position: absolute; left: 6px; right: 6px; top: 36px; height: 1px; background: var(--zn-line); }
.slot { position: relative; background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.chips:empty { min-height: 0; margin: 0; }
.slot__dot { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--zn-yellow); position: relative; z-index: 1; transition: all .3s; }
.slot__year { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); color: var(--zn-yellow); margin: 8px 0 8px; line-height: 1; }
.slot__drop { display: block; min-height: 76px; border-radius: 12px; border: 1px dashed var(--zn-line); padding: 8px 10px; font-size: 14px; line-height: 1.3; color: var(--zn-graphite); transition: all .2s; }
.slot.is-over .slot__drop, .slot.is-target .slot__drop { border-color: var(--zn-yellow); background: rgba(255,179,56,.1); }
.slot.is-filled .slot__drop { border-style: solid; border-color: var(--zn-ink); color: var(--zn-ink); background: var(--zn-panel); }
.slot.is-right .slot__drop { border-color: var(--zn-green); background: rgba(0,177,93,.08); }
.slot.is-right .slot__dot { background: var(--zn-green); box-shadow: 0 0 0 5px rgba(0,177,93,.25); }
.slot.is-wrong .slot__drop { border-color: var(--zn-graphite); background: var(--zn-gray-section); text-decoration: line-through; }
.slot__fix { display: block; margin-top: 6px; font-size: 13px; color: var(--zn-green); text-decoration: none; }

/* T3 · круги */
.circles { display: flex; gap: clamp(8px, 2vw, 18px); flex-wrap: wrap; }
.circ {
  width: clamp(58px, 9vw, 86px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--zn-line); background: var(--zn-panel);
  font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 38px); font-weight: 500; transition: all .25s var(--ease);
}
.circ:hover:not(:disabled) { border-color: var(--zn-yellow); transform: translateY(-4px); }
.circ.is-right { background: var(--zn-yellow); border-color: var(--zn-yellow); transform: scale(1.12); box-shadow: 0 10px 30px rgba(255,179,56,.5); }
.circ.is-wrong { background: var(--zn-graphite); border-color: var(--zn-graphite); color: #fff; }
.circ:disabled { cursor: default; }
.circ-cap { margin-top: 18px; font-size: 15px; color: var(--zn-graphite); min-height: 1.5em; }

/* T4 · термометр */
.thermo-wrap { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; }
.thermo { position: relative; height: 300px; width: 110px; touch-action: none; cursor: ns-resize; user-select: none; }
.thermo svg { width: 100%; height: 100%; overflow: visible; }
.thermo__val { font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1; }
.thermo__val.cold { color: var(--zn-graphite); }
.thermo__val.warm { color: var(--zn-yellow); }
.thermo__note { color: var(--zn-graphite); font-size: 15px; margin: 8px 0 14px; }
.stepper { display: flex; gap: 8px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--zn-line); background: var(--zn-panel); font-size: 22px; line-height: 1; }
.stepper button:hover { border-color: var(--zn-yellow); }
.drop-fx { width: 64px; height: 80px; margin-top: 12px; }
.drop-fx .frost { opacity: 0; transition: opacity 1.2s; }
.drop-fx.frozen .frost { opacity: 1; }

/* T5 · молекула */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.tray { display: flex; flex-wrap: wrap; gap: 10px; }
.atom {
  width: 58px; height: 58px; border-radius: 50%; border: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700;
  display: grid; place-items: center; transition: transform .2s var(--ease), opacity .2s; box-shadow: inset 0 -6px 0 rgba(16,8,33,.12);
}
.atom:hover:not(:disabled) { transform: translateY(-4px) scale(1.05); }
.atom:disabled { opacity: .25; cursor: default; }
.atom--H { background: var(--zn-panel); border: 2px solid var(--zn-line); color: var(--zn-ink); }
.atom--S { background: var(--zn-yellow); color: var(--zn-ink); }
.atom--O { background: var(--zn-graphite); color: #fff; }
.atom--C { background: var(--zn-ink); color: #fff; }
.atom--N { background: var(--zn-green); color: #fff; }
.flask { position: relative; aspect-ratio: 1; max-width: 240px; width: 100%; margin: 0 auto; }
.flask svg { width: 100%; height: 100%; }
.flask__slots { position: absolute; left: 18%; right: 18%; bottom: 14%; height: 46%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px; }
.flask__slots .atom { width: 48px; height: 48px; font-size: 20px; animation: plop .35s var(--ease); }
@keyframes plop { from { transform: translateY(-60px) scale(.6); opacity: 0; } }
.formula { margin-top: 14px; text-align: center; font-family: var(--font-display); font-size: 34px; font-weight: 700; min-height: 44px; }
.formula.danger { color: var(--zn-ink); }
.formula.danger::after { content: " ⚠"; color: var(--zn-yellow); }

/* T6 · правда / миф */
.swipe { position: relative; height: 230px; margin-bottom: 14px; }
.card {
  position: absolute; inset: 0; border-radius: 18px; background: var(--zn-panel); border: 1px solid var(--zn-line);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; touch-action: pan-y; user-select: none;
  box-shadow: 0 10px 30px rgba(16,8,33,.08); transition: transform .35s var(--ease), opacity .35s; cursor: grab;
}
.card:nth-last-child(2) { transform: translateY(10px) scale(.96); }
.card:nth-last-child(3) { transform: translateY(20px) scale(.92); }
.card:nth-last-child(n+4) { opacity: 0; }
.card p { font-family: var(--font-display); font-size: clamp(21px, 2.3vw, 26px); font-weight: 500; line-height: 1.2; margin: 0; }
.card small { color: var(--zn-graphite); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.card__stamp { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border: 2px solid; border-radius: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; opacity: 0; transform: rotate(8deg); }
.card__stamp.t { color: var(--zn-green); }
.card__stamp.m { color: var(--zn-graphite); left: 18px; right: auto; transform: rotate(-8deg); }
.swipe-btns { display: flex; justify-content: space-between; gap: 12px; }
.swipe-btns .btn { flex: 1; }
.swipe-log { display: flex; gap: 6px; margin-top: 12px; }
.swipe-log i { width: 100%; height: 5px; border-radius: 3px; background: var(--zn-line); }
.swipe-log i.ok { background: var(--zn-green); }
.swipe-log i.bad { background: var(--zn-graphite); }
.myth-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.myth-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.myth-list li::before { content: "✓"; color: var(--zn-green); font-weight: 700; }
.myth-list li.bad::before { content: "✕"; color: var(--zn-graphite); }
.myth-list li span { display: block; color: var(--zn-green); font-size: 14px; }
.myth-list li b { font-weight: 500; }

/* T7 · одометр */
.odo { display: flex; align-items: flex-end; gap: 8px; }
.drum { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drum button { width: 72px; height: 34px; border-radius: 10px; border: 1px solid var(--zn-line); background: var(--zn-panel); position: relative; }
.drum button::after { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-left: 2px solid var(--zn-ink); border-top: 2px solid var(--zn-ink); transform: translateY(2px) rotate(45deg); }
.drum button.dn::after { transform: translateY(-2px) rotate(-135deg); }
.drum button:hover { border-color: var(--zn-yellow); }
.drum__win { width: 72px; height: 100px; border-radius: 12px; background: var(--zn-ink); overflow: hidden; position: relative; touch-action: none; cursor: ns-resize; box-shadow: inset 0 12px 16px rgba(0,0,0,.5), inset 0 -12px 16px rgba(0,0,0,.5); }
.drum__reel { position: absolute; left: 0; right: 0; top: 0; transition: transform .35s var(--ease); }
.drum__reel span { display: grid; place-items: center; height: 100px; font-family: var(--font-mono); font-size: 58px; font-weight: 500; color: var(--zn-yellow); }
.odo__sep { font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1; padding-bottom: 50px; }
.odo__unit { font-family: var(--font-display); font-size: 26px; color: var(--zn-graphite); padding-bottom: 76px; margin-left: 8px; }
.odo.is-right .drum__win { box-shadow: 0 0 0 3px var(--zn-green); }

/* T8 · мозаика */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: var(--zn-ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .3s; }
.tile:hover img { transform: scale(1.05); }
.tile__tag { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(16,8,33,.8); color: #fff; font-size: 13px; text-align: left; line-height: 1.25; min-height: 30px; }
.tile__tag:empty { background: rgba(16,8,33,.4); border: 1px dashed rgba(255,255,255,.6); }
.tile__tag b { color: var(--zn-yellow); font-family: var(--font-display); font-size: 17px; margin-right: 4px; }
.tile.is-target { box-shadow: 0 0 0 3px var(--zn-yellow); }
.tile.is-right { box-shadow: 0 0 0 3px var(--zn-green); }
.tile.is-wrong { box-shadow: 0 0 0 3px var(--zn-graphite); }
.mosaic-labels { margin-bottom: 14px; }

/* Итог заданий */
.quiz-result {
  margin-top: 30px; border-radius: var(--r-card); background: var(--zn-ink); color: #fff; padding: 40px; display: grid;
  grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; animation: taskIn .6s var(--ease); position: relative; overflow: hidden;
}
.quiz-result::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: url(../assets/logos/zndh_mark_color.svg) center / contain no-repeat; opacity: .08; }
.quiz-result__big { font-family: var(--font-display); font-size: clamp(64px, 9vw, 120px); font-weight: 700; color: var(--zn-yellow); line-height: .9; }
.quiz-result__big small { display: block; font-size: 16px; font-weight: 400; color: rgba(255,255,255,.7); margin-top: 8px; }
.quiz-result h3 { font-size: 34px; }
.quiz-result p { margin: 8px 0 0; color: rgba(255,255,255,.78); }
.quiz-result .btns { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

/* ---------- Игра ---------- */
.sec--game .sec__bg { opacity: .3; }
.game { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--zn-graphite); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); user-select: none; -webkit-user-select: none; }
.game canvas { display: block; width: 100%; height: auto; touch-action: none; }
.game.is-locked canvas { filter: grayscale(1) brightness(.5); }
.game__hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; gap: 10px; align-items: stretch; pointer-events: none; flex-wrap: wrap; }
.game__hud > div { background: rgba(16,8,33,.86); color: #fff; border-radius: 12px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; }
.hud-det { font-family: var(--font-mono); }
.hud-det__lbl { font-size: 12px; opacity: .7; }
.hud-det b { font-size: 26px; min-width: 3ch; text-align: right; color: var(--zn-green-light); transition: color .2s; }
.hud-det small { font-size: 12px; opacity: .7; }
.hud-det__led { width: 12px; height: 12px; border-radius: 50%; background: var(--zn-green); }
.hud-det.warn b { color: var(--zn-yellow); }
.hud-det.warn .hud-det__led { background: var(--zn-yellow); animation: blink .5s steps(2) infinite; }
.hud-det.alarm b { color: #fff; }
.hud-det.alarm { background: rgba(255,179,56,.95) !important; color: var(--zn-ink) !important; }
.hud-det.alarm b { color: var(--zn-ink); }
.hud-det.alarm .hud-det__led { background: var(--zn-ink); animation: blink .25s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud-dose { flex: 1; min-width: 150px; font-size: 13px; }
.hud-dose__bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.hud-dose__bar i { display: block; height: 100%; width: 0; background: var(--zn-yellow); transition: width .2s; }
.hud-lvl { font-size: 13px; }
.hud-lvl b { font-family: var(--font-display); font-size: 20px; color: var(--zn-yellow); }
.hud-lvl b::before { content: "👷 "; font-size: 15px; }
.game__mask {
  white-space: nowrap; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3;
  min-height: 56px; padding: 0 26px; border-radius: var(--r-pill); border: 0; background: var(--zn-yellow); color: var(--zn-ink);
  font-weight: 700; font-size: 17px; display: flex; gap: 12px; align-items: center; animation: pulse 0.9s infinite;
}
.game__mask kbd { font-family: var(--font-mono); font-size: 12px; padding: 3px 7px; border-radius: 6px; background: rgba(16,8,33,.15); }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(255,179,56,0); } 0% { box-shadow: 0 0 0 0 rgba(255,179,56,.7); } }
.game__toast {
  position: absolute; left: 50%; top: 76px; transform: translate(-50%, -10px); z-index: 3; max-width: 90%;
  background: var(--zn-panel); color: var(--zn-ink); padding: 10px 18px; border-radius: 12px; font-weight: 500; font-size: 15px;
  opacity: 0; transition: all .3s var(--ease); pointer-events: none; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.game__toast.show { opacity: 1; transform: translate(-50%, 0); }
.game__overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px;
  background: rgba(16,8,33,.78); backdrop-filter: blur(4px); color: #fff; overflow: auto;
}
.game__overlay:empty { display: none; }
.ov { max-width: 560px; text-align: center; animation: taskIn .4s var(--ease); }
.ov h3 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.ov h3 em { font-style: normal; color: var(--zn-yellow); }
.ov p { color: rgba(255,255,255,.82); margin: 0 0 14px; }
.ov .btn { margin: 8px 6px 0; }
.ov__rules { text-align: left; display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.ov__rules li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 15px; color: rgba(255,255,255,.88); }
.ov__rules li span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,179,56,.18); color: var(--zn-yellow); display: grid; place-items: center; font-weight: 700; }
.ov__fact { background: var(--zn-panel); color: var(--zn-ink); border-radius: 16px; padding: 20px 22px; text-align: left; margin: 16px 0; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.ov__fact::before { content: "!"; width: 44px; height: 44px; border-radius: 50%; background: var(--zn-yellow); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.ov__fact b { display: block; margin-bottom: 4px; }
.ov__fact p { color: var(--zn-graphite); margin: 0; font-size: 15px; }
.ov__score { font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--zn-yellow); line-height: 1; margin: 8px 0; }
.ov__rows { display: grid; gap: 4px; margin: 10px auto 16px; max-width: 320px; font-size: 15px; }
.ov__rows div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); padding: 4px 0; }
.ov__rows b { color: var(--zn-yellow); font-family: var(--font-mono); }
.hud-ico { display: inline-block; flex: none; background-repeat: no-repeat; }
.game__overlay--key {
  background: linear-gradient(90deg, rgba(16,8,33,.94) 0%, rgba(16,8,33,.8) 42%, rgba(16,8,33,.2) 75%, rgba(16,8,33,.05) 100%),
    url(../assets/game/keyart_intro.webp) right center / cover no-repeat;
  backdrop-filter: none; place-items: center start;
}
.game__overlay--key .ov { text-align: left; margin-left: 4%; max-width: 520px; }
.game__overlay--key .ov h3 { font-size: clamp(36px, 5vw, 60px); }
@media (max-width: 640px) {
  .game__overlay--key { background: linear-gradient(180deg, rgba(16,8,33,.55) 0%, rgba(16,8,33,.92) 45%), url(../assets/game/keyart_intro.webp) 70% top / auto 55% no-repeat, var(--zn-ink); place-items: end center; }
  .game__overlay--key .ov { margin-left: 0; }
}
.game__hint { font-size: 14px; color: rgba(255,255,255,.6); margin: 14px 0 0; }

/* ---------- Альбом и диплом ---------- */
.sec--diploma { background: var(--zn-bg); }
.album { margin-bottom: 56px; }
.album__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.album__head h3 { font-size: 30px; }
.album__head p { margin: 0; color: var(--zn-graphite); font-family: var(--font-display); font-size: 20px; }
.album__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.pc {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--zn-gray-section);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pc img { width: 100%; height: 100%; object-fit: cover; }
.pc.is-half img { filter: blur(3px) grayscale(.7); }
.pc:not(:disabled):hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 16px 30px rgba(16,8,33,.18); }
.pc:disabled { cursor: default; border: 1px dashed var(--zn-line); }
.pc__n { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--zn-yellow); font-family: var(--font-display); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pc:disabled .pc__n { background: var(--zn-panel); color: var(--zn-graphite); }
.pc.is-new { animation: pcIn .9s var(--ease); }
@keyframes pcIn { 0% { transform: scale(.6) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.06) rotate(2deg); } }

.diploma { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.diploma__form { background: var(--zn-panel); border-radius: var(--r-card); padding: 30px; box-shadow: 0 20px 60px rgba(16,8,33,.07); }
.diploma__form label { display: block; font-weight: 500; margin-bottom: 10px; }
.diploma__form input {
  width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--zn-line); padding: 0 16px; font: inherit; font-size: 18px; margin-bottom: 16px; background: var(--zn-bg);
}
.diploma__form input:focus { outline: none; border-color: var(--zn-yellow); box-shadow: 0 0 0 4px rgba(255,179,56,.25); }
.diploma__form .btn { width: 100%; }
.diploma__actions { display: grid; gap: 10px; margin-top: 16px; }
.gate h3 { font-size: 26px; margin-bottom: 10px; }
.gate p { margin: 0 0 16px; color: var(--zn-graphite); font-size: 16px; }
.gate ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.gate li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--zn-line); font-size: 15px; }
.gate li b { font-family: var(--font-display); font-size: 18px; }
.gate li.ok b { color: var(--zn-green); }
.gate .btn { width: 100%; margin-top: 4px; }
.diploma__preview { position: relative; border-radius: 14px; overflow: hidden; background: var(--zn-gray-section); aspect-ratio: 1754 / 1240; box-shadow: 0 30px 80px rgba(16,8,33,.15); }
.diploma__preview canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s; }
.diploma__preview.has-diploma canvas { opacity: 1; }
.diploma__placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 14px; color: var(--zn-graphite); }
.diploma__placeholder img { width: 110px; margin: 0 auto; opacity: .3; filter: grayscale(1); }
.diploma__placeholder p { margin: 0; }
.diploma__preview.has-diploma .diploma__placeholder { display: none; }
.diploma__seal { position: absolute; width: 16%; right: 7.5%; bottom: 11%; opacity: 0; pointer-events: none; }
.diploma__seal.stamp { animation: stamp .7s cubic-bezier(.3, 1.4, .6, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(3) rotate(-30deg); } 60% { opacity: 1; transform: scale(.92) rotate(-10deg); } 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }

/* ---------- Подвал ---------- */
.footer { background: var(--zn-ink); color: rgba(255,255,255,.7); padding: 44px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer__client { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__client img { height: 40px; width: auto; }
.footer__client p { margin: 0; max-width: 460px; }
.footer__client a { color: var(--zn-yellow); }
.footer__bp { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; padding: 10px 22px 10px 10px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.18); transition: border-color .2s, background .2s; }
.footer__bp:hover { border-color: var(--zn-yellow); background: rgba(255,255,255,.04); }
.footer__bp img { width: 56px; height: 56px; }
.footer__bp span { display: grid; line-height: 1.2; }
.footer__bp small { font-size: 12px; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.footer__bp b { font-size: 18px; font-weight: 500; }
.footer__bp em { font-style: normal; font-size: 13px; color: var(--zn-yellow); }

/* ---------- Лайтбокс, конфетти ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,9,17,.92); display: grid; place-items: center; padding: 20px; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { color: #fff; margin-top: 14px; text-align: center; font-size: 16px; }
.lightbox figcaption b { color: var(--zn-yellow); font-family: var(--font-display); font-size: 22px; margin-right: 8px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--zn-yellow); font-size: 28px; line-height: 1; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 250; }
.print-sheet { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .video-grid { grid-template-columns: 1fr; }
  .chapters ol { columns: 2; column-gap: 24px; }
  .chapters ol::before { display: none; }
  .album__grid { grid-template-columns: repeat(4, 1fr); }
  .diploma { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: auto auto; gap: 12px; padding: 0 16px; }
  .pipe { position: fixed; top: var(--topbar-h); left: 0; right: 0; max-width: none; padding: 8px 16px 6px; background: inherit; }
  .topbar.is-solid .pipe { background: var(--zn-bg); box-shadow: 0 1px 0 var(--zn-line); }
  .topbar.is-solid.is-dark .pipe { background: var(--zn-ink); box-shadow: 0 1px 0 rgba(255,255,255,.1); }
  .topbar:not(.is-solid) .pipe { display: none; }
  .pipe__track { left: 27px; right: 27px; top: 19px; }
  .pipe__st span { font-size: 11px; }
  .pipe__st i { width: 22px; height: 22px; margin-top: 0; }
  html { scroll-padding-top: calc(var(--topbar-h) + 56px); }
  .task { grid-template-columns: 1fr; }
  .reveal { min-height: 190px; order: -1; }
  .task__body { padding: 26px 22px 24px; }
  .quiz-result { grid-template-columns: 1fr; padding: 30px; gap: 20px; }
  .quiz-result .btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --topbar-h: 58px; }
  .topbar__logo img { height: 26px; }
  .score b { font-size: 22px; }
  .score small { display: none; }
  .sec { padding: 90px 0 80px; }
  .hero__inner { padding-bottom: 90px; }
  .hero__meta { gap: 18px; }
  .hero__meta b { font-size: 22px; }
  .chapters ol { columns: 1; }
  .tl { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .tl::before { display: none; }
  .thermo-wrap { grid-template-columns: 84px 1fr; gap: 14px; }
  .thermo { width: 84px; height: 260px; }
  .thermo__val { font-size: 48px; }
  .lab { grid-template-columns: 1fr; }
  .drum button, .drum__win { width: 56px; }
  .drum__win { height: 84px; }
  .drum__reel span { height: 84px; font-size: 46px; }
  .odo__sep { font-size: 48px; padding-bottom: 42px; }
  .odo__unit { font-size: 18px; padding-bottom: 66px; }
  .album__grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .game__hud { left: 8px; right: 8px; top: 8px; gap: 6px; }
  .game__hud > div { padding: 6px 10px; }
  .hud-det b { font-size: 20px; }
  .game__hud { flex-wrap: nowrap; }
  .hud-dose { min-width: 0; font-size: 11px; gap: 6px; }
  .hud-lvl { font-size: 12px; gap: 6px; }
  .hud-lvl b { font-size: 16px; }
  .hud-det { gap: 6px; }
  .hud-det__lbl, .hud-det small { font-size: 10px; }
  .game__mask { font-size: 15px; min-height: 48px; }
  .game__mask kbd { display: none; }
  .game__mask { bottom: 12px; min-height: 44px; padding: 0 18px; gap: 8px; }
  .hud-det__lbl, .hud-det small { display: none; }
  .ov h3 { font-size: 28px; margin-bottom: 6px; }
  .ov p { font-size: 14px; margin-bottom: 8px; }
  .ov__rules { gap: 6px; margin: 10px 0 12px; }
  .ov__rules li { grid-template-columns: 26px 1fr; gap: 8px; font-size: 13px; line-height: 1.35; }
  .ov__rules li span { width: 26px; height: 26px; font-size: 13px; }
  .ov .btn { min-height: 44px; padding: 0 18px; font-size: 15px; margin: 6px 4px 0; }
  .ov__fact { padding: 14px; grid-template-columns: 34px 1fr; gap: 10px; margin: 10px 0; }
  .ov__fact::before { width: 34px; height: 34px; font-size: 18px; }
  .ov__fact p { font-size: 13px; }
  .ov__score { font-size: 44px; }
  .ov__rows { font-size: 13px; margin: 6px auto 10px; }
  .game__overlay { padding: 14px; }
  .footer__bp { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .mark-path { stroke-dashoffset: 0; fill-opacity: 1; }
}

@media print {
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; }
  .print-sheet img { width: 100%; height: auto; }
  @page { size: A4 landscape; margin: 0; }
}
