:root{
  /* core palette */
  --bg:#000000;
  --text:#FFFFFF;
  --muted:rgba(255,255,255,.72);

  --accentY:#9D4EDD; /* purple */
  --accentG:#ADFF2F; /* neon lime */
  --accentPink:#FF2BD6;
  --accentRed:#FF3B30;
  --accentOrange:#FF9500;

  /* surfaces */
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.14);
  --shadow: 0 24px 80px rgba(0,0,0,.65);

  --radius: 18px;
  --radius2: 26px;
  --content: 72ch;

  /* accent gradient for "grad" text */
  --grad: linear-gradient(90deg, var(--accentY) 0%, var(--accentG) 100%);

  /* modal (default, но мы используем dark-модификатор ниже) */
  --modalBg: #E6E6E6;
  --modalText: #0B0B0B;
  --modalBorder: rgba(0,0,0,.14);

  /* glows */
  --glowY: 0 0 26px rgba(157,78,221,.45);
  --glowG: 0 0 26px rgba(173,255,47,.30);
}

*{ box-sizing:border-box; }

html,body{ min-height:100%; overflow-x: hidden; }

body{
  margin:0;
  position: relative; /* важно для emojiLayer */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
  font-size: 16px;
  padding-top: 100px; /* space for fixed header */
}

a{ color: inherit; text-decoration:none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

/* background */
.bg{ position:fixed; inset:0; z-index:-2; }

.orb{
  position:absolute;
  width: 520px; height:520px;
  filter: blur(70px);
  opacity:.45;
  transform: translate3d(0,0,0);
}

.orb--1{ left:-140px; top:-160px; background: var(--accentY); }
.orb--2{ right:-140px; top:120px; background: var(--accentG); opacity:.35; }
.orb--3{ left:15%; bottom:-220px; background: var(--accentPink); opacity:.22; }

.noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.22;
}

/* Emoji background layer (static, full page) */
.emojiLayer{
  position: absolute;
  inset: 0;
  z-index: -1;          /* над .bg (-2), но под контентом */
  pointer-events: none;
  overflow: hidden;
}

.emoji-float{
  position: absolute;
  font-size: clamp(36px, 4vw, 54px);
  opacity: 0.22;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.65));
  transform: none !important;
}

/* разреженные позиции по всей высоте */
.emoji-1 { left: 6%;  top: 10%; }
.emoji-2 { left: 26%; top: 24%; }
.emoji-3 { left: 78%; top: 32%; }
.emoji-4 { left: 12%; top: 48%; }
.emoji-5 { left: 88%; top: 56%; }
.emoji-6 { left: 40%; top: 70%; }
.emoji-7 { left: 70%; top: 82%; }
.emoji-8 { left: 18%; top: 92%; }

/* helpers */
.glass{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mono{ font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted{ color: var(--muted); }

.grad{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* topbar */
.topbar{
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 0;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
  font-size: 18px;
}

.topbar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);

  background: rgba(255,255,255,.06);
  color: var(--text);

  font-weight: 700;
  font-size: 17px;

  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select:none;
  cursor:pointer;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.09);
}

.btn--primary{
  border: 1px solid rgba(0,0,0,.35);
  background: var(--accentG);
  color: #000000;
  font-size: 18px;
  padding: 18px 32px;
  box-shadow: var(--glowG);
}

.btn--primary:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 34px rgba(173,255,47,.38);
}

.btn--soft{
  background: rgba(157,78,221,.10);
  border-color: rgba(157,78,221,.45);
  box-shadow: var(--glowY);
}

.btn--ghost{ background: transparent; }
.btn--wide{ width: 100%; }

.langBtn{
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 14px;
  min-width: 52px;
}

/* timer */
.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.35);
  box-shadow: var(--glowY);
  min-width: 220px;
}

