/* Brand: cobalt #2D5BE3, pastel #5C84F0, light theme (gemmo-context §2 «Бренд»). No inline styles: CSP style-src 'self' (ТЗ §14.10.6). */
:root {
  --brand: #2d5be3;
  --brand-2: #5c84f0;
  --brand-3: #8aa8ff;
  --ink: #0b1020;
  --text: #0f172a;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, 0.08);
  --card: #ffffff;
  --bg: #f7f8fc;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */

.hero-bg {
  position: relative;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(92, 132, 240, 0.35) 0%, rgba(92, 132, 240, 0) 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(45, 91, 227, 0.10) 0%, rgba(45, 91, 227, 0) 70%),
    radial-gradient(35% 35% at 60% 100%, rgba(138, 168, 255, 0.25) 0%, rgba(138, 168, 255, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f2f5ff 70%, #f7f8fc 100%);
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(247, 248, 252, 0) 0%, var(--bg) 100%);
  pointer-events: none;
}
.nav, .hero { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 12px;
}
.logo img { width: 104px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 640px;
  padding-top: 40px;
  padding-bottom: 80px;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ink);
}
.accent {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 60%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores-center { justify-content: center; }
.badge { height: 52px; width: auto; }
.soon { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Phones */
.phones {
  position: relative;
  height: 620px;
}
.phone {
  position: absolute;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #20263a 0%, #0b1020 100%);
  box-shadow:
    0 40px 80px -30px rgba(11, 16, 32, 0.55),
    0 20px 50px -20px rgba(45, 91, 227, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 38px; }
.phone-front {
  width: 290px;
  right: 40px;
  top: 0;
  transform: rotate(4deg);
  z-index: 2;
}
.phone-back {
  width: 250px;
  right: 270px;
  top: 70px;
  transform: rotate(-7deg);
  opacity: 0.95;
  z-index: 1;
}

.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(11, 16, 32, 0.35);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.float-offer { right: 0; top: 380px; flex-direction: column; align-items: flex-start; gap: 0; }
.float-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.float-value { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.float-saved { right: 300px; top: 20px; color: #e11d48; }
.float-saved svg { color: #e11d48; }

/* ---------- Features ---------- */

.features { padding-top: 96px; padding-bottom: 40px; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 36px;
  color: var(--ink);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(11, 16, 32, 0.04);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px -8px rgba(45, 91, 227, 0.6);
}
.card h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- CTA ---------- */

.cta { padding-top: 56px; padding-bottom: 96px; }
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 32px;
  padding: 64px 24px;
  color: #fff;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(92, 132, 240, 0.55) 0%, rgba(92, 132, 240, 0) 70%),
    linear-gradient(180deg, #121a33 0%, #0b1020 100%);
}
.cta-icon { width: 64px; margin: 0 auto 20px; border-radius: 15px; box-shadow: 0 16px 32px -10px rgba(45, 91, 227, 0.8); }
.cta-box h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px; }
.cta-box p { margin: 0 0 28px; color: rgba(255, 255, 255, 0.72); }
.cta-box .badge-apple { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.4)); outline: 1px solid rgba(255, 255, 255, 0.35); outline-offset: -1px; border-radius: 10px; }
.cta-box .badge-google { outline: 1px solid rgba(255, 255, 255, 0.35); outline-offset: -1px; border-radius: 10px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0 48px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.footer-logo { width: 84px; margin-bottom: 12px; }
.footer p { margin: 0 0 10px; }
.by { color: var(--text); font-size: 15px; }
.copy { margin-top: 14px !important; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .phones { height: 560px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone-front { width: 250px; right: 10px; }
  .phone-back { width: 210px; right: auto; left: 6px; top: 60px; }
  .float-offer { right: auto; left: 0; top: 310px; }
  .float-saved { right: 0; top: -6px; }
  .cards { grid-template-columns: 1fr; }
  .features { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 420px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .pill { font-size: 12px; padding: 6px 12px; }
  .lead { font-size: 18px; }
  .badge { height: 46px; }
  .phones { height: 500px; }
  .phone-front { width: 220px; }
  .phone-back { width: 180px; }
  .float-offer { top: 280px; }
}
