/* BREAKING STORE v5 «Ночная орбита» (19.10.2026): огромное имя магазина над живой Землёй, разделы по подтипам
   (одна вещь в 3D + все вещи на фото), игра «Лови дроп», доставка, контакты. Цвета — только токены ниже. */
:root {
  --space: #03050A;      /* фон: глубокий космос */
  --space-2: #0A0F18;    /* поверхности: окна, сцены, карточки */
  --space-3: #121A27;    /* поверхность при наведении */
  --line: rgba(214, 226, 255, .12);
  --line-2: rgba(214, 226, 255, .24);
  --text: #EEF1F6;       /* дневной свет: основной текст и главная кнопка */
  --muted: #97A0AE;      /* второстепенный текст (7,4:1 на фоне) */
  --atmo: #9CCBFF;       /* свет атмосферы: рамка фокуса, свечения */
  --sunrise: #FFB06A;    /* тёплый рассвет: точка Бишкека, редкие отметки */
  /* тёмно-синий фон под фото вещей (просьба заказчика 19.10): светлее к центру, где стоит вещь */
  --navy-hi: #1C2F5A;
  --navy: #0F1C3B;
  --navy-lo: #081228;
  --navy-photo: radial-gradient(75% 65% at 50% 44%, var(--navy-hi) 0%, var(--navy) 52%, var(--navy-lo) 100%);

  --font-display: 'BS Display', 'Arial Black', sans-serif;
  --font-sans: 'BS Sans', 'Segoe UI', Arial, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --top-h: 72px;
  --e-reveal: cubic-bezier(.16, 1, .3, 1);
  --e-soft: cubic-bezier(.25, .8, .25, 1);
  --radius-l: 28px;
  --radius-m: 20px;
}
@media (max-width: 699px) { :root { --top-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font: 400 17px/1.55 var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--atmo); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--space); font-weight: 500; }
.skip-link:focus { top: 12px; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Кнопки-«пилюли» ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 500 16px/1 var(--font-sans); white-space: nowrap;
  transition: transform .2s var(--e-soft), background-color .2s, border-color .2s, color .2s;
}
.pill:active { transform: scale(.97); }
.pill--light { background: var(--text); color: var(--space); }
.pill--ghost { border: 1px solid rgba(238, 241, 246, .3); background: rgba(238, 241, 246, .03); }
.pill--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.pill:focus-visible { outline-offset: 4px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .pill--light:hover { background: #fff; transform: translateY(-1px); }
  .pill--ghost:hover { border-color: rgba(238, 241, 246, .6); background: rgba(238, 241, 246, .08); }
}

/* ---------- Шапка и меню (бургер с 1160 px) ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgba(3, 5, 10, .86); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 15px/1 var(--font-display); font-stretch: 125%; letter-spacing: .04em; white-space: nowrap; }
.brand__mark { width: 24px; height: 24px; color: var(--atmo); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 12px 14px; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--e-soft); }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav .nav__wa { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .3s var(--e-soft); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1160px) {
  .burger { display: block; }
  .nav-actions { margin-left: auto; }
  .nav {
    position: absolute; top: calc(var(--top-h) - 4px); right: var(--pad);
    width: min(320px, calc(100vw - 2 * var(--pad)));
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--space-2); border: 1px solid var(--line-2); border-radius: var(--radius-m);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--e-soft), visibility 0s .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--e-soft); }
  .nav a { padding: 14px 16px; font-size: 17px; color: var(--text); border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(238, 241, 246, .06); }
  .nav .nav__wa { display: block; margin-top: 6px; text-align: center; background: var(--text); color: var(--space); font-weight: 500; border-radius: 999px; }
  .nav .nav__wa:hover { background: #fff; }
}
@media (max-width: 420px) {
  .brand { font-size: 12px; gap: 8px; font-stretch: 100%; letter-spacing: .02em; }
  .brand__mark { width: 20px; height: 20px; }
  .nav-actions .pill--sm { padding: 0 14px; }
}

/* ---------- Первый экран: имя магазина над Землёй ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(100svh, 640px);
  display: flex; flex-direction: column;
  padding: calc(var(--top-h) + clamp(16px, 4vh, 48px)) var(--pad) clamp(28px, 6vh, 64px);
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 72% 64%, rgba(70, 120, 200, .16), transparent 70%),
    url(../img/stars-a.svg) 0 0 / 613px 613px,
    url(../img/stars-b.svg) 120px 80px / 997px 997px;
  opacity: .9;
}
.hero__planet { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__earth { position: absolute; inset: 0; width: 100%; height: 100%; }
/* без WebGL — нарисованный шар с атмосферой */
.no-webgl .hero__planet::before {
  content: ''; position: absolute; left: 66%; top: 60%; width: 86vh; height: 86vh; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 72% 40%, #2b5f8f, #0b1a2c 45%, #03060b 70%);
  box-shadow: 0 0 80px 10px rgba(127, 184, 255, .25), inset -30px 0 80px rgba(156, 203, 255, .25);
}
.hero__title {
  font: 900 100px/.82 var(--font-display); text-transform: uppercase; letter-spacing: 0;
  display: flex; flex-direction: column; gap: .06em;
  margin: 0;
}
.word {
  display: block; width: max-content; white-space: nowrap;
  font-size: var(--size, clamp(56px, 11vw, 190px));
  font-stretch: var(--stretch, 125%);
  letter-spacing: var(--ls, 0);
  /* полуночный край букв: слово лежит поверх планеты, но читается */
  text-shadow: none;
}
.hero__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.hero__lead { max-width: 36ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; font-weight: 300; color: #D5DBE4; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ctas .pill--ghost { background: rgba(3, 5, 10, .62); border-color: rgba(238, 241, 246, .38); }
.hero__pin {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 12px 6px 14px; border-left: 1px solid rgba(255, 190, 120, .7);
  background: rgba(3, 5, 10, .72); border-radius: 0 10px 10px 0;
  font-size: 14px; line-height: 1.3; color: var(--text); white-space: nowrap;
  opacity: 0; transition: opacity .5s;
}
.hero__pin span { color: var(--sunrise); font-size: 12px; }
.hero__pin.is-visible { opacity: 1; }

@media (max-width: 899px) {
  .hero { min-height: max(100svh, 600px); }
  /* на телефоне: имя сверху, планета под ним во всю ширину, ниже текст и кнопки */
  .hero__title { order: 1; }
  .hero__planet { order: 2; position: relative; inset: auto; flex: 1 1 auto; min-height: 300px; margin: 4px calc(-1 * var(--pad)) 12px; }
  .hero__foot { order: 3; }
  .hero__foot { margin-top: 0; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__lead { max-width: none; }
  .ctas { flex-direction: column; }
  .ctas .pill { width: 100%; }
  .hero__pin { font-size: 13px; }
}

/* вход первого экрана (один раз, как в промте: boot → go → clean) */
html.anim .word, html.anim .hero__lead, html.anim .ctas .pill, html.anim .brand, html.anim .nav-actions > *, html.anim .hero__planet { opacity: 0; }
@media (min-width: 1161px) { html.anim .nav a { opacity: 0; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(22%); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes planetIn { from { opacity: 0; transform: translateY(3%) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes liftIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pillIn { from { opacity: 0; transform: translateY(10px) scale(.965); } to { opacity: 1; transform: none; } }
html.anim.go .hero__planet { animation: planetIn 1.8s var(--e-reveal) .05s both; }
html.anim.go .word--top { animation: wordIn 1.1s var(--e-reveal) .18s both; }
html.anim.go .word--bottom { animation: wordIn 1.1s var(--e-reveal) .32s both; }
html.anim.go .brand { animation: liftIn .6s var(--e-soft) .46s both; }
html.anim.go .nav a { animation: liftIn .55s var(--e-soft) .54s both; }
html.anim.go .nav-actions > * { animation: pillIn .55s var(--e-soft) .68s both; }
html.anim.go .hero__lead { animation: liftIn .8s var(--e-reveal) .62s both; }
html.anim.go .ctas .pill--light { animation: pillIn .7s var(--e-reveal) .9s both; }
html.anim.go .ctas .pill--ghost { animation: pillIn .7s var(--e-reveal) .97s both; }

/* ---------- Разделы по подтипам ---------- */
.chapter {
  --tone: 120, 140, 170;
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(96px, 12vw, 176px) var(--pad) 0;
}
.chapter__head {
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end;
  padding-bottom: clamp(28px, 4vw, 48px);
}
@media (min-width: 1280px) { .chapter__head { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 40px; } }
.chapter__title {
  min-width: 0;
  font: 900 clamp(56px, 11vw, 184px)/.84 var(--font-display);
  font-stretch: 68%; text-transform: uppercase; letter-spacing: -.005em;
  margin-left: -.03em;
}
.chapter__intro { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 42ch; }

.feature { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .chapter--flip .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .chapter--flip .stage { order: 2; }
}
.stage {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  height: clamp(440px, 74vh, 780px);
  background:
    radial-gradient(55% 45% at 50% 46%, rgba(var(--tone), .16), transparent 72%),
    var(--navy-photo);
  border: 1px solid var(--line);
}
.stage::after {
  /* пол: мягкое пятно света под вещью */
  content: ''; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 9%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 70%);
  pointer-events: none; z-index: 0;
}
.stage__photo { position: absolute; inset: 9% 10% 13%; width: 80%; height: 78%; object-fit: contain; z-index: 1; transition: opacity .7s ease; }
.stage.is-live .stage__photo { opacity: 0; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: pan-y; cursor: grab; }
.stage__views {
  position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(3, 5, 10, .72); border: 1px solid var(--line);
}
.stage__views button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; }
.stage__views button[aria-pressed="true"] { background: var(--text); color: var(--space); }
.stage__views button:not([aria-pressed="true"]):hover { color: var(--text); }
.stage__hint { position: absolute; left: 20px; top: 18px; z-index: 3; font-size: 13px; color: var(--muted); transition: opacity .4s; pointer-events: none; }
.stage.is-touched .stage__hint { opacity: 0; }
.stage__badge { position: absolute; right: 18px; top: 16px; z-index: 3; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text); }
@media (max-width: 699px) {
  .stage { height: min(118vw, 560px); border-radius: var(--radius-m); }
  .stage__views { bottom: 12px; }
  .stage__views button { padding: 0 13px; }
}

.feature__name { font: 500 clamp(26px, 2.4vw, 36px)/1.12 var(--font-sans); letter-spacing: -.01em; }
.feature__color { margin-top: 6px; color: var(--muted); font-size: 17px; }
.feature__lead { margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); max-width: 44ch; }
.feature__details { margin-top: 22px; display: grid; gap: 10px; max-width: 46ch; }
.feature__details li { position: relative; padding-left: 22px; color: #C9D0DA; font-size: 16px; }
.feature__details li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--atmo); }
.feature__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 699px) { .feature__ctas .pill { flex: 1 1 100%; } }

.range { margin-top: clamp(56px, 7vw, 96px); }
.range__title { display: flex; align-items: baseline; gap: 10px; font: 500 clamp(20px, 1.8vw, 24px)/1.2 var(--font-sans); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.range__count { color: var(--muted); font-size: .8em; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.card { position: relative; }
.card__link { display: block; border-radius: var(--radius-m); }
.card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden;
  background: var(--navy-photo);
  border: 1px solid var(--line);
  transition: border-color .3s;
}
.card__media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; transition: opacity .45s ease, transform .6s var(--e-soft); }
.card__media .card__back { opacity: 0; transform: scale(.98); }
.card__body { padding: 14px 4px 0; }
.card__name { font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.3; }
.card__color { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card__tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(3, 5, 10, .7); border: 1px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .card__link:hover .card__media { border-color: var(--line-2); }
  .card__link:hover .card__front { opacity: 0; transform: scale(1.02); }
  .card__link:hover .card__back { opacity: 1; transform: scale(1.02); }
}
.card__link:focus-visible .card__front { opacity: 0; }
.card__link:focus-visible .card__back { opacity: 1; }

/* ---------- Игра ---------- */
.game, .delivery, .contacts { max-width: var(--maxw); margin: 0 auto; padding: clamp(96px, 12vw, 176px) var(--pad) 0; }
.section-title { font: 900 clamp(56px, 10vw, 160px)/.86 var(--font-display); font-stretch: 68%; text-transform: uppercase; }
.game__head { display: grid; gap: 18px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
@media (min-width: 1280px) { .game__head { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 40px; } }
.game__intro, .delivery__intro { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 42ch; }

/* ---------- Доставка ---------- */
.delivery__intro { margin-top: 18px; }
.facts { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) { .fact { border-bottom: 0; padding-right: 28px; } .fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); } }
.fact__big { font: 800 clamp(38px, 3.3vw, 52px)/.95 var(--font-display); font-stretch: 72%; text-transform: uppercase; white-space: nowrap; }
.fact__q { margin-top: 18px; font: 500 19px/1.3 var(--font-sans); }
.fact__a { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr; gap: 0 56px; padding-bottom: clamp(80px, 10vw, 140px); }
@media (min-width: 1000px) { .contacts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } .links { grid-column: 2; grid-row: 1 / span 3; } }
.contacts__city { color: var(--sunrise); font-size: 16px; }
.contacts__address { margin-top: 12px; font: 800 clamp(40px, 6.4vw, 104px)/.92 var(--font-display); font-stretch: 72%; text-transform: uppercase; font-style: normal; }
.contacts__note { margin-top: 22px; color: var(--muted); max-width: 40ch; font-size: clamp(16px, 1.3vw, 18px); }
.links { margin-top: 40px; border-top: 1px solid var(--line); }
.link-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; border-bottom: 1px solid var(--line); padding: 10px 4px; }
.link-row__label { color: var(--muted); font-size: 15px; min-width: 96px; }
.link-row__value { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; text-align: right; transition: transform .3s var(--e-soft); }
@media (hover: hover) and (pointer: fine) { .link-row:hover .link-row__value { transform: translateX(-6px); } }
.link-row:focus-visible { border-radius: 12px; }

