/* ==========================================================================
   Prep.uz — Design system v2
   Стиль: современный ed-tech (референсы: aagschool.com, beacademy.ru,
   skillbox.kz) — светлый фон, воздух, скруглённые карточки, яркий акцент,
   чат-пузыри с русскими фразами.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Golos+Text:wght@500;600;700;800;900&display=swap');

:root{
  --bg: #FFFFFF;
  --bg-soft: #F4F6FB;
  --bg-tint: #EEF3FF;
  --ink: #0E1B33;
  --ink-soft: #4A5670;
  --ink-faint: #93A0B8;
  --blue: #2E5BFF;
  --blue-dark: #1F44D1;
  --blue-tint: #E4EBFF;
  --yellow: #FFC531;
  --yellow-tint: #FFF3D1;
  --green: #22B573;
  --green-tint: #DFF6EB;
  --coral: #FF6B57;
  --coral-tint: #FFE9E5;
  --line: #E6EAF2;
  --white: #FFFFFF;
  --shadow: 0 24px 48px -24px rgba(14,27,51,.22);
  --shadow-sm: 0 10px 24px -14px rgba(14,27,51,.18);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --display: 'Golos Text', 'Manrope', sans-serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--sans); color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--display); color:var(--ink); margin:0 0 .5em; line-height:1.12; font-weight:800; letter-spacing:-.015em; }
p{ margin:0 0 1em; color:var(--ink-soft); }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:92px 0; position:relative; }
.section-tight{ padding:60px 0; }
.bg-soft{ background:var(--bg-soft); }

.eyebrow{
  display:inline-block; background:var(--blue-tint); color:var(--blue);
  font-weight:800; font-size:13px; letter-spacing:.02em;
  padding:7px 14px; border-radius:999px; margin-bottom:16px;
}

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:16px 30px; border-radius:999px; font-weight:800; font-size:15px;
  border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--blue); color:var(--white); box-shadow:0 14px 28px -12px rgba(46,91,255,.6); }
.btn-primary:hover{ background:var(--blue-dark); transform:translateY(-2px); }
.btn-ghost{ background:var(--white); color:var(--ink); border-color:var(--line); box-shadow:var(--shadow-sm); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-yellow{ background:var(--yellow); color:var(--ink); box-shadow:0 14px 28px -12px rgba(255,197,49,.6); }
.btn-yellow:hover{ transform:translateY(-2px); }
.btn-block{ width:100%; }
.btn-login{ padding:12px 22px; font-size:14px; }
.lang-switch{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:38px; padding:0 12px; border-radius:10px;
  border:1px solid var(--line); background:var(--white);
  font-weight:800; font-size:13.5px; color:var(--ink-soft); letter-spacing:.03em;
  transition:border-color .15s, color .15s, background .15s;
}
.lang-switch:hover{ border-color:var(--blue); color:var(--blue); background:var(--blue-tint); }

/* ---- header ---- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:var(--maxw); margin:0 auto; }
.logo{ font-family:var(--display); font-weight:900; font-size:24px; color:var(--ink); }
.logo span{ color:var(--blue); }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-weight:700; font-size:15px; color:var(--ink-soft); transition:color .15s ease; }
.nav-links a:hover{ color:var(--blue); }
.nav-login-mobile{ display:none; }
@media (max-width:860px){ .nav-login-mobile{ display:block !important; color:var(--blue) !important; font-weight:800; } }
.header-actions{ display:flex; align-items:center; gap:14px; }
.phone-link{ font-weight:800; font-size:15px; }
.phone-link:hover{ color:var(--blue); }
.nav-toggle{ display:none; background:none; border:none; padding:10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; display:block; width:22px; height:2.5px; border-radius:2px; background:var(--ink); position:relative; transition:.2s;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }

/* ---- hero ---- */
.hero{ position:relative; overflow:hidden; padding:76px 0 90px; background:linear-gradient(180deg,var(--bg-tint) 0%, var(--bg) 100%); }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(36px,4.8vw,58px); }
.hero h1 em{ font-style:normal; color:var(--blue); }
.hero-lede{ font-size:18px; max-width:520px; }
.hero-ctas{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }

