/* =========================================================
   BAZUMI — styles
   ========================================================= */
/* =========================================================
   Fonts — self-hosted (SIL Open Font License 1.1), no third-party requests
   ========================================================= */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-cyrillic.woff2?v=c3f4223046) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-latin.woff2?v=cc61cbd632) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(fonts/unbounded-cyrillic.woff2?v=c3880f0c5a) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(fonts/unbounded-latin.woff2?v=d7f07f8a30) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #FF3D1F;
  --red-deep: #E02A0E;
  --red-text: #D42A0C; /* красный для мелкого текста: 4.7:1 на кремовом (брендовый #FF3D1F — только крупные заголовки) */
  --lumi: #2A5CF0; /* Luminous Blue — цвет 2027 года (WGSN/Coloro): фокус, вода, искры */
  --yellow: #FFC928;
  --sky: #7ED6F2;
  --cream: #FFF5E1;
  --paper: #FFFBF3;
  --ink: #141414;
  --ink-2: #2A2A2A;
  --muted: #6B6558;
  --blue: #1E7BFF;
  --night: #070812;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 28px;
  --radius-lg: 40px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
main, footer { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1; }
p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; outline: 3px solid var(--yellow); outline-offset: 2px; }
main:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }

/* split text helpers */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; } /* без will-change: 130 букв = 130 постоянных слоёв видеопамяти; GSAP сам поднимает слой на время анимации */
.line { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1.05em 1.6em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: var(--line);
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow .3s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { box-shadow: 7px 7px 0 var(--ink); }
.btn:active { box-shadow: 1px 1px 0 var(--ink); }
.btn--red { --bg: var(--red-deep); } /* белый текст: 4.7:1 (на #FF3D1F было ниже 4.5) */
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--ghost { --bg: #fff; --fg: var(--ink); }
.btn--ink { --bg: var(--ink); }
.btn--logo { --bg: #FFCC00; --fg: var(--ink); } /* жёлто-оранжевый — цвет букв логотипа BAZUMI */
.btn--sm { padding: .8em 1.3em; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .55em 1.1em; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink);
  font-weight: 600; font-size: 14px;
}
.chip__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
/* pulse via transform/opacity only (compositor-friendly, no repaint every frame) */
.chip__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--red-text);
  line-height: 1.5;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 3px; }

.h2 {
  font-size: clamp(34px, 6vw, 88px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .98;
}
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* =========================================================
   3D stage, night & lamp light
   ========================================================= */
.stage3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
.no-3d .stage3d, .no-3d .bubble, .no-3d .cord-hit, .no-3d .lampfx { display: none !important; }

.night {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; display: none;
  --px: 50vw; --py: 45vh; --pr: 200px; --o: 1;
  background: radial-gradient(circle var(--pr) at var(--px) var(--py),
    rgba(7, 8, 18, 0) 0%, rgba(7, 8, 18, .28) 48%, rgba(7, 8, 18, .94) 100%);
  opacity: var(--o);
}
.is-intro .night { display: block; }

.lampfx { position: fixed; left: 0; top: 0; z-index: 65; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.lampfx--beam {
  background: linear-gradient(to bottom, rgba(255, 229, 160, .95), rgba(255, 214, 120, .35) 55%, rgba(255, 214, 120, 0));
  clip-path: polygon(var(--ta, 40%) 0, calc(100% - var(--ta, 40%)) 0, 100% 100%, 0 100%);
  filter: blur(5px);
}
.lampfx--pool { border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 80, .6), rgba(255, 196, 80, 0)); }

.bubble { position: fixed; left: 0; top: 0; z-index: 76; pointer-events: none; }
.bubble span {
  position: absolute; left: 0; top: 0;
  display: block; width: max-content; max-width: min(240px, 46vw); text-wrap: balance;
  padding: 10px 15px;
  border-radius: 18px;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 14px; line-height: 1.25;
  opacity: 0;
}


.cord-hit {
  position: fixed; left: 0; top: 0; z-index: 77;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border: 0; border-radius: 50%; background: transparent;
  cursor: grab; display: none; touch-action: none;
}
.has-3d .cord-hit.is-on { display: block; }
.cord-hit:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.lightswitch {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80;
  translate: -50% 0;
  display: none; align-items: center; gap: 14px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.is-intro .lightswitch { display: flex; }
@media (max-width: 600px) {
  .lightswitch { width: calc(100% - 32px); justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; font-size: 13px; white-space: normal; }
  .lightswitch p { line-height: 1.3; }
  .lightswitch button { flex: none; }
}
.lightswitch p { opacity: .8; }
.lightswitch button {
  padding: 10px 18px; border-radius: 999px; border: 0;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 13px; cursor: pointer;
}

.curtain { position: fixed; inset: 0; z-index: 400; background: var(--yellow); display: grid; place-items: center; transform: translateY(101%); pointer-events: none; }
.curtain img { width: min(300px, 60vw); }

/* intro state: scroll locked, header waits for the light */
.is-intro, .is-intro body { overflow: hidden; }
.is-intro body { touch-action: none; }
.is-intro .header { transform: translate(-50%, -160%); }
.is-intro .cursor { opacity: 0 !important; }
.is-intro .hero__cards, .is-intro .hero__stats, .is-intro .hero__scroll { opacity: 0; }

/* docks: invisible boxes that tell the mascot where to stand */
.dock { position: relative; pointer-events: none; }
/* объёмные игрушки (toys3d.js): холст с моделью стоит на месте фото, фото прячется */
img.is-relief { display: none !important; }
img.is-relief.is-ghost { display: block !important; visibility: hidden !important; } /* их двигает GSAP — ему нужна коробка для измерений; все они position:absolute */
:where(canvas.relief) { display: block; max-width: 100%; } /* объёмная копия ведёт себя как картинка (img {…} выше); классы её мест сильнее */
.dock__fallback { display: none; }
.no-3d .dock__fallback { display: block; position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; translate: -50% 0; object-fit: contain; }
.no-3d .dock:not(.dock--hero):not(.dock--explode) { display: none; }
.dock--side { flex: none; width: 190px; height: 250px; margin-bottom: -10px; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 999;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--ink);
  pointer-events: none;
  display: grid; place-items: center;
  opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
}
.cursor__label { font-family: var(--f-display); font-weight: 700; font-size: 12px; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--yellow); border: 2px solid var(--ink); }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255, 61, 31, .25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; z-index: 100;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(255, 251, 243, .8);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translate(-50%, -140%); }
/* телефоны: без размытия под шапкой (его перерисовывают в каждом кадре прокрутки) — почти непрозрачный фон выглядит так же */
@media (max-width: 900px) { .header { background: rgba(255, 251, 243, .96); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header__logo img { height: 34px; width: auto; }
.header__nav { display: flex; gap: 2px; margin: 0 auto; }
.header__nav a {
  position: relative; padding: 8px 12px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: background .25s, color .25s;
  white-space: nowrap;
}
.header__nav a:hover { background: var(--ink); color: #fff; }
.burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--red); color: #fff;
  padding: 110px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  visibility: hidden;
}
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 7.4vw, 54px); text-transform: uppercase; line-height: 1.15; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }

@media (max-width: 1100px) { .header__nav a { font-size: 14px; padding: 8px 9px; } }
@media (max-width: 980px) {
  .header__nav, .header__cta { display: none; }
  .header { justify-content: space-between; padding: 8px 8px 8px 18px; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ink); border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1120px); /* на высоких мониторах первый экран не растягивается в пустоту */
  padding: 108px var(--gutter) 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}
