:root {
  --ink: #1d1a2e;
  --muted: #5d5873;
  --bg: #f6f3ff;
  --card: #ffffff;
  --line: #e4ddfa;
  --violet: #8b5cf6;
  --deep: #1b1446;
  --gold: #d9a441;
  --hero: linear-gradient(135deg, #1b1446 0%, #4c2a9a 55%, #8b5cf6 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ece9f7; --muted: #aaa4c2; --bg: #13111c; --card: #1d1a2a; --line: #2e2943; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.top { position: absolute; inset: 0 0 auto; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 21px; text-decoration: none; }
.brand img { border-radius: 10px; }
.lang { display: flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: #fff; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--deep); font-weight: 700; }

.hero { background: var(--hero); color: #fff; padding: 112px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.88); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 20px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.btn-store { background: #0f0c22; color: #fff; border: 1px solid rgba(255,255,255,.25); cursor: default; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 18px; }
.btn-store small { font-weight: 500; font-size: 12px; opacity: .8; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: #f1ecff; }
.note { margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: 15px; }

.hero-phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 34px; border: 8px solid #0f0c22; background: #0f0c22; box-shadow: 0 30px 60px rgba(10,6,40,.45); }
.phone.front { right: 150px; top: 0; z-index: 1; }
.phone.back { right: 0; top: 50px; transform: rotate(6deg); opacity: .95; }

section h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 28px; text-align: center; letter-spacing: -.01em; }
.features, .gallery, .pricing { padding: 72px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid article, .plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.ic { font-size: 30px; }
.grid h3 { margin: 8px 0 4px; font-size: 19px; }
.grid p { margin: 0; color: var(--muted); }

.gallery { background: linear-gradient(180deg, transparent, rgba(139,92,246,.08)); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip figure { margin: 0; text-align: center; }
.strip img { border-radius: 24px; border: 6px solid #0f0c22; background: #0f0c22; box-shadow: 0 14px 30px rgba(27,20,70,.18); }
.strip figcaption { margin-top: 10px; font-weight: 700; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.plan h3 { margin: 0; font-size: 22px; }
.price { font-size: 26px; font-weight: 800; margin: 4px 0 12px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; }
.premium { background: var(--hero); color: #fff; border: 0; }
.premium .price { color: var(--gold); }
.small { font-size: 14px; color: var(--muted); }
.premium .small { color: rgba(255,255,255,.8); }

footer { border-top: 1px solid var(--line); padding: 32px 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .brand { color: var(--ink); font-size: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 430px; max-width: 360px; margin: 8px auto 0; width: 100%; }
  .phone { width: 190px; border-width: 6px; border-radius: 26px; }
  .phone.front { right: auto; left: 0; }
  .phone.back { right: 0; top: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid, .plans { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