/* fact chips (как у AAG: старт через 24 часа / гарантия / траектория) */
.fact-chips{ display:flex; gap:12px; flex-wrap:wrap; margin-top:34px; }
.chip{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--white); border:1px solid var(--line); border-radius:999px;
  padding:10px 18px; font-weight:700; font-size:14px; box-shadow:var(--shadow-sm);
}
.chip .dot{ width:8px; height:8px; border-radius:50%; background:var(--green); flex:none; }
.chip.c-yellow .dot{ background:var(--yellow); }
.chip.c-blue .dot{ background:var(--blue); }

/* hero visual: карточка + чат-пузыри с русскими фразами */
.hero-visual{ position:relative; min-height:420px; }
.hero-card{
  position:relative; z-index:2; background:var(--white); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); padding:32px; border:1px solid var(--line);
  max-width:400px; margin:0 auto;
}
.hero-card .hc-label{ display:inline-block; background:var(--green-tint); color:var(--green); font-weight:800; font-size:12.5px; padding:6px 12px; border-radius:999px; margin-bottom:16px; }
.hero-card h3{ font-size:20px; margin-bottom:16px; }
.hc-row{ display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--bg-soft); }
.hc-row:last-of-type{ border-bottom:none; }
.hc-ico{
  width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none;
}
.hc-ico.i-blue{ background:var(--blue-tint); color:var(--blue); }
.hc-ico.i-yellow{ background:var(--yellow-tint); color:#B0821A; }
.hc-ico.i-green{ background:var(--green-tint); color:var(--green); }
.hc-ico.i-coral{ background:var(--coral-tint); color:var(--coral); }
.hc-row b{ display:block; font-size:15px; }
.hc-row span{ font-size:13px; color:var(--ink-soft); }

/* чат-пузыри */
.bubble{
  position:absolute; z-index:3;
  background:var(--white); border:1px solid var(--line); border-radius:18px;
  padding:12px 18px; font-weight:700; font-size:15px; box-shadow:var(--shadow-sm);
  animation:float 5s ease-in-out infinite;
}
.bubble::after{
  content:''; position:absolute; bottom:-7px; left:22px;
  width:14px; height:14px; background:inherit; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  transform:rotate(45deg); border-radius:0 0 4px 0;
}
.bubble.b-blue{ background:var(--blue); color:var(--white); border-color:var(--blue); }
.bubble.b-yellow{ background:var(--yellow); color:var(--ink); border-color:var(--yellow); }
.bubble-1{ top:-6px; left:-14px; animation-delay:0s; }
.bubble-2{ top:44%; right:-20px; animation-delay:1.6s; }
.bubble-3{ bottom:-8px; left:6%; animation-delay:3.2s; }
@keyframes float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-10px) } }
@media (prefers-reduced-motion: reduce){ .bubble{ animation:none } }

/* ---- логострока цифр ---- */
.stats-strip{ padding:36px 0; border-bottom:1px solid var(--line); }
.stats-grid{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.stat b{ display:block; font-family:var(--display); font-weight:900; font-size:34px; color:var(--blue); letter-spacing:-.02em; }
.stat span{ font-size:14px; color:var(--ink-soft); font-weight:600; }

/* ---- section heads ---- */
.section-head{ max-width:680px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.4vw,42px); }

