/* nishka.kz — стили сайта (стандарт 01: токены, тёмная тема, доступность) */
:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --accent: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-variant: #EEF2F7;
  --text: #0F172A;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --surface: #111A2C;
    --surface-variant: #1E293B;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --border: #1E293B;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--text); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px;
}
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--surface-variant); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #0891B2); color: #fff; }
.btn-ghost { background: var(--surface-variant); color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* Hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.12; letter-spacing: -.5px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin: 18px auto 28px; max-width: 640px; color: var(--text-secondary); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: 900; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-secondary); }

/* Секции */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; letter-spacing: -.4px; text-align: center; margin-bottom: 10px; }
.section .lead { text-align: center; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary);
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--text-secondary); font-size: 14px; }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.hit { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--success), #059669); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 16px; color: var(--text-secondary); }
.plan .price { font-size: 30px; font-weight: 900; margin: 8px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.plan ul { list-style: none; margin: 16px 0 22px; display: grid; gap: 8px; }
.plan li { font-size: 14px; color: var(--text-secondary); display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 900; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-secondary); font-size: 14px; }

/* Реферальный блок */
.refer { text-align: center; background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(6,182,212,.1)); border: 1px solid var(--border); border-radius: 20px; padding: 36px 24px; }
.refer h2 { margin-bottom: 8px; }
.refer .code-input { display: flex; gap: 10px; justify-content: center; margin: 20px auto 0; max-width: 440px; flex-wrap: wrap; }
.refer input {
  flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  font-size: 15px; background: var(--surface); color: var(--text); text-transform: uppercase; letter-spacing: 2px; font-weight: 800;
}
.refer .note { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.refer .ok { margin-top: 12px; font-weight: 700; color: var(--success); min-height: 20px; }

/* Футер */
.footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-secondary); font-size: 14px; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Страницы: оплата и приглашение */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.center .box { max-width: 480px; }
.center .big { font-size: 60px; margin-bottom: 12px; }
.steps { max-width: 560px; margin: 24px auto 0; text-align: left; display: grid; gap: 12px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps li b { background: var(--primary); color: #fff; border-radius: 8px; font-size: 13px; padding: 2px 8px; flex: none; margin-top: 2px; }
.code-big { font-size: 30px; font-weight: 900; letter-spacing: 4px; color: var(--primary); margin: 12px 0; }

@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .nav a { display: none; }
  .header-inner { height: 58px; }
}

/* ===== ПРЕМИУМ-ЛЕНДИНГ (главная) ===== */

/* Фоновые градиентные орбы */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: #6366F1; top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #06B6D4; top: 30%; right: -140px; animation-delay: -8s; }
.orb-3 { width: 380px; height: 380px; background: #8B5CF6; bottom: -140px; left: 30%; animation-delay: -15s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* Hero: 2 колонки */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; text-align: left; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  margin-bottom: 18px;
}

/* Телефон-мокап */
.phone { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 300px; aspect-ratio: 9/19; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #2a3350, #0f172a);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.05);
  position: relative; z-index: 2;
}
.phone-notch { width: 110px; height: 22px; background: #0b1220; border-radius: 0 0 16px 16px; margin: 0 auto; }
.phone-screen {
  margin-top: 8px; border-radius: 26px; overflow: hidden; height: calc(100% - 40px);
  background: linear-gradient(170deg, #101a30, #0b1220);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font);
}
.mock-top { display: flex; align-items: center; gap: 8px; }
.mock-top > span { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; }
.mock-pill { flex: 1; font-size: 11px; color: #c7d2fe; background: rgba(99,102,241,.2); padding: 4px 8px; border-radius: 8px; }
.mock-dots { color: #64748b; font-size: 12px; }
.mock-q { font-size: 15px; font-weight: 800; color: #f1f5f9; line-height: 1.4; }
.mock-options { display: grid; gap: 7px; }
.mock-options span { font-size: 13px; color: #cbd5e1; background: rgba(255,255,255,.06); padding: 8px 10px; border-radius: 10px; }
.mock-options .ok { color: #fff; background: linear-gradient(135deg, var(--success), #059669); box-shadow: 0 4px 14px rgba(16,185,129,.4); }
.mock-explain { font-size: 12px; color: #a5b4fc; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.3); border-radius: 10px; padding: 8px 10px; line-height: 1.5; }
.mock-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.mock-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.mock-foot { display: flex; justify-content: space-between; font-size: 11px; color: #94a3b8; }
.phone-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.35), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; filter: blur(20px);
}

/* Дни экзамена */
.day { text-align: left; }
.day-tag { font-size: 13px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; }
.day-total { font-size: 18px; font-weight: 900; margin: 8px 0 14px; }
.day-list { list-style: none; display: grid; gap: 8px; }
.day-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.day-list li b { color: var(--text); }

/* Сравнение */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.compare th { background: var(--surface-variant); font-weight: 800; }
.compare td:first-child { font-weight: 600; }
.compare .win { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); font-weight: 800; }

/* Статьи */
.art { text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.art:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.16); }
.art h3 { font-size: 15px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .phone { order: -1; margin-bottom: 8px; }
  .phone-frame { width: 240px; }
}
