/* =========================================================
   OA Exams — main stylesheet
   Brand: blue #0173BA, teal #19C6B7, navy #1D2746
   ========================================================= */
:root {
  --blue: #0173ba;
  --blue-600: #0162a0;
  --blue-700: #014f82;
  --blue-50: #e8f3fb;
  --teal: #19c6b7;
  --teal-600: #12a99c;
  --navy: #1d2746;
  --navy-900: #111831;
  --ink: #1f2937;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f6f8fb;
  --bg-header: #f3f5f6;
  --dark: #161616;
  --dark-2: #1f1f1f;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -20px rgba(1, 60, 110, .35);
  --container: 1200px;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
/* the hidden attribute must always win over component display rules (e.g. .exam-card { display: flex }) */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--blue); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.text-center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); }
.section-lead { font-size: 17px; max-width: 720px; color: var(--muted); }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.head-icon { width: 92px; opacity: .85; margin: 0 auto 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.2;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  text-align: center;
}
.btn svg.i { font-size: 18px; transition: transform .2s; }
.btn:hover svg.i.arrow { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(1, 115, 186, .6); }
.btn-primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(25, 198, 183, .6); }
.btn-teal:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb956; color: #fff; transform: translateY(-2px); }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #1a88bd; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.guide-more-wrap { text-align: center; margin: 32px 0 8px; }
.guide-more-wrap .btn[hidden] { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--blue-700), var(--blue) 50%, var(--blue-700));
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.topbar a { color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; text-align: center; }
.topbar a:hover { color: #e6f6ff; }
.topbar svg.i { font-size: 18px; }
.topbar u { text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 245, 246, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -10px rgba(16, 24, 40, .2); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo img { height: 68px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy);
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: rgba(1, 115, 186, .07); }
.header-social { display: flex; gap: 6px; }
.header-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--blue); font-size: 19px; transition: background .2s, color .2s, transform .2s;
}
.header-social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.header-cta { padding: 12px 20px; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 0;
  background: transparent; color: var(--teal); cursor: pointer; font-size: 30px; place-items: center;
}
.nav-toggle:hover { background: rgba(25,198,183,.1); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13, 20, 38, .5); opacity: 0; visibility: hidden; transition: .3s; z-index: 190; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; padding: 22px; overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head img { height: 52px; width: auto; }
.drawer-close { border: 0; background: var(--bg-soft); width: 42px; height: 42px; border-radius: 10px; font-size: 22px; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.drawer nav a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.drawer nav a:hover { color: var(--blue); }
.drawer .btn { margin-top: 22px; }
.drawer-social { display: flex; gap: 10px; margin-top: 22px; }
.drawer-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); font-size: 20px; }
.drawer-contact { margin-top: 22px; font-size: 14px; }
.drawer-contact a { display: flex; gap: 10px; align-items: center; color: var(--body); padding: 4px 0; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: min(760px, calc(100vh - 40px));
  display: flex; align-items: center; padding: 110px 0 90px;
  background: var(--navy);
}
.hero-slides, .hero-slides div { position: absolute; inset: 0; z-index: -2; }
.hero-slides div { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.hero-slides div.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 30, .55), rgba(8, 14, 30, .62) 60%, rgba(8, 14, 30, .78)); }
.hero-inner { text-align: center; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 44px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero h1 sup { font-size: .5em; vertical-align: super; line-height: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto 48px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1; margin-bottom: 14px; }
.stat-bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; margin: 0 auto 14px; max-width: 260px; }
.stat-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 4px; transition: width 2s cubic-bezier(.2,.8,.2,1); }
.in .stat-bar span { width: var(--w); }
.stat-text { font-size: 15px; color: rgba(255,255,255,.9); max-width: 240px; margin: 0 auto; line-height: 1.5; }
.hero-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }

