/* ============================================================
   Components
   ============================================================ */

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-glyph {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  letter-spacing: 0;
  flex: none;
}
.theme-inverse .wordmark-glyph,
.footer .wordmark-glyph { background: var(--surface); color: var(--surface-inverse); }
.footer .wordmark { color: var(--ink-inverse); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-micro) var(--ease-out),
              background-color var(--t-micro) var(--ease-out),
              box-shadow var(--t-micro) var(--ease-out),
              color var(--t-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .material-symbols-outlined { font-size: 20px; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Бордер без тени — ghost-card запрещён. */
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: #1F2937; transform: translateY(-1px); }

.theme-inverse .btn-secondary {
  background: transparent;
  color: var(--ink-inverse);
  border-color: var(--border-strong);
}
.theme-inverse .btn-secondary:hover { background: rgb(255 255 255 / .08); }

.btn-sm { padding: 10px 18px; font-size: var(--text-sm); }
.btn-block { width: 100%; }

/* ---------- Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
}
.chip-dot {
  width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  background: var(--primary);
}
.theme-inverse .chip { background: rgb(0 102 255 / .18); color: #A9C8FF; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  padding-block: var(--s-3);
  transition: padding var(--t-micro) var(--ease-out);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: 10px 10px 10px 20px;
  border-radius: var(--r-pill);
  background: transparent;
  transition: background-color var(--t-micro) var(--ease-out),
              box-shadow var(--t-micro) var(--ease-out);
}
/* Плавает поверх контента только после старта скролла. */
.site-header.is-stuck .header-inner {
  background: rgb(255 255 255 / .88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-nav);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin-inline: auto;
}
.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color var(--t-micro) var(--ease-out);
}
.nav-link:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
@media (min-width: 900px) { .header-actions { margin-left: 0; } }

/* ---------- Language select ---------- */
.lang-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}
.lang-box .material-symbols-outlined { font-size: 18px; color: var(--ink-muted); }
.lang-select {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding-right: 2px;
}

.burger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-backdrop);
  background: rgb(15 23 42 / .45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-micro) var(--ease-out), visibility var(--t-micro);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  inset-block: 0; right: 0;
  z-index: var(--z-modal);
  width: min(88vw, 340px);
  display: flex; flex-direction: column;
  padding: var(--s-5);
  background: var(--surface);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 400ms var(--ease-out), visibility 400ms;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-7); }
.drawer-close {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.drawer-nav { list-style: none; display: flex; flex-direction: column; }
.drawer-nav a {
  display: flex; align-items: center; gap: var(--s-3);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.drawer-nav .material-symbols-outlined { color: var(--primary); font-size: 22px; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-top: clamp(var(--s-7), 6vw, var(--s-9)); overflow: clip; }
.hero-copy > * + * { margin-top: var(--s-5); }
.hero-copy h1 { margin-top: var(--s-6); }
.hero-copy h1 .t-accent { display: block; }
.hero-cta { margin-top: var(--s-7); gap: var(--s-3); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  list-style: none;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-muted);
}
.hero-trust li { display: flex; align-items: center; }
.hero-trust li:not(:last-child)::after {
  content: '';
  width: 4px; height: 4px;
  flex: none;
  margin-inline: var(--s-5);
  border-radius: 50%;
  background: var(--border-strong);
}

/* ============================================================
   Devices
   ============================================================ */

.device {
  --device-w: 280px;
  position: relative;
  width: var(--device-w);
  padding: calc(var(--device-w) * 0.032);
  border-radius: calc(var(--device-w) * 0.155);
  background: linear-gradient(150deg, #3A3F4A, #14161C 42%, #23272F);
  box-shadow: var(--shadow-device);
  flex: none;
}
.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--device-w) * 0.125);
  aspect-ratio: 1206 / 2622;
  background: var(--surface);
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Dynamic Island */
.device::after {
  content: '';
  position: absolute;
  top: calc(var(--device-w) * 0.055);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--device-w) * 0.30);
  height: calc(var(--device-w) * 0.085);
  border-radius: var(--r-pill);
  background: #0A0C10;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Сцена A · Pod ---------- */
.stage-pod {
  --device-w: clamp(230px, 26vw, 310px);
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--s-6);
  isolation: isolate;
}
.stage-pod .device { transform: rotate(-7deg); z-index: 2; }

/* Синяя плита со смещением — приём референса 1. Должна читаться плитой,
   выходящей из-под устройства вправо и вниз, а не полоской у края. */
