:root {
  --bg: #08090d;
  --panel: rgba(17, 20, 29, 0.86);
  --panel-strong: rgba(24, 28, 39, 0.96);
  --line: rgba(255, 255, 255, 0.11);
  --line-red: rgba(255, 70, 85, 0.42);
  --red: #ff4655;
  --red-soft: rgba(255, 70, 85, 0.16);
  --cyan: #00f0ff;
  --cyan-soft: rgba(0, 240, 255, 0.14);
  --text: #f7f8fb;
  --muted: #aeb7c8;
  --vk: #4d76a1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Exo 2', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a,
button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.98), rgba(8, 9, 13, 0.66) 48%, rgba(8, 9, 13, 0.92)),
    url('glavnii_fon5.jpg') center / cover no-repeat;
  transform: scale(1.02);
}

.site-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 240, 255, 0.13), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(255, 70, 85, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.1), #08090d 92%);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(8, 9, 13, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--red);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 70, 85, 0.34);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu a,
.nav-menu button,
.footer a,
.footer button {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu button:hover,
.footer a:hover,
.footer button:hover {
  transform: translateY(-1px);
  border-color: var(--red);
  background: var(--red-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  width: min(1220px, calc(100vw - 36px));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(96px, 12vh, 132px) 0 clamp(52px, 8vh, 84px);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(320px, 560px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(34px, 5vw, 80px);
  isolation: isolate;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 0 28px rgba(255, 70, 85, 0.34);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #d5dae6;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff4655, #c92c39);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 28px rgba(255, 70, 85, 0.22);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.32);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.hero-stats span {
  display: block;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.hero-media {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  justify-self: end;
  margin-top: 0;
}

.hero-video,
.hero-media > img {
  width: 100%;
  max-width: 560px;
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line-red);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  background: #05070d;
}

.section {
  width: min(1160px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.strip {
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-title h2,
.download-panel h2,
.modal-content h2 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.feature-grid,
.process-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.process-step,
.plan-card,
.download-panel,
.modal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.feature-card,
.process-step,
.plan-card {
  padding: 22px;
}

.feature-index,
.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.36);
  border-radius: 8px;
}

.feature-card h3,
.process-step h3,
.plan-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-card p,
.process-step p,
.download-panel p,
.modal-content p,
.plan-card li,
.period {
  color: var(--muted);
}

.process-step {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.pricing-grid {
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--line-red);
  transform: translateY(-10px);
  box-shadow: 0 22px 54px rgba(255, 70, 85, 0.18);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  margin: 8px 0 0;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
}

.period {
  margin: 0 0 16px;
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 19px;
}

.plan-card .btn {
  margin-top: auto;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 5vw, 42px);
  border-color: rgba(0, 240, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 70, 85, 0.08)),
    var(--panel-strong);
}

.download-panel p {
  max-width: 640px;
}

.download-actions {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 220px;
}

.download-actions .btn {
  width: 100%;
}

.footer {
  width: min(1160px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer button {
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(22px, 5vw, 34px);
  background: rgba(13, 16, 24, 0.96);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
}

.contact-grid,
.subscription-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-card {
  display: grid;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-card span {
  color: var(--cyan);
  font-weight: 700;
}

.contact-card small {
  color: var(--muted);
}

.instruction-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .hero-media {
    max-width: 720px;
    width: 100%;
    justify-self: start;
    margin-top: 0;
  }

  .feature-grid,
  .process-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .top-nav {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(13, 16, 24, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a,
  .nav-menu button {
    width: 100%;
    justify-content: center;
  }

  .hero {
    width: min(100vw - 28px, 1220px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-video,
  .hero-media > img {
    max-width: 100%;
    min-height: 260px;
  }

  .section {
    width: min(100vw - 28px, 1160px);
    padding: 58px 0;
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer {
    width: min(100vw - 28px, 1160px);
    align-items: stretch;
    flex-direction: column;
  }
}
