:root {
  --violet: #6272EA;
  --violet-light: #9AAEFF;
  --violet-dark: #4355C8;
  --violet-glow: rgba(98, 114, 234, 0.28);
  --dark: #060A14;
  --dark-card: rgba(10, 16, 38, 0.72);
  --dark-card-solid: #0A1026;
  --ice: #E4EAFF;
  --ice-80: rgba(228, 234, 255, 0.82);
  --ice-55: rgba(228, 234, 255, 0.55);
  --ice-30: rgba(228, 234, 255, 0.3);
  --ice-10: rgba(228, 234, 255, 0.08);
  --sep: rgba(228, 234, 255, 0.1);
  --radius-card: 20px;
  --radius-btn: 32px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ice);
  background: #060A14;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SONAR BACKGROUND ── */
.sonar-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 40%,
    #0D1535 0%,
    #080D22 40%,
    #060A14 100%
  );
}

.sonar-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(98,114,234,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,114,234,0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

/* SVG-сонар живёт внутри .hero и скроллится со страницей */
.sonar-center {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.sonar-svg {
  width: clamp(420px, 88vmin, 920px);
  height: clamp(420px, 88vmin, 920px);
  overflow: visible;
  display: block;
  opacity: 0.45;
}

.sonar-sweep-group {
  transform-origin: 200px 200px;
  /* анимация управляется через JS (requestAnimationFrame) */
}

/* Все контентные секции поверх фона */
body > *:not(.sonar-bg) {
  position: relative;
  z-index: 1;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--violet-glow); border-radius: 3px; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(6, 10, 20, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sep);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ice);
}

.nav-logo img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-menu-btn:hover { background: var(--ice-10); }
.nav-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ice);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: linear-gradient(180deg, #141A40 0%, #060A14 100%);
  border-left: 1px solid var(--sep);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 80px 0 40px;
}
.menu-drawer.open { transform: translateX(0); }

.menu-close {
  position: absolute;
  top: 18px; right: 20px;
  background: var(--ice-10);
  border: none;
  color: var(--ice);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.menu-close:hover { background: var(--ice-30); }

.menu-links { flex: 1; padding: 0 8px; }

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ice-80);
  border-radius: 14px;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 4px;
}
.menu-link:hover { background: var(--ice-10); color: var(--ice); }
.menu-link-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 14px;
  flex-shrink: 0;
}
.menu-link-left { display: flex; align-items: center; }
.menu-link-arrow { opacity: 0.4; font-size: 14px; }

.menu-link:nth-child(1) .menu-link-icon { background: rgba(98,114,234,0.15); }
.menu-link:nth-child(2) .menu-link-icon { background: rgba(154,174,255,0.12); }
.menu-link:nth-child(3) .menu-link-icon { background: rgba(255,255,255,0.08); }

.menu-footer {
  padding: 24px 32px 0;
  border-top: 1px solid var(--sep);
  font-size: 12px;
  color: var(--ice-30);
}

/* ═══════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content { max-width: 640px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--violet-glow);
  border: 1px solid rgba(98, 114, 234, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--violet-light);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #FFFFFF 30%, #6272EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ice-55);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(98, 114, 234, 0.45);
}
.btn-primary:hover {
  background: var(--violet-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(98, 114, 234, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ice-10);
  color: var(--ice-80);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--sep);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--ice-30);
  color: var(--ice);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════ */

.features { padding: 40px 0 120px; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--sep);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.feature-row.visible { opacity: 1; transform: translateY(0); }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 100px rgba(0,0,0,0.55);
  object-fit: cover;
}

.feature-text { padding: 20px 0; }

.feature-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ice);
}

.feature-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ice-55);
  margin-bottom: 28px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-pill {
  background: var(--ice-10);
  border: 1px solid var(--sep);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ice-80);
}
.feature-pill.accent {
  background: var(--violet-glow);
  border-color: rgba(98, 114, 234, 0.25);
  color: var(--violet-light);
}

/* ═══════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════ */

.about-section { padding: 100px 0 120px; }

.about-intro {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--ice);
  line-height: 1.25;
  margin: 12px 0 24px;
}

.about-lead {
  font-size: 16px;
  color: var(--ice-55);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-badge {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(98,114,234,0.18), rgba(154,174,255,0.1));
  border: 1px solid rgba(98,114,234,0.3);
  border-radius: 40px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet-light);
  letter-spacing: 0.3px;
}

.about-divider {
  height: 1px;
  background: var(--sep);
  margin: 0 0 48px;
}

.about-pro-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice-30);
  margin-bottom: 40px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-feat {
  background: var(--dark-card);
  border: 1px solid var(--sep);
  border-radius: 20px;
  padding: 28px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.about-feat:hover {
  border-color: rgba(98,114,234,0.35);
  transform: translateY(-3px);
}

.about-feat-icon { font-size: 28px; margin-bottom: 14px; line-height: 1; }
.about-feat-title { font-size: 15px; font-weight: 700; color: var(--ice); margin-bottom: 10px; }
.about-feat-desc { font-size: 13px; color: var(--ice-55); line-height: 1.65; }

@media (max-width: 768px) {
  .about-features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-feat { padding: 20px 16px; }
  .about-feat-icon { font-size: 22px; }
  .about-feat-title { font-size: 14px; }
  .about-feat-desc { font-size: 12px; }
}
@media (max-width: 480px) {
  .about-features-grid { grid-template-columns: 1fr; }
  .about-section { padding: 60px 0 80px; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.footer {
  background: rgba(3, 6, 18, 0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--sep);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ice-80);
}
.footer-logo img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.footer-links { display: flex; gap: 28px; }
.footer-link { font-size: 14px; color: var(--ice-55); transition: color 0.2s; }
.footer-link:hover { color: var(--ice); }
.footer-copy { font-size: 13px; color: var(--ice-30); width: 100%; }

/* ═══════════════════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════════════════ */

.page-header { padding: 140px 0 64px; text-align: center; }
.page-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFFFF 40%, #6272EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  font-size: 18px;
  color: var(--ice-55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PRIVACY POLICY
═══════════════════════════════════════════ */

.privacy-section { padding: 0 0 120px; }

.privacy-card {
  background: var(--dark-card);
  border: 1px solid var(--sep);
  border-radius: var(--radius-card);
  padding: 56px 60px;
  backdrop-filter: blur(20px);
  max-width: 820px;
  margin: 0 auto;
}
.privacy-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--violet);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}
.privacy-card h2:first-child { margin-top: 0; }
.privacy-card p { font-size: 15px; line-height: 1.75; color: var(--ice-55); margin-bottom: 12px; }
.privacy-card ul { padding-left: 20px; margin-bottom: 12px; }
.privacy-card li { font-size: 15px; line-height: 1.75; color: var(--ice-55); margin-bottom: 6px; }
.privacy-card a { color: var(--violet); text-decoration: underline; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .feature-row.reverse { direction: ltr; }
  .feature-row.reverse .feature-image { order: -1; }
  .feature-image img { max-width: 300px; }
  .privacy-card { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .menu-drawer { width: 260px; }
}