.hero__grid, .brand__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(20,20,20,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__blob--1 { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: #FFB8A8; }
.hero__blob--2 { width: 34vw; height: 34vw; left: -10vw; bottom: -12vw; background: var(--yellow); }

.hero__content { position: relative; z-index: 3; max-width: 900px; }
/* компьютер: текст, карточки и цифры — одной группой по центру свободного места слева от маскота */
@media (min-width: 901px) { .hero__content { justify-self: center; } }
/* широкий экран: текст и маскот с равными промежутками — край · текст · маскот · край */
@media (min-width: 1280px) {
  .hero { padding-inline: 0; grid-template-columns: auto min(36vw, 1040px); justify-content: space-evenly; }
  .hero__content { justify-self: start; }
  .hero .hero__cards { max-width: clamp(640px, 40vw, 800px); } /* на больших экранах карточки — почти во всю ширину заголовка */
}
.hero__title {
  font-size: clamp(34px, 4.3vw, 76px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .95;
  margin-bottom: 26px;
}
.hero__title-accent { color: var(--red); }
/* телефон: маскот сидит на слове «приключений» (место — .dock--title), на компьютере — стоит под лампой справа */
.hero__title .line--seat { position: relative; }
.dock--title { display: none; }
.slogan {
  padding: .1em .32em; border-radius: .3em; color: var(--ink);
  background: linear-gradient(var(--yellow), var(--yellow)) 0 0 / 100% 100% no-repeat; /* main.js sweeps it in like a marker */
  -webkit-box-decoration-break: clone; box-decoration-break: clone; /* each wrapped line gets its own rounded mark */
}
.slogan b { display: inline-block; font-weight: 900; font-size: 1.08em; text-transform: uppercase; transform: rotate(-3deg); transition: transform .35s var(--ease); }

/* help + video mini cards on the first screen */
.hero__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr auto; gap: 16px; max-width: 640px; }
.mini {
  position: relative; overflow: hidden;
  display: grid; align-content: start; gap: 6px;
  padding: 16px 20px;
  border-radius: 22px; border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 0;
  container-type: inline-size; /* заголовок подстраивается под ширину карточки */
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.mini:hover { translate: -3px -3px; box-shadow: 7px 7px 0 var(--ink); }
/* the main call to action: a red block as wide as the two cards below and as tall as «Нужна помощь?»
   (its row and the help/video row are both 1fr); our slogan is marked with a highlighter, «игрушки» in capitals */
.mini--buy {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; column-gap: 16px;
  padding: 16px 22px 16px 24px;
  background: var(--red); color: #fff;
  container-type: inline-size;
}
.mini__cta { font-family: var(--f-display); font-weight: 700; font-size: 22px; font-size: min(6.2cqw, 32px); line-height: 1.22; letter-spacing: -.01em; }
/* компьютер: слоган во всю ширину красного блока, до стрелки (100cqw — ширина блока без полей;
   80px = стрелка 64 + промежуток 16; самая длинная строка с подложкой маркера ≈ 13.3em) */
@media (min-width: 901px) { .mini--buy .mini__cta { font-size: min(calc((100cqw - 80px) / 13.5), 60px); } }
.mini__arrow {
  display: grid; place-items: center; width: clamp(44px, 11cqw, 64px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--red); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .4s var(--ease);
}
.mini__arrow .ico { width: 45%; height: 45%; }
.mini--buy:hover .mini__arrow { transform: translateX(4px); }
.mini--buy:hover .slogan b { transform: rotate(2deg) scale(1.06); }
.mini--buy:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.mini--help { background: var(--yellow); }
.mini--video { background: var(--red); color: #fff; }
/* без переносов: шрифт не больше, чем позволяет самое длинное слово («ВИДЕООБЗОРЫ», ~10.5em) в ширине карточки */
.mini__title { --pr: 54px; font-family: var(--f-display); font-weight: 900; font-size: min(var(--fs, clamp(15px, 1.25vw, 19px)), calc((100cqw - var(--pr)) / 10.7)); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; padding-right: var(--pr); }
.mini__text { font-size: 13.5px; font-weight: 600; line-height: 1.3; opacity: .9; }
.mini__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mini .icon-btn--sm { width: 42px; height: 42px; border-radius: 13px; }
.mini .icon-btn--sm svg { width: 21px; height: 21px; }
.mini .pill--sm { padding: 8px 13px; font-size: 11.5px; }
.mini__typing {
  position: absolute; right: 14px; top: 14px;
  display: flex; gap: 4px; padding: 9px 11px;
  border-radius: 14px 14px 14px 4px; background: #fff; border: 2px solid var(--ink);
}
.mini__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: typing 1.2s infinite; }
.mini__typing i:nth-child(2) { animation-delay: .15s; }
.mini__typing i:nth-child(3) { animation-delay: .3s; }
.mini__play { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); animation: bob 2s ease-in-out infinite; }
.mini__play::after { content: ""; position: absolute; left: 56%; top: 50%; translate: -50% -50%; border-left: 12px solid var(--red); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
/* аудиосказки и опт — карточки-ссылки целиком */
.mini--audio { background: var(--ink); color: #fff; }
.mini--audio .mini__text, .mini--opt .mini__text { padding-right: 46px; } /* не заезжает под значок в углу */
.mini--opt { background: #fff; }
.mini__go {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 8px 13px; border-radius: 999px; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 11.5px; line-height: 1;
}
.mini__go .ico { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.mini:hover .mini__go .ico { transform: rotate(45deg); }
.mini--audio .mini__go { background: var(--yellow); color: var(--ink); }
.mini--opt .mini__go { background: var(--red-deep); color: #fff; }
.mini__eq { position: absolute; right: 16px; top: 16px; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.mini__eq i { width: 5px; height: 100%; border-radius: 3px; background: var(--yellow); transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite; }
.mini__eq i:nth-child(odd) { background: var(--red); }
.mini__eq i:nth-child(2) { animation-delay: -.5s; } .mini__eq i:nth-child(3) { animation-delay: -.9s; }
.mini__eq i:nth-child(4) { animation-delay: -.3s; } .mini__eq i:nth-child(5) { animation-delay: -.7s; } .mini__eq i:nth-child(6) { animation-delay: -.2s; }
.mini__boxes { position: absolute; right: 14px; top: 12px; width: 58px; height: 44px; }
.mini__boxes span { position: absolute; width: 27px; height: 20px; border-radius: 5px; border: 2px solid var(--ink); background: #E8C48A; box-shadow: 2px 2px 0 var(--ink); transition: transform .5s var(--ease); }
.mini__boxes span::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; background: var(--red); }
.mini__boxes span:nth-child(1) { left: 0; bottom: 0; }
.mini__boxes span:nth-child(2) { left: 29px; bottom: 0; }
.mini__boxes span:nth-child(3) { left: 14px; bottom: 22px; }
.mini--opt:hover .mini__boxes span:nth-child(3) { transform: translateY(-6px) rotate(-8deg); }
.mini--opt:hover .mini__boxes span:nth-child(1) { transform: rotate(-4deg); }

/* большой маскот под лампой (полки больше нет): сцена — на всю высоту первого экрана, маскот стоит у её нижнего края,
   вровень с цифрами слева. Лампа висит над ним на 1.42 его роста (mascot.js: абажур до 4.7 ед. при росте 3.3) —
   поэтому рост 69% сцены: абажур остаётся ниже шапки */
.hero__stage { position: relative; z-index: 2; align-self: start; height: calc(min(100svh, 1120px) - 130px); min-height: 0; } /* по высоте экрана, а не колонки текста: на низких экранах текст выше экрана, а маскот — в нём */
/* -60%: маскот чуть левее середины колонки — вместе с лампой справа группа стоит по центру */
.hero__stage .dock--hero { position: absolute; left: 50%; bottom: 0; height: 69%; aspect-ratio: 456 / 700; translate: -60% 0; }

.hero__stats {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; gap: clamp(20px, 5vw, 72px); flex-wrap: wrap;
  position: relative; z-index: 3;
}
.hero__stats li { display: grid; gap: 2px; }
.hero__stats b { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 36px); display: inline-flex; align-items: center; gap: .2em; }
.hero__stats span { color: var(--muted); font-size: 14px; }
.ico--star { color: var(--yellow); filter: drop-shadow(1.5px 1.5px 0 var(--ink)); }
/* laptop-height screens (1440×900, 1536×864): tighter spacing so the stats stay on the first screen */
@media (min-width: 901px) and (max-height: 940px) {
  .hero { padding-top: 100px; }
  .hero__title { font-size: clamp(34px, min(4.3vw, 7.4vh), 76px); margin-bottom: 20px; }
  .hero__cards { gap: 12px; }
  .hero__stats { margin-top: 20px; }
}
@media (min-width: 901px) and (max-height: 880px) {
  .hero { padding-top: 96px; }
  .hero__title { font-size: clamp(34px, min(4.3vw, 7vh), 76px); }
  .hero__stats { margin-top: 16px; }
  .hero .mini { padding-top: 14px; padding-bottom: 14px; }
}
@media (min-width: 901px) and (max-height: 840px) {
  .hero { padding-top: 88px; }
  .hero__title { font-size: clamp(30px, min(4vw, 6.4vh), 76px); margin-bottom: 16px; }
  .hero .mini { padding-block: 10px; }
  .hero__stats { margin-top: 12px; }
  .hero__stats b { font-size: clamp(20px, 2.2vw, 30px); }
}
@media (min-width: 901px) and (max-width: 1100px) { .hero__stats { flex-wrap: nowrap; gap: clamp(16px, 3vw, 72px); } }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 3;
  width: 30px; height: 50px; border: 2.5px solid var(--ink); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 5px; height: 10px; margin-left: -2.5px; border-radius: 3px; background: var(--ink); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding-top: 84px; gap: 6px; }
  .hero__title { font-size: 7.4vw; margin-bottom: 22px; }
  .hero { padding-top: calc(76px + 19vw); } /* над заголовком — место для сидящего маскота и шнурка */
  .hero__stage { display: none; } /* маскот — на слове «приключений» */
  .hero__title .line--seat { width: fit-content; }
  .dock--title { display: block; position: absolute; right: -.15em; bottom: calc(100% - .14em); width: 2.7em; height: 4.4em; } /* низ — линия посадки на буквах; ножки свисают над «ИЙ» */
  .no-3d .dock--title { bottom: calc(100% + .2em); height: 4em; } /* без 3D картинка стоит над словом, не закрывая «Й» */
  .hero__scroll { display: none; }
  .hero__stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__stats b { font-size: 17px; }
  .hero__stats span { font-size: 12px; line-height: 1.3; }
}

/* ---------- Marquee ---------- */
.marquees { position: relative; z-index: 4; padding: 30px 0; margin: -40px 0 0; overflow: hidden; }
.marquee {
  display: flex; overflow: hidden; white-space: nowrap;
  border-block: var(--line);
  padding: 18px 0;
}
.marquee--red { background: var(--red); color: #fff; transform: rotate(-2.5deg) scale(1.05); position: relative; z-index: 2; }
.marquee--yellow { background: var(--yellow); color: var(--ink); transform: rotate(1.5deg) scale(1.05); margin-top: -14px; }
.marquee__track { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex: none; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 3.6vw, 52px); text-transform: uppercase; letter-spacing: -.01em; }
.marquee__track .ico { width: clamp(22px, 2.6vw, 38px); height: clamp(22px, 2.6vw, 38px); }

/* ---------- Where to buy ---------- */
.buy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); perspective: 1200px; }
.mp-card {
  position: relative;
  display: flex; flex-direction: column; gap: 28px;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff; border: var(--line);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: box-shadow .4s var(--ease);
  overflow: hidden;
}
.mp-card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0; transition: opacity .5s var(--ease);
  z-index: 0;
}
.mp-card--wb { --accent: #CB11AB; }
.mp-card--ozon { --accent: #005BFF; }
.mp-card--detmir { --accent: #2D6CF6; }
.mp-card:hover { box-shadow: var(--shadow-lg); }
.mp-card:hover::before { opacity: .18; }
.mp-card > * { position: relative; z-index: 1; }
.mp-card__logo { height: 56px; display: flex; align-items: center; transform: translateZ(40px); }
.mp-card__logo img { max-height: 46px; width: auto; }
.mp-card__rating { display: flex; align-items: center; gap: 16px; transform: translateZ(30px); }
.mp-card__score { font-family: var(--f-display); font-weight: 900; font-size: 58px; line-height: 1; color: var(--ink); }
.mp-card__rating p { font-size: 15px; color: var(--muted); }
.mp-card__rating b { color: var(--ink); font-family: var(--f-display); font-weight: 700; }
.stars { display: flex; gap: 3px; margin-bottom: 6px; }
.stars svg { width: 20px; height: 20px; color: var(--yellow); filter: drop-shadow(1px 1px 0 var(--ink)); }
.mp-card__btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  transform: translateZ(20px);
  transition: background .3s;
}
.mp-card:hover .mp-card__btn { background: var(--accent); }
.mp-card__btn .ico { transition: transform .4s var(--ease); }
.mp-card:hover .mp-card__btn .ico { transform: translateX(6px); }

.buy__note {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 44px; font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); text-align: center;
}
.check { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; border: 2px solid var(--ink); }

/* narrow desktops: the two cards share a slim column, so drop the decorative badges */
@media (min-width: 901px) and (max-width: 1100px) {
  .mini { padding: 16px; }
  .mini__title { --fs: 14px; --pr: 0px; }
  .mini__typing, .mini__play, .mini__eq, .mini__boxes { display: none; }
  .mini--audio .mini__text, .mini--opt .mini__text { padding-right: 0; }
}

@media (max-width: 560px) {
  /* телефон: все карточки во всю ширину — заголовки крупные и без переносов */
  .hero__cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr auto auto auto; gap: 12px; }
  .mini { padding: 15px 16px; }
  .mini__title { --fs: 15px; }
}

@media (max-width: 900px) {
  .buy__grid { grid-template-columns: 1fr; }
  .mp-card__score { font-size: 48px; }
  .section__head--split { flex-direction: column; align-items: stretch; gap: 0; }
  .section__head--split > .btn { align-self: flex-start; margin-top: 24px; }
  .dock--side { align-self: flex-end; width: 110px; height: 150px; margin: 4px 8px -24px 0; }
}

/* ---------- Brand ---------- */
.brand { padding-bottom: clamp(80px, 10vw, 140px); }
.brand__story {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 54px);
  line-height: 1.18; letter-spacing: -.02em;
  max-width: 1040px;
}
@media (min-width: 901px) and (max-width: 1300px) { .brand__story { max-width: calc(100% - 260px); } } /* справа стоит маскот */
.brand__story em { font-style: normal; color: var(--red); }
.brand__story .word { display: inline-block; }

.brand__stage { position: relative; padding: clamp(60px, 9vw, 120px) var(--gutter) 0; }
.dock--brand { position: absolute; right: 6%; top: -241px; width: 170px; height: 240px; }
.brand__panel {
  position: relative; overflow: hidden;
  max-width: 1320px; margin: 0 auto;
  min-height: min(760px, 110vw);
  border-radius: var(--radius-lg);
  background: var(--red);
  border: var(--line);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.brand__grid { mask-image: none; -webkit-mask-image: none; background-image: linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px); background-size: 36px 36px; }
.brand__title {
  position: absolute; left: 5%; top: 8%; z-index: 1;
  display: grid;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 7vw, 108px); letter-spacing: -.03em; line-height: .92;
  color: #fff;
}
.brand__title span:nth-child(2) { color: var(--yellow); }
.brand__kids { position: absolute; left: 50%; bottom: -2px; width: min(62%, 720px); translate: -42% 0; z-index: 2; }
.sticker {
  position: absolute; z-index: 3;
  display: grid; gap: 6px;
  padding: 18px 22px;
  max-width: 280px;
  border-radius: 22px;
  border: var(--line);
  box-shadow: var(--shadow);
  cursor: grab; user-select: none;
  font-weight: 500; font-size: 15px; line-height: 1.35;
}
.sticker:active { cursor: grabbing; }
@media (min-width: 901px) and (hover: hover) and (pointer: fine) { .sticker { touch-action: none; } }
@media (max-width: 900px) { .sticker { cursor: auto; } }
.sticker b { font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; }
.sticker b.big { font-size: 56px; line-height: .8; }
.sticker--white { background: #fff; }
.sticker--yellow { background: var(--yellow); }
.sticker--red { background: var(--ink); color: #fff; }
.sticker--red b { color: var(--red); }
.sticker--sky { background: var(--sky); font-weight: 700; }
.sticker--a { right: 5%; top: 8%; rotate: 4deg; }
.sticker--b { right: 3%; top: 42%; rotate: -3deg; }
.sticker--c { left: 5%; bottom: 10%; rotate: -5deg; max-width: 230px; }
.sticker--d { left: 5%; top: 52%; rotate: 3deg; max-width: 250px; }
.brand__hint { position: absolute; right: 24px; bottom: 18px; z-index: 4; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600; }
/* ноутбук и планшет горизонтально: стикеры поменьше, чтобы не закрывать заголовок и лица на фото */
@media (min-width: 901px) and (max-width: 1300px) {
  .sticker { max-width: 230px; padding: 16px 18px; font-size: 14px; }
  .sticker b { font-size: 24px; }
  .sticker b.big { font-size: 46px; }
  .sticker--b { max-width: 210px; }
  .sticker--c { max-width: 210px; }
  .sticker--d { max-width: 220px; }
  .brand__kids { width: 56%; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .brand__panel { min-height: 700px; }
  .brand__title { font-size: 6vw; }
  .brand__kids { width: 54%; }
  .sticker--b { top: 31%; }
  .sticker--d { top: 47%; }
}

@media (max-width: 900px) {
  .brand__stage { padding-top: 190px; }
  .dock--brand { top: -153px; right: 16px; width: 110px; height: 152px; }
  .brand__panel { min-height: 0; display: flex; flex-direction: column; padding: 28px 18px 0; gap: 14px; }
  .brand__title { position: static; font-size: min(clamp(38px, 7vw, 108px), calc((100vw - 2 * var(--gutter) - 42px) / 8.9)); } /* «с которыми» (≈8.8em) одной строкой, без переносов и висящей «с» */
  .sticker { position: relative; left: auto; right: auto; top: auto; bottom: auto; max-width: none; }
  .sticker--a, .sticker--c { rotate: -1.5deg; }
  .sticker--b, .sticker--d { rotate: 1.5deg; }
  .brand__kids { position: relative; left: auto; translate: 0 0; width: 100%; margin-top: 6px; }
  .brand__hint { display: none; }
}

/* ---------- Breakdown ---------- */
.explode { position: relative; background: #0B1633; color: #fff; }
/* фон блока — на всю «большую» высоту экрана (телефон без панелей браузера), иначе при спрятанных панелях снизу
   открывалась полоса без сетки; всё, что прижато к низу, поднято на высоту панелей (--vb), чтобы не уходить под них */
.explode__pin { position: relative; height: 100vh; height: 100lvh; overflow: hidden; --xo: 0; --vb: 0px; }
@supports (height: 100lvh) and (height: 100svh) { .explode__pin { --vb: calc(100lvh - 100svh); } }
.no-3d .explode__pin { --xo: 1; }
.explode__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(126, 214, 242, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 214, 242, .09) 1px, transparent 1px);
  background-size: 48px 48px;
}
.explode__grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 62%, rgba(30, 123, 255, .38), transparent 70%); }
.explode__head { position: absolute; left: 0; right: 0; top: clamp(96px, 13vh, 140px); z-index: 2; }
.explode__head .eyebrow { color: var(--yellow); }
.explode__head .h2 { color: #fff; font-size: clamp(32px, 4.6vw, 68px); max-width: 11ch; }
.explode__sub { margin-top: 16px; max-width: 360px; color: rgba(255, 255, 255, .66); font-size: 16px; }
.dock--explode { position: absolute; left: 50%; bottom: calc(15vh + var(--vb, 0px)); width: 22vw; height: 44vh; translate: -50% 0; }

.xlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--xo); z-index: 2; }
.xlines line { stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; stroke-dasharray: 4 5; }
.xbadges { position: fixed; inset: 0; pointer-events: none; z-index: 72; opacity: 0; }
.xbadge {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 12px;
  box-shadow: 0 0 0 5px rgba(255, 201, 40, .22);
}
.no-3d .xbadges, .no-3d .xlines { display: none; }
.xlabels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.xl {
  position: absolute; top: 0;
  width: min(290px, 23vw);
  display: flex; gap: 12px; align-items: flex-start;
  opacity: var(--xo);
  transform: translateY(var(--y0, 40vh));
}
.xl[data-part="antenna"] { --y0: 24vh; }
.xl[data-part="eyes"] { --y0: 40vh; }
.xl[data-part="face"] { --y0: 44vh; }
.xl[data-part="body"] { --y0: 58vh; }
.xl[data-part="arm"] { --y0: 64vh; }
.xl[data-part="feet"] { --y0: 76vh; }
/* широкие мониторы: подписи и заголовок разборки в рамке 1600px, а не у самых краёв экрана */
.explode__head.container { max-width: 1600px; }
.xl--l { left: max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter))); }
.xl--r { right: max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter))); flex-direction: row-reverse; text-align: right; }
.xl i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: 13px; }
.xl b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1.15; text-transform: uppercase; color: var(--yellow); margin-bottom: 5px; }
.xl span { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); line-height: 1.4; }