.stage-pod-plate {
  position: absolute;
  z-index: 1;
  width: calc(var(--device-w) * 0.98);
  height: calc(var(--device-w) * 1.72);
  border-radius: var(--r-panel);
  background: var(--primary);
  transform: translate(26%, 22%) rotate(-7deg);
}
/* Концентрические кольца — приём референса 1 */
.stage-rings { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; }
.stage-rings span {
  position: absolute;
  border: 1px solid rgb(15 23 42 / .07);
  border-radius: 50%;
  aspect-ratio: 1;
}
/* Все кольца одного размера — расходятся они анимацией (см. animations.css).
   Статичная раскладка на случай reduced-motion живёт там же. */
.stage-rings span { width: 44%; }
.stage-rings span:nth-child(2) { animation-delay: -5.25s; }
.stage-rings span:nth-child(3) { animation-delay: -3.5s; }
.stage-rings span:nth-child(4) { animation-delay: -1.75s; }
.stage-glow {
  position: absolute;
  z-index: 0;
  width: 120%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--glow-indigo) / .22), transparent 62%);
  pointer-events: none;
}

/* Осколки реального интерфейса, вынесенные на орбиту */
.stage-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.stage-tag small { font-weight: 600; color: var(--ink-faint); font-size: var(--text-xs); }
/* Метки садятся на поля вокруг устройства и лишь слегка заходят на корпус —
   поверх интерфейса приложения им делать нечего. */
.stage-tag-stock { top: 11%; left: -7%; color: var(--success); }
.stage-tag-price { bottom: 19%; right: -5%; color: var(--primary-ink); }
@media (max-width: 599px) {
  .stage-tag-stock { left: -4%; }
  .stage-tag-price { right: -6%; }
  .stage-tag { padding: 8px 13px; font-size: var(--text-xs); }
}

/* ---------- Сцена B · Arc (веер) ---------- */
.stage-arc {
  --arc-device-w: clamp(160px, 17vw, 250px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: var(--s-6);
  padding-bottom: var(--s-9);
  min-height: 460px;
}
/* Перекрытие делаем отрицательным margin: `gap` не принимает отрицательных
   значений — правило было бы отброшено, и веер рассыпался бы в ряд.
   Величина скромная: перекрывать должны корпуса, а не подписи под ними. */
.arc-item + .arc-item { margin-left: clamp(-24px, -1.2vw, -8px); }
.arc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  transform-origin: bottom center;
}
.arc-item .device { --device-w: clamp(160px, 17vw, 250px); }

/* Веер из четырёх реальных экранов. Геометрия задана переменными, а раскрытие —
   одним множителем --spread. По умолчанию он равен 1: без JS веер уже раскрыт.
   GSAP гонит --spread от 0 к 1 по скроллу, поэтому CSS и моушен не спорят
   за одно свойство transform. */
.arc-item {
  --spread: 1;
  --arc-x: 0px; --arc-y: 0px; --arc-r: 0deg; --arc-s: 1;
  transform:
    translateX(calc(var(--arc-x) * (1 - var(--spread))))
    translateY(calc(var(--arc-y) * var(--spread)))
    rotate(calc(var(--arc-r) * var(--spread)))
    scale(calc(1 - (1 - var(--arc-s)) * var(--spread)));
}
.arc-item[data-depth="-1"] { z-index: 3; --arc-x:  62px; --arc-y: 14px; --arc-r: -2deg; --arc-s: .96; }
.arc-item[data-depth="1"]  { z-index: 3; --arc-x: -62px; --arc-y: 14px; --arc-r:  2deg; --arc-s: .96; }
.arc-item[data-depth="-2"] { z-index: 1; --arc-x: 152px; --arc-y: 62px; --arc-r: -6deg; --arc-s: .79; }
.arc-item[data-depth="2"]  { z-index: 1; --arc-x:-152px; --arc-y: 62px; --arc-r:  6deg; --arc-s: .79; }

.arc-caption { text-align: center; max-width: 20ch; }
.arc-caption h3 { font-size: var(--text-h4); margin-bottom: 2px; }
.arc-caption p { font-size: var(--text-xs); color: var(--ink-muted); }
.arc-item:not([data-depth="0"]) .arc-caption { opacity: .82; }