.timer__label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer__digits {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.timer__part {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer__num {
  font-size: 22px;
  font-weight: 950;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer__unit {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  margin-top: 2px;
}

.timer__sep {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 900;
  margin: 0 2px;
}

/* hero */
.hero{ padding: 20px 0 28px; }

.hero__grid{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 32px;
  align-items: start;
}

.kicker{
  display:inline-flex;
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(0,0,0,.2);
  color: #000000;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 0 20px rgba(255,255,255,.3);
}

.title{
  margin: 0 0 18px;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 900;
}

.subline{
  margin: 0 0 24px;
  color: rgba(255,255,255,.86);
  font-weight: 600;
  font-size: 19px;
}

/* limit */
.limit{ padding: 18px 18px 16px; margin: 0 0 20px; }

.limit__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.limit__label{
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 17px;
}

.limit__pill{
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 16px;
}

.limit__bar{
  margin-top: 12px;
  height: 12px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  overflow:hidden;
}

.limit__barFill{
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accentG) 0%, #FFFF00 50%, #FF0000 100%);
  border-radius: 999px;
  transition: width .6s ease;
  box-shadow: var(--glowG);
}

.mentorLine{
  margin: 0 0 24px;
  color: rgba(255,255,255,.90);
  font-size: 18px;
  line-height: 1.55;
}

.ctaRow{ display:flex; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.trustRow{ display:flex; gap: 12px; flex-wrap: wrap; margin: 0 0 20px;}

.chip{
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0,0,0,.2);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(255,255,255,.3);
}

/* mock */
.mock{ padding: 18px; border-radius: var(--radius2); }

.mock__top{ display:flex; align-items:center; gap: 10px; }
.dot{ width: 12px; height: 12px; border-radius: 50%; }
.dot--r{ background: var(--accentRed); }
.dot--y{ background: var(--accentY); }
.dot--g{ background: var(--accentG); }

.mock__title{ margin-left: 10px; font-weight: 900; color: rgba(255,255,255,.92); font-size: 16px; }
.mock__body{ margin-top: 18px; }

.stat{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}

.stat + .stat{ margin-top: 12px; }
.stat__k{ color: rgba(255,255,255,.76); font-weight:800; font-size: 15px; }
.stat__v{ font-weight: 950; font-size: 26px; letter-spacing: -.3px; }
.stat__v.grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ffffff;
}

.buy__now.grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ffffff;
}

.note{ color: rgba(255,255,255,.80); line-height:1.6; font-size: 15px; margin-top: 4px; }

/* value items */
.value-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 18px;
  color: rgba(255,255,255,.9);
}

.value-item span:last-child:not(.priceless) {
  color: rgba(255,255,255,.5);
  text-decoration: line-through;
}

.value-item .priceless {
  color: var(--accentG);
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(173,255,47,.5);
}

.analytics-grid {
  grid-template-columns: 1fr !important;
}

/* sections */
.section{ padding: 32px 0; }

.h2{
  margin: 0 0 18px;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.5px;
  font-weight: 900;
  line-height: 1.2;
}

.h3{ margin: 0 0 12px; font-size: 22px; font-weight: 900; }

.p{
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.7;
  font-size: 17px;
}

.prose{
  padding: 32px 28px;
  border-radius: var(--radius2);
  background: rgba(173,255,47,.04);
  border: 1px solid rgba(173,255,47,.20);
  box-shadow: 0 0 32px rgba(173,255,47,.12);
}

.prose p + p{ margin-top: 18px; }

.prose strong{
  font-weight: 950;
  color: var(--accentG);
  text-shadow: 0 0 18px rgba(173,255,47,.35);
}

/* cards */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.cards--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.cards--centered > .card {
  flex: 0 0 280px;
  max-width: 100%;
}

.card{ padding: 20px; border-radius: var(--radius2); }

.card__icon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 950;
  font-size: 24px;
  margin-bottom: 14px;
}

.card__title{ margin: 0 0 10px; font-size: 19px; }

/* callout */
.callout{
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius2);
  background: rgba(157,78,221,.08);
  border: 1px solid rgba(157,78,221,.55);
  box-shadow: var(--glowY);
}

/* carousel */
.carousel{ padding: 18px; border-radius: var(--radius2); }
.carousel__head{ display:flex; align-items:center; justify-content:space-between; gap: 14px; margin-bottom: 16px; }
.carousel__title{ color: rgba(255,255,255,.86); font-weight: 800; font-size: 18px; }
.carousel__controls{ display:flex; gap: 12px; }

.iconBtn{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all .15s ease;
}

.iconBtn:hover{
  background: rgba(157,78,221,.10);
  border-color: rgba(157,78,221,.45);
  box-shadow: var(--glowY);
}

.carousel__track{
  display:flex;
  gap: 14px;
  overflow:auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.slide{ flex: 0 0 360px; scroll-snap-align: start; }

.slide__img{
  height: 640px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  overflow:hidden;
  width: 100%;
  object-fit: cover;
}

.slide__cap{
  margin-top: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 280px;
  }
  .slide__img {
    height: 500px;
  }
}

/* placeholders */
.ph{ position:relative; }
.ph::after{
  content: attr(data-ph);
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,.78);
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 17px;
  text-shadow: 0 8px 24px rgba(0,0,0,.65);
  white-space: pre-line;
  text-align:center;
}

/* video inside glass container */
.glass video {
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  width: auto;
  height: auto;
}

@media (max-width: 520px) {
  .glass video {
    max-width: 100%;
    max-height: 60vh;
  }
}

