/* ============================================================
   YOMI.MODEL — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0A0A14;
  color: #CCCCCC;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --gold: #F5A623;
  --gold-dim: rgba(245, 166, 35, 0.15);
  --gold-glow: rgba(245, 166, 35, 0.3);
  --bg: #0A0A14;
  --bg-card: #0F0F1E;
  --bg-card-2: #12121F;
  --border: #2A2A3E;
  --white: #FFFFFF;
  --gray-1: #999999;
  --gray-2: #666666;
  --radius-card: 16px;
  --radius-btn: 8px;
  --transition: 0.3s ease;
  --container: 1280px;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Logo ---------- */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo__dot {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: #000;
}

.btn--gold:hover {
  background: #ffb940;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.2);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn--full {
  width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.nav__link {
  color: var(--gray-1);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link--cta {
  background: var(--gold);
  color: #000;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
}

.nav__link--cta:hover {
  background: #ffb940;
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #1a1a35 0%, #0A0A14 70%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(245,166,35,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 80px;
  max-width: 900px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-1);
  margin-bottom: 28px;
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-2);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
  0%   { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ============================================================
   SECTIONS — ОБЩИЕ СТИЛИ
   ============================================================ */
.section {
  padding: 120px 0;
}

.section__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section__text {
  font-size: 17px;
  color: var(--gray-1);
  max-width: 660px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.section__text strong {
  color: var(--gold);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: all var(--transition);
}

.card--hover:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow);
  transform: translateY(-4px);
}

.card--gold-border {
  border-color: rgba(245, 166, 35, 0.3);
}

.card--gold-border:hover {
  border-color: var(--gold);
  box-shadow: 0 0 40px var(--gold-glow);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.card__icon--gold {
  filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.card__text {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.65;
}

/* ============================================================
   BLOCK 2 — ПРОБЛЕМА
   ============================================================ */
.problem {
  background: var(--bg);
}

.problem__stat {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
  padding: 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  max-width: 480px;
}

.stat__number {
  font-size: 72px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__percent,
.stat__plus {
  font-size: 40px;
  vertical-align: super;
  color: var(--gold);
}

.stat__label {
  font-size: 17px;
  color: var(--gray-1);
  line-height: 1.5;
}

.stat__label small {
  display: block;
  font-size: 13px;
  color: var(--gray-2);
  margin-top: 4px;
}

/* ============================================================
   BLOCK 3 — РЕШЕНИЕ
   ============================================================ */
.solution {
  background: linear-gradient(180deg, #0D0D1E 0%, #0A0A14 100%);
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.solution__stat {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

/* ============================================================
   BLOCK 4 — КАК ЭТО РАБОТАЕТ
   ============================================================ */
.how {
  background: var(--bg);
}

.how__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--border);
}

.how__step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.how__step--reverse {
  direction: rtl;
}

.how__step--reverse > * {
  direction: ltr;
}

.how__num {
  font-size: 72px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.8;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.how__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.how__desc {
  font-size: 16px;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 24px;
}

.how__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-1);
}

.how__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.how__image {
  position: relative;
}

.how__image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.how__image img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(245,166,35,0.1);
}

/* ============================================================
   BLOCK 5 — ТОТАЛИЗАТОР
   ============================================================ */
.tote {
  background: linear-gradient(180deg, #0D0D1E 0%, #0A0A14 100%);
  position: relative;
  overflow: hidden;
}

.tote::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.tote__cta {
  margin-top: 48px;
  text-align: center;
}

/* ============================================================
   BLOCK 6 — CTA + ФОРМА
   ============================================================ */
.cta-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-section__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-section .section__text {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Form ---------- */
.form {
  text-align: left;
  margin-top: 48px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-1);
}

.form__req {
  color: var(--gold);
}

.form__input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form__input::placeholder {
  color: var(--gray-2);
}

.form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.form__input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

.form__error {
  font-size: 12px;
  color: #e74c3c;
  min-height: 18px;
  display: block;
}

.form__group + .btn {
  margin-top: 8px;
}

/* Submit button row */
.form > .btn {
  margin-top: 8px;
}

/* Form success */
.form__success {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius-card);
  margin-top: 24px;
  animation: fadeIn 0.4s ease;
}

.form__success-icon {
  width: 56px;
  height: 56px;
  background: rgba(245,166,35,0.15);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold);
  margin: 0 auto 20px;
}

.form__success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.form__success p {
  font-size: 15px;
  color: var(--gray-1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray-2);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 13px;
  color: var(--gray-1);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--gold);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-delay-1 { transition-delay: 0.1s; }
.animate-in-delay-2 { transition-delay: 0.2s; }
.animate-in-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — TABLET (768–1279px)
   ============================================================ */
@media (max-width: 1279px) {
  .section { padding: 96px 0; }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .how__step {
    gap: 48px;
    margin-bottom: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (до 767px)
   ============================================================ */
@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .container { padding: 0 16px; }

  /* Nav */
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,20,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    z-index: 99;
    backdrop-filter: blur(16px);
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    font-size: 22px;
  }

  .nav__link--cta {
    padding: 12px 32px;
  }

  .burger {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Hero */
  .hero__h1 { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Stats */
  .problem__stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    padding: 20px;
  }

  .stat__number { font-size: 56px; }

  /* How */
  .how__step {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
    padding-bottom: 56px;
  }

  .how__step--reverse {
    direction: ltr;
  }

  .how__step--reverse .how__image {
    order: -1;
  }

  .how__num { font-size: 56px; }
  .how__title { font-size: 22px; }

  /* Form */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Section */
  .section__h2 { font-size: 26px; }
  .section__text { font-size: 15px; }

  /* CTA section */
  .cta-section__inner { text-align: left; }
  .cta-section .section__text { margin: 0; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
