/* =============================================
   IMTAHANVER — Landing Page Styles
   ============================================= */

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

:root {
  --indigo:  #4F46E5;
  --violet:  #7C3AED;
  --indigo-light: #EEF2FF;
  --violet-light: #F5F3FF;
  --text:    #0F172A;
  --muted:   #64748B;
  --border:  #E2E8F0;
  --bg:      #FFFFFF;
  --bg-alt:  #F8FAFC;
  --radius:  16px;
  --shadow:  0 4px 24px rgba(79,70,229,.10);
  --shadow-lg: 0 12px 48px rgba(79,70,229,.18);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── CONTAINER ───────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.45);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-light);
}
.btn--white {
  background: #fff;
  color: var(--indigo);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ── GRADIENT TEXT ───────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 60%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}
.logo strong { color: var(--indigo); }
.logo__icon { display: flex; align-items: center; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--indigo); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--text); }
.mobile-menu .btn { width: 100%; justify-content: center; }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #C7D2FE, #818CF8);
  top: -120px; left: -200px;
}
.blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #DDD6FE, #A78BFA);
  top: 100px; right: -150px;
}
.blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FBCFE8, #F9A8D4);
  bottom: -100px; left: 30%;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 20px;
}
.badge__dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
}
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust__item strong {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust__item span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.trust__divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── MOCKUP ──────────────────────────────── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mockup {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
  width: 380px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
}
.mockup__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}
.mockup__bar span:nth-child(1) { background: #FC5F57; }
.mockup__bar span:nth-child(2) { background: #FDBC2D; }
.mockup__bar span:nth-child(3) { background: #34C749; }

.mockup__body { padding: 20px; }

.mockup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  flex-shrink: 0;
}
.mock-line {
  height: 10px;
  border-radius: 6px;
  background: #E2E8F0;
  margin-bottom: 6px;
}
.mock-line.thin { height: 8px; opacity: .7; }
.mock-line.mb-8 { margin-bottom: 8px; }
.mock-line.mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }
.w-4-5 { width: 80%; }
.w-32 { width: 120px; }
.w-20 { width: 80px; }
.mock-badge {
  margin-left: auto;
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.mock-question { margin-bottom: 16px; }

.mock-option {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.mock-option.selected {
  border-color: var(--indigo);
  background: var(--indigo-light);
  color: var(--indigo);
  font-weight: 600;
}

.mock-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.mock-progress-bar {
  height: 6px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  border-radius: 10px;
  transition: width .6s ease;
}

/* ── SECTION COMMONS ─────────────────────── */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%);
  color: #fff;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}
.section__label {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section__desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── EXAM CARDS ──────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card--miq::before    { background: linear-gradient(90deg, #4F46E5, #818CF8); }
.card--teacher::before { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.card--abi::before    { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.card--bura::before   { background: linear-gradient(90deg, #10B981, #34D399); }
.card--magistr::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card--featured {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet), var(--shadow);
  transform: scale(1.02);
}
.card--featured:hover { transform: scale(1.02) translateY(-6px); }

.card__featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.card__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
}
.card--miq    .card__icon { background: var(--indigo-light); color: var(--indigo); }
.card--teacher .card__icon { background: #E0F2FE; color: #0284C7; }
.card--abi    .card__icon { background: var(--violet-light); color: var(--violet); }
.card--bura   .card__icon { background: #DCFCE7; color: #15803D; }
.card--magistr .card__icon { background: #FEF3C7; color: #D97706; }

.card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card__stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  transition: gap var(--transition);
}
.card__link:hover { gap: 10px; }

/* Cards: last 2 on second row center-aligned */
.cards .card:nth-child(4) { grid-column: 1; }
.cards .card:nth-child(5) { grid-column: 3; }

/* ── STEPS ───────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
  padding: 40px 32px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo);
}
.step__num {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step__content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step__content p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.step__arrow { padding: 0 16px; flex-shrink: 0; }

/* ── FEATURES ────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature__icon--blue   { background: #EEF2FF; color: #4F46E5; }
.feature__icon--purple { background: #F5F3FF; color: #7C3AED; }
.feature__icon--green  { background: #F0FDF4; color: #16A34A; }
.feature__icon--orange { background: #FFF7ED; color: #EA580C; }
.feature__icon--pink   { background: #FDF2F8; color: #DB2777; }
.feature__icon--teal   { background: #F0FDFA; color: #0D9488; }
.feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── STATS ───────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat__num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ── TESTIMONIALS ────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--indigo);
}
.testimonial__stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-size: 14px; font-weight: 700; }
.testimonial__author span   { font-size: 12px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────── */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item.open { border-color: var(--indigo); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  gap: 12px;
  transition: color var(--transition);
}
.faq__item.open .faq__q { color: var(--indigo); }
.faq__q svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq__item.open .faq__q svg { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 22px;
}
.faq__item.open .faq__a {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ── CTA BANNER ──────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #312E81, #4C1D95, #1E3A5F);
  padding: 100px 0;
  text-align: center;
}
.cta-banner__bg { position: absolute; inset: 0; }
.blob--cta1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(129,140,248,.4), transparent 70%);
  top: -150px; right: -100px;
}
.blob--cta2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,.35), transparent 70%);
  bottom: -100px; left: 0;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: #0F172A;
  color: rgba(255,255,255,.7);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-block: 64px;
}
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: 14px; line-height: 1.6; max-width: 260px; }

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px;
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__bottom span { font-size: 13px; color: rgba(255,255,255,.4); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards .card:nth-child(4) { grid-column: auto; }
  .cards .card:nth-child(5) { grid-column: auto; }
  .cards .card--featured   { transform: scale(1); }
  .cards .card--featured:hover { transform: translateY(-6px); }

  .features { grid-template-columns: repeat(2, 1fr); }
  .stats    { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .testimonials .testimonial:last-child { grid-column: 1 / -1; max-width: 380px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-block: 60px;
  }
  .hero__desc { margin-inline: auto; }
  .hero__cta  { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { order: -1; }
  .mockup { width: 100%; max-width: 340px; }

  .nav__links    { display: none; }
  .navbar__actions { display: none; }
  .hamburger { display: flex; }

  .steps {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .step { max-width: 100%; }
  .step__arrow { transform: rotate(90deg); align-self: center; }

  .features       { grid-template-columns: 1fr; }
  .cards          { grid-template-columns: 1fr; }
  .stats          { grid-template-columns: repeat(2, 1fr); }
  .testimonials   { grid-template-columns: 1fr; }
  .testimonials .testimonial:last-child { grid-column: auto; max-width: 100%; }

  .footer__inner  { grid-template-columns: 1fr; gap: 40px; }
  .footer__links  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats        { grid-template-columns: 1fr 1fr; }
  .footer__links { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