@media (max-width: 900px) {
  .explode__head { top: 88px; }
  .explode__head .h2 { font-size: 30px; }
  .explode__sub { display: none; }
  .dock--explode { bottom: calc(37svh + var(--vb, 0px)); height: 25svh; width: 60vw; }
  .xlabels { inset: auto 14px calc(14px + var(--vb, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .xl { position: static; width: auto; transform: none !important; flex-direction: row !important; text-align: left !important; gap: 8px; }
  .xl i { width: 22px; height: 22px; font-size: 11px; }
  .xl b { font-size: 11.5px; margin-bottom: 2px; }
  .xl span { font-size: 11.5px; line-height: 1.3; }
  .xlines { display: none; }
}
/* планшет вертикально: маскот крупнее, подписи читаемого размера */
@media (max-width: 900px) and (min-width: 600px) and (min-height: 700px) {
  .explode__head .h2 { font-size: 44px; }
  .dock--explode { bottom: calc(29svh + var(--vb, 0px)); height: 34svh; width: 50vw; }
  .xlabels { inset: auto var(--gutter) calc(30px + var(--vb, 0px)); gap: 18px 28px; }
  .xl { gap: 10px; }
  .xl i { width: 28px; height: 28px; font-size: 13px; }
  .xl b { font-size: 15px; margin-bottom: 4px; }
  .xl span { font-size: 14px; line-height: 1.35; }
}
/* телефоны в горизонтальной ориентации: экран низкий — заголовок строкой сверху,
   маскот по центру, подписи двумя колонками по бокам (без линий-выносок) */
@media (max-height: 560px) and (min-aspect-ratio: 4/3) {
  .explode__head { top: 64px; }
  .explode__head .eyebrow, .explode__sub { display: none; }
  .explode__head .h2 { font-size: clamp(22px, 3.4vw, 30px); max-width: none; }
  .dock--explode { bottom: calc(6svh + var(--vb, 0px)); height: 50svh; width: 26vw; }
  .xlabels { inset: 118px var(--gutter) calc(12px + var(--vb, 0px)); display: grid; grid-template-columns: minmax(0, 30%) 1fr minmax(0, 30%); grid-auto-flow: row dense; gap: 10px 16px; align-content: center; }
  .xl { position: static; width: auto; transform: none !important; gap: 8px; }
  .xl--r { grid-column: 1; flex-direction: row !important; text-align: left !important; }
  .xl--l { grid-column: 3; flex-direction: row-reverse !important; text-align: right !important; }
  .xl i { width: 22px; height: 22px; font-size: 11px; }
  .xl b { font-size: 12px; margin-bottom: 2px; }
  .xl span { font-size: 11.5px; line-height: 1.3; }
  .xlines { display: none; }
}

/* ---------- Categories: sideways slider ---------- */
.cats { position: relative; background: var(--cream); color: var(--ink); overflow: hidden; isolation: isolate; }
/* каталог — на «миллиметровке» главной: та же сетка, что в первом экране */
.cats::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(20,20,20,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,20,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.cats__inner { padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 8vw, 110px); display: grid; gap: clamp(30px, 4vw, 50px); }
.cats__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.cats__head .h2 { color: var(--ink); font-size: clamp(34px, 5vw, 72px); }
.cats__controls { display: flex; align-items: center; gap: 14px; flex: none; padding-bottom: 6px; }
.cats__arrow {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; transition: transform .3s var(--ease), opacity .3s, box-shadow .3s;
}
.cats__arrow .ico { width: 22px; height: 22px; }
.cats__arrow--prev .ico { transform: scaleX(-1); }
.cats__arrow:hover:not([aria-disabled="true"]) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cats__arrow[aria-disabled="true"] { background: transparent; color: rgba(20,20,20,.35); border-color: rgba(20,20,20,.25); box-shadow: none; cursor: default; }
.cats__arrow:focus-visible { outline: 3px solid var(--lumi); outline-offset: 3px; }
.cats__rail { position: relative; width: min(300px, 24vw); height: 6px; --p: 0; }
.cats__progress { position: absolute; inset: 0; border-radius: 6px; background: rgba(20,20,20,.12); overflow: hidden; }
.cats__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(max(var(--p), .04)); }
.dock--cats { position: absolute; left: calc(24px + var(--p) * (100% - 48px)); bottom: 6px; width: 84px; height: 150px; translate: -50% 0; }
@media (max-width: 900px) { .dock--cats { left: calc(42px + var(--p) * (100% - 84px)); } }

.cats__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overflow-y: hidden;
  --edge: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))); /* по линии заголовка; уже 1320px — как было */
  padding: 12px var(--gutter) 26px var(--edge);
  scroll-padding-inline: var(--edge) var(--gutter);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.cats__track::-webkit-scrollbar { display: none; }
.cats__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cats__track.is-dragging .cat { pointer-events: none; }
.cats__track:focus-visible { box-shadow: inset 0 0 0 3px var(--lumi); }
.cats__hint { text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 901px) and (hover: hover) { .cats__hint { display: none; } } /* на компьютере листать подсказывают стрелки, полоса и маскот */
.cats__hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.cats__hint span:last-child { animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(-6px); } }

