/*
 * Lock Coach — сайт-визитка. «Железо, камень и пергамент при свете факела» — та же дизайн-система,
 * что в приложении (app/src/styles.css): цвета, шрифты Alegreya и смысл цвета совпадают.
 *   золото      — главное действие, штифты, прогресс;
 *   рудно-синий — выбранное/активное и фокус клавиатуры;
 *   угли        — только свечение факела, не текст.
 * Ничего из самой игры: ни ассетов, ни логотипа — только настроение.
 *
 * Правила вёрстки: мобильная вёрстка первична, ширина от 320px без горизонтальной прокрутки,
 * анимации трогают только transform/opacity и выключаются при prefers-reduced-motion.
 */

:root {
  --bg: #0E0C0A;
  --stone: #1A1714;
  --surface: #25211C;
  --surface-2: #322C25;
  --border: #5A5044;
  --border-strong: #857866;

  --text: #EDE3CF;
  --muted: #B8AA8E;
  --faint: #A39780;

  --accent: #D4AA4F;
  --gold-bright: #E8C66E;
  --accent-ink: #1A1208;
  --ember-glow: #FF9A4A;

  --ore: #6CC4F5;
  --ore-deep: #1D5B87;

  --font-display: 'Alegreya', 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-sc: 'Alegreya SC', 'Alegreya', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
  --font-store: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 64px;

  /* заклёпка: купол со светлой макушкой */
  --rivet: #B9A47E 0, #7A6A52 1.4px, #2B251F 2.6px, transparent 3.4px;
}

/* Японский и китайский: у Alegreya нет CJK-глифов. Как в приложении, и текст, и заголовки берут
   системный sans (у Noto Serif CJK на Android нет настоящего жирного — был бы «искусственный»);
   латиница внутри строк остаётся в Alegreya Sans. Словесный знак «Lock Coach» — везде Alegreya SC. */
.lang-ja {
  --font-body: 'Alegreya Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  --font-display: var(--font-body);
}
/* Только кавычки “ ” ‘ ’ — из системного китайского шрифта: иначе их рисует Alegreya Sans (они есть
   в её латинском наборе), и узкие латинские кавычки прижимаются к иероглифам. Локальные шрифты,
   без загрузки по сети. */
@font-face {
  font-family: 'CJK Quotes SC';
  font-weight: 400;
  src: local('PingFangSC-Regular'), local('Microsoft YaHei'), local('MicrosoftYaHei'), local('Noto Sans CJK SC'), local('NotoSansCJKsc-Regular'), local('Noto Sans SC');
  unicode-range: U+2018-2019, U+201C-201D;
}

@font-face {
  font-family: 'CJK Quotes SC';
  font-weight: 700;
  src: local('PingFangSC-Semibold'), local('Microsoft YaHei Bold'), local('MicrosoftYaHei-Bold'), local('Noto Sans CJK SC Bold'), local('NotoSansCJKsc-Bold');
  unicode-range: U+2018-2019, U+201C-201D;
}

.lang-zh {
  --font-body: 'CJK Quotes SC', 'Alegreya Sans', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Noto Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  --font-display: var(--font-body);
}

/* ---------- основа ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Цифры — прописные: у Alegreya по умолчанию старостильные («Gothic ı Remake», «2» ниже строки рядом
   с иероглифами). Свойство наследуется, но каждое сокращение font: ниже сбрасывает его в normal —
   поэтому на всех элементах и с !important. */
*,
*::before,
*::after {
  font-variant-numeric: lining-nums !important;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(232, 131, 58, 0.11), transparent 62%),
    radial-gradient(900px 520px at -12% 38%, rgba(29, 91, 135, 0.1), transparent 62%),
    var(--bg);
  font: 400 1.0625rem/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.lang-ja body,
.lang-zh body {
  line-height: 1.8;
  line-break: strict;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.lang-ja :is(h1, h2, h3),
.lang-zh :is(h1, h2, h3) {
  hyphens: none;
  letter-spacing: 0;
}

/* ja: перенос по фразам (Chromium); zh: только в местах, которые typeset.mjs отметил между словами
   (U+200B), — иначе браузер рвал «账|号», «开|锁» и оставлял «吗？» одной строкой */
.lang-ja :is(h1, h2, h3) {
  word-break: auto-phrase;
}

.lang-zh :is(h1, h2, h3) {
  word-break: keep-all;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #F3D98F;
}

strong {
  font-weight: 700;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--ore);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.wrap--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7em 1.35em;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 700 1rem/1.15 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.btn--gold {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--accent) 55%, #BE9340);
  border-color: #8C6A28;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 210, 0.6),
    0 3px 0 #6B4F1C,
    0 12px 26px -12px rgba(212, 170, 79, 0.6);
}

