/* povwheel.com: тёмная тема, вёрстка в первую очередь под телефон */
:root {
  --bg: #07070c;
  --bg-2: #0e0e16;
  --card: #13131d;
  --card-2: #1b1b28;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f5f5fa;
  --muted: #a6a6ba;
  --accent: #ff3d71;
  --accent-2: #ff9f1c;
  --focus: #4fc3ff;
  --green: #3ddc84;
  --error: #ff6b81;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Пока грузится перевод, тексты скрыты; через 1,5 с показываем в любом случае */
.i18n-wait [data-i18n] { visibility: hidden; animation: i18n-show 0s 1.5s forwards; }
@keyframes i18n-show { to { visibility: visible; } }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 12, .75);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.logo i {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(#ff3d3d, #ffd23d, #3ddc84, #3dc8ff, #b06cff, #ff3d9e, #ff3d3d);
  box-shadow: 0 0 14px rgba(255, 120, 200, .5);
  animation: spin 5s linear infinite;
}
.logo i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.loc-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font: inherit; font-size: 17px; font-weight: 750; text-decoration: none; white-space: nowrap;
  cursor: pointer; box-shadow: 0 10px 30px -10px rgba(255, 61, 113, .75);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, .loc-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-ghost { background: var(--card-2); border: 1px solid var(--line-2); box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Первый экран ---------- */
.hero { padding: 0 0 36px; }
.hero .wrap { display: grid; gap: 10px; }
.stage { position: relative; aspect-ratio: 1; margin: 0 -16px; overflow: hidden; background: #000; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.stage img.on { opacity: 1; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.chip {
  position: absolute; left: 16px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(19, 19, 29, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #d8d8e4; font-size: 13px; font-weight: 650;
}
.chip svg { color: #ff4f8b; flex: none; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 9.5vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 850; }
.grad {
  background: linear-gradient(90deg, #ff5f6d, #ffc371 30%, #47e891 55%, #4fc3ff 75%, #c06cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-price { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hero-price b { color: var(--text); font-size: 18px; }

/* ---------- Секции ---------- */
section { padding: 48px 0; }
h2 { margin: 0 0 10px; font-size: clamp(28px, 7.5vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.sub { margin: 0 0 24px; max-width: 640px; color: var(--muted); font-size: 17px; }

/* Галерея */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px; right: 8px; width: fit-content; padding: 4px 10px;
  border-radius: 999px; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 650; line-height: 1.35;
}

/* Преимущества */
.feats { display: grid; gap: 12px; margin-top: 22px; }
.feat {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-content: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.feat .ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); color: var(--c); }
.feat .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* Приложение */
.app { display: grid; gap: 8px; align-items: center; }
.os { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.os > span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 650;
}
.os .yes { color: var(--green); border-color: rgba(61, 220, 132, .35); }
.os .soon { color: var(--muted); }
.phone {
  width: min(250px, 66vw); margin: 0 auto; padding: 7px; border-radius: 30px;
  background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -25px rgba(90, 120, 255, .45);
}
.phone video { width: 100%; aspect-ratio: 320 / 696; border-radius: 24px; background: #111; object-fit: cover; }

/* Цены */
.plans { display: grid; gap: 14px; }
.plan {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
  padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.plan.hot {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-2), #47e891, #4fc3ff) border-box;
}
.plan-size { min-width: 72px; font-size: 30px; font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.plan-size small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.plan-old { color: var(--muted); font-size: 14px; white-space: nowrap; }
.plan-old s { text-decoration-thickness: 1.5px; }
.off { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(61, 220, 132, .14); color: var(--green); font-size: 12px; font-weight: 750; }
.plan-new { font-size: 26px; font-weight: 850; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
.plan .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.badge {
  position: absolute; top: -11px; right: 14px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 12px; font-weight: 750;
}
.fx-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

/* Форма */
.formbox { max-width: 580px; margin: 0 auto; padding: 24px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, legend { font-size: 15px; font-weight: 650; }
.opt { color: var(--muted); font-weight: 500; }
.field input {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; /* 16px: iOS не зумит поле */
}
.field input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.ig { position: relative; }
.ig > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ig input { padding-left: 32px; }
fieldset { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); font-weight: 650; cursor: pointer;
}
.seg input:checked + span { border-color: var(--focus); background: rgba(79, 195, 255, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.check a { color: var(--text); }
#ts:not(:empty) { margin-bottom: 14px; }
.btn > span { pointer-events: none; }
.form-err { min-height: 20px; margin: 10px 0 0; color: var(--error); font-size: 14px; }
.form-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.done { padding: 12px 0; text-align: center; }
.done .sub { margin-left: auto; margin-right: auto; }
.done-icon { font-size: 48px; line-height: 1.2; }

/* Характеристики */
.specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 36% 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 15px; }
.specs dd { margin: 0; font-size: 15px; }

/* Вопросы */
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 8px; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Подвал */
footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.with-bar { padding-bottom: 110px; } /* место под нижнюю плашку */
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }

/* Нижняя плашка с кнопкой на телефоне */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 16, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.bar.show { transform: none; }
.bar .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
.bar-price { color: var(--muted); font-size: 13px; line-height: 1.3; }
.bar-price b { display: block; color: var(--text); font-size: 17px; }

/* Окно выбора языка и валюты */
dialog { max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: transparent; color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.sheet {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 18px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-2);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet h2 { margin: 0; font-size: 20px; }
.sheet h3 { margin: 18px 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cur-opts { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.opts button {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.cur-opts button { justify-content: center; font-weight: 650; }
.opts button[aria-pressed="true"] { border-color: var(--focus); background: rgba(79, 195, 255, .13); }

/* Политика конфиденциальности */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(30px, 8vw, 44px); }
.doc h2 { margin: 28px 0 8px; font-size: 21px; }
.doc p { margin: 0 0 12px; color: #d6d6e2; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc a { color: var(--focus); }

/* ---------- Широкие экраны ---------- */
@media (min-width: 600px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .formbox { padding: 32px; }
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 26px 18px; text-align: center; }
  .plan .btn { width: 100%; }
}
@media (min-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
  .stage { order: 2; margin: 0; border-radius: 28px; box-shadow: 0 40px 100px -40px rgba(255, 90, 160, .45); }
  .stage::after { display: none; }
  .chip { left: 20px; bottom: 20px; }
  .lead { font-size: 18px; }
  .feats { grid-template-columns: repeat(3, 1fr); }
  .app { grid-template-columns: 1fr 300px; gap: 48px; }
  .bar { display: none; }
  footer.with-bar { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo i { animation: none; }
  .stage img, .bar { transition: none; }
}
