/* =========================
   Root / Variables
========================= */
:root {
  --bg: #070A12;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);

  --brand: #6D5EF8;
  --brand2: #8B5CF6;
  --green: #22C55E;

  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* =========================
   Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(109,94,248,.35), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,.22), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(255,255,255,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =========================
   Header / Nav
========================= */
/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  gap: 16px;
}

/* =========================
   LOGO
========================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
}

.logoText {
  font-size: 16px;
}

.logoSub {
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--green));
  box-shadow: 0 0 0 6px rgba(109, 94, 248, 0.15);
}

/* =========================
   SCROLL MENU (FINAL)
========================= */

.menu {
  flex: 1;
  display: flex;
  gap: 26px;

  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

/* menu item */
.menu a {
  position: relative;
  flex-shrink: 0;

  padding: 10px 6px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

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

/* active */
.menu a.active {
  color: var(--text);
}

/* underline */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 3px;
  border-radius: 6px;

  background: linear-gradient(90deg, var(--brand), var(--green));
  transition: width 0.3s ease;
}

.menu a.active::after {
  width: 100%;
}

/* =========================
   NAV ACTIONS
========================= */

.navActions {
  flex-shrink: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .nav {
    gap: 14px;
    padding: 12px 14px;
  }

  .menu {
    margin: 0 -14px;
    padding: 8px 14px;
  }

  .navActions {
    display: none;
  }
}
/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease;
  
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
}

.btn.whatsapp {
  background: linear-gradient(135deg, #16A34A, var(--green));
  border: none;
  
}

/* =========================
   Hero
========================= */
.hero {
  padding: 64px 0 40px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-weight: 600;
}

.h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  margin: 16px 0 12px;
}

.grad {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 24px

}

/* =========================
   Cards / Stats
========================= */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat b {
  font-size: 18px;
}

.stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

/* =========================
   Pricing
========================= */
.pricing .plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price {
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0;
}

.planBest {
  border-color: rgba(109,94,248,0.45);
  box-shadow: 0 0 0 1px rgba(109,94,248,0.3), var(--shadow);
}

.planBadge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.planActions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   FAQ
========================= */
.faq details {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  padding: 24px

}

.faq p {
  margin-top: 10px;
  color: var(--muted);
}

/* =========================
   Contacts
========================= */
.contactsGrid {
  align-items: flex-start;
}

.form input {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: var(--text);
}

/* =========================
   Floating WhatsApp
========================= */
.fabWhatsapp {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: none;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16A34A, var(--green));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 100;
  padding: 24px

}

/* =========================
   Animations
========================= */
.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: all .6s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
}

.pricingScroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }

  .menu {
    display: flex;
    gap: 12px;
  }


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

  .fabWhatsapp {
    display: flex;
  }
}

@media (max-width: 900px) {
  .pricing .grid3 {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
  }

  .pricing .grid3::-webkit-scrollbar {
    display: none;
  }

  .pricing .plan {
    min-width: 280px;
    scroll-snap-align: start;
  }
}

/* ===== Mobile menu: scroll tabs ===== */
@media (max-width: 900px) {
  .nav {
    gap: 10px;
  }

  /* не прячем меню */
  .menu {
    display: flex;
    align-items: center;
    gap: 18px;

    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px;   /* больше воздуха */
    
    gap: 22px; 
    
    margin: 0 8px;

    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);

    scrollbar-width: none; /* Firefox */
  }
  .menu::-webkit-scrollbar { display: none; }

  .menu a {
    position: relative;
    flex-shrink: 0;
    padding: 10px 10px;
    border-radius: 12px;
    padding: 12px 14px;   /* было меньше */
    font-size: 16px; 
    font-weight: 700;
    color: rgba(255,255,255,0.78);
  }

  .menu a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
  }

  /* линия снизу как на твоём примере */
  .menu a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6D5EF8, #8B5CF6);
    opacity: 0;
    transform: scaleX(0.6);
    transition: .2s ease;
    bottom: -10px;   /* было -6px */
    height: 3px;
  }

  /* сделаем “активным” первый пункт, чтобы выглядело как на скрине */
  .menu a:first-child::after {
    opacity: 1;
    transform: scaleX(1);
  }

  /* чтобы кнопка справа не сжимала меню */
  .navActions { flex-shrink: 0; }
}

/* =========================
   Bottom Glow (green + purple)
========================= */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -220px;
  transform: translateX(-50%);
  width: 1200px;
  height: 520px;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(45% 45% at 30% 60%, rgba(34,197,94,0.35), transparent 60%),
    radial-gradient(45% 45% at 70% 60%, rgba(109,94,248,0.45), transparent 60%);
}

/* ===== Menu active animation ===== */
.menu a {
  position: relative;
  transition: color .25s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;

  background: linear-gradient(135deg, #6D5EF8, #22C55E);
  opacity: 0;
  transform: scaleX(0.6);
  transition: .25s ease;
}

.menu a.active {
  color: rgba(255,255,255,.95);
}

.menu a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

section {
  scroll-margin-top: 90px; /* высота header */
}

/* ===== Contact Form ===== */
.contactForm {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.85);
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 16px;
}

.field input:focus {
  outline: none;
  border-color: #6D5EF8;
}

/* submit button loading */
.submitBtn {
  position: relative;
  overflow: hidden;
}

.submitBtn.loading {
  pointer-events: none;
  opacity: .85;
}

.submitBtn .btnLoader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.submitBtn.loading .btnText {
  display: none;
}

.submitBtn.loading .btnLoader {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.formMsg {
  font-size: 14px;
  color: #22C55E;
  min-height: 18px;
}

/* =========================
   SCROLL MENU (как в курсе)
========================= */

.menuScroll {
  flex: 1;
  display: flex;
  gap: 26px;

  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menuScroll::-webkit-scrollbar {
  display: none;
}

/* запрет сжатия пунктов */
.menuScroll a {
  flex-shrink: 0;
  position: relative;
  padding: 10px 6px;
}

/* underline */
.menuScroll a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), var(--green));
  transition: width .3s ease;
}

/* active */
.menuScroll a.active {
  color: var(--text);
}

.menuScroll a.active::after {
  width: 100%;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .nav {
    gap: 14px;
  }

  .menuScroll {
    margin: 0 -12px;
    padding: 6px 12px;
  }

  .navActions {
    display: none; /* как в курсе */
  }
}