/* Общая тень-«пол» под всей группой, а не под каждым телефоном */
.stage-arc-floor {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(0 0 0 / .45), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

/* Секция-полоса: веер шире контейнера, крайние экраны режет край вьюпорта. */
.app-section { overflow: clip; }
/* Шире вьюпорта, поэтому auto-margin не центрует — центруем сдвигом. */
.app-section .stage-arc {
  width: min(1500px, 124vw);
  position: relative;
  left: 50%;
  translate: -50% 0;
  margin-bottom: var(--header-gap);
}

@media (max-width: 1023px) {
  .app-section .stage-arc { width: 100%; left: 0; translate: none; padding-inline: var(--gutter); }
  .arc-item + .arc-item { margin-left: 0; }
  .stage-arc { flex-wrap: wrap; gap: var(--s-6); align-items: flex-start; padding-bottom: var(--s-7); min-height: 0; }
  .arc-item { transform: none !important; width: calc(50% - var(--s-6)); }
  .arc-item .device { --device-w: min(200px, 100%); margin-inline: auto; }
  .stage-arc-floor { display: none; }
}

/* ============================================================
   Аудитории — колонки на волосяных линиях, без карточек
   ============================================================ */

.audience {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) { .audience { grid-template-columns: repeat(4, 1fr); } }

.audience-item {
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .audience-item { padding: var(--s-6) var(--s-5) var(--s-7); border-bottom: 0; }
  .audience-item + .audience-item { border-left: 1px solid var(--border); }
  .audience-item:first-child { padding-left: 0; }
  .audience-item:last-child  { padding-right: 0; }
}
.audience-item .material-symbols-outlined {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.audience-item h3 { font-size: var(--text-h4); margin-bottom: var(--s-2); }
.audience-item p { font-size: var(--text-sm); color: var(--ink-muted); }

/* ============================================================
   Каталог — фотография несёт секцию
   ============================================================ */

.catalog-grid {
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: repeat(6, 1fr);
}
.catalog-item {
  grid-column: span 6;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--canvas-sunken);
  isolation: isolate;
}
@media (min-width: 700px) {
  .catalog-item { grid-column: span 2; }
  .catalog-item.is-wide { grid-column: span 3; }
}
.catalog-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.catalog-item.is-wide .catalog-media { aspect-ratio: 16 / 9; }
.catalog-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms var(--ease-out);
}
.catalog-item:hover .catalog-media img { transform: scale(1.05); }
.catalog-body { padding: var(--s-5) var(--s-5) var(--s-6); }
.catalog-tag {
  display: inline-block;
  margin-bottom: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-ink);
}
.catalog-body h3 { font-size: var(--text-h4); margin-bottom: var(--s-2); }
.catalog-body p { font-size: var(--text-sm); color: var(--ink-muted); }

/* ---------- Лента видео ----------
   Настоящий скролл-контейнер: свайп на телефоне и трекпад на десктопе
   работают сами, автопрокрутка лишь двигает scrollLeft (см. js/app.js). */
.marquee-wrap { margin-top: var(--header-gap); }
.marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* Без scroll-snap: он подтягивает позицию к границам карточек и дёргает
     непрерывную автопрокрутку, которая двигает scrollLeft каждый кадр. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee-track {
  display: flex;
  gap: var(--stack-gap);
  width: max-content;
}

.marquee-nav { display: none; }
@media (min-width: 900px) {
  .marquee-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-5);
    margin-bottom: var(--s-5);
  }
  .marquee-nav { display: flex; gap: var(--s-2); }
}
.marquee-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t-micro) var(--ease-out),
              background-color var(--t-micro) var(--ease-out),
              opacity var(--t-micro) var(--ease-out);
}
.marquee-btn:hover { border-color: var(--border-strong); }
.marquee-btn[disabled] { opacity: .35; cursor: default; }

.video-card {
  width: clamp(210px, 21vw, 268px);
  flex: none;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.video-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 3 / 4;
  background: var(--surface-inverse);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute;
  inset-block-end: var(--s-3);
  inset-inline-start: var(--s-3);
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  transition: transform var(--t-micro) var(--ease-out);
}
.video-card:hover .video-play { transform: scale(1.08); }
.video-duration {
  position: absolute;
  inset-block-end: var(--s-3);
  inset-inline-end: var(--s-3);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  /* Подложка лежит на произвольном кадре: при .72 на светлом фото белый текст
     падает до 3.1:1. .88 держит 5.7:1 в худшем случае. */
  background: rgb(15 23 42 / .88);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
}
.video-card h3 { margin-top: var(--s-3); font-size: var(--text-body); font-weight: 600; }

/* ============================================================
   Возможности приложения — строки, не карточки
   ============================================================ */

.feature-list { display: grid; gap: 0; }
.feature-row {
  display: grid;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-6);
  border-top: 1px solid var(--border);
}
@media (min-width: 800px) {
  .feature-row { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; }
}
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row h3 { display: flex; align-items: center; gap: var(--s-3); }
.feature-row h3 .material-symbols-outlined { font-size: 24px; color: var(--primary-ink); }
.feature-row p { color: var(--ink-muted); max-width: var(--measure); }

/* ============================================================
   Шаги — настоящая последовательность, поэтому нумерация уместна
   ============================================================ */

