/* MillyPrava landing. Solid fills only (no gradients), accent #36ABE6 as in the game. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #36ABE6;
  --accent-hover: #2393CF;
  --accent-deep: #2393CF;      /* only the solid edge under buttons */
  --accent-ink: #36ABE6;
  --accent-soft: #EBF7FD;
  --accent-tint: #D6EEFA;
  --on-accent: #FFFFFF;
  --on-accent-soft: rgba(255, 255, 255, 0.18);
  --on-accent-line: rgba(255, 255, 255, 0.55);
  --text: #0F2A44;
  --muted: #5B6B7D;
  --bg: #F3F7FB;
  --card: #FFFFFF;
  --border: #DDE6EF;
  --success: #1E9E5A;
  --danger: #D64545;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 42, 68, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 42, 68, 0.14);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; line-height: 1.55; font-size: 16px; background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-deep); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-primary:disabled { background: var(--accent-tint); color: var(--accent-deep); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-outline { background: var(--card); color: var(--accent-ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--on-accent-line); }
.btn-ghost:hover { border-color: #fff; background: var(--on-accent-soft); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.eyebrow-light { background: var(--on-accent-soft); color: #fff; }
.eyebrow-light::before { background: #fff; }
.eyebrow-on-accent { background: var(--on-accent-soft); color: #fff; }
.eyebrow-on-accent::before { background: #fff; }

.section { padding: 72px 0; }
@media (min-width: 1024px) { .section { padding: 104px 0; } }
.section-white { background: var(--card); }
.section-header { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-header .eyebrow { margin-bottom: 16px; }
.section-header-left { margin: 0; text-align: left; }
.section-title { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.section-desc { margin-top: 16px; font-size: 17px; color: var(--muted); }

.card-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.card-text { margin-top: 8px; font-size: 15px; color: var(--muted); }

.icon-tile {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 0 var(--accent-deep);
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.brand-light { color: var(--text); }

.nav-menu { display: none; align-items: center; gap: 4px; }
.nav-link { padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--accent-deep); background: var(--accent-soft); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { display: flex; padding: 4px; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); }
.lang-btn {
  min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer;
}
.lang-btn.active { background: var(--accent); color: #fff; }
.header-cta { display: none; min-height: 44px; padding: 10px 18px; font-size: 14px; }

.menu-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav-menu { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 1079px) {
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 12px 16px 20px; background: var(--card);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav-menu.open .nav-link { padding: 14px 12px; font-size: 16px; color: var(--text); }
  .nav-menu.open .nav-cta { display: inline-flex; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--accent); color: var(--on-accent); padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding: 88px 0 112px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }

.hero-title { margin-top: 20px; font-size: clamp(32px, 5.6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.hero-title span { display: inline; }
.hero-title .hl { color: var(--accent); background: #fff; padding: 0 10px; border-radius: 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 4px 0 var(--accent-deep); }
.hero .btn-primary:hover { background: var(--accent-soft); }
.hero-subtitle { margin-top: 20px; max-width: 560px; font-size: 18px; font-weight: 500; color: #fff; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }

.hero-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.stat { padding: 16px; border-radius: var(--r-md); background: var(--on-accent-soft); border: 1px solid var(--on-accent-line); }
.stat-num { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { margin-top: 4px; font-size: 13px; font-weight: 600; color: #fff; }

.hero-visual { position: relative; padding: 0 8px 24px 0; }
.shot {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--accent-hover); border: 6px solid var(--card);
  box-shadow: 14px 14px 0 var(--accent-deep);
}
.shot-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-caption {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 700;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(30, 158, 90, 0.18); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 700;
}
.float-card-a { left: -8px; top: 18%; }
.float-card-b { right: 4px; bottom: 76px; }
.float-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; }
.float-icon svg { width: 16px; height: 16px; }
.float-num { font-size: 22px; font-weight: 800; color: var(--accent-ink); }
@media (max-width: 639px) { .float-card { display: none; } }
@media (min-width: 1024px) { .float-card-a { left: -32px; } }

/* ---------- Trust strip ---------- */
.strip { background: var(--card); color: var(--text); border-bottom: 1px solid var(--border); }
.strip-item svg { color: var(--accent); }
.strip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 20px 16px; }
@media (min-width: 900px) { .strip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 24px; padding-bottom: 24px; } }
.strip-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.strip-item svg { width: 22px; height: 22px; }

/* ---------- Feature cards ---------- */
.cards-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.feature-card {
  padding: 28px; border-radius: var(--r-lg); background: var(--card);
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card .icon-tile { margin-bottom: 20px; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }

/* ---------- Game section ---------- */
.game { background: var(--accent-soft); color: var(--text); }
.game .section-desc { color: var(--muted); }
.game-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .game-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.game-media { border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--accent); }
.game-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-content .section-title { margin-top: 16px; }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 16px; font-weight: 600; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Students ---------- */
.student-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .student-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.student-card { padding: 28px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-tint); }
.student-num { display: block; margin-bottom: 12px; font-size: 44px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.03em; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-deep);
  font-size: 22px; font-weight: 800;
}
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 52px; right: -20px; width: 20px; height: 4px; background: var(--accent);
  }
}

/* ---------- Apps ---------- */
.apps-grid { display: grid; gap: 16px; max-width: 920px; margin: 0 auto; }
@media (min-width: 768px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.app-card {
  display: flex; gap: 20px; align-items: flex-start; padding: 28px;
  border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-tint);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.app-card .card-title { margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; } }
.faq-wrap .section-header { margin-bottom: 0; }
.faq-wrap .section-header .eyebrow { margin-bottom: 16px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); transition: border-color .15s; }
.faq-item.open { border-color: var(--accent); }
.faq-question {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--text);
}
.faq-icon {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); transition: transform .2s ease, background-color .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer { display: none; padding: 0 20px 20px; font-size: 15px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

/* ---------- Form ---------- */
.form-section { background: var(--card); }
.form-grid {
  display: grid; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
@media (min-width: 960px) { .form-grid { grid-template-columns: 1fr 1.35fr; } }
.form-section .container.form-grid { padding: 0; max-width: 1136px; width: calc(100% - 32px); }
.form-aside { padding: 32px 24px; background: var(--accent); color: #fff; }
@media (min-width: 960px) { .form-aside { padding: 48px 40px; } }
.form-aside-title { margin-top: 16px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.form-aside-text { margin-top: 12px; font-size: 16px; font-weight: 500; }
.aside-list { margin-top: 24px; display: grid; gap: 12px; }
.aside-list li { position: relative; padding-left: 32px; font-weight: 700; }
.aside-list li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336ABE6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.aside-phone {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--r-sm); background: #fff; color: var(--accent);
  font-size: 18px; font-weight: 800;
}
.aside-phone svg { width: 20px; height: 20px; color: var(--accent); }
.aside-phone:hover { background: var(--accent-soft); }

.form-card { padding: 32px 24px; background: var(--card); }
@media (min-width: 960px) { .form-card { padding: 48px 40px; } }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-label { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.req { margin-left: 2px; color: var(--danger); }
.opt { font-weight: 500; color: var(--muted); }
.form-input, .form-textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg);
  font-size: 16px; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.form-textarea { resize: vertical; min-height: 104px; }
.form-input::placeholder, .form-textarea::placeholder { color: #94A3B8; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-tint); }
.form-input.error, .form-textarea.error { border-color: var(--danger); background: #FDF2F2; }
.field-error { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--danger); }
.field-error.show { display: block; }
#lead-consent-err { margin: -8px 0 16px; }

.consent-group { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent-checkbox { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: none; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.form-alert.alert-danger { background: #FDF2F2; color: #A12C2C; border: 1px solid #F5C2C2; }

.form-success-box { display: none; padding: 24px 0; text-align: center; }
.form-success-box.show { display: block; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; }
.success-icon svg { width: 34px; height: 34px; }
.success-title { font-size: 24px; font-weight: 800; }
.success-desc { margin: 12px auto 24px; max-width: 420px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--card); color: var(--muted); border-top: 1px solid var(--border); padding-top: 48px; }
.footer-inner { display: grid; gap: 28px; padding-bottom: 32px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.4fr 2fr auto; align-items: center; } }
.footer-text { margin-top: 12px; font-size: 14px; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
.footer-phone { font-size: 18px; font-weight: 800; color: var(--accent); }
.footer-phone:hover { color: var(--accent-hover); }
.footer-bottom { padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--border); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