.cat {
  --bg: var(--yellow); --fg: var(--ink);
  container-type: inline-size; /* заголовок без переносов — по ширине карточки */
  position: relative; flex: none;
  width: clamp(280px, 30vw, 430px);
  height: clamp(380px, 54vh, 520px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  border: var(--line); box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  isolation: isolate;
  transition: translate .4s var(--ease), box-shadow .4s var(--ease); /* translate — отдельно: transform пишет GSAP при появлении */
  -webkit-user-drag: none; user-select: none;
}
.cat:hover { translate: -3px -3px; box-shadow: 9px 9px 0 var(--ink); }
.cat:focus-visible { outline: 3px solid var(--lumi); outline-offset: 4px; }
/* одна пастельная семья одинаковой светлоты (OKLCH ≈ .91): цвета главной и ключевые цвета 2027 года (WGSN/Coloro);
   фон каждой карточки — напротив цвета её игрушки, так игрушка остаётся единственным ярким пятном.
   --tone — номер «тон в тон», --spark — искры, --floor — тень на полу сцены */
.cat--robots { --bg: #D9E0FE; --tone: #BAC5FE; --spark: var(--lumi); --floor: rgba(69,76,151,.26); } /* Luminous Blue: напротив жёлтого трансформера */
.cat--build { --bg: #F6E09D; --tone: #ECC541; --spark: var(--red); --floor: rgba(104,83,0,.22); } /* сливочный: домик розово-коричневый */
.cat--baby { --bg: #B0EDFF; --tone: #68DBF9; --spark: var(--lumi); --floor: rgba(3,95,115,.24); } /* вода */
.cat--edu { --bg: #C1EFC9; --tone: #8EDFA0; --spark: var(--red); --floor: rgba(0,102,50,.22); } /* Meadowland Green */
.cat--rc { --bg: #FFD9BD; --tone: #FDB883; --spark: var(--ink); --floor: rgba(128,67,0,.22); } /* Energy Orange: тёмные машинки */
.cat--more { --bg: #FFD2ED; --tone: #F5B1DB; --spark: var(--red); --floor: rgba(136,40,90,.22); } /* Pop Pink: синие бластеры */
.cat__num { position: absolute; top: 20px; left: 26px; font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 6vw, 96px); line-height: 1; color: var(--tone, currentColor); }
.cat__body { position: relative; z-index: 2; display: grid; gap: 10px; justify-items: start; }
.cat h3 { font-weight: 900; font-size: min(clamp(22px, 2.1vw, 32px), calc(100cqw / 11)); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.cat h3.is-long { font-size: min(clamp(22px, 2.1vw, 32px), calc(100cqw / 14.2)); } /* «радиоуправлении» — 14em, без переноса */
.cat__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.cat__go .ico { transition: transform .4s var(--ease); }
.cat:hover .cat__go .ico { transform: translateX(8px); }

@media (max-width: 900px) {
  .cats__head { flex-direction: column; align-items: stretch; gap: 8px; }
  .cats__controls { padding: 150px 0 0; }
  .cats__arrow { display: none; }
  .cats__rail { width: 100%; }
  .cat { width: 78vw; height: min(112vw, 470px); padding: 22px; }
  .cats__track { padding-bottom: 18px; }
}
@media (hover: none) { .cats__track { cursor: auto; } }

/* ---------- Shared bits: chips, pills, round arrow ---------- */
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.icon-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: background .25s, color .25s; }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.pill { padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 13px; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: background .25s, color .25s; }
.pill:hover { background: var(--ink); color: #fff; }
@keyframes bob { 50% { transform: scale(1.1); } }
@keyframes eq { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.tile__arrow {
  position: absolute; right: 24px; top: 24px; z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink);
  transition: transform .5s var(--ease);
}
.tile__arrow .ico { width: 24px; height: 24px; }

/* ---------- Social ---------- */
.social { background: var(--yellow); border-block: var(--line); overflow: hidden; }
.social::before {
  content: "BAZUMI BAZUMI BAZUMI BAZUMI"; position: absolute; left: 50%; top: 50%;
  translate: calc(-50% + var(--sx, 0px)) -50%; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-size: 22vw; line-height: 1;
  color: rgba(255,255,255,.35); pointer-events: none; z-index: 0;
}
.social .container { position: relative; z-index: 1; }
.social .section__head { position: relative; }
.social .h2 { font-size: clamp(34px, 5vw, 76px); max-width: 15ch; margin-inline: auto; }
/* на жёлтом красный не держит контраст: подпись — чёрным, акцент — тёмно-красным (крупный текст) */
.social .eyebrow { color: var(--ink); }
.social .text-red { color: var(--red-text); }
.dock--social { position: absolute; right: -40px; bottom: -24px; width: 160px; height: 230px; }
.social__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 24px); }
.soc {
  --c: var(--ink);
  display: grid; place-items: center; gap: 10px;
  width: clamp(120px, 13vw, 170px); aspect-ratio: 1;
  border-radius: 50%;
  background: #fff; border: var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  align-content: center;
  transition: background .35s var(--ease), color .35s, box-shadow .35s var(--ease), rotate .5s var(--ease);
}
.soc svg { width: 40%; height: auto; aspect-ratio: 1; color: var(--c); transition: color .3s; --icon-bg: #fff; }
.soc:hover { background: var(--c); color: #fff; box-shadow: var(--shadow-lg); rotate: -8deg; }
.soc:hover svg { color: #fff; --icon-bg: var(--c); }
.soc--yt { --c: #FF0033; } .soc--rt { --c: #100943; } .soc--vk { --c: #0077FF; }
.soc--tt { --c: #111; } .soc--ig { --c: #E1306C; } .soc--tg { --c: #229ED9; }
.social__note { margin-top: 36px; text-align: center; font-size: 13px; color: rgba(20,20,20,.7); }
@media (max-width: 1100px) { .dock--social { position: relative; right: auto; bottom: auto; margin: 16px 8% -30px auto; width: 120px; height: 160px; } }
@media (max-width: 600px) {
  .social__list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .soc { width: 100%; font-size: 11px; }
}

/* ---------- FAQ ---------- */
.faq__wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.dock--faq { width: 220px; height: 290px; margin-top: 24px; }
.faq__list { display: grid; gap: 16px; }
.qa {
  border-radius: 24px; background: #fff;
  border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), background .3s;
}
.qa[open] { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--red); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); transition: rotate .5s var(--ease), background .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 3px; border-radius: 2px; background: var(--ink); translate: -50% -50%; }
.qa__icon::after { rotate: 90deg; }
.qa[open] .qa__icon { rotate: 135deg; background: var(--red); }
.qa__body { padding: 0 28px 26px; font-size: 17px; color: rgba(255,255,255,.85); }
.qa__body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .faq__wrap { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .dock--faq { width: 110px; height: 150px; margin: 6px 8px -6px auto; }
  .qa summary { padding: 20px; }
  .qa__body { padding: 0 20px 22px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding-top: clamp(70px, 10vw, 130px); overflow: hidden; border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.footer__cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer__title { font-weight: 900; font-size: clamp(34px, 5.4vw, 80px); text-transform: uppercase; letter-spacing: -.02em; max-width: 12ch; }
.footer__mps { display: flex; flex-wrap: wrap; gap: 12px; }
.footer .btn { border-color: #fff; box-shadow: 4px 4px 0 #fff; }
.footer .btn:hover { box-shadow: 7px 7px 0 #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 50px 0; }
.footer__cols h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin-bottom: 14px; }
.footer__cols p { color: rgba(255,255,255,.75); line-height: 1.8; font-size: 15px; }
.footer__cols a { transition: color .2s; }
.footer__cols a:hover { color: var(--yellow); }
.footer__big {
  position: relative;
  font-family: var(--f-display); font-weight: 900;
  font-size: 18.5vw; line-height: .8; letter-spacing: -.04em;
  text-align: center; color: var(--yellow);
  margin: clamp(120px, 16vw, 220px) 0 -2vw;
  white-space: nowrap; user-select: none;
}
.dock--footer { position: absolute; right: 7.5%; bottom: 82%; width: 150px; height: 210px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 22px 28px; font-size: 14px; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.footer__bottom::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; background: var(--ink); border-top: 1px solid rgba(255,255,255,.15); } /* на всю ширину, а не 1320px контейнера: большое BAZUMI обрезается ровно */
.to-top { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .dock--footer { width: 90px; height: 128px; right: 5%; }
  .footer__big { margin-top: 120px; }
}
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } .footer__title { font-size: 8vw; } }

/* =========================================================
   Inner pages: wholesale (/opt/) and privacy (/privacy/)
   ========================================================= */
[data-loop].is-paused, [data-loop].is-paused * { animation-play-state: paused !important; }
.section__sub { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: 18px; font-weight: 500; }
.section__sub a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.section__sub a:hover { color: var(--red-text); }

.page-hero { position: relative; overflow: hidden; background: var(--cream); padding: 150px 0 90px; isolation: isolate; }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.page-hero .chip { margin-bottom: 22px; }
.page-hero__title { font-weight: 900; font-size: clamp(34px, 5vw, 84px); line-height: .96; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: 26px; }
.page-hero__title--legal { font-size: clamp(30px, 4.4vw, 70px); max-width: 16ch; }
.page-hero__lead { font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.2; margin-bottom: 14px; }
.page-hero__desc { max-width: 560px; color: var(--muted); font-size: 18px; font-weight: 500; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero__art { position: relative; height: min(520px, 60vh); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
.crates { position: absolute; inset: 0; }
.crate {
  position: absolute; width: 36%; aspect-ratio: 1.25; border-radius: 16px;
  background: #E9C48C; border: var(--line); box-shadow: var(--shadow);
  animation: bobble 4s ease-in-out infinite;
}
.crate::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 16%; translate: -50% 0; background: var(--red); border-inline: 2px solid rgba(20,20,20,.25); }
.crate::after { content: "BAZUMI"; position: absolute; left: 8%; bottom: 10%; font-family: var(--f-display); font-weight: 900; font-size: clamp(9px, .9vw, 13px); letter-spacing: .08em; color: rgba(20,20,20,.55); }
.crate--1 { left: 2%; bottom: 0; rotate: -3deg; }
.crate--2 { right: 0; bottom: 0; rotate: 2deg; animation-delay: -1s; }
.crate--3 { left: 12%; bottom: 30%; rotate: 4deg; width: 30%; animation-delay: -2s; }
.crate--4 { right: 8%; bottom: 29%; rotate: -5deg; width: 30%; animation-delay: -3s; background: var(--yellow); }
.crate--5 { left: 36%; top: 4%; rotate: 8deg; width: 24%; animation-delay: -1.5s; background: var(--sky); }
.crate--6 { left: 31%; bottom: 12%; rotate: -2deg; width: 34%; z-index: 1; animation-delay: -2.5s; background: #F2D3A2; }
@keyframes bobble { 50% { transform: translateY(-8px); } }
.page-hero__badge {
  position: absolute; z-index: 3; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}
.page-hero__badge::before { content: "📦 "; }
.page-hero__badge--a { left: 0; top: 18%; rotate: -6deg; }
.page-hero__badge--b { right: 2%; top: 44%; rotate: 5deg; }

/* why us */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.why-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; container-type: inline-size; border-radius: var(--radius); background: #fff; border: var(--line); box-shadow: var(--shadow); transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
.why-card:hover { translate: -3px -3px; box-shadow: var(--shadow-lg); }
.why-card:nth-child(3n+1) .why-card__icon { background: var(--yellow); }
.why-card:nth-child(3n+2) .why-card__icon { background: var(--sky); }
.why-card:nth-child(3n) .why-card__icon { background: var(--red); color: #fff; }
.why-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 2.5px solid var(--ink); margin-bottom: 8px; }
.why-card__icon svg { width: 28px; height: 28px; }
.why-card h3 { font-weight: 900; font-size: min(20px, calc(100cqw / 14.8)); text-transform: uppercase; line-height: 1.1; } /* без переносов: «сертифицировано» целиком */
.why-card p { color: var(--muted); font-weight: 500; }
.why-card p b { color: var(--ink); font-family: var(--f-display); }

/* categories grid */
.opt-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.opt-cat { --bg: var(--yellow); --fg: var(--ink); position: relative; margin: 0; min-height: 280px; padding: 22px; border-radius: var(--radius); background: var(--bg); color: var(--fg); border: var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.opt-cat :is(img, canvas) { position: absolute; left: 50%; top: 42%; width: 52%; max-height: 62%; object-fit: contain; translate: -50% -50%; filter: drop-shadow(0 16px 20px rgba(0,0,0,.25)); transition: transform .7s var(--ease); z-index: -1; }
.opt-cat :is(img, canvas).is-wide { width: 84%; }
.opt-cat:hover :is(img, canvas) { transform: scale(1.07) rotate(-3deg); }
.opt-cat figcaption { font-family: var(--f-display); font-weight: 900; font-size: clamp(18px, 1.6vw, 24px); text-transform: uppercase; line-height: 1.05; }
.opt-cat--robots { --bg: #D9E0FE; } /* та же пастельная семья, что в каталоге на главной */
.opt-cat--build { --bg: #F6E09D; }
.opt-cat--baby { --bg: #B0EDFF; }
.opt-cat--edu { --bg: #C1EFC9; }
.opt-cat--rc { --bg: #FFD9BD; }
.opt-cat--more { --bg: #FFD2ED; }

/* facts (dark) */
.facts { background: var(--ink); color: #fff; }
.facts .h2 { color: #fff; }
.facts .eyebrow { color: var(--yellow); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.fact { position: relative; padding: 30px 30px 30px; border-radius: var(--radius); background: #1E1E1E; border: 2px solid rgba(255,255,255,.16); overflow: hidden; container-type: inline-size; }
.fact__num { position: absolute; right: 18px; top: 6px; font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 6vw, 96px); line-height: 1; color: rgba(255,201,40,.14); }
.fact__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--yellow); color: var(--ink); margin-bottom: 18px; }
.fact__icon svg { width: 26px; height: 26px; }
.fact h3 { font-weight: 900; font-size: min(clamp(18px, 1.6vw, 24px), calc(100cqw / 14.8)); text-transform: uppercase; line-height: 1.15; margin-bottom: 12px; max-width: 18ch; } /* «сертифицировано» без переноса и на 320px */
.fact p { color: rgba(255,255,255,.72); }

/* what you get */
.gets__wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.gets .h2 { font-size: clamp(34px, 4.4vw, 68px); }
.gets__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gets__list li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; background: #fff; border: var(--line); box-shadow: 4px 4px 0 var(--ink); font-family: var(--f-display); font-weight: 700; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.25; }
.tick { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid var(--ink); }
.tick svg { width: 20px; height: 20px; }

/* contact / prices */
.price { padding-top: 0; }
.price__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--red); color: #fff; border: var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.price__card .eyebrow { color: var(--yellow); }
.price__title { color: #fff; font-size: clamp(30px, 4vw, 60px); margin-bottom: 18px; }
.price__text p:last-child { font-size: 18px; font-weight: 600; max-width: 420px; }
.price__actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: box-shadow .3s var(--ease), background .3s; min-width: 0; }
.contact-btn:hover { box-shadow: 7px 7px 0 var(--ink); background: var(--yellow); }
.contact-btn__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; }
.contact-btn__icon svg { width: 22px; height: 22px; }
.contact-btn b { display: block; font-family: var(--f-display); font-size: 14px; text-transform: uppercase; }
.contact-btn small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price__mascot { position: absolute; right: -30px; bottom: -120px; width: 190px; rotate: -10deg; opacity: .95; pointer-events: none; z-index: 0; }

/* privacy / legal */
.page-hero--legal { padding-bottom: 60px; }
/* свои игрушки в шапках внутренних страниц: по одной, без нагромождения */
.page-hero__toy { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.2)); animation: float 3.8s ease-in-out infinite; }
.page-hero__toy--legal { z-index: 1; right: calc(max(0px, (100vw - 1320px) / 2) + var(--gutter)); bottom: 10px; width: min(17vw, 220px); }
.page-hero--legal .container { position: relative; z-index: 2; }
.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-block: 60px 120px; align-items: start; }
.legal__toc { position: sticky; top: 110px; padding: 22px; border-radius: 22px; background: #fff; border: var(--line); box-shadow: 4px 4px 0 var(--ink); }
.legal__toc-title { font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); margin-bottom: 10px; }
.legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.35; }
.legal__toc a { color: var(--muted); transition: color .2s; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--ink); font-weight: 700; }
.legal__body { max-width: 780px; }
.legal__section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid rgba(20,20,20,.12); scroll-margin-top: 110px; }
.legal__section h2 { font-weight: 900; font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; line-height: 1.15; margin-bottom: 18px; }
.legal__section h2 span { color: var(--red); }
.legal__section p { margin-bottom: 12px; line-height: 1.65; }
.legal__section ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.6; }
@media (max-width: 369px) { .legal__section p, .legal__section li { font-size: calc((100vw - 32px) / 19.9); } } /* без переносов: самое длинное слово помещается и на 320px */
.legal__section a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.legal__num { font-family: var(--f-display); font-weight: 700; font-size: .9em; color: var(--red-text); }
.legal__aside { padding: 14px 18px; border-radius: 14px; background: var(--cream); border-left: 4px solid var(--yellow); font-size: 15px; }
.legal__generated { font-size: 13px; color: var(--muted); }

.footer__big--page { margin-top: clamp(60px, 8vw, 110px); }

@media (max-width: 900px) {
  .page-hero { padding: 110px 0 60px; }
  .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .page-hero__art { order: -1; height: 72vw; max-height: 380px; }
  .why__grid, .opt-cats__grid { grid-template-columns: 1fr 1fr; }
  .facts__list { grid-template-columns: 1fr; }
  .gets__wrap { grid-template-columns: 1fr; }
  .price__card { grid-template-columns: 1fr; }
  .price__mascot { display: none; }
  .legal { grid-template-columns: minmax(0, 1fr); padding-top: 30px; }
  .legal__toc { position: static; }
}
@media (max-width: 900px) {
  .page-hero__badge--b { top: auto; bottom: 4%; right: 0; }
  .page-hero__toy--legal { display: none; }
}
@media (max-width: 560px) {
  .why__grid, .opt-cats__grid, .price__actions { grid-template-columns: 1fr; }
  .opt-cat { min-height: 230px; }
  .why-card { padding: 22px; }
}

/* ---------- 404 page ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; background: var(--cream); padding: 24px; }
.notfound__box { position: relative; max-width: 560px; width: 100%; text-align: center; display: grid; justify-items: center; gap: 14px; }
.notfound__logo img { height: 44px; width: auto; }
.notfound__mascot { width: 150px; margin-top: 10px; rotate: -6deg; filter: drop-shadow(0 16px 24px rgba(0,0,0,.18)); }
.notfound__code { font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 16vw, 128px); line-height: .9; color: var(--red); letter-spacing: -.04em; }
.notfound__title { font-weight: 900; font-size: clamp(24px, 5vw, 36px); text-transform: uppercase; }
.notfound__text { color: var(--muted); font-weight: 500; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Мини-игры: блок на главной ---------- */
.gt__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
/* сверху три игры, снизу две обучающие — пошире */
.gt__grid > .gt-card { grid-column: span 2; }
.gt__grid > .gt-card--wide { grid-column: span 3; }
.gt-card {
  --bg: var(--yellow); --fg: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: end; gap: 6px;
  min-height: clamp(250px, 25vw, 320px);
  padding: clamp(20px, 2.4vw, 30px);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--bg); color: var(--fg);
  transition: box-shadow .4s var(--ease), translate .4s var(--ease); /* transform — у GSAP (появление), наведение — через translate */
}
.gt-card:hover { box-shadow: var(--shadow-lg); translate: -3px -3px; }
.gt-card--red { --bg: var(--red); --fg: #fff; }
.gt-card--sky { --bg: var(--sky); }
.gt-card--green { --bg: #4CC46B; }
.gt-card--pink { --bg: #FF9DBE; }
.gt-card__tag { justify-self: start; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.gt-card__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(19px, 1.9vw, 27px); text-transform: uppercase; line-height: 1; letter-spacing: -.02em; max-width: 12ch; }
.gt-card__text { font-weight: 600; font-size: 15px; max-width: 26ch; }
@media (max-width: 900px) {
  .gt__grid { grid-template-columns: 1fr; }
  .gt__grid > .gt-card, .gt__grid > .gt-card--wide { grid-column: auto; }
  .gt-card { min-height: 0; padding-right: 72px; } /* справа — только стрелка */
  .gt-card__tag { margin-bottom: 26px; }
  .gt-card .tile__arrow { width: 40px; height: 40px; right: 14px; top: 14px; }
}

/* ---------- Мини-игры: страница /igry/ ---------- */
/* шапка страницы игр — только текст: маскот сидит ниже, на слове «учимся» */
.page-hero--games .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.page-hero--games .page-hero__text { max-width: 880px; }
/* «Играем и учимся»: маскот сидит на слове «учимся», рядом лежит геймпад (одна картинка из 3D-модели).
   Линия сиденья — 85.1% высоты картинки; её ставим на верх заглавных букв (--cap от верха строки) */
.seat-word { --cap: .14em; --mh: 2.7em; position: relative; display: inline-block; white-space: nowrap; }
.seat-word__mascot { position: absolute; right: 0; bottom: calc(100% - var(--cap) - var(--mh) * .149); height: var(--mh); width: auto; max-width: none; z-index: 1; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0,0,0,.14)); }
/* узкий телефон: заголовок в две строки — маскот поменьше (умещается правее «ИГРАЕМ»), над заголовком место под голову */
@media (max-width: 440px) { .seat-word { --mh: 2.1em; } .seat-word__mascot { right: -.15em; } .h2--seat { margin-top: 1.3em; } }
.games__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.games__grid > .game-card { grid-column: span 2; }
.games__grid--two > .game-card { grid-column: span 3; } /* в группе из двух игр карточки пошире */
.game-card { --bg: var(--yellow); display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.game-card:target { outline: 4px solid var(--red); outline-offset: 5px; }
.game-card--red { --bg: var(--red); }
.game-card--sky { --bg: var(--sky); }
.game-card--green { --bg: #4CC46B; }
.game-card--pink { --bg: #FF9DBE; }
.game-card--violet { --bg: #B9A8FF; }
.tag--edu { background: #4CC46B; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.game-card__art { display: flex; align-items: center; justify-content: center; height: clamp(170px, 17vw, 230px); padding: 18px; background: var(--bg); border-bottom: var(--line); }
.game-card__art :is(img, canvas) { max-width: 80%; max-height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.22)); transition: transform .6s var(--ease); }
.game-card:hover .game-card__art :is(img, canvas) { transform: scale(1.06) rotate(-3deg); }
.game-art { width: auto; height: 100%; max-width: 86%; overflow: visible; transition: transform .6s var(--ease); }
.game-card:hover .game-art { transform: scale(1.06) rotate(-3deg); }
.game-card__body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; align-content: start; padding: clamp(18px, 2vw, 26px); container-type: inline-size; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag--light { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.game-card__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 1.9vw, 26px); text-transform: uppercase; line-height: 1.05; letter-spacing: -.01em; }
.game-card__title.is-long { font-size: min(clamp(20px, 1.9vw, 26px), calc(100cqw / 15.5)); } /* «Робот-трансформер» в одну строку, без переноса */
.game-card__text { color: var(--muted); font-weight: 500; }
.game-card__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
.game-card__actions .btn .ico { width: 16px; height: 16px; }
.game-card__link { display: inline-flex; align-items: center; gap: 6px; padding-block: 9px; font-weight: 700; font-size: 14px; text-decoration: underline 2px; text-underline-offset: 4px; }
.game-card__link .ico { width: 14px; height: 14px; }
.games__note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) { .games__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .games__grid > .game-card, .games__grid--two > .game-card { grid-column: auto; } }

/* игры по возрасту: кнопки-переходы к группам и шапки групп */
.ages { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(-1 * clamp(14px, 2.4vw, 32px)); }
.age-chip {
  display: inline-grid; gap: 2px; padding: 12px 22px 12px 18px; border-radius: 22px;
  background: var(--chip, var(--yellow)); border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.age-chip b { font-family: var(--f-display); font-weight: 900; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.05; }
.age-chip span { font-weight: 600; font-size: 14px; }
.age-chip:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.age-chip:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.age-chip--3, .age--3 { --chip: var(--yellow); }
.age-chip--5, .age--5 { --chip: #4CC46B; }
.age-chip--7, .age--7 { --chip: #B9A8FF; }
.games__auto { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; max-width: 64ch; color: var(--muted); font-weight: 600; font-size: 15px; }
.games__auto .ico { flex: none; width: 22px; height: 22px; color: var(--yellow); filter: drop-shadow(1.5px 1.5px 0 var(--ink)); }
.age { margin-top: clamp(44px, 6vw, 76px); scroll-margin-top: 100px; }
.age__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.age__badge { padding: 7px 14px; border-radius: 999px; background: var(--chip); border: var(--line); font-family: var(--f-display); font-weight: 900; font-size: 15px; }
.age__title { font-weight: 900; font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.age__text { flex-basis: 100%; max-width: 62ch; color: var(--muted); }
@media (max-width: 560px) {
  .ages { display: grid; grid-template-columns: 1fr; }
  .age-chip { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
}

/* ---------- окно игры ---------- */
html.is-game { overflow: hidden; }
.game { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.game[open] { display: grid; place-items: center; }
.game::backdrop { background: rgba(14, 16, 28, .74); }
.game__panel {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 32px)); height: min(740px, calc(100dvh - 32px));
  background: var(--cream); border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
.game__bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px 10px 20px; background: #fff; border-bottom: var(--line); }
.game__title { min-width: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(14px, 1.6vw, 19px); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__stats { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; justify-content: flex-end; }
.game__stat { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game__stat:first-child { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.game__btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.game__btn:hover { background: var(--yellow); }
.game__btn:active { transform: scale(.92); }
.game__btn .ico { width: 20px; height: 20px; }
.game__sound .ico--off, .game__sound.is-off .ico--on { display: none; }
.game__sound.is-off .ico--off { display: block; }
.game__btn:focus-visible, .game__key:focus-visible, .game__canvas:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.game__stage { position: relative; min-height: 0; }
.game__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.game__canvas.is-aim { cursor: none; }
.game__pad { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; padding: 14px; pointer-events: none; }
.game__key {
  pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 9px; letter-spacing: -.01em; text-transform: uppercase; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.game__key--left { background: var(--sky); }
.game__key--right { margin-left: auto; }
.game__key:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.game__key .ico { width: 30px; height: 30px; }
.game__screen { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 18px; background: rgba(255, 246, 230, .84); overflow: auto; }
.game__card { width: min(540px, 100%); padding: clamp(20px, 3vw, 32px); background: #fff; border: var(--line); border-radius: 26px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 12px; justify-items: center; }
.game__kicker { font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.game__card { container-type: inline-size; }
.game__headline { font-family: var(--f-display); font-weight: 900; font-size: min(clamp(22px, 3vw, 32px), calc(100cqw / 15.5)); text-transform: uppercase; line-height: 1.05; } /* «РОБОТ-ТРАНСФОРМЕР» ≈ 15.4em — не шире карточки */
.game__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; font-weight: 500; font-size: 15px; color: #3d3a33; }
.game__lines li { position: relative; padding-left: 22px; }
.game__lines li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.game__stars { display: flex; gap: 8px; }
.game__stars span { display: grid; place-items: center; width: 46px; height: 46px; color: #E6E0D4; }
.game__stars .ico { width: 44px; height: 44px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.game__stars span.is-on { color: var(--yellow); animation: star-pop .5s var(--ease) both; }
.game__stars span.is-on:nth-child(2) { animation-delay: .12s; }
.game__stars span.is-on:nth-child(3) { animation-delay: .24s; }
@keyframes star-pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.game__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
/* выбор уровня (конструктор) и режима (обучающие игры) */
.game__levels { display: grid; gap: 10px; width: 100%; }
.game__levels[hidden] { display: none; }
.game__tier { display: grid; gap: 6px; }
.game__tier-title { font-family: var(--f-display); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; }
.game__tier-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.game__level {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
  min-height: 58px; padding: 7px 6px 6px; border: 2.5px solid var(--ink); border-radius: 16px;
  background: #fff; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); font: inherit; cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.game__level:hover { background: #FFF1C9; transform: translate(-1px, -1px); }
.game__level:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.game__level.is-current { background: var(--yellow); }
.game__level.is-locked { cursor: not-allowed; opacity: .45; background: #F2EEE6; box-shadow: none; transform: none; }
.game__level:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.game__level-n { font-family: var(--f-display); font-weight: 900; font-size: 18px; line-height: 1; }
.game__level-name { font-weight: 700; font-size: 12px; line-height: 1.15; text-align: center; }
.game__level-stars { display: flex; gap: 2px; }
.game__level-stars i { width: 12px; height: 12px; background: #E3DDD1; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.game__level-stars i.is-on { background: #F5B400; }
.game__pad[hidden], .game__screen[hidden], .game__stars[hidden], .game__stat[hidden] { display: none; }
@media (max-width: 700px), (max-height: 560px) {
  .game__panel { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .game__bar { padding: 8px 8px 8px 14px; gap: 6px; }
  .game__title { font-size: 13px; }
  .game__stat { padding: 4px 9px; font-size: 12px; }
  .game__btn { width: 42px; height: 42px; }
  .game__key { width: 80px; height: 80px; font-size: 8px; }
  .game__key .ico { width: 26px; height: 26px; }
}
@media (max-width: 480px) { .game__title { display: none; } .game__stats { margin-left: 0; justify-content: flex-start; } .game__sound { margin-left: auto; } }
@media (max-width: 400px) { .game__bar { gap: 4px; } .game__stats { gap: 4px; } .game__stat { padding: 4px 8px; } }
@media (max-height: 560px) {
  .game__card { gap: 8px; padding: 16px 20px; }
  .game__headline { font-size: min(22px, calc(100cqw / 15.5)); }
  .game__lines { font-size: 13.5px; gap: 5px; }
  .game__actions { position: sticky; bottom: -18px; z-index: 1; width: 100%; padding: 10px 0 18px; background: #fff; } /* телефон боком: «Играть» всегда видна */
  .game__stars span { width: 34px; height: 34px; }
  .game__stars .ico { width: 32px; height: 32px; }
}

/* =========================================================
   Адаптив: мелкие телефоны и телефон, повёрнутый горизонтально
   ========================================================= */
.menu { overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 901px) { .legal__toc { max-height: calc(100svh - 130px); overflow-y: auto; overscroll-behavior: contain; } }
@media (max-width: 1100px) { .mp-card__rating { flex-wrap: wrap; gap: 6px 12px; } }
@media (hover: none) { .brand__hint { display: none; } }
@media (max-width: 900px) {
  .why__grid, .opt-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .why__grid, .opt-cats__grid { grid-template-columns: 1fr; }
  .page-hero__title--legal { font-size: min(30px, 5.3vw); }
  .page-hero__art { height: 54vw; max-height: 260px; }
}
@media (max-width: 520px) { .footer__title { font-size: calc((100vw - 40px) / 13.8); } }
@media (max-width: 400px) { .h2 { font-size: min(34px, 8.6vw); } }
@media (max-width: 400px) { .gt-card__title { font-size: 17px; } } /* «АНГЛИЙСКИЙ» помещается рядом со стрелкой */
/* Мини-игры на главной, три карточки в ряд (без картинок): возраст — на одной линии со стрелкой,
   заголовок (всегда две строки) и текст стоят на одних линиях во всех карточках (subgrid) */
@media not all and (max-width: 900px), (min-width: 640px) and (max-width: 900px) and (orientation: landscape) { /* ровно дополнение к правилам ≤900px, без щели 900–901 */
  .gt__grid { grid-template-rows: auto auto auto; row-gap: 0; }
  .gt__grid > .gt-card {
    grid-row: span 3; align-content: stretch; row-gap: 0;
    grid-template-columns: minmax(0, 1fr); /* длинное слово не раздвигает колонку карточки */
    grid-template-rows: auto auto 1fr; /* старые браузеры без subgrid: излишек высоты — под текстом */
    grid-template-rows: subgrid;
    min-height: 0; padding-right: clamp(20px, 2.4vw, 30px); /* высоту задают общие строки */
  }
  .gt__grid .gt-card__tag { grid-row: 1; align-self: start; margin: 5px 0 clamp(44px, 6vw, 92px); } /* по центру стрелки; ниже — воздух вместо картинки */
  .gt__grid .gt-card__title { grid-row: 2; margin-bottom: 8px; max-width: none; }
  .gt__grid .gt-card__text { grid-row: 3; align-self: start; }
}
@media (max-width: 380px) { .soc { font-size: 10px; } }
@media (max-height: 600px) { .faq__head { position: static; } .dock--faq { width: 150px; height: 200px; } }
/* пальцем удобно попадать: ссылки и кнопки не ниже 40–44 px */
@media (pointer: coarse) {
  .footer__cols p a, .menu__foot a { display: inline-block; padding-block: 8px; }
  .pill--sm { min-height: 44px; display: inline-flex; align-items: center; }
  .header__logo { padding-block: 5px; }
  .legal__toc a { display: block; padding-block: 11px; }
  .menu__nav a { padding-block: 4px; }
}
/* телефон горизонтально, 640–900px: карточки и плитки в ряд */
@media (max-width: 900px) and (min-width: 640px) and (orientation: landscape) {
  .buy__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .mp-card { padding: 18px; gap: 14px; }
  .mp-card__score { font-size: 34px; }
  .gt__grid, .games__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
  .gt__grid > .gt-card, .gt__grid > .gt-card--wide, .games__grid > .game-card { grid-column: span 2; }
  .gt__grid > .gt-card--wide, .games__grid--two > .game-card { grid-column: span 3; }
  .gt-card { padding-right: clamp(16px, 2vw, 24px); }
  .gt__grid .gt-card__title { font-size: min(19px, calc(3.2vw - 6px)); } /* «АНГЛИЙСКИЙ» влезает в карточку на телефонах 640–720px боком */
  .faq__wrap { grid-template-columns: 5fr 7fr; }
}
/* низкий широкий экран (телефон повёрнут): всё важное — в пределах одного экрана */
@media (max-height: 560px) and (min-aspect-ratio: 4/3) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto; padding-top: 74px; padding-bottom: 18px; gap: 0 16px; align-items: start; }
  .hero__stage { display: block; order: 0; width: auto; height: calc(100svh - 92px); max-height: none; min-height: 240px; aspect-ratio: auto; align-self: start; justify-self: stretch; margin-bottom: 0; }
  .dock--title { display: none; }
  .hero__content { margin-top: 28px; } /* the title is the first line now: keep it clear of the fixed header */
  .hero__title { font-size: clamp(24px, 4.4vw, 42px); margin-bottom: 14px; }
  .hero__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; } /* the slim cards are tall here: the buy block keeps its own height */
  .mini { padding: 14px 16px; }
  .mini__title { --fs: 13px; --pr: 0px; }
  .mini__play, .mini__typing, .mini__eq, .mini__boxes { display: none; }
  .hero__stats { margin-top: 14px; }
  .hero__scroll { display: none; }
  .menu { padding-top: 84px; justify-content: flex-start; gap: 18px; }
  .menu__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; }
  .menu__nav a { font-size: clamp(18px, 3.4vw, 28px); }
  .cats__head { flex-direction: row; align-items: flex-end; }
  .cats__controls { padding: 0; }
  .cats__rail { width: min(240px, 30vw); }
  .cat { width: min(46vw, 360px); height: min(470px, calc(100svh - 30px)); padding: 18px; }
  .cat h3 { font-size: min(20px, calc(100cqw / 11)); }
  .cat h3.is-long { font-size: min(20px, calc(100cqw / 14.2)); }
  .page-hero { padding: 100px 0 34px; }
  .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; }
  .page-hero__art { order: 0; height: calc(100svh - 120px); max-height: 340px; min-height: 220px; }
  .page-hero__title { font-size: clamp(24px, 4.2vw, 44px); margin-bottom: 14px; }
  .page-hero__lead { font-size: 17px; }
  .page-hero__desc { font-size: 15px; }
  .page-hero__actions { margin-top: 16px; }
  .notfound__box { max-width: 760px; grid-template-columns: 150px minmax(0, 1fr); column-gap: 28px; text-align: left; justify-items: start; align-items: center; }
  .notfound__logo { grid-column: 1 / -1; justify-self: center; }
  .notfound__mascot { grid-column: 1; grid-row: 2 / span 4; width: 130px; margin: 0; }
  .notfound__code, .notfound__title, .notfound__text, .notfound__actions { grid-column: 2; }
  .notfound__code { font-size: 64px; }
  .notfound__actions { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   3D-витрина (/vitrina/): игрушку крутят рукой (vitrina.js + toys3d.js)
   ========================================================= */
.page-hero--vit { padding-bottom: 34px; }
.vit { padding: 6px 0 110px; background: var(--cream); }
.vit__stage {
  position: relative; max-width: 1060px; height: min(60vh, 540px); min-height: 340px; margin: 0 auto; overflow: hidden; isolation: isolate;
  border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 90% at 50% 0%, #FFFDF6 0%, #FFE9BC 70%, #FFD98A 100%);
  cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.vit__stage.is-grab { cursor: grabbing; }
.no-relief .vit__stage { cursor: auto; }
.vit__stage:focus-visible { outline: 4px solid var(--red); outline-offset: 5px; }
.vit__floor { position: absolute; left: 22%; right: 22%; bottom: 9%; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 50, 10, .28), rgba(90, 50, 10, 0)); }
.vit__toy { position: absolute; inset: 0; margin: 0; }
.vit__toy.is-on { animation: vit-in .6s var(--ease) both; }
@keyframes vit-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
/* не больше 1,3 размера исходника (--nw/--nh ставит vitrina.js) — иначе фото на поверхности модели «мылится» */
.vit__toy :is(img, canvas) {
  position: absolute; left: 50%; bottom: 13%; translate: -50% 0; width: min(84%, var(--nw, 9999px) * 1.3); height: min(70%, var(--nh, 9999px) * 1.3); max-width: none;
  object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 26px 24px rgba(70, 35, 5, .22)); -webkit-user-drag: none;
}
.vit__hint { position: absolute; top: 18px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none; font-weight: 600; font-size: 14px; color: var(--muted); transition: opacity .5s; }
.vit__hint .ico { width: 16px; height: 16px; }
.vit__hint .ico:first-child { rotate: 180deg; }
.vit__stage.is-touched .vit__hint, .no-relief .vit__hint { opacity: 0; }
.vit__name { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); padding: 8px 18px; border: var(--line); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--ink); font-family: var(--f-display); font-weight: 800; font-size: clamp(14px, 1.4vw, 18px); text-align: center; pointer-events: none; }
.vit__picker { display: flex; justify-content: safe center; gap: 12px; overflow-x: auto; max-width: 1072px; margin: 22px auto 0; padding: 6px 6px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.vit__pick {
  flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; min-width: 112px; padding: 10px 10px 9px; scroll-snap-align: start; white-space: nowrap;
  border: var(--line); border-radius: 20px; background: #fff; box-shadow: 3px 3px 0 var(--ink); color: var(--ink);
  font: 700 13px/1.1 var(--f-body); cursor: pointer; transition: transform .25s var(--ease), background-color .25s;
}
.vit__pick img { width: 92px; height: 62px; object-fit: contain; }
.vit__pick:hover { transform: translateY(-3px); }
.vit__pick.is-on { background: var(--yellow); }
.vit__pick:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.vit__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.vit__about { margin: clamp(60px, 8vw, 100px) 0 0; }
.vit__about .h2 { font-size: clamp(28px, 4vw, 56px); }
.vit__about .section__sub { max-width: 760px; margin-inline: auto; }
.vit__about a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .vit__stage { height: 62vh; min-height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); }
  .vit__toy :is(img, canvas) { width: min(80%, var(--nw, 9999px) * 1.3); height: min(62%, var(--nh, 9999px) * 1.3); bottom: 16%; } /* место по бокам — для поворота */
  .vit__pick { min-width: 96px; }
  .vit__pick img { width: 78px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .vit__toy.is-on { animation: none; } }

/* длинное «РАЗВИВАЮЩИЕ» в заголовках не вылезает за колонку (слова не переносим — уменьшаем шрифт) */
.page-hero--games .page-hero__text { container-type: inline-size; }
.page-hero--games .page-hero__title { font-size: min(clamp(34px, 5vw, 84px), calc(100cqw / 11.4)); }
/* «АУДИОСКАЗКИ» ≈ 10.3em (с маской букв) — на телефоне 360 px не помещалось и обрезалось краем */
.page-hero--tales .page-hero__text { container-type: inline-size; }
.page-hero--tales .page-hero__title { font-size: min(clamp(34px, 5vw, 84px), calc(100cqw / 10.7)); }
@media (max-height: 560px) and (min-aspect-ratio: 4/3) { .page-hero--tales .page-hero__title { font-size: min(clamp(24px, 4.2vw, 44px), calc(100cqw / 10.7)); } }
@media (max-height: 560px) and (min-aspect-ratio: 4/3) { .page-hero--games .page-hero__title { font-size: min(clamp(24px, 4.2vw, 44px), calc(100cqw / 11.4)); } }
.games-teaser .h2 { font-size: min(clamp(34px, 6vw, 88px), calc((100vw - 2 * var(--gutter)) / 11.4)); }
/* «ИГРУШКАХ» целиком помещается в левую колонку FAQ на любой ширине */
.faq__head .h2 { font-size: clamp(34px, 5vw, 74px); }

/* =========================================================
   Каталог в стиле zurutoys.com, цвета BAZUMI (2026-10-06, запрос: «по подобию того сайта, только наших цветов»)
   Палитра «Студия»: заменяет пастельные карточки выше (правила ниже идут позже и перекрывают их).

   Грамматика ZURU, перенесённая на карточки:
   - каждая карточка — «студия» одного цвета: стена (--wall-top → --wall) со световым пятном (--glow) за игрушкой,
     пол того же цвета, но темнее (--fl-top → --fl → --fl-deep) с мягким горизонтом на 56–61 % высоты,
     лёгкая виньетка по краям; без рамки и без жёсткой тени;
   - белый жирный заголовок снизу слева, «Смотреть →» — полупрозрачная пилюля с белым контуром;
   - фон секции — ink: цветные студии светятся, между карточками нет светлых полос (не рябит).
   Семьи цветов (только бренд): Luminous Blue, жёлтый→янтарь, sky, red, ink→графит.
   Раскладка: 01 роботы — Lumi · 02 конструкторы — янтарь · 03 малыши — Lumi ·
              04 развивающие — sky · 05 радиоуправление — red · 06 бластеры — графит.
   Контраст белого текста посчитан скриптом (WCAG), худшая точка пола под текстом:
   Lumi 10.7 · янтарь 6.4 · sky 7.1 · red 6.6 · графит 14.5 (h3); пилюля «Смотреть» ≥ 8.0; плашка возраста ≥ 14.9.
   ========================================================= */

/* ---------- Секция: тёмная «студия» ---------- */
.cats { background: var(--ink); color: #fff; }
/* миллиметровку убираем (рябила бы рядом с яркими студиями) — вместо неё едва заметный свет из центра */
.cats::before {
  background-image: radial-gradient(ellipse 60% 55% at 50% 64%, rgba(255,255,255,.06), rgba(255,255,255,0) 72%);
  background-size: auto;
}
.cats .eyebrow { color: var(--yellow); } /* как в тёмных секциях сайта (.facts, .explode): 11.96:1 */
.cats__head .h2 { color: #fff; } /* «выбери своё!» остаётся брендовым красным: 5.21:1 на ink */
.cats__hint { color: rgba(255,255,255,.66); } /* 8.41:1 */

/* управление сохраняет подпись бренда — жёсткую тень, но белую, как кнопки в подвале (.footer .btn) */
.cats__arrow { box-shadow: 3px 3px 0 #fff; }
.cats__arrow:hover:not([aria-disabled="true"]) { box-shadow: 5px 5px 0 #fff; }
.cats__arrow[aria-disabled="true"] { background: transparent; color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.25); box-shadow: none; }
.cats__arrow:focus-visible { outline-color: var(--yellow); }
.cats__progress { background: rgba(255,255,255,.18); }
.cats__progress span { background: var(--yellow); }
.cats__track:focus-visible { box-shadow: inset 0 0 0 3px var(--yellow); }
/* курсор-точка чёрная — на ink-секции она пропадала бы; пока курсор над каталогом, точка белая */
body:has(.cats:hover) .cursor:not(.is-big):not(.is-link) { background: #fff; }

/* ---------- Карточка-студия: общий каркас ---------- */
.cat, .opt-cat {
  /* по умолчанию — Luminous Blue (перекрывается ниже для каждой категории) */
  --wall-top: #132C96; --wall: #1A3BB8; --glow: #4471F6; --glow-half: #4471F680;
  --fl-top: #15319E; --fl: #102680; --fl-deep: #0A1A5A;
  --chip: #08164A; --go-ink: #102680; --num: #4471F699; --halo: rgba(68,113,246,.6);
  --fg: #fff; color: #fff;
  border: 0;
  background:
    radial-gradient(ellipse 80% 74% at 50% 42%, rgba(0,0,0,0) 60%, rgba(0,0,0,.22)),                         /* виньетка */
    linear-gradient(180deg, rgba(0,0,0,0) 56%, var(--fl-top) 61%, var(--fl) 82%, var(--fl-deep)),            /* пол + мягкий горизонт */
    radial-gradient(ellipse 64% 42% at 50% var(--gy, 40%), var(--glow), var(--glow-half) 45%, rgba(0,0,0,0)), /* свет за игрушкой */
    linear-gradient(180deg, var(--wall-top), var(--wall) 55%) var(--wall);                                   /* стена */
}
.cat { box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); } /* волосяной контур вместо ink-рамки: край читается на ink-фоне */
.cat:hover { translate: 0 -6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 34px -20px var(--halo); } /* ореол помещается в поле ленты — без обрезанной полосы */ /* студия «светится» в своём цвете */
.cat:focus-visible { outline-color: var(--yellow); }
.cat__num { color: var(--num); } /* тон в тон со светом студии, декоративный (aria-hidden) */
.cat .tag { background: var(--chip); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); } /* сплошная плашка: читается и над водой/горизонтом */
.cat__go {
  padding: 5px 12px 5px 14px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6); background: rgba(0,0,0,.16);
  transition: background-color .3s, color .3s, border-color .3s;
}
.cat:hover .cat__go, .cat:focus-visible .cat__go { background: #fff; border-color: #fff; color: var(--go-ink); }

/* ---------- Семьи цветов по категориям ---------- */
/* 01 · Роботы — Luminous Blue: жёлтый трансформер на синем (дополнительные цвета) */
.cat--robots, .opt-cat--robots {
  --wall-top: #132C96; --wall: #1A3BB8; --glow: #4471F6; --glow-half: #4471F680;
  --fl-top: #15319E; --fl: #102680; --fl-deep: #0A1A5A;
  --chip: #08164A; --go-ink: #102680; --num: #4471F699; --halo: rgba(68,113,246,.6);
  --spark: var(--yellow); --floor: rgba(4,10,48,.7);
}
/* 02 · Конструкторы — янтарь из жёлтой семьи (свет — брендовый #FFC928): домик розово-коричнево-зелёный */
.cat--build, .opt-cat--build {
  --wall-top: #A86800; --wall: #D88F00; --glow: #FFC928; --glow-half: #FFC92880;
  --fl-top: #875400; --fl: #6E4300; --fl-deep: #462A00;
  --chip: #3A2200; --go-ink: #6E4300; --num: #FFC92899; --halo: rgba(255,201,40,.45);
  --spark: #fff; --floor: rgba(52,28,0,.7);
}
/* 03 · Малыши — Luminous Blue, вода — светлый sky: коралловый кит, кремовая черепашка, голубая рыбка */
.cat--baby, .opt-cat--baby {
  --wall-top: #132C96; --wall: #1A3BB8; --glow: #4471F6; --glow-half: #4471F680;
  --fl-top: #15319E; --fl: #102680; --fl-deep: #0A1A5A;
  --chip: #08164A; --go-ink: #102680; --num: #4471F699; --halo: rgba(68,113,246,.6);
}
/* 04 · Развивающие — глубокий sky (бирюза): светлый пастельный куб и красная рама */
.cat--edu, .opt-cat--edu {
  --wall-top: #06577A; --wall: #0A77A3; --glow: #1C8DBA; --glow-half: #1C8DBA80;
  --fl-top: #0A5F82; --fl: #084C69; --fl-deep: #053448;
  --chip: #042A3B; --go-ink: #084C69; --num: #2AA8D699; --halo: rgba(28,141,186,.6);
  --floor: rgba(2,30,44,.7);
}
/* 05 · Радиоуправление — брендовый красный: чёрные машинки на кремовой трассе */
.cat--rc, .opt-cat--rc {
  --wall-top: #B01E08; --wall: #E5331A; --glow: #FF7556; --glow-half: #FF755680;
  --fl-top: #B51F08; --fl: #921804; --fl-deep: #5C0E02;
  --chip: #470B02; --go-ink: #921804; --num: #FF755699; --halo: rgba(255,61,31,.5);
}
/* 06 · Бластеры — янтарь из жёлтой семьи (как 02): синий корпус и голубой пистолет — дополнительные к жёлтому;
   на графите серые части автомата сливались с фоном (14 % контура) */
.cat--more, .opt-cat--more {
  --wall-top: #A86800; --wall: #D88F00; --glow: #FFC928; --glow-half: #FFC92880;
  --fl-top: #875400; --fl: #6E4300; --fl-deep: #462A00;
  --chip: #3A2200; --go-ink: #6E4300; --num: #FFC92899; --halo: rgba(255,201,40,.45);
  --spark: #fff; --floor: rgba(52,28,0,.7);
}
.cat--more { --gy: 36%; } /* свет — за стволами автомата */
.opt-cat { --gy: 42%; } /* на /opt/ фото стоит по центру на 42 % высоты */

/* ---------- Сцены: всё, что двигается, видно на новом фоне ---------- */
/* 01 роботы: искры жёлтые (4.72:1 к стене), полосы скорости белые (4.36:1), тень на полу — тёмно-синяя */

/* 02 конструктор: белые искры с тёплым ореолом — читаются и на свете, и на стене */

/* 03 ванна: вода — светлый sky поверх синего пола (8.8 / 6.2 / 3.65:1), задняя волна — прозрачный sky */

/* 04 куб: ноты белые и жёлтые (чёрные/красные терялись бы на бирюзе), тень куба — глубокий sky */

/* 05 гонка: трасса — тёмно-красный подиум студии (как красная студия Ballers у ZURU), без светлой полосы поперёк карточки;
   разметка и полосы скорости — белые */

/* 06 бластеры: «контровой свет» — тонкий светлый ореол по силуэту, чтобы тёмные стволы и подставка не тонули в графите;
   струя и брызги — sky (5.70:1 к стене вместо 2.87:1 у #3A8DFF) */

/* ---------- /opt/: плитки категорий — те же студии на белой странице (как панели ZURU) ---------- */
.opt-cat { border: var(--line); box-shadow: var(--shadow); } /* на светлой странице опта — фирменная рамка и тень, как у соседних блоков */
.opt-cat--more :is(img, canvas) { filter: drop-shadow(0 16px 20px rgba(52,28,0,.45)); }

/* ---------- Каталог: карточка категории с фото товаров (выбран 2026-10-07) — три колонки фото медленно едут навстречу друг другу ---------- */
.ccat__scene { position: absolute; left: 0; right: 0; top: 17%; height: 47%; z-index: 1; pointer-events: none; }
.ccat__ph { display: block; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.ccat__ph img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* едут только пока карточка на экране (main.js ставит .is-on), под курсором — стоят; при «меньше движения» — неподвижны */
.ccat__cols { display: flex; align-items: flex-start; justify-content: center; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.ccat__col { flex: 0 0 26%; display: flex; flex-direction: column; gap: 10px; animation: ccat-up 26s linear infinite paused; }
.ccat__col:nth-child(2) { animation-name: ccat-down; }
.ccat__col .ccat__ph { flex: none; width: 100%; aspect-ratio: 401 / 547; }
.ccat.is-on .ccat__col { animation-play-state: running; }
.ccat.is-on:hover .ccat__col { animation-play-state: paused; }
@keyframes ccat-up { from { translate: 0 0; } to { translate: 0 calc(-50% - 5px); } } /* колонка = 2 пары фото: −50% − ½ зазора = ровно одна пара */
@keyframes ccat-down { from { translate: 0 calc(-50% - 5px); } to { translate: 0 0; } }
/* страница опта: те же колонки фото в плитках категорий, подпись — одна строка внизу, поэтому фото выше и крупнее */
.opt-cat.ccat { min-height: 340px; }
.opt-cat.ccat .ccat__scene { top: 7%; height: 70%; }
.opt-cat.ccat .ccat__ph img { position: static; left: auto; top: auto; width: 100%; height: 100%; max-height: none; translate: none; transform: none; filter: none; z-index: auto; transition: none; } /* общие правила картинки плитки опта — не для фото в колонках */

/* =========================================================
   Аудиосказки (/audioskazki/): карточки сказок и свой плеер (audio.js)
   ========================================================= */
.page-hero--tales .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.page-hero--tales .page-hero__text { max-width: 880px; }
.tales__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tale {
  --bg: var(--yellow);
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  scroll-margin-top: 110px;
  transition: translate .4s var(--ease), box-shadow .4s var(--ease); /* transform — у GSAP (появление), наведение — через translate */
}
.tale:hover { translate: -3px -3px; box-shadow: var(--shadow-lg); }
.tale--green { --bg: #4CC46B; }
.tale--sky { --bg: var(--sky); }
.tale--pink { --bg: #FF9DBE; }
.tale.is-current { outline: 4px solid var(--red); outline-offset: 5px; }
.tale__cover { position: relative; padding: clamp(12px, 1.4vw, 18px); background: var(--bg); border-bottom: var(--line); }
.tale__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); transition: transform .6s var(--ease); }
.tale:hover .tale__cover img { transform: scale(1.03) rotate(-1.5deg); }
/* «эквалайзер» на обложке сказки, которая сейчас выбрана; прыгает, пока играет */
.tale__eq { position: absolute; right: clamp(20px, 2vw, 28px); bottom: clamp(20px, 2vw, 28px); display: none; align-items: flex-end; gap: 3px; height: 36px; padding: 7px 9px; border-radius: 12px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.tale.is-current .tale__eq { display: flex; }
.tale__eq i { width: 5px; height: 100%; border-radius: 3px; background: var(--red); transform-origin: 50% 100%; transform: scaleY(.35); animation: eq 1.1s ease-in-out infinite paused; }
.tale.is-playing .tale__eq i { animation-play-state: running; }
.tale__eq i:nth-child(even) { background: var(--yellow); }
.tale__eq i:nth-child(2) { animation-delay: -.5s; } .tale__eq i:nth-child(3) { animation-delay: -.9s; }
.tale__eq i:nth-child(4) { animation-delay: -.3s; } .tale__eq i:nth-child(5) { animation-delay: -.7s; }
.tale__body { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 1.8vw, 22px); }
.tale__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.tale__meta { color: var(--muted); font-weight: 600; font-size: 14px; }
.tale__meta time { font-variant-numeric: tabular-nums; }
.tale__audio { width: 100%; margin-top: 4px; }
.js .tale__audio { display: none; } /* со скриптом играет свой плеер */
.tale__desc { margin-bottom: 6px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.tale__play { align-self: flex-start; margin-top: auto; } /* кнопки во всех карточках на одной линии — внизу */
.tale__desc + .tale__audio, .tale__desc + .tale__play { margin-top: auto; }
.tales__note { margin-top: clamp(28px, 3vw, 44px); max-width: 760px; color: var(--muted); font-size: 17px; font-weight: 500; line-height: 1.5; }
.tale__play .ico { width: 15px; height: 15px; }
.tale__play .ico--pause, .tale.is-playing .tale__play .ico--play { display: none; }
.tale.is-playing .tale__play .ico--pause { display: block; }
html:not(.js) .tale__play { display: none; }
@media (max-width: 1100px) { .tales__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tales__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; } }

/* плеер — плашка внизу экрана */
.tplayer {
  position: fixed; z-index: 85; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0;
  width: min(760px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "cover main ctrls close";
  align-items: center; gap: 14px; padding: 10px 12px 10px 10px;
  background: #fff; color: var(--ink); border: var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.tplayer[hidden] { display: none; }
.tplayer__cover { grid-area: cover; width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.tplayer__main { grid-area: main; display: grid; gap: 6px; min-width: 0; }
.tplayer__title { font-family: var(--f-display); font-weight: 900; font-size: 15px; line-height: 1.1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tplayer__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tplayer__time { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tplayer__seek {
  --p: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
}
.tplayer__seek::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--red) var(--p), #fff var(--p)); }
.tplayer__seek::-moz-range-track { height: 4px; border-radius: 99px; border: 2px solid var(--ink); background: #fff; }
.tplayer__seek::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--red); }
.tplayer__seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); }
.tplayer__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); }
.tplayer__seek:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.tplayer__ctrls { grid-area: ctrls; display: flex; align-items: center; gap: 6px; }
.tplayer__btn {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  transition: translate .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.tplayer__btn .ico { width: 18px; height: 18px; }
.tplayer__btn:hover:not([aria-disabled="true"]) { translate: -1px -1px; box-shadow: 3px 3px 0 var(--ink); }
.tplayer__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.tplayer__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tplayer__btn--main { width: 52px; height: 52px; background: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.tplayer__btn--main .ico { width: 20px; height: 20px; }
.tplayer__btn--main .ico--pause, .tplayer.is-playing .tplayer__btn--main .ico--play { display: none; }
.tplayer.is-playing .tplayer__btn--main .ico--pause { display: block; }
.tplayer__close { grid-area: close; width: 34px; height: 34px; border-width: 2px; }
.tplayer__close .ico { width: 14px; height: 14px; }
.has-tplayer .footer__bottom { padding-bottom: 104px; } /* плашка не закрывает низ подвала */
@media (max-width: 600px) {
  .tplayer { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cover ctrls close" "title title title" "line line line"; gap: 8px 10px; padding: 10px; border-radius: 20px; }
  .tplayer__main { display: contents; }
  .tplayer__ctrls { justify-content: center; }
  .tplayer__title { grid-area: title; font-size: 14px; }
  .tplayer__line { grid-area: line; }
  .tplayer__seek { height: 32px; }
  .tplayer__cover { width: 44px; height: 44px; border-radius: 10px; }
  .tplayer__btn { width: 42px; height: 42px; }
  .tplayer__btn--main { width: 48px; height: 48px; }
  .tplayer__close { width: 40px; height: 40px; }
  .has-tplayer .footer__bottom { padding-bottom: 170px; }
}
@media (prefers-reduced-motion: reduce) { .tale__eq i { animation: none; transform: scaleY(.7); } }
