:root {
  --navy: #102a43;
  --navy-2: #163a5f;
  --blue: #2878d0;
  --blue-dark: #1d5fa8;
  --blue-soft: #eaf4ff;
  --sky: #f4f9ff;
  --green: #15845b;
  --green-soft: #e8f7f0;
  --orange: #e76f2e;
  --ink: #172b3a;
  --muted: #5d7182;
  --line: #dbe5ed;
  --paper: #ffffff;
  --surface: #f7fafc;
  --shadow: 0 10px 30px rgba(16, 42, 67, .09);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar { background: var(--navy); color: #d9e8f5; font-size: 12px; }
.topbar .wrap { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar strong { color: white; }
.topbar a { text-decoration: underline; text-underline-offset: 2px; }
.site-header { background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-main { height: 70px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 20px; font-weight: 850; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: white; display: grid; place-items: center; position: relative; }
.brand-mark:before { content: ""; width: 13px; height: 13px; border: 2px solid white; border-radius: 50%; }
.brand-mark:after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: white; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; color: #36546b; }
.main-nav a:hover { color: var(--blue); }
.header-search { margin-left: auto; position: relative; width: 250px; }
.header-search input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 38px 10px 13px; background: var(--surface); color: var(--ink); }
.header-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 34px; border: 0; background: transparent; color: var(--blue); cursor: pointer; }
.mobile-menu { display: none; margin-left: auto; border: 0; background: none; font-size: 24px; color: var(--navy); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 9px; padding: 13px 20px; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 7px 18px rgba(40, 120, 208, .22); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: white; border: 1px solid #bfd2e2; color: var(--navy); }
.button.green { background: var(--green); color: white; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.text-link { color: var(--blue); font-weight: 750; }

.home-hero { background: linear-gradient(115deg, #e9f4ff 0%, #f8fbff 64%, #edf7ff 100%); border-bottom: 1px solid var(--line); }
.home-hero .wrap { min-height: 430px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.hero-kicker { color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.home-hero h1 { color: var(--navy); font-size: clamp(42px, 5vw, 64px); line-height: 1.04; letter-spacing: -.05em; margin: 15px 0 18px; }
.home-hero .lead { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 650px; }
.exam-search-large { display: flex; background: white; border: 1px solid #c8d9e7; border-radius: 11px; box-shadow: var(--shadow); padding: 6px; margin-top: 28px; max-width: 650px; }
.exam-search-large input { flex: 1; border: 0; outline: none; padding: 10px 12px; min-width: 0; color: var(--ink); }
.exam-search-large button { border-radius: 7px; }
.quick-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.quick-links a { color: var(--blue); font-weight: 700; }
.hero-panel { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hero-panel-head { background: var(--navy); color: white; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.hero-panel-head strong { font-size: 15px; }
.hero-panel-head span { font-size: 10px; color: #a9c6dc; text-transform: uppercase; letter-spacing: .12em; }
.hero-exam { padding: 22px; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.hero-exam:last-child { border: 0; }
.exam-icon { width: 44px; height: 44px; background: var(--blue-soft); color: var(--blue); border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.hero-exam h3 { font-size: 14px; margin: 0 0 4px; color: var(--navy); }
.hero-exam p { font-size: 11px; margin: 0; color: var(--muted); }
.status-live { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.status-soon { background: #f0f3f6; color: #6b7c8a; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.status-traffic, .status-value, .status-review { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .02em; }
.status-traffic { background: #e9f2ff; color: #1d5fa8; }
.status-value { background: #fff1e8; color: #b54d18; }
.status-review { background: #fff5d8; color: #83620b; }

.trust-strip { border-bottom: 1px solid var(--line); }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item strong { color: var(--navy); font-size: 15px; display: block; }
.trust-item span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.trust-check { width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; }

.section { padding: 76px 0; }
.section.soft { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head h2 { color: var(--navy); font-size: 32px; letter-spacing: -.035em; margin: 0 0 8px; }
.section-head p { color: var(--muted); line-height: 1.6; margin: 0; max-width: 650px; }
.eyebrow { color: var(--blue) !important; font-size: 11px; font-weight: 900; letter-spacing: .12em; margin: 0 0 9px !important; }
.exam-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.exam-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 245px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(16,42,67,.04); transition: .2s ease; }
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b5cfe4; }
.exam-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.exam-card h3 { color: var(--navy); font-size: 19px; margin: 28px 0 9px; line-height: 1.25; }
.exam-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 22px; }
.exam-card .card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.exam-card .card-footer strong { color: var(--blue); }
.exam-card .card-footer span { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.category-card .exam-icon { flex: 0 0 auto; }
.category-card h3 { margin: 1px 0 7px; color: var(--navy); font-size: 16px; }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { border-top: 3px solid var(--blue); padding-top: 20px; }
.step small { color: var(--blue); font-weight: 900; }
.step h3 { color: var(--navy); font-size: 20px; margin: 12px 0 8px; }
.step p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.editorial-note { margin-top: 28px; padding: 18px 20px; border: 1px solid #ead89c; border-radius: 11px; background: #fffaf0; color: #6b5a25; font-size: 13px; line-height: 1.65; }
.ad-slot { border: 1px dashed #b8c8d5; background: #fafcfe; border-radius: 10px; min-height: 110px; display: grid; place-items: center; text-align: center; color: #7a8d9c; font-size: 11px; }
.ad-slot strong { display: block; color: #617789; margin-bottom: 4px; }
.ad-slot[hidden] { display: none !important; }
html[data-ads="disabled"] [data-ad-placeholder] { display: none !important; }

.breadcrumb { padding: 15px 0; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--blue); }
.exam-tabs { border-top: 1px solid var(--line); background: white; }
.exam-tabs .wrap { display: flex; gap: 3px; overflow-x: auto; }
.exam-tabs a { padding: 14px 17px; color: #456176; font-size: 13px; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.exam-tabs a.active { color: var(--blue); border-color: var(--blue); }
.exam-page-hero { background: var(--blue-soft); border-bottom: 1px solid #cfe0ed; }
.exam-page-hero .wrap { display: grid; grid-template-columns: 1fr 330px; gap: 50px; padding-top: 50px; padding-bottom: 50px; align-items: center; }
.verified { color: var(--green); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.exam-page-hero h1 { color: var(--navy); font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -.045em; line-height: 1.05; margin: 13px 0 16px; }
.exam-page-hero p { color: var(--muted); line-height: 1.65; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.facts-card { background: white; border: 1px solid #c8dbe9; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.facts-card h2 { color: var(--navy); font-size: 15px; margin: 0 0 12px; }
.fact-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.fact-row strong { color: var(--navy); font-size: 17px; }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; align-items: start; }
.content-block { margin-bottom: 46px; }
.content-block h2 { color: var(--navy); font-size: 28px; letter-spacing: -.025em; margin: 0 0 12px; }
.content-block > p { color: var(--muted); line-height: 1.7; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: white; }
.tool-card h3 { color: var(--navy); font-size: 17px; margin: 18px 0 7px; }
.tool-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.tool-card a { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 800; font-size: 12px; }
.topic-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.topic-row { display: grid; grid-template-columns: 1fr 180px 54px; gap: 20px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border: 0; }
.topic-row strong { color: var(--navy); font-size: 13px; }
.topic-row small { display: block; color: var(--muted); margin-top: 4px; }
.topic-bar { height: 7px; background: #e8eff4; border-radius: 99px; overflow: hidden; }
.topic-bar i { display: block; height: 100%; width: var(--w); background: var(--blue); border-radius: 99px; }
.topic-row b { color: var(--navy); font-size: 12px; text-align: right; }
.sidebar { position: sticky; top: 90px; }
.sidebar-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.sidebar-card h3 { color: var(--navy); font-size: 16px; margin: 0 0 10px; }
.sidebar-card p, .sidebar-card li { color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-card ul { padding-left: 18px; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.source-list a { color: var(--blue); font-weight: 700; }

.library-hero { background: var(--blue-soft); border-bottom: 1px solid #cfe0ed; }
.library-hero .wrap { padding-top: 55px; padding-bottom: 55px; }
.library-hero h1 { color: var(--navy); font-size: clamp(38px, 5vw, 58px); letter-spacing: -.045em; margin: 10px 0 14px; }
.library-hero p { color: var(--muted); max-width: 760px; font-size: 17px; line-height: 1.7; }
.library-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.library-summary span { background: white; border: 1px solid #c9dce9; border-radius: 999px; padding: 8px 12px; color: var(--navy); font-size: 11px; font-weight: 750; }
.resource-stack { display: grid; gap: 22px; }
.resource-pack { scroll-margin-top: 95px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 4px 18px rgba(16,42,67,.05); overflow: hidden; }
.resource-pack-head { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 23px 25px; background: #fbfdff; border-bottom: 1px solid var(--line); }
.resource-pack-head .exam-icon { width: 52px; height: 52px; }
.resource-pack-head h2 { color: var(--navy); margin: 0 0 5px; font-size: 22px; }
.resource-pack-head p { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.5; }
.resource-pack-body { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 28px; padding: 24px 25px; }
.resource-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.resource-link { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: block; transition: .18s ease; }
.resource-link:hover { border-color: #9dbdd6; background: var(--sky); }
.resource-link small { color: var(--green); display: block; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.resource-link strong { color: var(--navy); display: block; font-size: 13px; margin-bottom: 4px; }
.resource-link span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.pack-note { border-left: 3px solid var(--blue); padding-left: 16px; }
.pack-note h3 { color: var(--navy); font-size: 13px; margin: 0 0 7px; }
.pack-note p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0 0 10px; }
.pack-note small { color: #7a8d9c; font-size: 9px; }
.source-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; font-weight: 800; }
.selection-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.selection-table th, .selection-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.selection-table th { color: var(--navy); background: #f7fafc; }
.selection-table td { color: var(--muted); }
.selection-table strong { color: var(--navy); }
.policy-hero { background: var(--blue-soft); border-bottom: 1px solid #cfe0ed; }
.policy-hero .wrap { padding-top: 52px; padding-bottom: 48px; }
.policy-hero h1 { color: var(--navy); font-size: clamp(38px, 5vw, 56px); letter-spacing: -.045em; margin: 10px 0 12px; }
.policy-hero p { color: var(--muted); max-width: 760px; line-height: 1.7; }
.policy-content { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 80px; }
.policy-content h2 { color: var(--navy); font-size: 24px; margin: 42px 0 12px; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { color: var(--navy); font-size: 17px; margin: 28px 0 9px; }
.policy-content p, .policy-content li { color: var(--muted); line-height: 1.75; font-size: 14px; }
.policy-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.policy-content .updated { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contact-card { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 22px; margin: 24px 0; }

.practice-page { min-height: 100vh; background: #f2f6f9; }
.practice-header { height: 66px; background: white; border-bottom: 1px solid var(--line); }
.practice-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.practice-header a.exit { font-size: 12px; color: var(--muted); font-weight: 700; }
.practice-shell { width: min(820px, calc(100% - 36px)); margin: 36px auto 80px; }
.practice-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 11px; }
.progress-track { height: 7px; border-radius: 99px; background: #d8e2ea; overflow: hidden; margin-bottom: 20px; }
.progress-track i { display: block; width: 20%; height: 100%; background: var(--blue); transition: width .25s ease; }
.question-card { background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); padding: 34px; }
.question-topic { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 900; }
.question-card h1 { color: var(--navy); font-size: 26px; line-height: 1.35; margin: 13px 0 25px; }
.answer-list { display: grid; gap: 10px; }
.answer-list button { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid #ccdae5; border-radius: 10px; background: white; padding: 13px 15px; color: var(--ink); cursor: pointer; }
.answer-list button:hover, .answer-list button.selected { border-color: var(--blue); background: var(--blue-soft); }
.answer-list button.correct { border-color: var(--green); background: var(--green-soft); }
.answer-list button.wrong { border-color: #d54d4d; background: #fff0f0; }
.answer-letter { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #b9cad7; border-radius: 50%; color: var(--navy); font-weight: 850; font-size: 11px; }
.feedback { margin-top: 18px; padding: 16px 18px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.feedback.correct { background: var(--green-soft); color: #116446; border: 1px solid #bee8d7; }
.feedback.incorrect { background: #fff0f0; color: #9d3030; border: 1px solid #f0c7c7; }
.question-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.result-card { background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); padding: 38px; text-align: center; }
.score-ring { width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--blue) var(--score), #e2eaf0 0); margin: 5px auto 24px; display: grid; place-items: center; position: relative; }
.score-ring:before { content: ""; position: absolute; width: 100px; height: 100px; background: white; border-radius: 50%; }
.score-ring strong { position: relative; z-index: 1; color: var(--navy); font-size: 30px; }
.result-card h1 { color: var(--navy); font-size: 29px; }
.result-card p { color: var(--muted); line-height: 1.65; max-width: 570px; margin: 0 auto 24px; }

footer { background: var(--navy); color: #b9cddd; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
footer .brand { color: white; }
.footer-about { color: #9fb6c7; font-size: 12px; line-height: 1.6; max-width: 300px; }
footer h3 { color: white; font-size: 13px; margin: 0 0 15px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 9px 0; font-size: 12px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; font-size: 10px; color: #7f9aaf; }

@media (max-width: 900px) {
  .main-nav, .header-search { display: none; }
  .mobile-menu { display: block; }
  .home-hero .wrap, .exam-page-hero .wrap, .exam-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .exam-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .resource-pack-body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .topbar .wrap { padding: 8px 0; align-items: flex-start; }
  .topbar span:last-child { display: none; }
  .header-main { height: 62px; }
  .brand { font-size: 17px; }
  .home-hero .wrap { padding-top: 42px; padding-bottom: 42px; gap: 35px; }
  .home-hero h1 { font-size: 42px; }
  .home-hero .lead { font-size: 15px; }
  .exam-search-large { flex-direction: column; }
  .exam-search-large button { width: 100%; }
  .trust-strip .wrap, .exam-cards, .category-grid, .steps, .tool-cards, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .exam-page-hero .wrap { padding-top: 34px; padding-bottom: 38px; gap: 28px; }
  .exam-page-hero h1 { font-size: 37px; }
  .topic-row { grid-template-columns: 1fr 45px; }
  .topic-row .topic-bar { grid-column: 1 / -1; grid-row: 2; }
  .question-card, .result-card { padding: 24px 19px; }
  .question-card h1 { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .resource-pack-head { grid-template-columns: 48px 1fr; padding: 19px; }
  .resource-pack-head > :last-child { grid-column: 2; justify-self: start; }
  .resource-pack-body { padding: 19px; }
  .resource-links { grid-template-columns: 1fr; }
  .selection-table { display: block; overflow-x: auto; }
}