.btn--gold:hover {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #F0D383, var(--gold-bright) 55%, #C99D47);
}

.btn--gold:active {
  transform: translateY(2px);
}

.btn--ghost {
  color: var(--text);
  background: rgba(37, 33, 28, 0.6);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--gold-bright);
}

.btn--sm {
  min-height: 40px;
  padding: 0.45em 0.95em;
  border-radius: 10px;
  font-size: 0.9375rem;
}

/* ---------- панель «кованое железо» с заклёпками по углам ---------- */

.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 13px 13px, var(--rivet)),
    radial-gradient(circle at calc(100% - 13px) 13px, var(--rivet)),
    radial-gradient(circle at 13px calc(100% - 13px), var(--rivet)),
    radial-gradient(circle at calc(100% - 13px) calc(100% - 13px), var(--rivet)),
    linear-gradient(180deg, rgba(255, 238, 205, 0.045), transparent 38%),
    linear-gradient(180deg, var(--surface), var(--stone));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 236, 200, 0.07),
    0 22px 44px -26px rgba(0, 0, 0, 0.95);
}

/* ---------- шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(14, 12, 10, 0.9);
  border-bottom: 1px solid rgba(90, 80, 68, 0.6);
  transition: box-shadow 0.2s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(14, 12, 10, 0.78);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
  }
}

.topbar.is-scrolled {
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.95);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--gold-bright);
  text-decoration: none;
}

.brand:hover {
  color: #F3D98F;
}

.brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(212, 170, 79, 0.55), 0 6px 16px -6px rgba(0, 0, 0, 0.9);
}

.brand__name {
  font: 700 1.3rem/1 var(--font-sc);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav--wide {
  display: none;
  margin-inline: auto;
}

.nav ul,
.menu__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav--wide ul {
  display: flex;
  gap: 2px;
}

.nav--wide a {
  display: block;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav--wide a:hover,
.nav--wide a[aria-current] {
  color: var(--text);
  background: rgba(255, 240, 210, 0.05);
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar__cta {
  display: none;
}

@media (min-width: 560px) {
  .topbar__cta {
    display: inline-flex;
  }
}

@media (min-width: 1180px) {
  .nav--wide {
    display: block;
  }

  .topbar__tools {
    margin-left: 0;
  }

  .menu {
    display: none;
  }
}

/* выпадающие меню на <details>: работают и без скрипта */
.dropdown {
  position: relative;
}

.dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.dropdown > summary::-webkit-details-marker {
  display: none;
}

.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  min-width: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: rgba(37, 33, 28, 0.72);
  user-select: none;
}

.dropdown__toggle:hover,
.dropdown[open] > .dropdown__toggle {
  border-color: var(--border-strong);
  background: var(--surface);
}

.dropdown__chev {
  width: 1em;
  height: 1em;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.dropdown[open] .dropdown__chev {
  transform: rotate(180deg);
}

.dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 8px;
  list-style: none;
  max-height: min(72vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.95);
}

.lang__name {
  max-width: 11em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 419px) {
  .lang__name {
    display: none;
  }
}

.lang__list {
  min-width: 210px;
}

.lang__list a,
.menu__panel li a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
}

.lang__list a:hover,
.menu__panel li a:hover {
  background: rgba(255, 240, 210, 0.06);
}

.lang__list a[aria-current],
.menu__panel li a[aria-current] {
  color: var(--ore);
  background: rgba(29, 91, 135, 0.28);
}

.menu__toggle {
  padding: 0 9px;
}

.menu__close {
  display: none;
}

.menu[open] .menu__open {
  display: none;
}

.menu[open] .menu__close {
  display: block;
}

.menu__panel {
  width: min(calc(100vw - 2 * var(--gutter)), 320px);
}

.menu__cta {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

/* предложение языка системы */
.suggest {
  border-bottom: 1px solid rgba(108, 196, 245, 0.35);
  background: linear-gradient(90deg, rgba(29, 91, 135, 0.42), rgba(29, 91, 135, 0.16));
}

.suggest__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-block: 10px;
}