/* ps */
.ps{ margin-top: 20px; padding: 20px; border-radius: var(--radius2); }

/* mentor */
.mentor{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius2);
}

.mentor__avatar{
  height: 280px;
  width: 100%;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  object-fit: cover;
}

.list{ margin: 0; padding-left: 22px; color: rgba(255,255,255,.90); line-height: 1.85; font-size: 18px; }
.list li{ margin-bottom: 10px; }

.quote{
  margin-top: 16px;
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(157,78,221,.08);
  border: 1px solid rgba(157,78,221,.55);
  color: rgba(255,255,255,.94);
  font-size: 18px;
  line-height: 1.7;
  box-shadow: var(--glowY);
}

/* guarantees section spacing */
.guar{
  padding: 48px 0 !important;
  margin-bottom: 32px;
}

/* questions accordion */
.questions .glass {
  padding: 32px;
  border-radius: var(--radius2);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion__item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion__item[open] {
  border-color: var(--accentG);
  background: rgba(173, 255, 47, 0.05);
}

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}

.accordion__item[open] .accordion__header {
  color: var(--accentG);
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__icon {
  font-size: 24px;
  font-weight: 900;
  color: var(--accentG);
  transition: transform 0.3s ease;
}

.accordion__item[open] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  padding: 0 24px 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.7;
}

.accordion__content p {
  margin: 0;
}

/* buy */
.buy{
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
}

.buy__price{ display:flex; align-items:baseline; gap: 14px; }
.buy__now{ font-size: 38px; font-weight: 950; }
.buy__old{ color: rgba(255,255,255,.50); text-decoration: line-through; font-size: 24px; font-weight: 800; }

/* footer */
.footer{
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 28px;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 15px;
  align-items:center;
}

.footer__actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* modal */
.modalBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 18px;
}

.modalBackdrop.isOpen{ display:flex; }

.modalPanel{
  width: min(800px, 100%);
  max-height: 90vh;
  background: var(--modalBg);
  color: var(--modalText);
  border: 1px solid var(--modalBorder);
  border-radius: 18px;
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  padding: 24px;
  overflow-y: auto;
}

.modalPanel h3{ margin: 0 0 10px; font-size: 20px; }
.modalPanel p{ margin: 0; color: rgba(0,0,0,.78); line-height: 1.55; }

.modalPanel--dark{
  background: rgba(0,0,0,.78);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.modalPanel--dark .p{ color: rgba(255,255,255,.86); }

/* legal document styling inside modal */
.modalPanel .prose {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 16px;
}

/* responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .mentor{ grid-template-columns: 1fr; }
  .mentor__avatar{ height: 240px; }
  .slide{ flex-basis: 80vw; }
  .buy{ flex-direction: column; align-items: stretch; }
  
  /* Image-text grid in "Что входит в курс" */
  .glass > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 520px){
  .topbar__inner{ padding: 14px 0; }
  .brand{ font-size: 16px; }
  .btn{ font-size: 16px; padding: 14px 20px; }
  .btn--primary{ font-size: 17px; padding: 16px 24px; }
  .langBtn{ min-width: 52px; padding: 12px 12px; }

  .kicker{ font-size: 16px; padding: 10px 16px; }
  .title{ font-size: clamp(28px, 8vw, 36px); }
  .subline{ font-size: 17px; }

  .h2{ font-size: clamp(22px, 6vw, 28px); }
  .p{ font-size: 16px; }

  .stat__v{ font-size: 22px; }
  .buy__now{ font-size: 32px; }
  .buy__old{ font-size: 20px; }
  .prose{ padding: 24px 20px; }

  /* timer adjustments for mobile */
  .timer {
    min-width: 180px;
    padding: 6px 12px;
  }
  .timer__num {
    font-size: 18px;
  }
  .timer__sep {
    font-size: 14px;
  }
  .timer__unit {
    font-size: 9px;
  }

  body {
    padding-top: 110px; /* increased for mobile header to prevent overlap */
  }

  /* Adjust image-text grid padding and image size */
  .glass > div[style*="grid-template-columns: 1fr 1fr"] {
    gap: 16px !important;
  }
  .glass > div[style*="grid-template-columns: 1fr 1fr"] img {
    max-width: 100%;
    border-radius: 16px;
  }

  /* Reduce padding for glass with inline padding 32px */
  .glass[style*="padding: 32px"] {
    padding: 24px !important;
  }

  /* Accordion mobile adjustments */
  .questions .glass {
    padding: 24px !important;
  }
  .accordion__header {
    padding: 16px 20px;
    font-size: 16px;
  }
  .accordion__content {
    padding: 0 20px 20px;
    font-size: 16px;
  }
}