/* Search */
.search { position: relative; }
.search form { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.search input {
  flex: 1; min-width: 0; border: 0; padding: 0 20px; height: 58px; font-size: 16px; font-family: var(--font-body);
  color: var(--ink); outline: none; background: transparent;
}
.search button { border: 0; background: var(--blue); color: #fff; width: 62px; font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.search button:hover { background: var(--blue-700); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: 340px; overflow-y: auto; z-index: 50; text-align: left; display: none; padding: 6px;
}
.search-results.open { display: block; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.35; }
.search-results a:hover, .search-results a.active { background: var(--blue-50); }
.search-results .code { flex: none; font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--blue); background: var(--blue-50); padding: 4px 8px; border-radius: 6px; min-width: 56px; text-align: center; }
.search-results a:hover .code, .search-results a.active .code { background: #fff; }
.search-results .cat { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.search-results .empty { padding: 14px; color: var(--muted); font-size: 14px; }
.hero-actions .btn { height: 58px; font-size: 16px; }

/* ---------- Popular exams ---------- */
.disclaimer { color: var(--blue); font-weight: 600; font-family: var(--font-head); margin: 0 auto; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 30px; }
.cat-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 10px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; display: inline-flex; gap: 8px; align-items: center;
}
.cat-tabs button span { font-size: 12px; background: var(--bg-soft); color: var(--muted); padding: 1px 8px; border-radius: 999px; }
.cat-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.cat-tabs button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-tabs button.active span { background: rgba(255,255,255,.2); color: #fff; }
.cat-panel {
  background: #2f2f2f url("../img/hero-1.jpg") center/cover; position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 28px; isolation: isolate; box-shadow: var(--shadow);
}
.cat-panel::before { content: ""; position: absolute; inset: 0; background: rgba(28, 28, 30, .93); z-index: -1; }
.cat-panel h3 {
  margin: 0; background: linear-gradient(90deg, var(--blue-700), var(--blue)); color: #fff; text-align: center;
  font-size: clamp(22px, 2.6vw, 30px); padding: 16px; letter-spacing: 0;
}
.exam-list { list-style: none; margin: 0; padding: 28px 34px 32px; columns: 3 260px; column-gap: 36px; }
.exam-list li { break-inside: avoid; margin-bottom: 4px; }
.exam-list a {
  display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; margin: 0 -10px; border-radius: 8px;
  color: #f1f1f1; font-size: 15px; line-height: 1.5; font-weight: 500;
}
.exam-list a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 9px; transition: transform .2s; }
.exam-list a:hover { background: rgba(255,255,255,.07); color: #fff; }
.exam-list a:hover::before { transform: scale(1.5); }
.exam-list b { color: #fff; white-space: nowrap; }
.exam-list a[target="_blank"]::after { content: "↗"; font-size: 12px; color: rgba(255,255,255,.45); margin-left: 2px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: stretch; }
.about-media { position: relative; padding: 0 24px 24px 0; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 100%; min-height: 320px; object-fit: cover; position: relative; }
.about-media::before { content: ""; position: absolute; inset: 24px 0 0 24px; border: 3px solid var(--teal); border-radius: var(--radius-lg); }
.about-badge {
  position: absolute; left: -18px; bottom: 52px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); z-index: 1;
  display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.about-badge .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 28px; flex: none; }
.about-badge strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 15px; line-height: 1.3; }
.about-badge span { font-size: 13px; color: var(--muted); }
.about-text p { text-align: justify; hyphens: auto; }
.guarantee {
  display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--blue-50); border-left: 4px solid var(--blue);
  font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 18px; letter-spacing: .01em; text-transform: uppercase; line-height: 1.3;
}
.guarantee svg.i { font-size: 40px; color: var(--blue); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 22px 0 0; }
.about-points li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink); }
.about-points svg.i { color: var(--teal); font-size: 20px; }

