:root {
  --primary: #1746a2;
  --primary-dark: #103272;
  --secondary: #07884b;
  --secondary-dark: #056838;
  --ink: #14213d;
  --muted: #65728a;
  --line: #dfe5ee;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --danger: #b42318;
  --warning: #9a6700;
  --success: #067647;
  --shadow-sm: 0 8px 24px rgba(20, 33, 61, .07);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .13);
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 258px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 16px; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.space-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.eyebrow { display: block; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(223,229,238,.86); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .sidebar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary), transparent 74%); }
.brand strong, .sidebar-brand strong { display: block; line-height: 1.25; font-size: 15px; }
.brand small, .sidebar-brand small { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 650; }
.main-nav > a:not(.btn):hover { color: var(--primary); }
.nav-toggle, .sidebar-toggle { display: none; padding: 8px; border: 0; background: transparent; }
.nav-toggle span, .sidebar-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); }

.btn { min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; line-height: 1.2; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary), transparent 72%); outline-offset: 2px; }
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.btn-outline { color: var(--primary); background: #fff; border-color: color-mix(in srgb, var(--primary), transparent 60%); }
.btn-ghost { color: var(--ink); background: var(--surface-soft); border-color: var(--line); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-sm { min-height: 36px; padding: 8px 13px; border-radius: 9px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.hero { position: relative; overflow: hidden; padding: 82px 0 74px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -210px; border: 2px solid color-mix(in srgb, var(--secondary), transparent 83%); border-radius: 50%; box-shadow: 0 0 0 46px color-mix(in srgb, var(--secondary), transparent 92%), 0 0 0 94px color-mix(in srgb, var(--secondary), transparent 95%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 720px; margin: 15px 0 20px; font-size: clamp(42px, 5.8vw, 74px); letter-spacing: -.055em; line-height: .98; }
.hero p { max-width: 660px; margin: 0 0 28px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
.hero-card-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero-card-header strong { font-size: 18px; }
.live-pill { padding: 6px 10px; color: var(--success); background: #ecfdf3; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-steps { margin-top: 20px; display: grid; gap: 13px; }
.hero-step { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; }
.hero-step .number { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 10px; font-weight: 850; }
.hero-step strong { display: block; font-size: 14px; }
.hero-step small { display: block; color: var(--muted); }
.hero-step .state { color: var(--success); font-size: 12px; font-weight: 800; }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { min-height: 98px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 20px 26px; display: flex; gap: 12px; align-items: center; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-number { color: var(--primary); font-size: 30px; line-height: 1; font-weight: 850; }
.trust-item span:last-child { color: var(--muted); font-size: 13px; line-height: 1.35; }

.section { padding: 86px 0; }
.section.alt { background: var(--surface-soft); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; line-height: 1.08; }
.section-heading.compact h2 { font-size: 30px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.path-tabs { display: flex; gap: 8px; padding: 6px; width: fit-content; margin-bottom: 24px; border: 1px solid var(--line); background: #fff; border-radius: 13px; }
.path-tab { padding: 10px 18px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 750; }
.path-tab.active { color: #fff; background: var(--path-color, var(--primary)); }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow-card { position: relative; min-height: 185px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.flow-card::after { content: attr(data-number); position: absolute; right: -3px; bottom: -35px; color: color-mix(in srgb, var(--path-color, var(--primary)), transparent 93%); font-size: 110px; line-height: 1; font-weight: 900; }
.flow-number { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--path-color, var(--primary)); border-radius: 50%; font-weight: 850; }
.flow-card h3 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 17px; }
.flow-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 14px; }
.flow-note { margin-top: 20px; padding: 22px; border: 1px dashed var(--secondary); border-radius: var(--radius); color: var(--secondary-dark); background: #f2fbf6; }

.requirements-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.requirement-list { display: grid; gap: 10px; }
.requirement-row { padding: 17px 19px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.requirement-row .check { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; color: #fff; background: var(--secondary); border-radius: 50%; font-size: 13px; font-weight: 900; }
.requirement-row strong { display: block; }
.requirement-row small { color: var(--muted); }
.info-box { padding: 24px; border-radius: var(--radius); color: #fff; background: var(--primary); }
.info-box strong { display: block; margin-bottom: 6px; font-size: 18px; }
.info-box p { margin: 0; opacity: .88; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.program-card .degree { display: inline-block; padding: 5px 9px; margin-bottom: 18px; border-radius: 7px; color: var(--primary); background: color-mix(in srgb, var(--primary), transparent 91%); font-size: 12px; font-weight: 850; }
.program-card h3 { margin: 0 0 7px; font-size: 18px; }
.program-card p { margin: 0; color: var(--muted); font-size: 13px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.news-card time { color: var(--primary); font-size: 12px; font-weight: 750; }
.news-card h3 { margin: 12px 0 9px; line-height: 1.3; }
.news-card p { margin: 0 0 18px; color: var(--muted); }
.text-link { color: var(--primary); font-weight: 750; }

.cta { padding: 66px 0; color: #fff; background: var(--ink); }
.cta-wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta h2 { margin: 5px 0 8px; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.035em; }
.cta p { margin: 0; color: #b6c2d6; }
.cta .eyebrow { color: #8eb2ff; }
.site-footer { padding: 54px 0 22px; color: #c5cfdf; background: #0c1529; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid strong { color: #fff; font-size: 17px; }
.footer-grid p { max-width: 480px; margin: 8px 0 0; }
.footer-grid a { display: block; margin-top: 5px; }
.footer-label { display: block; margin-bottom: 10px; color: #fff; font-weight: 750; }
.footer-bottom { margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #22304a; font-size: 12px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-soft); }
.auth-aside { padding: 60px max(40px, calc((100vw - 1180px)/2)); display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--ink); }
.auth-aside .brand-mark { background: #fff; color: var(--primary); box-shadow: none; }
.auth-aside h1 { max-width: 520px; margin: 30px 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.05em; }
.auth-aside p { max-width: 520px; color: #b8c4d8; font-size: 17px; }
.auth-flow { display: grid; gap: 10px; margin-top: 36px; }
.auth-flow div { display: flex; gap: 12px; align-items: center; color: #d9e1ee; }
.auth-flow span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #40506c; border-radius: 50%; font-size: 12px; }
.auth-main { padding: 54px max(40px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: center; }
.auth-card { width: min(100%, 560px); padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
.auth-card h2 { margin: 8px 0 8px; font-size: 32px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 750; }

.stack-form { display: grid; gap: 16px; }
.stack-form h3 { margin: 12px 0 -4px; font-size: 17px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
label small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #cfd7e3; border-radius: 10px; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: auto; height: 18px; accent-color: var(--primary); }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-weight: 550; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { padding-top: 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.help { color: var(--muted); font-size: 12px; font-weight: 500; }
.alert { width: min(1120px, calc(100% - 40px)); margin: 16px auto; padding: 13px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border: 1px solid; border-radius: 11px; font-size: 14px; }
.portal-main > .alert, .auth-card .alert, .installer-card .alert { width: 100%; margin: 0 0 16px; }
.alert button { padding: 0; border: 0; color: inherit; background: transparent; font-size: 20px; line-height: 1; }
.alert-success { color: #05603a; border-color: #a6f4c5; background: #ecfdf3; }
.alert-danger { color: #8b1d17; border-color: #fecdca; background: #fef3f2; }
.alert-warning { color: #7a4b00; border-color: #fedf89; background: #fffaeb; }
.alert-info { color: #1849a9; border-color: #b2ccff; background: #eff4ff; }

.portal-body { min-height: 100vh; background: var(--surface-soft); }
.sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: var(--sidebar); padding: 22px 16px; display: flex; flex-direction: column; color: #dce4f2; background: #101a30; }
.sidebar .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; background: var(--primary); box-shadow: none; }
.sidebar-brand { min-height: 54px; padding: 0 8px 18px; border-bottom: 1px solid #25314a; }
.sidebar-brand strong { color: #fff; }
.sidebar-brand small { color: #8e9bb1; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { margin-top: 22px; display: grid; gap: 4px; }
.sidebar-nav a { position: relative; padding: 10px 13px; display: flex; align-items: center; gap: 10px; border-radius: 9px; color: #acb8cc; font-size: 13px; font-weight: 650; }
.sidebar-nav a:hover { color: #fff; background: #17243d; }
.sidebar-nav a.active { color: #fff; background: #1b2a47; }
.nav-indicator { width: 4px; height: 16px; border-radius: 5px; background: transparent; }
.sidebar-nav a.active .nav-indicator { background: #6fa0ff; }
.sidebar-foot { margin-top: auto; padding: 18px 10px 0; display: flex; justify-content: space-between; border-top: 1px solid #25314a; color: #9ba8bc; font-size: 12px; }
.portal-shell { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar { min-height: 88px; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar h1 { margin: 1px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.user-chip { min-width: 0; display: flex; align-items: center; gap: 11px; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 12px; font-weight: 850; }
.user-chip strong, .user-chip small { display: block; max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip strong { font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 11px; }
.portal-main { width: 100%; max-width: 1520px; margin: 0 auto; padding: 28px; flex: 1; }
.portal-footer { padding: 15px 28px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sidebar-overlay { display: none; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.metric-card .metric-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card strong { display: block; margin: 13px 0 3px; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel-header { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 18px; }
.panel-header p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.panel-title { margin: 0 0 18px; font-size: 19px; }
.quick-list { display: grid; gap: 8px; }
.quick-link { padding: 13px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.quick-link:hover { border-color: var(--primary); color: var(--primary); }
.quick-link span:last-child { font-size: 19px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); background: #f8f9fc; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfe; }
.table-actions { display: flex; gap: 7px; white-space: nowrap; }
.table-toolbar { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-toolbar input { width: min(360px, 100%); }
.badge { padding: 5px 8px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 10px; line-height: 1; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.badge-draft, .badge-pending { color: #475467; background: #f2f4f7; }
.badge-submitted, .badge-in_progress { color: #1849a9; background: #eff4ff; }
.badge-verified, .badge-passed, .badge-reregistered, .badge-completed, .badge-active { color: #067647; background: #ecfdf3; }
.badge-failed, .badge-rejected, .badge-inactive { color: #b42318; background: #fef3f2; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 17px; }

.progress-board { padding: 22px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: auto; }
.progress-track { min-width: 760px; display: flex; align-items: flex-start; }
.progress-step { position: relative; flex: 1; text-align: center; color: var(--muted); font-size: 10px; font-weight: 750; }
.progress-step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 2px; background: var(--line); }
.progress-step.done:not(:last-child)::after { background: var(--secondary); }
.progress-dot { position: relative; z-index: 2; width: 30px; height: 30px; margin: 0 auto 8px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: #fff; }
.progress-step.done .progress-dot { color: #fff; border-color: var(--secondary); background: var(--secondary); }
.application-card { padding: 24px; color: #fff; border-radius: var(--radius); background: var(--path-color, var(--primary)); }
.application-card small { display: block; opacity: .8; }
.application-card strong { display: block; margin: 4px 0 17px; font-size: 25px; }
.application-card .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.application-card .detail-grid div { padding: 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.08); }
.application-card .detail-grid b { display: block; font-size: 13px; }

.file-drop { position: relative; min-height: 110px; padding: 20px; display: grid; place-items: center; text-align: center; border: 1px dashed #aab6c8; border-radius: 11px; background: #fafbfc; }
.file-drop:hover { border-color: var(--primary); background: #f7f9ff; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop strong { display: block; color: var(--primary); }
.file-drop small { color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.document-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.document-card h3 { margin: 0 0 3px; font-size: 15px; }
.document-card > p { min-height: 38px; margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.file-meta { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.bank-card { padding: 23px; color: #fff; border-radius: var(--radius); background: #17233d; }
.bank-card .bank-name { color: #9fb2d2; font-size: 12px; }
.bank-card .account-number { margin: 18px 0 10px; font-size: 26px; letter-spacing: .09em; }
.bank-card .account-holder { font-size: 12px; text-transform: uppercase; }
.payment-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }

.exam-header { position: sticky; z-index: 20; top: 0; padding: 16px 20px; margin: -28px -28px 24px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: #17233d; }
.exam-timer { padding: 7px 12px; border: 1px solid #43516b; border-radius: 8px; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 850; }
.question-card { padding: 22px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.question-card h3 { margin: 0 0 16px; font-size: 15px; }
.answer-list { display: grid; gap: 9px; }
.answer-option { padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.answer-option:hover { border-color: var(--primary); }
.result-card { padding: 35px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.result-mark { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: var(--secondary); border-radius: 50%; font-size: 34px; font-weight: 900; }
.result-card.failed .result-mark { background: var(--danger); }
.result-card h2 { margin: 0 0 9px; font-size: 31px; }

.detail-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.detail-list div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.detail-list dd { margin: 3px 0 0; font-weight: 650; }
.filter-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-tabs a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-tabs a.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.color-input { min-height: 46px; padding: 4px; }

.installer-body { min-height: 100vh; padding: 50px 20px; background: #eef2f8; }
.installer-shell { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: .82fr 1.18fr; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.installer-intro { padding: 55px 46px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: #101a30; }
.installer-intro .eyebrow { margin-top: 34px; color: #8eb2ff; }
.installer-intro h1 { margin: 12px 0 16px; font-size: 44px; line-height: 1.02; letter-spacing: -.045em; }
.installer-intro p { color: #b9c5d8; }
.feature-checks { padding: 0; margin: 28px 0 0; display: grid; gap: 11px; list-style: none; }
.feature-checks li::before { content: "✓"; margin-right: 9px; color: #74d6a4; font-weight: 900; }
.installer-card { padding: 40px; background: #fff; }
.requirement-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.requirement { padding: 9px; display: flex; gap: 8px; align-items: center; border-radius: 8px; background: var(--surface-soft); font-size: 11px; }
.requirement span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.requirement.ok span { color: #fff; background: var(--success); }
.requirement.fail span { color: #fff; background: var(--danger); }
.success-panel { min-height: 560px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 17px; display: grid; place-items: center; color: #fff; background: var(--secondary); border-radius: 50%; font-size: 34px; font-weight: 900; }
.success-panel h2 { margin: 0; font-size: 34px; }
.success-panel .btn { margin: 22px 0 10px; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .portal-shell { margin-left: 0; }
  .sidebar-toggle { display: block; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 70; inset: 0; background: rgba(6,13,27,.56); }
  body.sidebar-open .sidebar-overlay { display: block; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, 1180px); }
  .main-nav { position: absolute; top: 68px; left: 14px; right: 14px; padding: 14px; display: none; align-items: stretch; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 58px 0; }
  .hero-grid, .requirements-layout, .auth-page, .installer-shell, .payment-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-card { margin-top: 10px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 1px solid var(--line); }
  .flow-grid, .program-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .auth-aside { display: none; }
  .installer-intro { padding: 38px; }
  .installer-intro h1 { font-size: 38px; }
  .cta-wrap { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .brand span:last-child { max-width: 205px; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 20px; }
  .section { padding: 62px 0; }
  .trust-grid, .flow-grid, .program-grid, .news-grid, .metric-grid, .document-grid, .form-grid.two, .form-grid.three, .requirement-grid, .detail-list { grid-template-columns: 1fr; }
  .trust-item { border-left: 1px solid var(--line); }
  .path-tabs { width: 100%; overflow-x: auto; }
  .path-tab { flex: 0 0 auto; }
  .auth-main, .installer-card, .installer-intro { padding: 28px 20px; }
  .auth-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom, .portal-footer { flex-direction: column; }
  .topbar { padding: 14px 16px; }
  .topbar .eyebrow, .user-chip span:last-child { display: none; }
  .topbar h1 { font-size: 19px; }
  .portal-main { padding: 18px 14px; }
  .panel, .progress-board { padding: 17px; }
  .application-card .detail-grid { grid-template-columns: 1fr; }
  .table-toolbar input { width: 100%; }
  .exam-header { margin: -18px -14px 18px; }
}

@media print {
  .site-header, .sidebar, .topbar, .portal-footer, .btn, .alert, .sidebar-overlay { display: none !important; }
  .portal-shell { margin: 0; }
  .portal-main { padding: 0; }
  body { background: #fff; }
  .panel { border: 0; box-shadow: none; }
}