.suggest__text {
  flex: 1 1 220px;
  margin: 0;
}

.suggest__close {
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.suggest__close:hover {
  color: var(--text);
}

/* ---------- заголовки секций ---------- */

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
}

/* железная полоса с заклёпками между секциями */
.section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background:
    radial-gradient(circle at 50% 50%, var(--rivet)) 0 50% / 56px 10px repeat-x,
    linear-gradient(180deg, #070605, #231E19 45%, #0C0A09);
  box-shadow: 0 1px 0 rgba(255, 230, 190, 0.06);
}

.modes,
.pricing,
.faq {
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.92), rgba(14, 12, 10, 0.4));
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

/* надзаголовки — Alegreya Sans капсом: у Alegreya SC нет настоящей кириллицы */
.eyebrow {
  margin: 0 0 0.7em;
  color: var(--accent);
  font: 700 0.84rem/1.3 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lang-ja .eyebrow,
.lang-zh .eyebrow,
.lang-ja .badge-tag,
.lang-zh .badge-tag,
.lang-ja .footer__title,
.lang-zh .footer__title,
.lang-ja .policy__toc-title,
.lang-zh .policy__toc-title {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.sec-title {
  margin: 0;
  font: 700 clamp(1.8rem, 1.2rem + 2.3vw, 2.85rem)/1.12 var(--font-display);
  text-wrap: balance;
}

.orn {
  width: 220px;
  height: 15px;
  color: var(--accent);
}

.sec-head__orn {
  margin: 16px 0 0;
}

.sec-head--center .sec-head__orn {
  margin-inline: auto;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
}

.sec-head--center .lead {
  margin-inline: auto;
  max-width: 44em;
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(32px, 6vw, 80px) clamp(64px, 9vw, 120px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.25), rgba(14, 12, 10, 0.55) 55%, var(--bg)),
    linear-gradient(90deg, rgba(14, 12, 10, 0.85), rgba(14, 12, 10, 0.25) 60%, rgba(14, 12, 10, 0.6)),
    url('img/art/stone-941.webp') 50% 30% / cover no-repeat;
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: -12%;
  width: min(110vw, 1000px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 154, 74, 0.26), rgba(232, 131, 58, 0.1) 45%, transparent 72%);
  animation: torch 2.6s ease-in-out 2 backwards;
}

@keyframes torch {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  18% { opacity: 1; transform: scale(1.03); }
  32% { opacity: 0.78; transform: scale(0.99); }
  55% { opacity: 0.95; transform: scale(1.02); }
  72% { opacity: 0.82; transform: scale(1); }
}

.embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.embers i {
  position: absolute;
  bottom: -12px;
  left: 70%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFC070;
  box-shadow: 0 0 6px 2px rgba(255, 140, 50, 0.65);
  opacity: 0;
  animation: ember 11s linear 1 backwards;
}

.embers i:nth-child(2) { left: 78%; animation-delay: 1.6s; animation-duration: 13s; }
.embers i:nth-child(3) { left: 62%; animation-delay: 3.1s; animation-duration: 10s; }
.embers i:nth-child(4) { left: 86%; animation-delay: 4.4s; animation-duration: 14s; }
.embers i:nth-child(5) { left: 55%; animation-delay: 6.2s; animation-duration: 12s; }
.embers i:nth-child(6) { left: 92%; animation-delay: 7.5s; animation-duration: 11s; }
.embers i:nth-child(7) { left: 74%; animation-delay: 8.8s; animation-duration: 15s; }
.embers i:nth-child(8) { left: 66%; animation-delay: 10s; animation-duration: 12.5s; }

@keyframes ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
  8% { opacity: 1; }
  60% { opacity: 0.8; }
  100% { opacity: 0; transform: translate3d(-60px, -80vh, 0) scale(0.4); }
}

.hero__grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero__title {
  margin: 0 0 0.35em;
  font: 700 clamp(1.95rem, 1.2rem + 3.9vw, 4rem)/1.05 var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.hero__title strong {
  color: var(--gold-bright);
  font-weight: inherit;
}

.lang-ja .hero__title,
.lang-zh .hero__title {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem);
  line-height: 1.25;
}

.hero__lead {
  max-width: 34em;
  color: #D8CCB4;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
}

