/* Kierunek — statyczny projekt interfejsu. Bez zależności i JavaScriptu. */
@layer reset, base, components, home, exam, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, fieldset { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  fieldset { padding: 0; border: 0; min-width: 0; }
}

@layer base {
  :root {
    --ink: #192c32;
    --muted: #647270;
    --green: #204c40;
    --lime: #d3f47a;
    --lime-hover: #c1e86a;
    --paper: #fafbf7;
    --line: #e0e6dc;
    --soft: #edf2e8;
    --white: #fff;
    --orange: #b16a36;
    --radius: 18px;
    --font: "Inter", "Segoe UI", Arial, sans-serif;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 105px; }
  body { font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
  ::selection { background: var(--lime); color: var(--ink); }
  :focus-visible { outline: 3px solid #337660; outline-offset: 5px; }
  h1, h2, h3 { font-weight: 650; line-height: 1.15; letter-spacing: -.045em; }
  h2 { font-size: clamp(30px, 3vw, 44px); }
  h3 { font-size: 21px; letter-spacing: -.025em; }
  .container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 12px 20px; background: var(--lime); border-radius: 8px; }
  .skip-link:focus { top: 12px; }
  .icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .eyebrow { font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--green); }
  .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .muted { color: var(--muted); }
}

@layer components {
  .site-header { height: 88px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 750; letter-spacing: -1.5px; line-height: 1; flex-shrink: 0; }
  .brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--lime); color: var(--green); }
  .brand-mark svg { width: 24px; height: 24px; }
  .main-nav, .header-actions { display: flex; align-items: center; gap: 29px; }
  .main-nav { font-size: 15px; color: #46564f; }
  .main-nav a { padding: 10px 0; }
  .main-nav a:hover, .text-link:hover { color: #397253; }
  .header-actions { gap: 22px; }
  .button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 12px 23px; border: 1px solid transparent; border-radius: 9px; font-size: 16px; line-height: 1.3; font-weight: 650; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--lime); color: var(--ink); }
  .button-primary:hover { background: var(--lime-hover); }
  .button-dark { background: var(--ink); color: var(--white); }
  .button-dark:hover { background: #2b454c; }
  .button-outline { border-color: #cfd8cb; background: transparent; }
  .button-outline:hover { background: var(--soft); }
  .button-small { min-height: 41px; padding: 10px 17px; font-size: 14px; }
  .button-wide { width: 100%; }
  .text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
  .pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 6px; background: var(--soft); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .015em; }
  .pill-lime { color: #305131; background: #eaf6cc; }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
  .section-heading .eyebrow { margin-bottom: 15px; }
  .section-heading > p { max-width: 320px; font-size: 16px; color: var(--muted); }
  .site-footer { margin-top: 86px; border-top: 1px solid var(--line); }
  .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 30px; }
  .site-footer .brand { font-size: 23px; }
  .site-footer .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .footer-links { display: flex; gap: 25px; font-size: 14px; color: var(--muted); }
  .footer-caption { font-size: 13px; color: var(--muted); }
  .prototype-footer { padding: 10px 20px; font-size: 13px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); background: #f2f5ed; }
  .prototype-footer a { text-decoration: underline; text-underline-offset: 3px; margin-left: 12px; }
  /* Kadr drogi z dostarczonego przykładu. Oryginalny plik pozostaje bez zmian. */
  .road-photo { aspect-ratio: 16 / 9; background: #80907d url("../images/example-road.png") 35.2% 24.6% / 298% auto no-repeat; }
  [popover] { margin: auto; max-width: min(460px, calc(100% - 32px)); padding: 30px; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 24px 80px #192c3226; }
  [popover]::backdrop { background: #12251db3; backdrop-filter: blur(4px); }
  .popover-title { font-size: 27px; margin: 15px 0; }
  [popover] p { color: var(--muted); font-size: 16px; }
  .popover-actions { display: flex; gap: 10px; margin-top: 24px; }
  .popover-actions .button { flex: 1; }
}

@layer home {
  .hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 70px; align-items: center; padding-block: 82px 78px; }
  .hero .eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 25px; }
  .hero h1 { font-size: clamp(44px, 4.55vw, 66px); line-height: 1.075; letter-spacing: -.058em; }
  .hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--green); letter-spacing: -.065em; }
  .hero-description { max-width: 440px; margin-top: 23px; font-size: 18px; line-height: 1.8; color: var(--muted); }
  .hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 30px; }
  .hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 23px; font-size: 13px; color: var(--muted); }
  .hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
  .hero-trust .icon { width: 14px; height: 14px; }
  .hero-visual { position: relative; padding: 37px 22px 33px; min-width: 0; isolation: isolate; }
  .visual-backdrop { position: absolute; z-index: -1; inset: -4px -5px 0 26px; background: #e8efdd; border-radius: 45% 45% 18% 18%; overflow: hidden; }
  .visual-route { position: absolute; inset: -30px 0 0 0; width: 100%; height: 115%; color: #d4dfc5; }
  .hero-photo { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 16px 40px #294b281a; }
  .demo-preview { border: 1px solid #dbe1d2; background: var(--white); border-radius: 13px; box-shadow: 0 16px 40px #294b2814, 0 3px 7px #294b2805; transform: rotate(-3deg); overflow: hidden; }
  .preview-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; font-size: 12px; font-weight: 600; }
  .preview-top span:last-child { color: var(--muted); font-weight: 400; }
  .preview-media { position: relative; margin: 0 10px; border-radius: 7px; overflow: hidden; }
  .preview-media .pill { position: absolute; left: 10px; bottom: 10px; color: #fff; background: #172b33d9; }
  .preview-bottom { padding: 18px; }
  .preview-bottom p { font-size: 15px; font-weight: 600; line-height: 1.6; max-width: 320px; }
  .preview-answers { display: flex; gap: 9px; margin-top: 15px; }
  .preview-answers span { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; text-align: center; }
  .preview-answers span:first-child { background: var(--lime); border-color: #c1dc92; }
  .floating-note { position: absolute; bottom: 2px; right: -15px; display: flex; align-items: center; gap: 11px; background: var(--green); color: #fff; border-radius: 12px; box-shadow: 0 8px 25px #192c3220; padding: 14px 20px; transform: rotate(3deg); }
  .floating-note .note-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #91bda35c; border-radius: 50%; color: var(--lime); }
  .floating-note strong { font-size: 14px; font-weight: 600; }
  .floating-note small { display: block; font-size: 12px; color: #c3d5cd; }
  .hero-visual-caption { position: absolute; top: 1px; right: 2px; color: var(--green); font-family: Georgia, serif; font-size: 18px; font-style: italic; transform: rotate(5deg); }
  .feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 26px 0; border-block: 1px solid var(--line); }
  .feature-item { display: flex; align-items: center; gap: 15px; padding: 0 24px; border-right: 1px solid var(--line); }
  .feature-item:first-child { padding-left: 0; }
  .feature-item:last-child { border: 0; padding-right: 0; }
  .feature-icon { width: 42px; height: 42px; background: var(--soft); border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--green); }
  .feature-item strong { display: block; font-size: 15px; font-weight: 600; }
  .feature-item p { font-size: 13px; color: var(--muted); margin-top: 1px; }
  .categories-section { padding-top: 73px; }
  .category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .category-option { position: relative; display: flex; flex-direction: column; min-height: 163px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
  .category-option:hover { border-color: #a2b38f; transform: translateY(-3px); }
  .category-option:has(input:checked) { background: #edf5db; border-color: #709451; box-shadow: inset 0 0 0 1px #709451; }
  .category-option:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 4px; }
  .category-check { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border: 1px solid #dce2d4; border-radius: 50%; }
  .category-option input:checked ~ .category-check { background: var(--green); border-color: var(--green); }
  .category-option input:checked ~ .category-check::after { content: ""; position: absolute; left: 4px; top: 3px; width: 6px; height: 4px; border-bottom: 1.5px solid #fff; border-left: 1.5px solid #fff; transform: rotate(-45deg); }
  .vehicle-icon { width: 52px; height: 39px; margin: 5px 0 16px; color: #506455; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .category-name { font-size: 17px; font-weight: 650; }
  .category-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .more-categories { margin-top: 15px; color: var(--muted); font-size: 14px; }
  .more-categories summary { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; padding: 7px 0; }
  .more-categories summary::after { content: "+"; font-size: 19px; }
  .more-categories[open] summary::after { content: "−"; }
  .more-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
  .more-category-grid .category-option { min-height: 95px; padding: 22px 17px; }
  .category-config { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 23px; padding: 21px 24px; background: #eef2e9; border-radius: 11px; }
  .config-options { display: flex; align-items: center; gap: 22px; }
  .field-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #536151; }
  .field-label select { border: 1px solid #d7dfcf; border-radius: 6px; padding: 9px 30px 9px 11px; background: #fff; color: var(--ink); font-size: 14px; }
  .checkbox-label { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
  .checkbox-label input { width: 16px; height: 16px; accent-color: var(--green); }
  .config-cta { display: flex; align-items: center; gap: 14px; }
  .config-cta small { font-size: 12px; color: var(--muted); }
  .how-section { padding-block: 85px; }
  .step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 38px; }
  .step-number { font-family: Georgia, serif; font-size: 34px; font-style: italic; color: #91a97b; margin-bottom: 21px; }
  .step-grid h3 { font-size: 20px; margin-bottom: 12px; }
  .step-grid p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 305px; }
  .account-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; padding: 44px 50px; border-radius: 20px; background: var(--green); color: #fff; overflow: hidden; }
  .account-panel .eyebrow { color: #c6dfb7; margin-bottom: 16px; }
  .account-panel h2 { font-size: 36px; line-height: 1.15; }
  .account-panel p { color: #cedbd1; font-size: 15px; max-width: 430px; margin-top: 15px; line-height: 1.8; }
  .account-panel .button { margin-top: 23px; }
  .history-illustration { background: #fff; color: var(--ink); border-radius: 11px; padding: 22px; transform: rotate(3deg); }
  .history-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .history-top small { color: var(--muted); font-size: 11px; font-weight: 400; }
  .history-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; }
  .history-row > .history-category { width: 30px; height: 30px; display: grid; place-items: center; background: var(--soft); border-radius: 8px; font-size: 14px; }
  .history-row small { display: block; font-size: 11px; color: var(--muted); }
  .history-row > .icon { margin-left: auto; width: 15px; }
  .faq-section { padding-top: 85px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
  .faq-intro .eyebrow { margin-bottom: 16px; }
  .faq-intro p { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 260px; }
  .faq-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .faq-item:first-child { padding-top: 0; }
  .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; font-size: 21px; color: var(--green); font-weight: 400; }
  .faq-item[open] summary::after { content: "−"; }
  .faq-item p { padding-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.9; }
}

@layer exam {
  .exam-page { background: #f3f5ef; }
  .exam-header { background: #fff; }
  .exam-header .brand { font-size: 24px; }
  .exam-header-context { display: flex; align-items: center; gap: 16px; margin-right: auto; border-left: 1px solid var(--line); padding-left: 24px; font-size: 14px; color: var(--muted); }
  .exit-button { border: 0; background: transparent; display: inline-flex; gap: 7px; align-items: center; color: var(--muted); padding: 8px 0; font-size: 14px; }
  .exit-button:hover { color: var(--ink); }
  .exit-button .icon { width: 16px; height: 16px; }
  .exam-main { padding-top: 34px; padding-bottom: 30px; }
  .exam-titlebar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; gap: 20px; }
  .exam-titlebar h1 { font-size: 27px; letter-spacing: -.035em; }
  .exam-titlebar h1 span { display: inline-block; margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 20px; white-space: nowrap; }
  .exam-titlebar p { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
  .exam-titlebar p .icon { width: 14px; height: 14px; }
  .exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 25px; align-items: start; }
  .question-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
  .question-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 25px; border-bottom: 1px solid var(--line); }
  .question-stage { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
  .question-stage strong { font-weight: 650; }
  .question-stage .divider { height: 13px; width: 1px; background: var(--line); margin-inline: 2px; }
  .points-badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13px; color: #55634e; }
  .points-badge .icon { width: 14px; height: 14px; color: #849465; }
  .exam-media { position: relative; margin: 20px 24px 0; overflow: hidden; border-radius: 9px; }
  .exam-media .road-photo { width: 100%; }
  .media-label { position: absolute; left: 13px; top: 13px; display: inline-flex; gap: 6px; align-items: center; border-radius: 5px; padding: 4px 8px; font-size: 11px; letter-spacing: .025em; color: #fff; background: #1b2e35ba; }
  .media-label .icon { width: 12px; height: 12px; }
  .question-body { padding: 25px 25px 22px; }
  .question-heading { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.45; letter-spacing: -.026em; font-weight: 600; }
  .answer-instruction { margin-top: 10px; font-size: 13px; color: var(--muted); }
  .answer-form { margin-top: 21px; }
  .answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .answer-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 18px; min-height: 65px; background: #fff; border: 1px solid #dce3d5; border-radius: 9px; cursor: pointer; transition: border-color .18s, background .18s; }
  .answer-option:hover { border-color: #789365; background: #f8faf3; }
  .answer-option:has(input:checked) { background: #eef7dd; border-color: #608947; box-shadow: inset 0 0 0 1px #608947; }
  .answer-option:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }
  .answer-key { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e0e5d9; border-radius: 6px; background: #f6f8f1; font-size: 13px; font-weight: 600; color: #75806b; flex-shrink: 0; }
  .answer-option:has(input:checked) .answer-key { background: var(--green); color: #fff; border-color: var(--green); }
  .answer-label { font-size: 16px; font-weight: 500; line-height: 1.6; }
  .answer-grid .answer-label { font-size: 18px; }
  .answer-circle { margin-left: auto; width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid #c7d0bd; border-radius: 50%; }
  .answer-option:has(input:checked) .answer-circle { border: 5px solid var(--green); background: #fff; }
  .answer-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .selection-hint { color: var(--muted); font-size: 12px; }
  .selected-hint { display: none; color: var(--green); font-size: 12px; align-items: center; gap: 5px; }
  .selected-hint .icon { width: 13px; height: 13px; }
  .answer-form:has(input:checked) .selection-hint { display: none; }
  .answer-form:has(input:checked) .selected-hint { display: inline-flex; }
  .next-ready { display: none; }
  .next-disabled { background: #eef1e8; color: #818d78; cursor: default; }
  .answer-form:has(input:checked) .next-disabled { display: none; }
  .answer-form:has(input:checked) .next-ready { display: inline-flex; }
  .question-card .button { min-height: 45px; padding: 11px 19px; font-size: 14px; }
  .question-notes { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px; font-size: 12px; color: var(--muted); }
  .question-notes span { display: inline-flex; align-items: center; gap: 6px; }
  .question-notes .icon { width: 12px; height: 12px; }
  .exam-sidebar { display: grid; gap: 16px; }
  .timer-card { padding: 23px; border-radius: 14px; color: #fff; background: var(--green); }
  .timer-label { display: flex; align-items: center; gap: 8px; color: #d2dfd1; font-size: 13px; }
  .timer-label .icon { width: 16px; height: 16px; }
  .total-time { display: flex; align-items: baseline; gap: 9px; margin-top: 9px; font-variant-numeric: tabular-nums; }
  .total-time strong { font-size: 43px; font-weight: 500; line-height: 1.25; letter-spacing: -.045em; }
  .total-time span { font-size: 12px; color: #b4cab7; }
  .timer-rule { height: 1px; background: #ffffff26; margin: 20px 0 17px; }
  .question-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #d2dfd1; }
  .question-time strong { font-size: 20px; font-weight: 550; color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
  .time-track { height: 4px; border-radius: 3px; background: #ffffff20; margin-top: 10px; overflow: hidden; }
  .time-track span { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--lime); }
  .time-track-specialist span { width: 83%; }
  .progress-card { border: 1px solid var(--line); background: #fff; padding: 22px; border-radius: 14px; }
  .progress-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .progress-heading h2 { font-size: 16px; letter-spacing: -.02em; }
  .progress-heading span { font-size: 13px; color: var(--muted); }
  .progress-group + .progress-group { margin-top: 21px; }
  .progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 9px; color: var(--muted); }
  .progress-label strong { font-weight: 500; color: #48594a; }
  .question-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .question-dots span { width: 100%; aspect-ratio: 1; background: #edf0e8; border-radius: 4px; }
  .question-dots .done { background: #486f4e; }
  .question-dots .current { background: var(--lime); border: 1px solid #92b74f; box-shadow: 0 0 0 2px #f2f7e5; }
  .progress-key { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
  .progress-key span { display: flex; align-items: center; gap: 5px; }
  .progress-key i { width: 6px; height: 6px; border-radius: 2px; background: #486f4e; }
  .progress-key span:nth-child(2) i { background: var(--lime); border: 1px solid #92b74f; }
  .tip-card { padding: 4px 9px; }
  .tip-heading { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
  .tip-heading .icon { width: 15px; height: 15px; color: #748465; }
  .tip-card p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
  .exam-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid #dfe5d8; font-size: 12px; color: var(--muted); }
  .exam-bottom a { text-decoration: underline; text-underline-offset: 4px; }
  .specialist-body { padding: 40px 32px 28px; }
  .specialist-intro { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; margin-bottom: 24px; color: #6a795d; font-size: 12px; border-radius: 5px; background: #f0f4e9; }
  .specialist-intro .icon { width: 13px; height: 13px; }
  .specialist-body .question-heading { max-width: 680px; font-size: 28px; line-height: 1.5; }
  .specialist-body .answer-instruction { margin-top: 13px; }
  .specialist-body .answer-form { margin-top: 31px; }
  .answer-list { display: grid; gap: 11px; }
  .answer-list .answer-option { min-height: 80px; padding: 18px 20px; }
  .answer-list .answer-key { width: 34px; height: 34px; font-size: 14px; }
  .specialist-body .answer-actions { margin-top: 35px; }
  .specialist-body .answer-label { font-size: 17px; }
  .exam-accessibility { padding: 14px 24px; background: #fafbf7; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
  .exam-accessibility span { display: flex; gap: 6px; align-items: center; }
  .exam-accessibility .icon { width: 13px; height: 13px; }
}

@layer responsive {
  @media (min-width: 1600px) {
    .hero { padding-block: 100px; }
    .hero-visual { padding: 45px 18px; }
  }
  @media (max-width: 1100px) {
    .container { width: calc(100% - 56px); }
    .main-nav { gap: 18px; }
    .hero { gap: 35px; padding-block: 65px; }
    .hero h1 { font-size: 51px; }
    .hero-actions { gap: 17px; }
    .hero-actions .button { padding-inline: 16px; font-size: 14px; }
    .hero-actions .text-link { font-size: 14px; }
    .floating-note { right: -5px; }
    .category-option { padding: 16px; }
    .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    .feature-item { padding-inline: 20px; }
    .feature-item:nth-child(odd) { padding-left: 0; }
    .feature-item:nth-child(even) { padding-right: 0; border-right: 0; }
    .exam-grid { grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; }
    .progress-card, .timer-card { padding: 19px; }
    .question-body { padding: 22px; }
    .exam-media { margin: 17px 20px 0; }
    .specialist-body .question-heading { font-size: 25px; }
    .question-dots { gap: 4px; }
    .faq-section { gap: 55px; }
  }
  @media (max-width: 850px) {
    .main-nav { display: none; }
    .hero { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero h1 { font-size: 44px; }
    .hero-description { font-size: 16px; }
    .hero-actions { align-items: start; flex-direction: column; gap: 16px; }
    .hero-trust { gap: 10px; }
    .hero-visual { padding-inline: 8px; }
    .preview-bottom p { font-size: 13px; }
    .preview-top { padding-inline: 12px; }
    .floating-note { padding: 10px 13px; }
    .feature-item { padding-inline: 13px; gap: 10px; }
    .feature-icon { width: 34px; height: 34px; }
    .feature-item strong { font-size: 14px; }
    .feature-item p { font-size: 12px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .more-category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-config { align-items: start; }
    .config-cta { width: 100%; justify-content: space-between; }
    .step-grid { gap: 25px; }
    .account-panel { padding: 33px; gap: 25px; }
    .account-panel h2 { font-size: 31px; }
    .exam-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 15px; }
    .exam-titlebar h1 { font-size: 24px; }
    .exam-titlebar h1 span { font-size: 19px; }
    .question-top { padding: 15px 18px; }
    .question-stage { font-size: 13px; gap: 6px; }
    .question-stage .pill { font-size: 11px; padding: 4px 7px; }
    .question-body { padding: 20px; }
    .answer-actions { align-items: start; flex-direction: column; gap: 12px; }
    .answer-actions .button { align-self: stretch; }
    .answer-option { gap: 9px; padding: 13px; }
    .specialist-body .question-heading { font-size: 23px; }
    .specialist-body .answer-label { font-size: 15px; }
    .answer-list .answer-option { padding: 14px; }
    .question-notes { flex-direction: column; gap: 5px; }
    .exam-header-context { padding-left: 17px; }
    .exam-header .header-inner { gap: 18px; }
    .exam-header .header-actions { gap: 14px; }
    .exam-header-context > span:first-child { display: none; }
  }
  @media (max-width: 640px) {
    html { scroll-padding-top: 24px; }
    .container { width: calc(100% - 36px); }
    .site-header { height: 73px; }
    .brand { font-size: 25px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .header-inner { gap: 12px; }
    .header-actions { gap: 12px; }
    .header-actions .button { min-height: 37px; padding: 9px 12px; font-size: 13px; }
    .hero { grid-template-columns: 1fr; padding-block: 44px 35px; gap: 33px; }
    .hero h1 { font-size: clamp(43px, 11.5vw, 59px); }
    .hero .eyebrow { font-size: 12px; margin-bottom: 20px; }
    .hero-description { font-size: 16px; margin-top: 20px; max-width: 380px; }
    .hero-actions { flex-direction: row; align-items: center; gap: 18px; margin-top: 24px; }
    .hero-actions .button { font-size: 13px; padding-inline: 13px; gap: 7px; min-height: 48px; }
    .hero-actions .button .icon { width: 16px; }
    .hero-actions .text-link { font-size: 13px; }
    .hero-trust { margin-top: 18px; gap: 15px; font-size: 12px; }
    .hero-visual { width: 100%; max-width: 450px; margin-inline: auto; padding: 27px 17px 32px; }
    .hero-visual-caption { font-size: 15px; }
    .preview-bottom { padding: 15px; }
    .preview-bottom p { max-width: 290px; font-size: 14px; }
    .floating-note { right: 4px; }
    .feature-strip { grid-template-columns: 1fr; padding-block: 5px; }
    .feature-item, .feature-item:first-child, .feature-item:last-child { padding: 15px 3px; border-right: 0; border-bottom: 1px solid var(--line); gap: 15px; }
    .feature-item:last-child { border: 0; }
    .feature-item strong { font-size: 15px; }
    .feature-item p { font-size: 13px; }
    .feature-icon { width: 37px; height: 37px; }
    .categories-section { padding-top: 48px; }
    .section-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 25px; }
    .section-heading .eyebrow { margin-bottom: 12px; }
    .section-heading > p { font-size: 14px; }
    .category-grid { gap: 9px; }
    .category-option { min-height: 143px; padding: 14px 11px; }
    .category-check { right: 10px; top: 10px; width: 14px; height: 14px; }
    .category-option input:checked ~ .category-check::after { left: 3px; top: 3px; }
    .vehicle-icon { width: 43px; height: 34px; margin-top: 10px; margin-bottom: 13px; }
    .category-name { font-size: 16px; }
    .category-detail { font-size: 12px; }
    .more-category-grid { gap: 9px; }
    .more-category-grid .category-option { min-height: 85px; padding: 20px 11px; }
    .category-config { padding: 17px; margin-top: 18px; gap: 18px; }
    .config-options { gap: 15px; flex-wrap: wrap; }
    .field-label { font-size: 13px; gap: 8px; }
    .field-label select { padding-right: 20px; font-size: 13px; }
    .checkbox-label { font-size: 13px; }
    .config-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .config-cta small { text-align: center; order: 2; }
    .config-cta .button { font-size: 14px; }
    .how-section { padding-block: 52px; }
    .step-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 29px; }
    .step-item { display: grid; grid-template-columns: 37px 1fr; gap: 14px; }
    .step-number { font-size: 29px; margin: 0; line-height: 1; }
    .step-grid h3 { font-size: 20px; margin-bottom: 8px; }
    .step-grid p { font-size: 14px; }
    .account-panel { grid-template-columns: 1fr; padding: 27px; gap: 32px; }
    .account-panel h2 { font-size: 32px; }
    .history-illustration { margin: 0 2px; }
    .faq-section { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; }
    .faq-intro p { margin-top: 12px; max-width: 340px; }
    .faq-item { padding-block: 17px; }
    .faq-item summary { font-size: 15px; }
    .faq-item p { font-size: 14px; }
    .site-footer { margin-top: 52px; }
    .footer-inner { flex-wrap: wrap; padding-block: 24px; gap: 22px; }
    .footer-links { font-size: 13px; gap: 18px; }
    .footer-caption { width: 100%; }
    .prototype-footer { font-size: 12px; line-height: 1.8; }
    .prototype-footer a { display: inline-block; }
    .exam-header .brand { font-size: 21px; gap: 7px; }
    .exam-header .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
    .exam-header .brand-mark svg { width: 20px; }
    .exam-header-context { display: none; }
    .exam-header .header-actions { gap: 15px; }
    .exit-button { font-size: 13px; }
    .exit-button .icon { width: 15px; }
    .exam-main { padding-top: 20px; }
    .exam-titlebar { margin-bottom: 17px; }
    .exam-titlebar h1 { font-size: 21px; }
    .exam-titlebar h1 span { font-size: 17px; margin-left: 4px; }
    .exam-titlebar p { font-size: 12px; }
    .exam-titlebar p .icon { display: none; }
    .exam-grid { display: flex; flex-direction: column; gap: 14px; }
    .exam-sidebar { order: -1; width: 100%; display: block; }
    .timer-card { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px; column-gap: 19px; border-radius: 10px; position: relative; }
    .timer-label { font-size: 11px; gap: 6px; }
    .timer-label .icon { width: 12px; height: 12px; }
    .total-time { margin-top: 2px; gap: 6px; grid-column: 1; }
    .total-time strong { font-size: 26px; }
    .total-time span { font-size: 11px; }
    .timer-rule { position: absolute; top: 14px; bottom: 14px; left: 50%; margin: 0; width: 1px; height: auto; }
    .question-time { grid-column: 2; grid-row: 1; font-size: 11px; }
    .question-time strong { font-size: 18px; }
    .time-track { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
    .progress-card, .tip-card { display: none; }
    .exam-content { width: 100%; }
    .question-card { border-radius: 12px; }
    .question-top { padding: 13px 15px; gap: 7px; }
    .question-stage { font-size: 12px; gap: 7px; }
    .question-stage .pill { font-size: 10px; padding: 4px 6px; }
    .question-stage .divider { display: none; }
    .points-badge { font-size: 11px; gap: 4px; }
    .points-badge .icon { width: 12px; }
    .exam-media { margin: 12px 12px 0; border-radius: 7px; }
    .media-label { top: 8px; left: 8px; font-size: 10px; padding: 3px 6px; }
    .question-body { padding: 20px 16px 16px; }
    .question-heading { font-size: 20px; line-height: 1.5; }
    .answer-instruction { font-size: 12px; margin-top: 11px; }
    .answer-form { margin-top: 18px; }
    .answer-option { padding: 13px; min-height: 59px; gap: 10px; }
    .answer-key { width: 25px; height: 25px; font-size: 11px; }
    .answer-grid .answer-label { font-size: 17px; }
    .answer-circle { width: 16px; height: 16px; }
    .answer-actions { gap: 12px; margin-top: 20px; padding-top: 17px; }
    .answer-actions .button { width: 100%; min-height: 48px; }
    .question-notes { font-size: 11px; padding-top: 12px; }
    .exam-bottom { gap: 12px; font-size: 11px; margin-top: 15px; }
    .specialist-body { padding-top: 25px; }
    .specialist-intro { margin-bottom: 20px; font-size: 11px; }
    .specialist-body .question-heading { font-size: 23px; }
    .specialist-body .answer-form { margin-top: 25px; }
    .answer-list .answer-option { padding: 15px 12px; min-height: 83px; gap: 12px; }
    .answer-list .answer-key { width: 28px; height: 28px; }
    .specialist-body .answer-label { font-size: 15px; }
    .specialist-body .answer-actions { margin-top: 25px; }
    .exam-accessibility { padding: 12px 15px; font-size: 11px; }
  }
  @media (max-width: 380px) {
    .category-grid, .more-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-actions { flex-wrap: wrap; gap: 14px; }
    .exam-header .header-actions { gap: 8px; }
    .answer-grid .answer-option { gap: 7px; padding-inline: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
  }
  @media print {
    .site-header, .site-footer, .prototype-footer, .exam-sidebar, .answer-actions { display: none; }
    .container { width: 100%; }
    .exam-grid { display: block; }
    body { background: #fff; }
  }
}