/* ---------- Benefits (dark) ---------- */
.benefits { background: var(--dark); color: #cfcfcf; position: relative; overflow: hidden; }
.benefits::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(1,115,186,.35), transparent 65%); }
.benefits-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: stretch; position: relative; }
.benefits h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 36px; }
.benefit { display: flex; gap: 20px; margin-bottom: 30px; }
.benefit:last-child { margin-bottom: 0; }
.benefit .ico {
  flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 0 0 6px rgba(1,115,186,.18);
}
.benefit h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.benefit p { margin: 0; font-size: 15.5px; color: #bdbdbd; }
.benefits-media { position: relative; display: flex; flex-direction: column; gap: 20px; }
.benefits-media img { border-radius: var(--radius-lg); width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.benefits-media .float-card {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 26px 30px; color: #fff;
}
.fc-top { display: flex; align-items: center; gap: 20px; }
.float-card .big { font-family: var(--font-head); font-size: clamp(60px, 6vw, 84px); font-weight: 800; color: #4db5f0; line-height: .9; letter-spacing: -.04em; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 24px; line-height: 1.2; color: #fff; }
.float-card small { display: block; font-size: 15px; color: #bdbdbd; line-height: 1.4; margin-top: 4px; }
.fc-points { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; font-size: 15px; color: #d6d6d6; }
.fc-points li { display: flex; align-items: center; gap: 10px; }
.fc-points svg.i { color: var(--teal); font-size: 18px; }
/* ---------- Partners ---------- */
.partners { background: var(--bg-soft); }
.marquee { overflow: hidden; margin-top: 40px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-card { width: 210px; height: 110px; background: #fff; border-radius: var(--radius); display: grid; place-items: center; padding: 22px; box-shadow: var(--shadow-sm); flex: none; }
.logo-card img { max-height: 62px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.logo-card:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ---------- Testimonials ---------- */
.testimonials {
  background: linear-gradient(135deg, #2f86c8, var(--blue) 55%, #0a5f9c); color: #fff; position: relative; overflow: hidden;
}
.testimonials::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.6px), radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.4px);
  background-size: 46px 46px, 90px 90px; background-position: 0 0, 23px 31px;
}
.testimonials .eyebrow { color: #e6f4ff; }
.testimonials .section-title { color: #fff; }
.slider { position: relative; margin: 44px auto 0; }
.slides { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.slide {
  display: none;
  background: #fff; color: var(--body); border-radius: var(--radius-lg); padding: 34px 34px; box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--teal); grid-template-columns: 104px 1fr; gap: 24px; align-items: start;
}
.slide.on { display: grid; animation: slidein .5s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.who { text-align: center; }
.avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 30px;
  box-shadow: 0 10px 24px -10px rgba(1,115,186,.7); border: 4px solid #fff; outline: 1px solid var(--line);
}
.who strong { font-family: var(--font-head); color: var(--navy); font-size: 15px; display: block; }
.who span { font-size: 12.5px; color: var(--muted); }
.slide h3 { font-size: 22px; margin-bottom: 10px; color: var(--navy); }
.slide blockquote { margin: 0 0 14px; font-style: italic; font-size: 16px; line-height: 1.75; }
.stars { color: #f5b301; display: flex; gap: 3px; font-size: 18px; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.slider-nav button.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 20px; transition: .2s; }
.slider-nav button.arrow:hover { background: #fff; color: var(--blue); }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .3s; }
.dots button.on { width: 28px; background: #fff; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.25fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 44px; border: 1px solid var(--line); }
.faq-tabs { background: var(--blue); display: flex; flex-direction: column; }
.faq-tabs button {
  text-align: left; border: 0; background: transparent; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 22px 26px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; gap: 14px; align-items: center; transition: background .2s; line-height: 1.4;
}
.faq-tabs button:last-child { border-bottom: 0; }
.faq-tabs button .n { flex: none; font-size: 13px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.faq-tabs button:hover { background: rgba(255,255,255,.08); }
.faq-tabs button.on { background: var(--blue-700); box-shadow: inset 4px 0 0 var(--teal); }
.faq-tabs button.on .n { background: var(--teal); }
.faq-panels { background: #fff; padding: 36px 40px; display: grid; }
.faq-panel { grid-area: 1/1; opacity: 0; visibility: hidden; transition: opacity .35s; }
.faq-panel.on { opacity: 1; visibility: visible; }
.faq-panel h3 { font-size: 22px; color: var(--navy); }
.faq-panel ul { list-style: none; padding: 0; }
.faq-panel li { display: flex; gap: 10px; margin-bottom: 10px; }
.faq-panel li svg.i { color: var(--teal); font-size: 20px; margin-top: 3px; }
.faq-q { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1820; color: #b9c3c9; padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 44px; }
.footer-logo { background: #fff; display: inline-block; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.footer-logo img { height: 54px; width: auto; }
.site-footer h4 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--teal); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9c3c9; display: inline-flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-links svg.i { color: var(--teal); font-size: 17px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; font-size: 18px; transition: .2s; }
.footer-social a:hover { background: var(--blue); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom a { color: #b9c3c9; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { font-size: 13px; color: #7f8c94; }

/* Floating */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px;
}
.chat-fab .label { background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; font-family: var(--font-head); }
.chat-fab a.fab { width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); position: relative; }
.chat-fab a.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 20px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 90px 0 80px; overflow: hidden; isolation: isolate;
  background: var(--navy) url("../img/hero-3.jpg") center 30%/cover;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(17, 24, 49, .94), rgba(1, 79, 130, .82)); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 680px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 16px; color: rgba(255,255,255,.75); list-style: none; padding: 0; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--teal); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Exam landing page ---------- */
.exam-hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 64px 0 80px;
  background: linear-gradient(130deg, var(--navy-900) 0%, var(--navy) 45%, var(--blue-700) 100%);
}
.exam-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(600px 300px at 85% 10%, rgba(25,198,183,.25), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(1,115,186,.4), transparent 70%);
}
.exam-hero .crumbs { margin-bottom: 26px; }
.exam-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.exam-hero-grid > div:first-child { display: flex; flex-direction: column; }
.exam-hero-grid .exam-tag, .exam-hero-grid .lead-more { align-self: flex-start; }
.exam-hero-grid .exam-hero-actions { margin-top: auto; }
.exam-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(25,198,183,.15); color: #7ef0e5; border: 1px solid rgba(25,198,183,.35); padding: 6px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 13px; margin-bottom: 18px; }
.exam-hero h1 { color: #fff; font-size: clamp(28px, 3.3vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.exam-hero .lead { color: rgba(255,255,255,.85); font-size: 16.5px; margin-bottom: 26px; }
.exam-hero .lead p { margin: 0 0 10px; }
.exam-hero .lead p:last-child { margin-bottom: 0; }
.exam-hero .lead.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; margin-bottom: 6px; }
.exam-hero .lead.clamp.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.lead-more { background: none; border: 0; padding: 2px 0; margin: 0 0 26px; color: var(--teal); font: 600 14.5px var(--font-head); cursor: pointer; }
.lead-more:hover { color: #7ef0e5; }
.lead-more[hidden] { display: none; }
.exam-side { display: flex; flex-direction: column; gap: 20px; }
.exam-side .mini-stats { margin: 0; flex: 1; }
.exam-hero .lead a { color: #8fd3ff; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.mini-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(4px); }
.mini-stat b { display: block; font-family: var(--font-head); font-size: 30px; color: #fff; line-height: 1; margin-bottom: 8px; }
.mini-stat .stat-bar { margin: 0 0 10px; max-width: none; height: 4px; }
.mini-stat .stat-bar span { background: var(--teal); }
.mini-stat small { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.4; display: block; }
.exam-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.exam-hero-actions .btn { padding: 15px 22px; }
.exam-visual { position: relative; }
.exam-visual img, .exam-visual .banner-fallback { border-radius: var(--radius-lg); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.exam-visual .chip {
  position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.25;
}
.exam-visual .chip .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 22px; }
.exam-visual .chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.banner-fallback {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 12px; padding: 30px; text-align: right;
  background: radial-gradient(circle at 20% 30%, rgba(25,198,183,.35), transparent 50%), linear-gradient(135deg, #0e2a52, #13366b);
  font-family: var(--font-head); color: #fff;
}
.banner-fallback .t1 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.banner-fallback .t2 { background: #fff; color: var(--navy); padding: 8px 14px; font-weight: 800; font-size: clamp(16px, 2vw, 24px); text-transform: uppercase; line-height: 1.2; max-width: 90%; }
.banner-fallback .t3 { background: rgba(255,255,255,.18); padding: 6px 12px; font-weight: 700; }

.support-strip { background: var(--blue-50); border-bottom: 1px solid #d6e8f5; }
.support-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.support-strip p { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(17px, 2vw, 21px); line-height: 1.35; }
.support-strip p span { color: var(--blue); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* an odd last card would sit alone in a two-column row -> let it span the full width */
.card-grid:not(.cols-3):not(.cols-4) > :last-child:nth-child(odd),
.topic-chips > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.info-card .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.info-card:nth-child(4n+2) .ico { background: #e3faf7; color: var(--teal-600); }
.info-card:nth-child(4n+3) .ico { background: #eef0fb; color: var(--navy); }
.info-card:nth-child(4n+4) .ico { background: #fff4e5; color: #d97706; }
.info-card h3 { font-size: 19px; margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 15.5px; }
.prose-intro { max-width: 820px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 17px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.find-grid { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 56px; row-gap: 32px; align-items: stretch; }
.find-list { display: flex; flex-direction: column; }
.find-list .feature-list { margin-top: 0; flex: 1; }
.find-media { display: flex; flex-direction: column; }
.find-head { grid-column: 1 / -1; max-width: 820px; }
.find-head .section-title { margin-bottom: 10px; }
.find-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; display: block; }
.find-media .btn { margin-top: 22px; }
/* trust points fill the height left under the button (no empty gaps; column ends level with the list) */
.find-trust { list-style: none; margin: 16px 0 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font: 500 15px var(--font-head); color: var(--ink); }
.find-trust li { display: flex; align-items: center; gap: 10px; }
.find-trust svg.i { color: var(--teal); font-size: 18px; }
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .25s; }
.feature:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.feature .num { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.feature h3 { font-size: 17px; margin: 0 0 4px; }
.feature p { margin: 0; font-size: 15px; }

.topic-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.topic { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.topic svg.i { color: var(--teal); font-size: 22px; margin-top: 2px; }
.topic h3 { font-size: 16.5px; margin: 0 0 4px; }
.topic p { margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 22px; margin-top: 44px; counter-reset: s; position: relative; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 24px 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: -18px; left: 24px;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  width: 42px; height: 36px; border-radius: 10px; display: grid; place-items: center; box-shadow: 0 8px 16px -6px rgba(1,115,186,.6);
}
.step h3 { font-size: 18px; margin: 8px 0 8px; }
.step p { margin: 0; font-size: 15px; }

/* Practice sets */
.practice { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.practice-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.practice-head .section-title { margin-bottom: 8px; }
.practice-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.pm { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm); }
.pm .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 20px; }
.pm b { font-family: var(--font-head); color: var(--navy); font-size: 20px; line-height: 1; display: block; }
.pm small { color: var(--muted); font-size: 13px; }
.sets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.set-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px 22px; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; color: var(--body);
}
.set-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(.25); transform-origin: left; transition: transform .35s; }
.set-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--body); }
.set-card:hover::before { transform: none; }
.set-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.set-no { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.set-card:hover .set-no { color: var(--blue); }
.badge { font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: #e3faf7; color: var(--teal-600); }
.set-card h3 { font-size: 18px; margin-bottom: 6px; }
.set-card p { font-size: 14.5px; margin-bottom: 18px; flex: 1; line-height: 1.55; }
.set-card .go { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--blue); padding-top: 14px; border-top: 1px dashed var(--line); }
.set-card .go span.arrow-c { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; transition: .25s; }
.set-card:hover .go span.arrow-c { background: var(--blue); color: #fff; transform: translateX(3px); }
.practice-note { margin-top: 26px; text-align: center; font-size: 14px; color: var(--muted); }

/* Article (dive deeper) */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose { font-size: 16.5px; color: #3f4753; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.prose h3, .prose h4 { font-size: 21px; margin: 32px 0 12px; color: var(--navy); }
.prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); }
.prose li > p { margin: 0 0 6px; }
.prose li > p:last-child { margin-bottom: 0; }
.prose strong, .prose b { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); background: #fff; }
.side-card h3 { font-size: 18px; margin-bottom: 10px; }
.side-card p { font-size: 15px; }
.side-card.dark { background: linear-gradient(150deg, var(--navy), var(--blue-700)); color: rgba(255,255,255,.85); border: 0; }
.side-card.dark h3 { color: #fff; }
.side-card .btn { width: 100%; margin-top: 8px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: flex; gap: 10px; padding: 10px 0; color: var(--ink); font-size: 14.5px; line-height: 1.4; align-items: baseline; }
.side-list a b { color: var(--blue); font-family: var(--font-head); font-size: 13px; flex: none; min-width: 42px; }
.side-list a:hover { color: var(--blue); }
.check-list { list-style: none; padding: 0; margin: 0 0 6px; }
.check-list li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 14.5px; }
.check-list svg.i { color: var(--teal); margin-top: 4px; }

/* CTA band */
.cta-band {
  position: relative; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(120deg, var(--blue-700), var(--blue) 50%, #0b8fc9); padding: 56px 60px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -100px; top: -140px; background: rgba(255,255,255,.08); z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; left: 38%; bottom: -150px; background: rgba(25,198,183,.25); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 10px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.related-grid[data-n="1"], .related-grid[data-n="2"], .related-grid[data-n="3"] { grid-template-columns: repeat(var(--n), minmax(0, 290px)); justify-content: center; }
.exam-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--body); transition: .25s; }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--body); border-color: transparent; }
.exam-card .thumb { aspect-ratio: 3/2; background: var(--navy); overflow: hidden; }
.exam-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.exam-card:hover .thumb img { transform: scale(1.05); }
.exam-card .thumb .banner-fallback { height: 100%; padding: 16px; gap: 6px; border-radius: 0; box-shadow: none; }
.exam-card .thumb .banner-fallback .t1 { font-size: 16px; }
.exam-card .thumb .banner-fallback .t2 { font-size: 13px; }
.exam-card .thumb .banner-fallback .t3 { font-size: 12px; }
.exam-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.exam-card .code { font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--blue); letter-spacing: .04em; }
.exam-card h3 { font-size: 16px; margin: 4px 0 10px; line-height: 1.35; flex: 1; }
.exam-card .more { font-size: 14px; font-weight: 600; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-head); }

/* Exams guide page */
.guide-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.guide-tools .search { flex: 1 1 380px; max-width: 520px; }
.guide-tools .search form { box-shadow: var(--shadow); border: 1px solid var(--line); }
.guide-tools .cat-tabs { margin: 0; justify-content: flex-start; }
.guide-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.no-results { display: none; text-align: center; padding: 60px 20px; color: var(--muted); }
.no-results.show { display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-grid > div:first-child { display: flex; flex-direction: column; }
.contact-grid .contact-cards { flex: 1; grid-auto-rows: 1fr; margin-top: 10px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--body); transition: .25s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--body); }
.contact-card .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 28px; flex: none; }
.contact-card h3 { font-size: 18px; margin: 0 0 2px; }
.contact-card p { margin: 0; font-size: 14.5px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h2 { font-size: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 13px 14px; font-size: 15px; font-family: var(--font-body); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1,115,186,.12); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; display: none; }
.alert.show { display: block; }
.alert-ok { background: #e7f8ef; color: #106b3c; border: 1px solid #b5e6cb; }
.alert-err { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }

/* Legal */
.legal h2 { font-size: 24px; margin-top: 38px; }
.legal { font-size: 16.5px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-family: var(--font-head); font-size: clamp(90px, 16vw, 180px); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-social { display: none; }
  .sets { grid-template-columns: repeat(3, 1fr); }
  .guide-grid, .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .section { padding: 76px 0; }
  .about-grid, .benefits-grid, .split, .exam-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 640px; }
  .benefits-media { max-width: 640px; }
  .exam-visual, .exam-side { max-width: 620px; }
  .find-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .find-media { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps > :last-child:nth-child(odd), .card-grid.cols-3 > :last-child:nth-child(odd), .card-grid.cols-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .about-media img { height: auto; min-height: 0; aspect-ratio: 1024/717; }
  .slides { grid-template-columns: 1fr; }
  .slider { max-width: 760px; }
  .exam-hero-grid .exam-hero-actions { margin-top: 0; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 36px; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 76px; }
  body { font-size: 15.5px; }
  .logo img { height: 54px; }
  .section { padding: 60px 0; }
  .topbar { font-size: 12.5px; }
  .hero { padding: 70px 0 60px; min-height: 0; }
  .hero h1 { margin-bottom: 30px; }
  .hero-stats { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .hero-actions { grid-template-columns: 1fr; }
  .exam-list { padding: 20px 22px 24px; }
  .about-badge { left: 12px; right: auto; bottom: 28px; padding: 10px 14px; gap: 10px; max-width: 240px; }
  .about-badge .ico { width: 40px; height: 40px; font-size: 22px; }
  .about-badge strong { font-size: 14px; }
  .about-badge span { font-size: 12px; line-height: 1.35; display: block; }
  .about-text { margin-top: 0; }
  .about-text p { text-align: left; }
  .about-media { padding: 0 12px 12px 0; }
  .about-media::before { inset: 12px 0 0 12px; }
  .about-points { grid-template-columns: 1fr; }
  .guarantee { font-size: 15px; }
  .slide { grid-template-columns: 1fr; padding: 30px 24px; gap: 14px; text-align: center; }
  .slide .stars { justify-content: center; }
  .faq-tabs { display: none; }
  .faq-panels { padding: 8px 0; display: block; }
  .faq-panel { opacity: 1; visibility: visible; border-bottom: 1px solid var(--line); }
  .faq-panel h3 { display: none; }
  .faq-q { display: flex; width: 100%; text-align: left; justify-content: space-between; gap: 12px; align-items: center; background: none; border: 0; padding: 18px 20px; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); cursor: pointer; }
  .faq-q svg.i { transition: transform .3s; color: var(--blue); }
  .faq-panel .faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 20px; }
  .faq-panel.open .faq-a { max-height: 600px; padding-bottom: 18px; }
  .faq-panel.open .faq-q svg.i { transform: rotate(180deg); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .page-hero { padding: 60px 0 54px; }
  .exam-hero { padding: 40px 0 60px; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .mini-stat { padding: 12px 10px; }
  .mini-stat b { font-size: 22px; }
  .mini-stat small { font-size: 11.5px; }
  .exam-hero h1 { font-size: 27px; }
  .exam-hero .lead { font-size: 15.5px; }
  .exam-tag { font-size: 12px; }
  .exam-hero-actions .btn { flex: 1 1 100%; }
  .exam-visual .chip { position: relative; left: auto; bottom: auto; margin: -26px 14px 0; display: inline-flex; }
  .practice-meta { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
  .pm { flex-direction: column; text-align: center; gap: 6px; padding: 12px 8px; }
  .pm b { font-size: 17px; }
  .pm small { font-size: 11.5px; line-height: 1.3; display: block; }
  .section-title { font-size: 26px; }
  .support-strip .container { flex-direction: column; align-items: flex-start; }
  .card-grid, .card-grid.cols-3, .card-grid.cols-4, .topic-chips { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sets { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; border-radius: 20px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .guide-grid, .related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .chat-fab .label { display: none; }
  .chat-fab { right: 16px; bottom: 16px; }
  .to-top { right: 22px; bottom: 86px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tabs button { flex: none; }
}
@media (max-width: 480px) {
  .sets { grid-template-columns: 1fr; }
  .guide-grid, .related-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stat { display: grid; grid-template-columns: 64px 1fr; align-items: center; column-gap: 12px; }
  .mini-stat b { margin: 0; grid-row: span 2; }
  .mini-stat .stat-bar { margin: 0 0 6px; }
}

/* =========================================================
   Practice question sets (/practice/<code>/set-N/)
   ========================================================= */
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-link { background: none; border: 0; padding: 8px 4px; font: 600 14px var(--font-head); color: var(--muted); cursor: pointer; }
.btn-link:hover { color: var(--blue); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.set-card.on-request { background: var(--bg-soft); border-style: dashed; }
.set-card.on-request .badge { background: #fff4e0; color: #b26a00; }
.set-card.on-request::before { background: linear-gradient(90deg, #f0b44c, #f08a4c); }

.practice-hero { padding: 64px 0 54px; }
.practice-hero h1 { font-size: clamp(28px, 4vw, 46px); }
.practice-hero .exam-tag { margin-bottom: 16px; }
.set-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.set-tab { padding: 9px 18px; border-radius: 999px; font: 600 14px var(--font-head); color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); transition: .2s; }
.set-tab:hover { background: rgba(255,255,255,.2); color: #fff; }
.set-tab.active { background: var(--teal); border-color: var(--teal); }
.set-tab.soon { opacity: .55; }

.quiz-section { padding-top: 56px; }
.quiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.quiz { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 70px); transition: border-color .25s, box-shadow .25s; position: relative; }
.qcard::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); transition: background .25s; }
.qcard.is-correct::before { background: #16a34a; }
.qcard.is-wrong::before { background: #dc2626; }
.qcard.is-revealed::before { background: var(--blue); }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.q-no { font: 700 13px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.q-no small { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13px; }
.q-type { font: 600 12px var(--font-head); padding: 4px 10px; border-radius: 999px; background: #fff4e0; color: #b26a00; }
.q-text { color: var(--ink); font: 600 17.5px/1.55 var(--font-head); margin-bottom: 18px; }
.q-text, .opt .t, .q-ans { overflow-wrap: anywhere; min-width: 0; }
.q-text p { margin: 0 0 8px; }
.q-text p:last-child { margin: 0; }
.q-opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--body); font: 400 15.5px/1.5 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.opt .l { flex: 0 0 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); font: 700 14px var(--font-head); transition: .2s; }
.opt .t { padding-top: 3px; }
.opt:not(:disabled):hover { border-color: var(--blue); background: var(--blue-50); }
.opt:not(:disabled):hover .l { background: var(--blue); color: #fff; }
.opt:not(:disabled):active { transform: scale(.995); }
.opt:disabled { cursor: default; }
.opt.sel { border-color: var(--blue); background: var(--blue-50); }
.opt.sel .l { background: var(--blue); color: #fff; }
.opt.correct { border-color: #16a34a; background: #ecfdf3; color: #14532d; }
.opt.correct .l { background: #16a34a; color: #fff; }
.opt.missed { border-color: #16a34a; border-style: dashed; background: #f3fdf6; }
.opt.missed .l { background: #dcfce7; color: #15803d; }
.opt.wrong { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.opt.wrong .l { background: #dc2626; color: #fff; }
.q-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.q-foot:empty { display: none; }
.q-reveal { background: none; border: 0; padding: 6px 0; font: 600 14px var(--font-head); color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.q-reveal:hover { color: var(--blue-700); }
.q-reveal[hidden], .q-check[hidden] { display: none; }
.qcard.locked .q-foot { display: none; }
.q-ans { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 15px; animation: qfade .3s ease; }
.q-ans p { margin: 0 0 8px; }
.q-ans p:last-child { margin: 0; }
.q-ans b { color: var(--ink); }
.q-correct { color: #15803d; }
@keyframes qfade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.quiz-result { display: none; text-align: center; padding: 44px 30px; border-radius: var(--radius-lg); color: rgba(255,255,255,.85); background: linear-gradient(140deg, var(--navy), var(--blue-700)); }
.quiz-result.show { display: block; animation: qfade .4s ease; }
.quiz-result .eyebrow { color: #7ef0e5; }
.quiz-result h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.quiz-result h2 span { color: var(--teal); }
.quiz-result .cta-actions { justify-content: center; margin-top: 22px; }
.quiz-result .btn-outline { color: #fff; }
.quiz-result .btn-outline:hover { background: #fff; color: var(--blue); border-color: #fff; }

.quiz-side { align-self: stretch; display: flex; flex-direction: column; gap: 20px; }
.qprogress { position: sticky; top: calc(var(--header-h) + 24px); }
.qp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 6px 0 16px; }
.qp-stats div { background: var(--bg-soft); border-radius: 12px; padding: 10px 4px; }
.qp-stats b { display: block; font: 800 22px/1.2 var(--font-head); color: var(--navy); }
.qp-stats small { font-size: 12px; color: var(--muted); }
.qp-stats .ok b { color: #16a34a; }
.qp-stats .bad b { color: #dc2626; }
.track { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.track > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .4s ease; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin: 16px 0 14px; max-height: 260px; overflow: auto; }
.qgrid a { height: 34px; border-radius: 8px; display: grid; place-items: center; font: 600 13px var(--font-head); color: var(--body); background: var(--bg-soft); border: 1px solid var(--line); }
.qgrid a:hover { border-color: var(--blue); color: var(--blue); }
.qgrid a.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.qgrid a.bad { background: #dc2626; border-color: #dc2626; color: #fff; }
.qgrid a.rev { background: var(--blue-50); border-color: #b9dcf3; color: var(--blue); }
.qp-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qp-actions .btn { width: auto; margin: 0; }

.quiz-bar { display: none; }

@media (max-width: 1024px) {
  .quiz-grid { grid-template-columns: minmax(0, 1fr); }
  .quiz-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .qprogress { position: static; }
  .quiz-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(16,24,40,.2); transform: translateY(110%); transition: transform .3s ease; }
  .quiz-bar.on { transform: none; }
  .quiz-bar .container { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; font: 500 14px var(--font-head); color: var(--ink); }
  .quiz-bar .ok b { color: #16a34a; }
  .quiz-bar .track { flex: 1; }
  body.practice-page .chat-fab, body.practice-page .to-top { bottom: 74px; }
}
@media (max-width: 768px) {
  .practice-hero { padding: 44px 0 40px; }
  .practice-hero h1 { font-size: 27px; }
  .practice-hero p { font-size: 16px; }
  .set-tabs { gap: 6px; margin-top: 22px; }
  .set-tab { padding: 7px 14px; font-size: 13px; }
  .quiz-section { padding-top: 32px; }
  .quiz-side { grid-template-columns: 1fr; }
  .qcard { padding: 20px 18px; border-radius: 16px; }
  .q-text { font-size: 16.5px; }
  .opt { padding: 11px 12px; gap: 12px; font-size: 15px; }
  .opt .l { flex-basis: 28px; height: 28px; }
  .quiz-result { padding: 34px 20px; }
}