/* ---- feature cards ---- */
.card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.card-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.card-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.feature-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; transition:transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.feature-icon{
  width:52px; height:52px; border-radius:16px; background:var(--blue-tint); color:var(--blue);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.feature-card:nth-child(2) .feature-icon{ background:var(--yellow-tint); color:#B0821A; }
.feature-card:nth-child(3) .feature-icon{ background:var(--green-tint); color:var(--green); }
.feature-card:nth-child(4) .feature-icon{ background:var(--coral-tint); color:var(--coral); }
.feature-card h3{ font-size:18px; margin-bottom:8px; }
.feature-card p{ font-size:14.5px; margin:0; }

/* ---- who list (карточки-пилюли) ---- */
.who-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.who-item{
  display:flex; gap:16px; align-items:center;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:20px 22px;
}
.who-num{
  font-family:var(--display); font-weight:900; font-size:18px; color:var(--white);
  background:var(--blue); width:38px; height:38px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.who-item:nth-child(even) .who-num{ background:var(--yellow); color:var(--ink); }
.who-item p{ margin:0; font-size:15px; color:var(--ink); font-weight:600; }

/* ---- шаги обучения (как AAG «за 4 шага») ---- */
.steps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; counter-reset:step; }
.step-card{
  position:relative; background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px 30px;
}
.step-card::before{
  counter-increment:step; content:counter(step, decimal-leading-zero);
  display:inline-flex; align-items:center; justify-content:center;
  min-width:56px; margin-bottom:20px;
  font-family:var(--display); font-weight:900; font-size:24px; color:var(--blue);
  background:var(--blue-tint); border-radius:14px; padding:8px 14px;
}
.step-card h3{ font-size:18px; margin-bottom:10px; }
.step-card:nth-child(2)::before{ color:#B0821A; background:var(--yellow-tint); }
.step-card:nth-child(3)::before{ color:var(--green); background:var(--green-tint); }
.step-card:nth-child(4)::before{ color:var(--coral); background:var(--coral-tint); }
.step-card p{ font-size:14.5px; margin:0; }

/* ---- program panel ---- */
.program-panel{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:48px; display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center;
  box-shadow:var(--shadow-sm);
}
.program-list li{
  display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--bg-soft); font-size:15px;
}
.program-list li:last-child{ border-bottom:none; }
.program-list b{
  color:var(--blue); font-family:var(--display); font-weight:900; font-size:14px; flex:none;
  background:var(--blue-tint); border-radius:8px; padding:2px 9px;
}

/* ---- уровни / ступени на странице программы ---- */
.level-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; display:grid; grid-template-columns:auto 1fr; gap:22px; align-items:start;
  box-shadow:var(--shadow-sm);
}
.level-badge{
  font-family:var(--display); font-weight:900; font-size:15px;
  background:var(--blue); color:var(--white); border-radius:14px; padding:12px 16px; white-space:nowrap;
}
.level-card:nth-child(2) .level-badge{ background:var(--yellow); color:var(--ink); }
.level-card:nth-child(3) .level-badge{ background:var(--green); }
.level-card:nth-child(4) .level-badge{ background:var(--coral); }
.level-card h3{ font-size:20px; margin-bottom:6px; }
.level-card p{ margin:0; font-size:15px; }

/* ---- testimonials ---- */
/* ---- testimonials: horizontal scroller of vertical cards ---- */
.testi-scroller{
  display:flex; gap:18px; overflow-x:auto; padding:4px 4px 18px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; scroll-behavior:smooth;
}
.testi-scroller::-webkit-scrollbar{ display:none; }
.testi-scroller .testi-card{ flex:0 0 268px; scroll-snap-align:start; }
/* carousel wrapper + arrows */
.testi-wrap{ position:relative; }
.testi-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:46px; height:46px; border-radius:50%; border:1px solid var(--line);
  background:var(--white); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px -10px rgba(14,27,51,.32);
  transition:background .15s, color .15s, opacity .15s, transform .15s;
}
.testi-arrow:hover{ background:var(--blue); color:var(--white); border-color:var(--blue); }
.testi-arrow.prev{ left:-14px; }
.testi-arrow.next{ right:-14px; }
.testi-arrow[disabled]{ opacity:0; pointer-events:none; }
/* fade edges so cut cards look intentional */
.testi-wrap::before, .testi-wrap::after{
  content:''; position:absolute; top:0; bottom:18px; width:44px; z-index:3; pointer-events:none;
}
.testi-wrap::before{ left:0; background:linear-gradient(90deg,var(--bg-soft),transparent); }
.testi-wrap::after{ right:0; background:linear-gradient(270deg,var(--bg-soft),transparent); }
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.testi-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-sm);
}
.testi-video{ position:relative; aspect-ratio:9/16; background:var(--ink); }
.testi-video iframe{ width:100%; height:100%; border:0; display:block; }
.testi-link{ display:block; position:relative; overflow:hidden; }
.testi-link img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.testi-link:hover img{ transform:scale(1.04); }
.testi-play{
  position:absolute; inset:0; margin:auto; width:56px; height:56px; border-radius:50%;
  background:rgba(217,58,43,.95); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px -6px rgba(0,0,0,.5); transition:transform .2s ease;
}
.testi-link:hover .testi-play{ transform:scale(1.1); }
.testi-name{ padding:16px 18px; font-weight:800; font-size:15px; display:flex; align-items:center; gap:10px; }
.testi-avatar{ width:32px; height:32px; border-radius:50%; background:var(--blue-tint); color:var(--blue); display:flex; align-items:center; justify-content:center; font-family:var(--display); font-weight:900; font-size:13px; flex:none; }