/* Порядок несёт .step-num — нативные маркеры <ol> дали бы вторую нумерацию. */
.steps { display: grid; gap: var(--s-7); position: relative; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

.step { position: relative; padding-top: var(--s-6); --rule: 1; }
.step::before {
  content: '';
  position: absolute;
  inset-block-start: 0; inset-inline: 0;
  height: 2px;
  background: var(--border-strong);
  transform: scaleX(var(--rule));
  transform-origin: left center;
}
.step[data-step="1"]::before { background: var(--primary); }
.step-num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}
.step[data-step="2"] .step-num,
.step[data-step="3"] .step-num { background: var(--ink); }
.step h3 { margin-bottom: var(--s-3); }
.step p { color: var(--ink-muted); }

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-5);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--t-micro) var(--ease-out);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--primary-ink); }
.faq-summary .material-symbols-outlined {
  flex: none;
  color: var(--ink-faint);
  transition: transform var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.faq-item[open] .faq-summary .material-symbols-outlined { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding-bottom: var(--s-5); color: var(--ink-muted); max-width: var(--measure); }

/* ============================================================
   Download
   ============================================================ */

.download-panel {
  padding: clamp(var(--s-7), 6vw, var(--s-9)) var(--gutter);
  border-radius: var(--r-bento);
  background: var(--surface);
  background-image: radial-gradient(circle at 75% 100%,
      rgb(var(--glow-indigo) / .34),
      rgb(var(--glow-indigo) / .16) 12%,
      transparent 64%);
  text-align: center;
}
.store-grid {
  display: grid;
  gap: var(--stack-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 40rem;
  margin: var(--header-gap) auto 0;
}
.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6);
  border-radius: var(--r-panel);
  background: var(--canvas);
}
.store-card-unavailable {
  opacity: .46;
  filter: saturate(.45);
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-micro) var(--ease-out);
}
.store-pill:hover { transform: translateY(-1px); }
.store-pill svg { width: 20px; height: 20px; }
.store-card-unavailable .store-pill { cursor: not-allowed; }
.store-card-unavailable .store-pill:hover { transform: none; }
.qr-frame {
  padding: var(--s-3);
  border-radius: var(--r-card);
  background: var(--surface);
}
.qr-frame img { width: 132px; height: 132px; }
.store-unavailable {
  margin: calc(var(--s-3) * -1) 0 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  padding-block: var(--s-9) var(--s-7);
}
.footer-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-col { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.footer-title { font-size: var(--text-sm); font-weight: 700; color: var(--ink-inverse); margin-bottom: var(--s-1); }
.footer p, .footer .t-sm { color: rgb(238 242 248 / .62); }
.footer-link {
  color: rgb(238 242 248 / .72);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--t-micro) var(--ease-out);
}
.footer-link:hover { color: var(--ink-inverse); }
.footer-lang {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 0; border: 0; background: none;
  color: rgb(238 242 248 / .72);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: color var(--t-micro) var(--ease-out);
}
.footer-lang:hover { color: var(--ink-inverse); }
.footer-lang .lang-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(238 242 248 / .35);
  transition: background-color var(--t-micro) var(--ease-out);
}
.footer-lang.active { color: var(--ink-inverse); font-weight: 600; }
.footer-lang.active .lang-dot { background: var(--primary); }

/* ============================================================
   Modals
   ============================================================ */

.lightbox {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: var(--s-5);
  background: rgb(15 23 42 / .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-micro) var(--ease-out), visibility var(--t-micro);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--r-panel); }
.modal-close {
  position: fixed;
  top: var(--s-5); right: var(--s-5);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .14);
  color: #fff;
  cursor: pointer;
}
.modal-close:hover { background: rgb(255 255 255 / .24); }

/* Ролики сняты вертикально (9:16). Диалог подгоняется под кадр, а не наоборот,
   иначе портретное видео тонет в чёрной коробке во весь экран.
   `margin: auto` обязателен: глобальный сброс `* { margin: 0 }` затирает
   штатное центрование <dialog> и прибивает окно к левому верхнему углу. */
/* `width: auto` не годится: диалог берёт ширину по интринсику видео (900px),
   упирается в max-width, а высота ужимает картинку уже потом — сбоку остаётся
   пустая полоса. Поэтому размер считаем от высоты через реальную пропорцию
   ролика: --ar проставляет js/app.js из videoWidth/videoHeight.
   `margin: auto` обязателен — глобальный сброс затирает штатное центрование. */
.video-modal {
  --ar: 0.5625; /* 9:16 — все ролики сняты вертикально */
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-panel);
  background: #000;
  width: min(92vw, calc(88vh * var(--ar)));
  aspect-ratio: var(--ar);
  max-height: 88vh;
  overflow: hidden;
}
.video-modal::backdrop { background: rgb(15 23 42 / .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-modal video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: var(--r-pill);
  background: rgb(0 0 0 / .55);
  color: #fff;
  cursor: pointer;
}

/* ============================================================
   Material Symbols
   ============================================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}
