/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0b;
  --bg-alt: #141416;
  --bg-card: #17171a;
  --red: #e5231a;
  --red-dark: #7a0f0a;
  --orange: #ff7a1a;
  --orange-soft: rgba(255,122,26,0.16);
  --blue-neon: #2f7bff;
  --white: #f5f4f2;
  --gray: #9a9a9e;
  --gray-dark: #4a4a4e;
  --border: rgba(245,244,242,0.1);
  --radius: 18px;
  --ff-display: 'Bebas Neue', sans-serif;
  --ff-body: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--red); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #ff3226; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--white); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--outline { border: 1px solid var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--bg); }
.btn--outline-light { border: 1px solid rgba(255,255,255,0.5); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--bg); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 13px; }

.btn--glow {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  box-shadow: 0 0 0 rgba(255,122,26,0);
}
.btn--glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(255,122,26,0.45), 0 0 26px rgba(229,35,26,0.4);
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--ff-display);
  font-size: 26px;
  letter-spacing: 0.03em;
}
.logo span { color: var(--red); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--white); }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__cta { flex-shrink: 0; }
.nav__cta-mobile { display: none; }
.header__login-mobile { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.burger span {
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: all 0.25s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 0 40px;
  overflow: hidden;
  text-align: center;
}
.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-size: clamp(150px, 30vw, 440px);
  color: rgba(245,244,242,0.16);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), var(--orange-soft), transparent 65%);
}
.hero.glow-active .hero__glow { opacity: 1; }

.hero__visual {
  position: relative;
  z-index: 2;
  height: clamp(380px, 50vw, 640px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 4px;
}
.hero__photo-glow {
  position: absolute;
  inset: -5% -5% 0 -5%;
  background:
    radial-gradient(closest-side, var(--orange-soft), transparent 70%) 72% 15% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(47,123,255,0.16), transparent 70%) 22% 80% / 55% 55% no-repeat;
  filter: blur(16px);
  z-index: 0;
}
.hero__photo {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 740px;
  margin: 0 auto 28px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--ff-display);
  font-size: 34px;
  color: var(--red);
}
.stat__label {
  font-size: 13px;
  color: var(--gray);
}

/* ============ SECTION GENERIC ============ */
.section { padding: 80px 0; position: relative; }
.section--dark { background: var(--bg-alt); }
.section--card {
  background: var(--bg-alt);
  border-radius: 0;
}
.section--cta {
  background: linear-gradient(180deg, var(--bg) 0%, #16090a 100%);
  text-align: center;
}
.section--cta .section__lead { margin-left: auto; margin-right: auto; }

.section__title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section__title--xl { font-size: clamp(38px, 6.5vw, 72px); }
.section__lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 34px;
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,122,26,0.5);
  box-shadow: 0 20px 50px rgba(255,122,26,0.12), 0 0 0 1px rgba(255,122,26,0.08) inset;
}
.price-card--accent {
  background: linear-gradient(160deg, var(--red-dark) 0%, #2a0705 60%, var(--bg-card) 100%);
  border-color: var(--red);
}
.price-card--accent:hover {
  box-shadow: 0 20px 50px rgba(229,35,26,0.25);
  border-color: var(--orange);
}
.price-card__tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--red);
  background: rgba(229,35,26,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.price-card__tag--light {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.price-card h3 {
  font-family: var(--ff-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.price-card__price {
  font-family: var(--ff-display);
  font-size: 48px;
  color: var(--white);
  margin: 20px 0 8px;
}
.price-card__price span { font-size: 18px; color: var(--gray); font-family: var(--ff-body); }
.price-card__note { font-size: 13px; color: var(--gray); margin-bottom: 20px; }

.price-card__num {
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.program-price .price-card__num { font-size: inherit; color: inherit; font-family: inherit; }

.check-list { margin: 20px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--gray);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--red);
  font-weight: 800;
}
.price-card--accent .check-list li { color: rgba(245,244,242,0.85); }

/* ============ APP SECTION ============ */
.app__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__num {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--red);
  min-width: 36px;
}
.feature h4 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--gray); }

.app__visual { display: flex; justify-content: center; }
.phone-mock {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px 22px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.phone-mock__notch {
  width: 60px;
  height: 6px;
  background: rgba(245,244,242,0.15);
  border-radius: 100px;
  margin: 0 auto 22px;
}
.phone-mock__header {
  font-family: var(--ff-display);
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.phone-mock__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.phone-mock__row span { color: var(--gray); }
.phone-mock__whatsapp {
  margin-top: 20px;
  background: rgba(37,211,102,0.12);
  color: #25d366;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
}

/* ============ COMPARE TABLE ============ */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}
.compare__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.compare__row--head { background: var(--bg-card); }
.compare__row--head .compare__cell {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.02em;
}
.compare__cell {
  padding: 13px 20px;
  font-size: 14px;
  color: var(--gray);
  border-left: 1px solid var(--border);
}
.compare__cell--label {
  border-left: none;
  color: var(--white);
  font-weight: 700;
  background: rgba(245,244,242,0.02);
}

/* ============ PROGRAM HEAD ============ */
.program-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.program-price {
  text-align: right;
}
.program-price span {
  display: block;
  font-family: var(--ff-display);
  font-size: 44px;
  color: var(--red);
}
.program-price small { color: var(--gray); font-size: 13px; }

/* ============ PROGRAMS CTA ============ */
.programs-cta {
  text-align: center;
  margin-top: 28px;
}

/* ============ MODULES ============ */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 18px 0 32px;
}
.modules--two { grid-template-columns: repeat(2, 1fr); }
.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.module--highlight {
  background: linear-gradient(160deg, var(--red-dark) 0%, var(--bg-card) 80%);
  border-color: var(--red);
}
.module__num {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--red);
  margin-bottom: 12px;
}
.module h4 { font-size: 16px; margin-bottom: 8px; }
.module p { font-size: 14px; color: var(--gray); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 24px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
}
.faq-item__icon {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--red);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 26px;
}
.faq-item.open .faq-item__a { max-height: 220px; padding: 0 26px 22px; }
.faq-item__a p { color: var(--gray); font-size: 14.5px; }

/* ============ FORM ============ */
.form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--white);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--red); }
.form select { appearance: none; }
.form textarea { resize: vertical; }

/* ============ FOOTER ============ */
.footer {
  padding: 44px 0 24px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__note { color: var(--gray); font-size: 14px; max-width: 480px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 14px; font-weight: 700; color: var(--white); }
.footer__links a:hover { color: var(--red); }
.footer__copy { color: var(--gray-dark); font-size: 12.5px; margin-top: 20px; }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav { display: none; }
  .header__actions { display: none; }
  .burger { display: flex; }
  /* Вход в кабинет виден всегда — рядом с бургером; в меню — «Войти» и «Регистрация». */
  .header__login-mobile { display: inline-flex; margin-left: auto; margin-right: 12px; }
  .nav__cta-mobile { display: inline-flex; margin-top: 4px; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .pricing-grid { grid-template-columns: 1fr; }
  .app__grid { grid-template-columns: 1fr; }
  .app__visual { order: -1; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .modules--two { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__cell--label { grid-column: 1 / -1; border-bottom: 1px solid var(--border); background: rgba(245,244,242,0.04); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__visual { height: clamp(300px, 60vw, 480px); }
  .section { padding: 60px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 110px 0 30px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { height: 340px; }
  .hero__title { font-size: 32px; }
  .modules { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .program-head { align-items: flex-start; }
  .program-price { text-align: left; }
  .section { padding: 48px 0; }
  .programs-cta .btn { width: 100%; }

}
