/* Voltara — лендинг. Цвета как в приложении (theme.dart). */
:root {
  --bg: #0b0e13;
  --card: #12161d;
  --border: #1e2530;
  --field: #151a21;
  --text: #eef2f7;
  --soft: #c9d1dd;
  --body: #a3acbb;
  --muted: #8a94a6;
  --solar: #f7b731;
  --grid: #449f6c;
  --battery: #4da3ff;
  --home: #c4a1ff;
  --red: #ff6b6b;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Навигация */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 14, 19, .82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--body); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; background: var(--field); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: var(--muted); font: 700 12px Manrope, sans-serif; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--solar); color: var(--bg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(68, 159, 108, .22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(77, 163, 255, .14), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); color: var(--soft); font-weight: 700; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grid); box-shadow: 0 0 0 4px rgba(68, 159, 108, .2); }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 16px; font-weight: 800; }
.lead { font-size: 19px; color: var(--body); max-width: 560px; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 800; font-size: 18px; text-decoration: none; }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 700; opacity: .7; }
.store.soon { background: var(--card); color: var(--soft); border: 1px solid var(--border); cursor: default; }
.note { color: var(--muted); font-size: 13px; margin-top: 18px; }

.hero-phones { position: relative; height: 600px; }
.phone { margin: 0; border-radius: 38px; overflow: hidden; border: 1px solid #262e3a; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 8px #151a21; background: #000; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .front { right: 20px; top: 0; z-index: 2; }
.hero-phones .back { right: 205px; top: 56px; width: 225px; transform: rotate(-6deg); opacity: .92; }

/* Секции */
.section { padding: 72px 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.sub { color: var(--body); font-size: 18px; margin: 0 0 36px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; color: var(--body); font-size: 15px; }
.ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-red { background: #2a1416; color: var(--red); }
.ic-blue { background: #13233a; color: var(--battery); }
.ic-yellow { background: #2b2412; color: var(--solar); }
.ic-green { background: #14291e; color: var(--grid); }
.ic-purple { background: #221b33; color: var(--home); }
.ic-gray { background: #171c24; color: var(--soft); }

/* Скриншоты */
.shots-section { padding-bottom: 40px; }
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 28px max(20px, calc((100vw - 1080px) / 2)) 36px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots .phone { flex: 0 0 240px; scroll-snap-align: center; }
.shots figcaption { background: var(--bg); color: var(--soft); text-align: center; font-weight: 700; font-size: 14px; padding: 12px 8px; }

/* Шаги */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps .n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--solar); color: var(--bg); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin: 4px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--body); font-size: 15px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--body); margin: 12px 0 0; }

/* Подвал */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.footer nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer .note { width: 100%; margin: 0; }

/* Текстовые страницы (поддержка, политика) */
.doc { padding: 56px 0 24px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--body); }
.doc a { color: var(--battery); }
.doc .card { margin-top: 18px; }

/* Hero складывается раньше остальных блоков: телефоны не должны наезжать на заголовок. */
@media (max-width: 1060px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-text { max-width: 640px; }
  .hero-phones { height: 470px; }
  .hero-phones .phone { width: 210px; }
  .hero-phones .front { right: auto; left: 50%; margin-left: -20px; }
  .hero-phones .back { right: auto; left: 50%; margin-left: -190px; top: 40px; width: 190px; }
}
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (min-width: 901px) and (max-width: 1060px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