.hero__visual {
  position: relative;
  min-width: 0;
  padding-bottom: 12%;
}

.hero__lock {
  width: 100%;
}

.hero__lock img {
  width: 100%;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.85));
}

/* селектор из двух классов: общее правило .phone (position: relative) идёт ниже и иначе перебило бы */
.hero__visual .hero__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(128px, 36%, 236px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 13px;
  border: 1px solid rgba(212, 170, 79, 0.42);
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero__visual {
    padding-bottom: 16%;
  }
}

/* ---------- макет телефона ---------- */

.phone {
  position: relative;
  margin: 0;
  padding: clamp(5px, 0.7vw, 8px);
  border-radius: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(150deg, #43392E, #15120F 50%, #2C261F);
  box-shadow:
    0 0 0 1px #6F5E40,
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(232, 198, 110, 0.38),
    0 30px 60px -22px rgba(0, 0, 0, 0.95);
}

.phone__screen {
  overflow: hidden;
  border-radius: clamp(15px, 2vw, 23px);
  background: #12100E;
}

.phone__screen img {
  width: 100%;
}

/* вырезка интерфейса приложения */
.shot {
  width: 100%;
  border-radius: 14px;
  background: #211D18;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(202, 184, 121, 0.22);
}

/* ---------- как это работает ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px 28px;
  min-width: 0;
}

.step__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(12px, 3vw, 18px);
  border: 1px solid rgba(90, 80, 68, 0.6);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(135, 97, 52, 0.28), transparent 70%),
    #120F0C;
}

.step__media .shot {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.step__num {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.step__num span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(212, 170, 79, 0.6);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle at 50% 35%, rgba(212, 170, 79, 0.25), rgba(26, 23, 20, 0.9) 70%);
  font: 700 1.05rem/1 var(--font-display);
}

.step__title {
  margin: 0 0 8px;
  font: 700 1.35rem/1.2 var(--font-display);
  text-align: center;
  text-wrap: balance;
}

.step__icon {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  vertical-align: -0.2em;
}

.step__body > p:last-child {
  color: var(--muted);
  text-align: center;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- режимы ---------- */

.modes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.mode {
  display: grid;
  gap: 24px;
  padding: 28px 24px;
  min-width: 0;
}

.mode__media .phone {
  width: min(220px, 64%);
  margin-inline: auto;
}

/* автопилот: полосы интерфейса и клавиши, как рекламная карточка 4 */
.pilot {
  display: grid;
  gap: 10px;
  width: min(300px, 100%);
  margin-inline: auto;
}

.pilot__view {
  box-shadow: 0 0 0 1px rgba(108, 196, 245, 0.45), 0 16px 32px -10px rgba(0, 0, 0, 0.85);
}

.pilot__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  color: #95CCE0;
  font: 700 0.74rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.pilot__label::before,
.pilot__label::after {
  content: '';
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 196, 245, 0.55));
}

.pilot__label::after {
  background: linear-gradient(90deg, rgba(108, 196, 245, 0.55), transparent);
}

.lang-ja .pilot__label,
.lang-zh .pilot__label {
  letter-spacing: 0.04em;
  text-transform: none;
}

.keys {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

/* клавиши сжимаются вместе с колонкой, но не шире 44px */
.key {
  display: grid;
  flex: 0 1 44px;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid #736653;
  border-bottom-width: 4px;
  border-radius: 8px;
  color: #D3C7AD;
  background: linear-gradient(145deg, #403A30, #181715);
  box-shadow: 0 8px 12px -4px rgba(0, 0, 0, 0.8);
  font: 700 1.25rem/1 'Alegreya', Georgia, serif;
}

.key.is-pressed {
  color: #241908;
  border-color: #BD963C;
  background: linear-gradient(#EED17E, #B9943E);
  box-shadow: 0 0 16px rgba(212, 170, 79, 0.25), 0 8px 12px -4px rgba(0, 0, 0, 0.8);
}

.mode__media,
.mode__body {
  min-width: 0;
}

.mode__title {
  margin: 12px 0 10px;
  font: 700 clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem)/1.18 var(--font-display);
  text-wrap: balance;
}

.mode__body > p {
  color: var(--muted);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(212, 170, 79, 0.5);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(212, 170, 79, 0.08);
  font: 700 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode--pilot .badge-tag {
  color: var(--ore);
  border-color: rgba(108, 196, 245, 0.5);
  background: rgba(29, 91, 135, 0.22);
}

.mode--pilot .ticks li::before {
  background: var(--ore);
}

.note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--ore);
  border-radius: 0 10px 10px 0;
  background: rgba(29, 91, 135, 0.16);
  color: var(--text);
  font-size: 0.97rem;
}

@media (min-width: 640px) {
  .mode {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .mode__media .phone {
    width: 100%;
    max-width: 230px;
  }
}

@media (min-width: 1100px) {
  .modes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .mode__media {
    display: grid;
    place-items: center;
    min-height: 400px;
  }

  .mode__media .phone {
    width: 190px;
  }
}

.demo-strip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 22px;
  padding: 22px 24px;
}

.demo-strip__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 170, 79, 0.5);
  border-radius: 12px;
  color: var(--gold-bright);
  background: rgba(212, 170, 79, 0.1);
}

