:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --blue: #2563eb;
  --blue-light: #3882f6;
  --gold: #facc15;
  --text: #f8fafc;
  --muted: #94a3b8;
  --card: rgba(30, 41, 59, 0.55);
  --border: rgba(148, 163, 184, 0.2);
  --radius: 20px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#scene3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header, main, .footer { position: relative; z-index: 2; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo img {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.footer .logo img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.burger {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.burger span { top: 9px; }
.burger::before { top: 0; }
.burger::after { bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}
.header .btn-primary {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem 3rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 5vw 6rem;
  overflow: visible;
}

.hero-content {
  min-width: 0;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.5rem;
  color: var(--gold);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.phone-stage {
  position: relative;
  width: min(300px, 100%);
  margin: 0 auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.phone-glow {
  position: absolute;
  inset: 8% 0 12%;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.45), rgba(37, 99, 235, 0.15) 45%, transparent 70%);
  filter: blur(28px);
  transform: translateZ(-80px) scale(1.1);
  animation: glowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

.phone-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(10px);
  transform: rotateX(75deg) translateZ(-40px);
  opacity: 0.7;
  pointer-events: none;
}

.phone-float {
  animation: phoneFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

.phone-mockup {
  --rx: 6deg;
  --ry: -8deg;
  --tz: 0px;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(155deg, #475569 0%, #1e293b 35%, #0b1220 100%);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz));
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.phone-frame-edge {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 -20px 40px rgba(0, 0, 0, 0.35);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #0b1220;
  z-index: 3;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  user-select: none;
  -webkit-user-drag: none;
}

.phone-screen-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 62%
  );
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-18px) translateZ(12px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.75; transform: translateZ(-80px) scale(1.05); }
  50% { opacity: 1; transform: translateZ(-60px) scale(1.15); }
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-width: 0;
  padding: 1rem 0 1rem 0.5rem;
}

.section {
  padding: 5rem 5vw;
}

.section-alt {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-head p { color: var(--muted); }

.grid.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.45);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.platform-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.platform-card ul { list-style: none; }
.platform-card li {
  padding: 0.5rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.platform-card li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.download-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(250,204,21,0.08));
  border: 1px solid var(--border);
  text-align: center;
}

.download-box--maintenance {
  border-color: rgba(250, 204, 21, 0.35);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(250, 204, 21, 0.1));
}

.download-maintenance-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.download-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.download-btn--disabled:hover {
  transform: none;
}

.download-box h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.download-box p { color: var(--muted); margin-bottom: 1.5rem; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 11rem;
}

.download-btn-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.download-btn-ver {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.download-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.download-note a, .privacy-text a {
  color: #60a5fa;
}

.privacy-text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  display: grid;
  gap: 1rem;
}

.footer {
  padding: 2rem 5vw 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer a { color: #60a5fa; text-decoration: none; }

.legal-page .header { position: sticky; }
.legal-main {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 5vw 4rem;
}

.legal-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-main section {
  margin-bottom: 1.75rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.legal-main ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-main a { color: #60a5fa; }
.legal-back { margin-top: 2rem; }

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: min(640px, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  min-width: 200px;
}

.cookie-banner a { color: #60a5fa; }

.cookie-banner[hidden] { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

@media (min-width: 901px) {
  .hero-visual .phone-stage {
    transform: translateX(-6%);
  }
}

@media (max-width: 1100px) {
  .nav a { font-size: 0.85rem; }
  .nav { gap: 0.85rem; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .phone-stage { width: min(300px, 88vw); margin-top: 1rem; }
  .phone-mockup {
    --rx: 4deg;
    --ry: 0deg;
  }
  .phone-float { animation: phoneFloatMobile 7s ease-in-out infinite; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 5vw 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header .btn-primary { display: none; }
}

@keyframes phoneFloatMobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-float,
  .phone-glow,
  .phone-screen-shine {
    animation: none !important;
  }
  .phone-mockup { transition: none; }
}

/* FAQ — SEO-блок с ключевыми запросами */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item a { color: #60a5fa; }