/* ---------- Подвал ---------- */
.footer { padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom)); overflow: clip; }
.footer__word { font: 900 100px/.8 var(--font-display); text-transform: uppercase; white-space: nowrap; width: max-content; color: #101826; font-size: var(--size, 12vw); font-stretch: var(--stretch, 125%); margin-bottom: 28px; user-select: none; }
.footer__row { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.footer__row a { color: var(--text); min-height: 24px; }
.footer__credit { margin-top: 12px; color: #5f6876; font-size: 12px; }

/* ---------- Плавающая кнопка WhatsApp (телефон) ---------- */
.float-wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: none; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--text); color: var(--space); font-weight: 500; font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transform: translateY(140%); transition: transform .35s var(--e-soft);
}
@media (max-width: 699px) { .float-wa { display: inline-flex; } }
.float-wa.is-shown { transform: none; }

/* ---------- Окно вещи ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, .8); animation: fadeIn .3s ease both; }
.sheet__panel {
  position: relative; width: min(1120px, 100%); max-height: min(88vh, 820px); overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  background: var(--space-2); border: 1px solid var(--line-2); border-radius: var(--radius-l);
  animation: sheetIn .45s var(--e-reveal) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(3, 5, 10, .6); border: 1px solid var(--line-2); }
.sheet__close svg { width: 20px; height: 20px; }
.sheet__gallery { min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet__photo { position: relative; flex: 1; min-height: 420px; overflow: hidden; border-radius: var(--radius-m); background: var(--navy-photo); cursor: pointer; touch-action: pan-y; }
.sheet__photo img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; }
.sheet__photo.is-detail img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sheet__thumbs button { flex: 0 0 auto; width: 78px; border-radius: 14px; border: 1px solid var(--line); background: var(--navy); padding: 5px 5px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sheet__thumbs button img { width: 100%; height: 66px; object-fit: contain; }
.sheet__thumbs button.is-detail img { object-fit: cover; border-radius: 9px; }
.sheet__thumbs button span { font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; }
.sheet__thumbs button[aria-pressed="true"] { border-color: var(--text); }
.sheet__thumbs button[aria-pressed="true"] span { color: var(--text); }
.game__fallback { color: var(--muted); }
.hero__pin.is-flipped { padding: 6px 14px 6px 12px; border-left: 0; border-right: 1px solid rgba(255, 190, 120, .7); border-radius: 10px 0 0 10px; text-align: right; }
.sheet__info { padding: 56px 36px 36px 16px; display: flex; flex-direction: column; }
.sheet__kind { color: var(--muted); font-size: 14px; }
.sheet__name { margin-top: 8px; font: 500 clamp(26px, 2.4vw, 34px)/1.12 var(--font-sans); }
.sheet__color { margin-top: 6px; color: var(--muted); }
.sheet__lead { margin-top: 18px; }
.sheet__details { margin-top: 18px; display: grid; gap: 8px; }
.sheet__details li { position: relative; padding-left: 20px; color: #C9D0DA; font-size: 15px; }
.sheet__details li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--atmo); }
.sheet__sizes { margin-top: 20px; color: var(--muted); font-size: 15px; }
.sheet__ctas { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.sheet__3d { margin-top: 16px; align-self: flex-start; color: var(--atmo); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.sheet__3d[hidden] { display: none; }
@media (max-width: 799px) {
  .sheet { padding: 0; place-items: end stretch; }
  .sheet__panel { grid-template-columns: minmax(0, 1fr); max-height: 100%; height: 100%; border-radius: 0; border: 0; animation: sheetUp .4s var(--e-reveal) both; }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
  .sheet__gallery { padding: 64px 16px 0; }
  .sheet__photo { min-height: 0; aspect-ratio: 1 / 1; flex: none; }
  .sheet__info { padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
  .sheet__ctas .pill { flex: 1 1 100%; }
}
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  /* переходы — 0s, а не .01ms: иначе (transition-property: all по умолчанию) любое свойство, даже ширина шрифта,
     на миг «переходит», и замер слова при подгонке читает старое значение */
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: 0s !important; }
}