.demo-strip__title {
  margin: 0 0 4px;
  text-wrap: balance;
  font: 700 1.25rem/1.25 var(--font-display);
}

.demo-strip p {
  color: var(--muted);
}

/* ---------- списки с ромбами ---------- */

.ticks {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 24px;
}

.ticks li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 5px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- галерея скриншотов ---------- */

.gallery {
  position: relative;
}

.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 250px);
  gap: 16px;
  margin: 0;
  padding: 6px 4px 22px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.gallery__item {
  scroll-snap-align: start;
  min-width: 0;
}

.gallery__img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.95);
  background: var(--stone);
}

.gallery__btn {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(212, 170, 79, 0.65);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(26, 23, 20, 0.92);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.gallery__btn--prev {
  left: 6px;
}

.gallery__btn--next {
  right: 6px;
}

@media (min-width: 1100px) {
  .gallery__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    padding-inline: 0;
  }
}

/* ---------- карточки: цены и доверие ---------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 26px 24px 28px;
  min-width: 0;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(212, 170, 79, 0.5);
  border-radius: 13px;
  color: var(--gold-bright);
  background: radial-gradient(circle at 50% 30%, rgba(212, 170, 79, 0.24), rgba(212, 170, 79, 0.05));
}

.card--trust .card__icon {
  color: var(--ore);
  border-color: rgba(108, 196, 245, 0.45);
  background: radial-gradient(circle at 50% 30%, rgba(29, 91, 135, 0.5), rgba(29, 91, 135, 0.1));
}

.card__title {
  margin: 16px 0 8px;
  font: 700 1.3rem/1.22 var(--font-display);
  text-wrap: balance;
}

.card p {
  color: var(--muted);
}

@media (min-width: 600px) {
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fineprint {
  max-width: 60em;
  margin: 26px auto 0;
  color: var(--faint);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- вопросы и ответы ---------- */

.faq__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--stone));
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.05);
}

.faq__item[open] {
  border-color: rgba(212, 170, 79, 0.6);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q h3 {
  min-width: 0;
  margin: 0;
  font: 700 clamp(1.08rem, 1rem + 0.3vw, 1.22rem)/1.35 var(--font-display);
  text-wrap: balance;
}

.faq__q:hover h3 {
  color: #FFF4DC;
}

.faq__chev {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.faq__item[open] .faq__chev {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* ---------- финальный призыв ---------- */

.cta__panel {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.cta__art img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
}

.cta__copy {
  min-width: 0;
}

@media (min-width: 900px) {
  .cta__panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
  }
}

/* ---------- значки магазинов ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  height: 58px;
  padding: 0 18px 0 13px;
  border: 1px solid #A6A6A6;
  border-radius: 12px;
  color: #FFF;
  background: #000;
  text-decoration: none;
  transition: transform 0.12s ease;
}

a.store:hover {
  color: #FFF;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 170, 79, 0.28);
}

a.store:active {
  transform: translateY(1px);
}

.store__icon {
  flex: none;
  width: 28px;
  height: 28px;
}

.store__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
  text-align: left;
}

.store__top {
  font: 500 0.72rem/1.15 var(--font-store);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.store__name {
  font: 600 1.38rem/1.05 var(--font-store);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.store--soon {
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--muted);
  background: rgba(14, 12, 10, 0.72);
}

.store--soon .store__name {
  font-size: 1.15rem;
}

/* официальный значок — как есть, меняется только высота */
.store-badge {
  display: inline-block;
  border-radius: 10px;
}

.store-badge img {
  width: auto;
  height: 58px;
}

.stores__note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.92rem;
}

/* ---------- подвал ---------- */

.footer {
  padding: 8px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(90, 80, 68, 0.55);
  background: linear-gradient(180deg, #0B0A08, #080706);
  color: var(--muted);
  font-size: 0.97rem;
}

.footer__orn {
  margin: 28px auto 32px;
}

.footer__grid {
  display: grid;
  gap: 30px;
}

.footer__tagline {
  max-width: 26em;
  margin-top: 14px;
}

.footer__title {
  margin: 0 0 12px;
  color: var(--text);
  font: 700 0.8rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer__col a:hover,
.footer__col a[aria-current] {
  color: var(--gold-bright);
}

.footer__langs a {
  white-space: nowrap;
}

.footer__langs ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.footer__legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(90, 80, 68, 0.45);
  color: var(--faint);
  font-size: 0.88rem;
}

.footer__legal p {
  margin-bottom: 0.6em;
}

.footer__legal a {
  color: var(--muted);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.2fr);
  }
}