/* ---- quote (как цитата основателя у AAG) ---- */
.quote-panel{ max-width:820px; margin:0 auto; text-align:center; }
.quote-panel blockquote{
  margin:0; font-family:var(--display); font-weight:700; font-size:clamp(20px,2.6vw,28px);
  color:var(--ink); line-height:1.35; letter-spacing:-.01em;
}
.quote-panel blockquote::before{ content:'« '; color:var(--blue); }
.quote-panel blockquote::after{ content:' »'; color:var(--blue); }
.quote-author{ margin-top:20px; font-size:14px; color:var(--ink-soft); font-weight:600; }

/* ---- blog ---- */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.blog-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:28px; transition:transform .15s ease, box-shadow .15s ease; }
.blog-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.blog-card .cat{
  display:inline-block; font-size:12px; font-weight:800; color:var(--blue); background:var(--blue-tint);
  padding:5px 11px; border-radius:999px; text-transform:uppercase; letter-spacing:.04em;
}
.blog-card:nth-child(2) .cat{ color:#B0821A; background:var(--yellow-tint); }
.blog-card:nth-child(3) .cat{ color:var(--green); background:var(--green-tint); }
.blog-card h3{ font-size:18px; margin:14px 0 8px; }
.blog-soon{
  border:1.5px dashed var(--line); border-radius:var(--radius); padding:36px; text-align:center;
  color:var(--ink-soft); background:var(--white);
}

/* ---- FAQ accordion ---- */
.faq-list{ display:grid; gap:12px; }
.faq-item{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; }
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:22px 24px; background:none; border:none; width:100%; text-align:left;
  font-family:var(--display); font-size:17px; color:var(--ink); font-weight:800;
}
.faq-q .plus{ flex:none; width:34px; height:34px; border-radius:10px; background:var(--blue-tint); position:relative; transition:background .2s; }
.faq-q .plus::before, .faq-q .plus::after{ content:''; position:absolute; background:var(--blue); border-radius:2px; transition:transform .2s ease, opacity .2s; }
.faq-q .plus::before{ width:14px; height:2.5px; top:16px; left:10px; }
.faq-q .plus::after{ width:2.5px; height:14px; left:16px; top:10px; }
.faq-item.open .plus::after{ transform:rotate(90deg); opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a p{ padding:0 24px 22px; font-size:15px; margin:0; }
.faq-item.open .faq-a{ max-height:420px; }

/* ---- CTA / contact ---- */
.cta-panel{
  background:var(--blue); color:var(--white); border-radius:var(--radius-lg); padding:56px;
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
  position:relative; overflow:hidden;
}
.cta-panel::before{
  content:''; position:absolute; right:-120px; top:-120px; width:340px; height:340px; border-radius:50%;
  background:rgba(255,255,255,.08);
}
.cta-panel::after{
  content:''; position:absolute; left:-80px; bottom:-140px; width:280px; height:280px; border-radius:50%;
  background:rgba(255,255,255,.06);
}
.cta-panel > *{ position:relative; z-index:1; }
.cta-panel h2{ color:var(--white); font-size:clamp(26px,3.2vw,36px); }
.cta-panel p{ color:#D7E0FF; }
.cta-panel .eyebrow{ background:rgba(255,255,255,.14); color:var(--white); }
.contact-form{ display:grid; gap:12px; }
.contact-form input{
  width:100%; padding:16px 18px; border-radius:14px; border:none;
  background:var(--white); color:var(--ink); font:inherit; font-size:15px; font-weight:600;
}
.contact-form input::placeholder{ color:var(--ink-faint); font-weight:500; }
.contact-form .btn-yellow{ border-radius:14px; }
.form-note{ font-size:13.5px; color:#D7E0FF; margin-top:8px; }
.form-success{ font-size:13px; }

/* ---- footer ---- */
.site-footer{ background:var(--bg-soft); border-top:1px solid var(--line); padding:60px 0 28px; margin-top:48px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.footer-col h4{ font-family:var(--sans); font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin-bottom:14px; font-weight:800; }
.footer-col li{ margin-bottom:10px; font-size:14.5px; font-weight:600; color:var(--ink-soft); }
.footer-col a:hover{ color:var(--blue); }
.footer-social{ display:flex; gap:12px; margin-top:16px; }
.footer-social a{
  width:42px; height:42px; border-radius:13px; background:var(--white); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft);
  transition:border-color .15s, color .15s, transform .15s;
}
.footer-social a:hover{ border-color:var(--blue); color:var(--blue); transform:translateY(-2px); }
.footer-social svg{ display:block; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--ink-faint); padding-top:24px; border-top:1px solid var(--line); }

/* ---- breadcrumb / page hero ---- */
.page-hero{ padding:60px 0 44px; background:linear-gradient(180deg,var(--bg-tint) 0%, var(--bg) 100%); }
.page-hero h1{ font-size:clamp(30px,4.2vw,48px); }
.crumbs{ font-size:13px; color:var(--ink-faint); margin-bottom:18px; font-weight:600; }
.crumbs a:hover{ color:var(--blue); }

/* ---- legacy aliases (страницы, свёрстанные ранее) ---- */
.grid-bg{ background:transparent; }
.margin-block{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; box-shadow:var(--shadow-sm);
}
.trust-bar{ background:var(--ink); color:var(--white); padding:30px 0; }
.trust-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; text-align:center; }
.trust-item b{ display:block; font-family:var(--display); font-weight:900; font-size:28px; }
.trust-item span{ font-size:13px; color:#AEB9D0; }
.notebook-card{ background:var(--white); border-radius:var(--radius); border:1px solid var(--line); padding:32px; box-shadow:var(--shadow-sm); }
.notebook-card .tag, .tag{
  display:inline-block; background:var(--yellow-tint); color:#8A6412; font-weight:800; font-size:12px; padding:6px 12px; border-radius:999px;
}
.check-row{ display:flex; align-items:flex-start; gap:12px; margin:12px 0; }
.check-row p{ margin:0; font-size:14.5px; }
.check-mark{ width:22px; height:22px; flex:none; }
.check-mark path{ fill:none; stroke:var(--green); stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; }

/* ---- responsive ---- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ min-height:0; margin-top:24px; }
  .bubble-1{ left:0; } .bubble-2{ right:0; }
  .card-grid, .steps-grid{ grid-template-columns:repeat(2,1fr); }
  .who-list{ grid-template-columns:1fr; }
  .program-panel{ grid-template-columns:1fr; padding:32px; }
  .blog-grid{ grid-template-columns:repeat(2,1fr); }
  .cta-panel{ grid-template-columns:1fr; padding:38px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stats-grid{ justify-content:space-around; }
}
@media (max-width: 860px){
  /* backdrop-filter cheklovni yaratadi — mobil menyu uchun o'chiramiz */
  .site-header{ backdrop-filter:none; background:var(--white); }
  .nav-links{
    position:fixed; left:0; right:0; top:64px; bottom:0;
    background:var(--white); flex-direction:column; align-items:stretch; justify-content:flex-start;
    padding:24px 24px 40px; gap:0;
    transform:translateX(100%); transition:transform .25s ease;
    z-index:120; overflow-y:auto; box-shadow:none;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{
    display:block; width:100%; padding:17px 4px; font-size:17px; color:var(--ink);
    border-bottom:1px solid var(--line);
  }
  .nav-links a:last-child{ border-bottom:none; }
  .nav-toggle{ display:block; position:relative; z-index:130; }
  .nav-toggle[aria-expanded="true"] span{ background:transparent; }
  .nav-toggle[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after{ top:0; transform:rotate(-45deg); }
  body.nav-open{ overflow:hidden; }
  .header-actions .phone-link{ display:none; }
  .header-actions .btn-login{ display:none; }
  .site-header{ z-index:140; }
  .card-grid, .steps-grid{ grid-template-columns:1fr; }
  .blog-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .section{ padding:60px 0; }
  .testi-arrow{ width:40px; height:40px; }
  .testi-arrow.prev{ left:2px; }
  .testi-arrow.next{ right:2px; }
  .testi-scroller .testi-card{ flex:0 0 232px; }
  .level-card{ grid-template-columns:1fr; }
}

/* ---- MODAL (ariza formasi) ---- */
.modal{
  position:fixed; inset:0; z-index:200; display:none;
  align-items:center; justify-content:center; padding:20px;
  background:rgba(14,27,51,.55); backdrop-filter:blur(4px);
}
.modal.open{ display:flex; animation:modalFade .18s ease; }
@keyframes modalFade{ from{opacity:0} to{opacity:1} }
.modal-box{
  background:var(--white); border-radius:24px; width:100%; max-width:460px;
  padding:36px 34px 30px; position:relative; box-shadow:0 40px 80px -30px rgba(14,27,51,.5);
  animation:modalUp .22s cubic-bezier(.2,.8,.3,1);
  max-height:92vh; overflow-y:auto;
}
@keyframes modalUp{ from{transform:translateY(18px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-close{
  position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:12px;
  background:var(--bg-soft); border:none; color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center; font-size:20px; line-height:1;
  transition:background .15s, color .15s;
}
.modal-close:hover{ background:var(--blue-tint); color:var(--blue); }
.modal-box h3{ font-size:24px; margin-bottom:6px; padding-right:40px; }
.modal-box .modal-sub{ font-size:14.5px; color:var(--ink-soft); margin-bottom:22px; }
.modal-box .contact-form input{
  border:1px solid var(--line); background:var(--bg-soft); color:var(--ink);
}
.modal-box .contact-form input:focus{ outline:none; border-color:var(--blue); background:var(--white); }
.modal-perks{ display:grid; gap:9px; margin:18px 0 4px; }
.modal-perks li{ display:flex; gap:10px; align-items:center; font-size:13.5px; color:var(--ink-soft); font-weight:600; }
.modal-perks .tick{
  width:20px; height:20px; border-radius:6px; background:var(--green-tint); color:var(--green);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex:none;
}
.modal-fine{ font-size:12px; color:var(--ink-faint); text-align:center; margin-top:12px; }
.hp-field{
  position:absolute !important; left:-9999px !important; width:1px; height:1px;
  opacity:0; pointer-events:none;
}
.form-error{
  display:none; background:var(--coral-tint); color:#B03A22; font-size:13.5px; font-weight:600;
  padding:10px 14px; border-radius:10px; margin-top:4px;
}
.contact-form button:disabled{ opacity:.65; cursor:wait; }

/* ---- Thank-you sahifa ---- */
.thanks-wrap{ padding:70px 0 90px; text-align:center; }
.thanks-icon{
  width:88px; height:88px; border-radius:28px; background:var(--green-tint); color:var(--green);
  display:flex; align-items:center; justify-content:center; margin:0 auto 26px;
}
.thanks-wrap h1{ font-size:clamp(28px,3.8vw,42px); margin-bottom:14px; }
.thanks-wrap > .container > p{ max-width:520px; margin:0 auto 12px; font-size:17px; }
.thanks-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:32px; }
.btn-tg{ background:#229ED9; color:#fff; box-shadow:0 14px 28px -12px rgba(34,158,217,.6); }
.btn-tg:hover{ background:#1B8CC2; transform:translateY(-2px); }
.thanks-next{
  max-width:720px; margin:52px auto 0; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:32px; text-align:left;
}
.thanks-next h3{ font-size:19px; margin-bottom:16px; }
.thanks-steps{ display:grid; gap:14px; }
.thanks-steps li{ display:flex; gap:14px; align-items:flex-start; font-size:15px; color:var(--ink-soft); }
.thanks-steps b{
  flex:none; width:28px; height:28px; border-radius:9px; background:var(--blue-tint); color:var(--blue);
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:900;
}
@media (max-width:520px){
  .modal-box{ padding:30px 22px 24px; border-radius:20px; }
  .modal-box h3{ font-size:21px; }
}

/* ==========================================================
   MAQOLA (blog article)
   ========================================================== */
.article-hero{ padding:48px 0 0; background:linear-gradient(180deg,var(--bg-tint) 0%, var(--bg) 100%); }
.article-head{ max-width:780px; margin:0 auto; }
.article-head h1{ font-size:clamp(28px,3.8vw,44px); margin-bottom:16px; }
.article-meta{
  display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  font-size:13.5px; color:var(--ink-faint); font-weight:600; margin-bottom:26px;
}
.article-meta .cat{
  background:var(--blue-tint); color:var(--blue); padding:5px 12px; border-radius:999px;
  text-transform:uppercase; letter-spacing:.04em; font-size:12px; font-weight:800;
}
.article-cover{
  max-width:980px; margin:0 auto; border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow); border:1px solid var(--line);
}
.article-cover img{ width:100%; aspect-ratio:16/9; object-fit:cover; }

.article-body{ max-width:760px; margin:0 auto; padding:48px 0 20px; }
.article-body > p{ font-size:17px; line-height:1.72; color:var(--ink-soft); margin-bottom:1.2em; }
.article-body h2{ font-size:clamp(22px,2.6vw,30px); margin:44px 0 14px; }
.article-body h3{ font-size:20px; margin:32px 0 10px; }
.article-body .lead{ font-size:18.5px; color:var(--ink); font-weight:500; }
.article-body strong{ color:var(--ink); font-weight:700; }

/* kelishik / case block */
.case-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 28px; margin:22px 0; box-shadow:var(--shadow-sm);
  border-left:4px solid var(--blue);
}
.case-card:nth-of-type(2n){ border-left-color:var(--yellow); }
.case-card:nth-of-type(3n){ border-left-color:var(--green); }
.case-card h3{ margin:0 0 4px; font-size:21px; }
.case-card .uz{ font-size:14px; color:var(--ink-faint); font-weight:700; margin-bottom:14px; }
.case-row{ display:flex; gap:12px; padding:9px 0; font-size:15.5px; align-items:flex-start; }
.case-row b{ flex:none; min-width:86px; font-size:13px; color:var(--ink-faint); font-weight:800; text-transform:uppercase; letter-spacing:.03em; padding-top:2px; }
.case-row span{ color:var(--ink-soft); }
.case-q{ display:inline-block; background:var(--bg-soft); padding:4px 11px; border-radius:8px; font-weight:700; color:var(--ink); margin-right:6px; }
.case-ex{ background:var(--bg-soft); border-radius:12px; padding:14px 16px; margin-top:12px; }
.case-ex p{ margin:0 0 7px; font-size:15px; color:var(--ink); }
.case-ex p:last-child{ margin:0; }
.case-ex .tr{ color:var(--ink-faint); font-size:14px; }
.case-note{
  display:flex; gap:10px; align-items:flex-start; margin-top:12px;
  font-size:14px; color:var(--ink-soft); background:var(--yellow-tint); padding:11px 14px; border-radius:10px;
}
.case-note b{ color:#8A6412; flex:none; }

/* tips list */
.tips-list{ display:grid; gap:14px; margin:22px 0; }
.tips-list li{
  display:flex; gap:14px; align-items:flex-start;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px 20px;
}
.tips-list .n{
  flex:none; width:30px; height:30px; border-radius:9px; background:var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:900; font-size:14px;
}
.tips-list p{ margin:0; font-size:15px; }

/* end-of-article CTA */
.article-cta{
  background:var(--blue); color:var(--white); border-radius:var(--radius-lg);
  padding:40px; text-align:center; margin:44px auto 0; max-width:760px;
}
.article-cta h3{ color:var(--white); font-size:24px; margin-bottom:10px; }
.article-cta p{ color:#D7E0FF; margin-bottom:22px; }

/* blog cards with cover */
.blog-card{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
.blog-thumb{ display:block; aspect-ratio:16/9; overflow:hidden; background:var(--bg-soft); }
.blog-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.blog-card:hover .blog-thumb img{ transform:scale(1.05); }
.blog-card-body{ padding:22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.blog-card-body h3{ font-size:18px; margin:12px 0 8px; }
.blog-card-body p{ font-size:14.5px; flex:1; }
.blog-more{ font-weight:800; color:var(--blue); font-size:14.5px; margin-top:10px; }
@media (max-width:720px){
  .article-body{ padding:34px 0 16px; }
  .case-card{ padding:22px 20px; }
  .case-row{ flex-direction:column; gap:4px; }
  .case-row b{ min-width:0; }
  .article-cta{ padding:30px 22px; }
}

/* ---- YouTube facade: tashqi so'rovlarsiz, faqat bosilganda yuklanadi ---- */
.testi-facade{
  position:relative; display:block; width:100%; border:0; padding:0; cursor:pointer;
  background:linear-gradient(150deg,#1B2540 0%,#0E1B33 60%,#16233F 100%);
  overflow:hidden;
}
.testi-facade::before{
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 50% 42%, rgba(46,91,255,.30), transparent 62%);
}
.testi-facade::after{
  content:''; position:absolute; left:50%; top:50%; width:150%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
  transform:translate(-50%,-50%) rotate(-24deg);
}
.tf-play{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:60px; height:60px; border-radius:50%; background:#FF0033; color:#fff;
  display:flex; align-items:center; justify-content:center; z-index:2;
  box-shadow:0 10px 26px -8px rgba(0,0,0,.6); transition:transform .2s ease, background .2s ease;
}
.testi-facade:hover .tf-play{ transform:translate(-50%,-50%) scale(1.12); background:#E6002E; }
.testi-facade iframe{ width:100%; height:100%; border:0; display:block; }
