/* Сайт магазина: те же токены, что у мини-аппа (контраст проверен, ≥ 4.5:1) */
:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --fill: rgba(118, 118, 128, 0.12);
  --fill-strong: rgba(118, 118, 128, 0.2);
  --label: #000000;
  --label-2: #5f5f64;
  --separator: rgba(60, 60, 67, 0.18);
  --accent: #0062d6;
  --accent-text: #0062d6;
  --accent-tint: rgba(0, 98, 214, 0.12);
  --glass: rgba(242, 242, 247, 0.78);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.36);
    --label: #ffffff;
    --label-2: #aeaeb2;
    --separator: rgba(84, 84, 88, 0.6);
    --accent: #0a6fe8;
    --accent-text: #4da3ff;
    --accent-tint: rgba(77, 163, 255, 0.16);
    --glass: rgba(0, 0, 0, 0.72);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 12px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font: 600 17px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-filled { background: var(--accent); color: #fff; }
.btn-filled:hover { filter: brightness(1.08); }
.btn-tinted { background: var(--accent-tint); color: var(--accent-text); }
.btn-large { min-height: 52px; padding: 0 26px; }
.btn-small { font-size: 15px; padding: 0 16px; }

/* ===== Шапка ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--separator);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); text-decoration: none; font-weight: 700; font-size: 17px; min-height: 44px; }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; flex: none; }
.mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { color: var(--label-2); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.top-nav a:hover { color: var(--label); background: var(--fill); }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .top .bot-link { margin-left: auto; }
}

/* ===== Первый экран ===== */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5.2vw, 60px); line-height: 1.07; letter-spacing: -0.025em; margin: 0 0 20px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--label-2); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; font-size: 15px; color: var(--label-2); line-height: 1.35; }
.facts b { font-size: 17px; color: var(--label); }
.hero-video { justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .facts li { flex-direction: row; gap: 8px; align-items: baseline; }
}

/* ===== Разделы ===== */
.section { padding: 56px 0 8px; }
.section h2, .cta h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 24px; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.how img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; background: #f2f2f7; }
.how div { padding: 18px 20px 22px; }
.how h3 { font-size: 19px; margin: 10px 0 6px; }
.how p { margin: 0; color: var(--label-2); font-size: 16px; line-height: 1.45; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); font-weight: 700; font-size: 15px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* ===== Инструкции ===== */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label);
  font: 500 15px/1 var(--font);
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.guide-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.guide-track::-webkit-scrollbar { display: none; }
.slide { flex: none; width: calc((100% - 32px) / 3); scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; margin: 0; }
.slide img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; background: #f2f2f7; }
.slide figcaption { display: flex; gap: 12px; padding: 16px 18px 20px; }
.slide b { display: block; font-size: 17px; line-height: 1.3; }
.slide span.t { display: block; color: var(--label-2); font-size: 15px; margin-top: 4px; line-height: 1.4; }
@media (max-width: 860px) { .slide { width: 86%; } }
.guide-bar { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.segs { flex: 1; display: flex; gap: 6px; }
.segs span { flex: 1; height: 5px; border-radius: 3px; background: var(--fill-strong); }
.segs span.on { background: var(--accent); }
.left { font-size: 15px; color: var(--label-2); white-space: nowrap; }
.round { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--label); }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round:disabled { opacity: 0.4; cursor: default; }

/* ===== Приложения ===== */
.apps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.app { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: start; }
.app img, .app .ph { width: 64px; height: 64px; border-radius: 15px; grid-row: span 2; }
.app .ph { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 26px; }
.app h3 { margin: 0; font-size: 18px; }
.app .kind { font-size: 14px; color: var(--label-2); }
.app p { grid-column: 1 / -1; margin: 8px 0 4px; color: var(--label-2); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app .btn { grid-column: 1 / -1; justify-self: start; }

/* ===== Вопросы ===== */
.faq { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 0.5px solid var(--separator); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 24px; font-weight: 400; color: var(--label-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--label-2); }

/* ===== Финал и подвал ===== */
.cta { margin: 64px auto 0; padding: 48px 24px; text-align: center; background: var(--surface); border-radius: 32px; }
.cta p { color: var(--label-2); margin: -8px 0 24px; }
.foot { padding: 40px 0 48px; color: var(--label-2); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.brand span:last-child { white-space: nowrap; }
@media (max-width: 480px) {
  .top-row { gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .top .btn-small { font-size: 14px; padding: 0 12px; min-height: 40px; }
}