/* ---------- политика конфиденциальности ---------- */

.policy {
  padding-block: clamp(28px, 5vw, 56px) clamp(64px, 8vw, 96px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.93rem;
}

.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--border-strong);
}

.crumbs a {
  color: var(--muted);
}

.policy__title {
  margin: 0;
  font: 700 clamp(2rem, 1.3rem + 2.8vw, 3.1rem)/1.1 var(--font-display);
  text-wrap: balance;
}

.policy__head .sec-head__orn {
  margin: 16px 0 12px;
}

.policy__updated {
  color: var(--faint);
}

.policy__summary {
  margin: 26px 0 30px;
  padding: 22px 24px;
  font-size: 1.1rem;
}

.policy__toc {
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.policy__toc-title {
  margin: 0 0 10px;
  color: var(--text);
  font: 700 0.8rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy__toc ol {
  display: grid;
  gap: 4px 24px;
  margin: 0;
  padding-left: 1.3em;
  color: var(--faint);
}

.policy__toc a {
  color: var(--muted);
}

@media (min-width: 700px) {
  .policy__toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.policy__sec {
  padding-top: 30px;
}

.policy__sec h2 {
  margin: 0 0 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(90, 80, 68, 0.55);
  font: 700 clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem)/1.25 var(--font-display);
}

.policy__sec .ticks + p {
  margin-top: 1em;
}

.policy__sec p,
.policy__sec li {
  color: #D8CCB4;
}

.policy__back {
  margin-top: 44px;
}

/* ---------- 404 ---------- */

.notfound {
  padding-block: clamp(48px, 8vw, 110px);
  text-align: center;
}

.notfound__code {
  margin: 0;
  color: var(--accent);
  font: 700 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-display);
  text-shadow: 0 0 40px rgba(232, 131, 58, 0.35);
}

.notfound .sec-head__orn {
  margin: 16px auto;
}

.notfound__langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- движение и печать ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .embers {
    display: none;
  }
}

@media print {
  .topbar,
  .suggest,
  .hero__bg,
  .gallery__btn,
  .stores {
    display: none !important;
  }

  body {
    background: #FFF;
    color: #000;
  }
}

/* ---------- подпись к иллюстрации первого экрана ---------- */

.hero__visual {
  margin: 0;
}

.hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: calc(100% - clamp(128px, 36%, 236px) - 16px);
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* ---------- цели касания в навигационных списках (не ссылки в тексте) ---------- */

.policy__toc ol,
.notfound__langs {
  row-gap: 0;
}

.policy__toc a,
.notfound__langs a {
  display: inline-block;
  padding-block: 6px;
}

.crumbs a {
  display: inline-block;
  padding-block: 8px;
}

/* ---------- шаги на планшете: одна колонка, но вырезки интерфейса не крупнее реального экрана ---------- */

@media (min-width: 560px) and (max-width: 859px) {
  .step__media {
    width: min(100%, 420px);
    margin-inline: auto;
  }
}

/* польский заголовок первого экрана длиннее прочих: на десктопе иначе четыре строки */
.lang-pl .hero__title {
  font-size: clamp(1.95rem, 1.2rem + 3.9vw, 3.4rem);
}
