:root {
  --bg: #0a0b0f;
  --bg-elevated: #101218;
  --card: #14161e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f6f8;
  --muted: #9aa1ad;
  --accent: #ff9d00;
  --accent-bright: #ffc732;
  --accent-deep: #ff8a00;
  --accent-soft: rgba(255, 157, 0, 0.12);
  --accent-glow: rgba(255, 157, 0, 0.30);
  --gradient-accent: linear-gradient(135deg, #ffb42a 0%, #ff8f00 100%);
  --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 12px 32px rgba(255, 145, 0, 0.32);
  --radius: 20px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #14100a;
}

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

.narrow {
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 38px;
  height: 38px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #17110a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(255, 145, 0, 0.4);
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  background: var(--gradient-accent);
  color: #17110a;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 145, 0, 0.42);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.store-btn:not(.is-disabled):hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 157, 0, 0.5);
}

.store-btn svg {
  flex-shrink: 0;
  color: var(--accent-bright);
}

.store-btn-label {
  display: grid;
  line-height: 1.25;
  text-align: left;
}

.store-btn-label small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-btn-label strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-btn.is-disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.store-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(255, 157, 0, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* Кнопки магазинов в hero растягиваются на всю ширину текстового столбца. */
.hero-copy .store-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.hero-copy .store-btn {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 157, 0, 0.35);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.text-accent {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.trust-row svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Phone mockup ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-phone {
  position: relative;
  width: min(340px, 82vw);
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
  animation: phone-float 7s ease-in-out infinite;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 157, 0, 0.35);
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 157, 0, 0.25);
  color: var(--accent-bright);
}

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #17110a;
  font-weight: 800;
  font-size: 17px;
}

.step h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

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

.cta-panel {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  padding: 64px 32px;
  border-radius: 36px;
  background:
    radial-gradient(90% 130% at 50% -30%, rgba(255, 157, 0, 0.18), transparent 60%),
    var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cta-mascot {
  width: 108px;
  height: 108px;
  filter: drop-shadow(0 12px 28px rgba(255, 145, 0, 0.25));
}

.cta-panel .store-buttons {
  justify-content: center;
}

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

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 40px 0 48px;
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}

.footer-links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.age-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--muted);
  color: var(--muted);
  font-weight: 800;
  font-size: 12.5px;
}

/* ---------- Support page ---------- */

.support-main {
  position: relative;
  padding-top: 56px;
  padding-bottom: 88px;
  text-align: center;
}

.support-main::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(255, 157, 0, 0.12), transparent 70%);
  pointer-events: none;
}

.support-hero {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.support-hero .lead {
  max-width: 560px;
}

.support-actions {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin: 10px auto 0;
}

.support-actions .btn-primary {
  width: 100%;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 157, 0, 0.35);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 15.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.email-chip:hover {
  background: rgba(255, 157, 0, 0.18);
  border-color: rgba(255, 157, 0, 0.55);
  transform: translateY(-1px);
}

.email-chip.is-copied {
  background: rgba(255, 157, 0, 0.22);
  border-color: var(--accent);
}

.email-chip svg {
  flex-shrink: 0;
}

.support-note {
  margin: 28px auto 0;
  max-width: 560px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.support-note strong {
  color: var(--text);
}

/* ---------- Error page ---------- */

.error-page {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  justify-items: center;
  padding: 40px 20px;
}

.error-page img {
  width: 120px;
  height: 120px;
}

/* ---------- Animations ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes phone-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

[data-rise] {
  animation: rise-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--rise-delay, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-rise],
  .hero-phone {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .footer-meta {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 88px;
    padding-bottom: 72px;
    gap: 40px;
  }
}

@media (max-width: 959px) {
  .header-nav .nav-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .header-inner {
    height: 64px;
  }

  .logo {
    font-size: 19px;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 24px;
    gap: 44px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .store-buttons {
    width: 100%;
  }

  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-copy .store-buttons {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .step {
    padding: 22px;
    border-radius: 22px;
  }

  .cta-panel {
    padding: 44px 20px;
    border-radius: 28px;
  }
}
