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

:root {
  color-scheme: dark;
  font-family: 'Sora', 'Trebuchet MS', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #101b17;
  --panel: #17251f;
  --panel-light: #1e3028;
  --line: rgba(202, 224, 207, .13);
  --muted: #a3b3a9;
  --soft: #c7d3cb;
  --green: #4ade80;
  --green-deep: #1d5836;
  --question-navy: #082b4c;
  --reflective-lime: #b8f500;
  --answer-ink: #11170b;
  --gold: #c3e56a;
  --danger: #ff9c8f;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { position: relative; isolation: isolate; margin: 0; min-height: 100vh; color: #f4f7f1; background: var(--bg); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.site-shell { position: relative; z-index: 0; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background-image: linear-gradient(110deg, rgba(8,18,12,.84) 0%, rgba(8,18,12,.72) 48%, rgba(8,18,12,.78) 100%), url('/images/praca-pedagio.jpg'); background-size: cover; background-position: center 47%; background-attachment: fixed; background-repeat: no-repeat; }
.site-shell.cover-active { background-image: none; background-color: var(--bg); }
.site-shell.quiz-active { background: transparent; }
body.quiz-active { background: transparent; }
.quiz-background-stage { position: fixed; z-index: -1; inset: 0; display: none; overflow: hidden; pointer-events: none; }
.quiz-background-stage::before { content: ''; position: absolute; z-index: 0; inset: 0; background: radial-gradient(ellipse at 52% 44%, rgba(33,52,42,.58) 0%, rgba(16,27,21,.88) 74%, #0b1510 100%); }
.quiz-background-video { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: transparent; opacity: 1; pointer-events: none; }
.quiz-background-stage::after { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(5,14,9,.1) 0%, rgba(5,14,9,.18) 52%, rgba(5,14,9,.34) 100%); pointer-events: none; }
body.quiz-active .quiz-background-stage { display: block; }
.topbar { width: min(1220px, calc(100% - 72px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { width: 90px; height: 49px; flex: 0 0 auto; border-radius: 3px; object-fit: contain; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); }
.brand-mark svg { width: 39px; height: 39px; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 12px; letter-spacing: .17em; }
.brand-copy span { color: #92a49a; font-size: 9px; letter-spacing: .14em; }
.topbar-tag { color: #9bad9f; font-size: 9px; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 9px; text-align: right; }
.topbar-tag-copy { display: grid; gap: 1px; line-height: 1.16; }
.topbar-tag-copy strong { color: #dce6dd; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.topbar-tag-copy span { color: #e6eee7; font-size: 10px; font-weight: 600; letter-spacing: .025em; }
.topbar-tag-copy small { color: #95a89a; font-size: 8.5px; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(74,222,128,.65); }
.main-content { width: min(1220px, calc(100% - 72px)); margin: 0 auto; flex: 1; }
.screen { animation: enter .38s cubic-bezier(.2,.7,.2,1) both; }
.hidden { display: none !important; }
.welcome-screen { position: relative; isolation: isolate; min-height: 650px; padding: 68px 0 60px; display: grid; grid-template-columns: 1.05fr .86fr; gap: clamp(54px, 8vw, 128px); align-items: center; }
.welcome-screen::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, rgba(8,18,12,.78), rgba(8,18,12,.57) 52%, rgba(8,18,12,.73)); pointer-events: none; }
.welcome-background-video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; pointer-events: none; }
.welcome-copy { max-width: 600px; padding: 10px 0 18px; }
.eyebrow { margin: 0; color: var(--green); display: flex; align-items: center; gap: 11px; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.eyebrow-line { width: 25px; height: 1px; background: var(--green); }
.cover-attribution { display: none; gap: 2px; margin: 8px 0 0 36px; }
.cover-attribution strong { color: #e6eee7; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.cover-attribution span { color: #9bad9f; font-size: 8px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.welcome-copy h1, .result-heading h1 { margin: 26px 0 19px; font-size: clamp(44px, 6.3vw, 77px); letter-spacing: -.075em; line-height: 1.05; font-weight: 700; }
.welcome-copy h1 { font-size: clamp(40px, 5.2vw, 66px); }
.welcome-copy h1 span, .result-heading h1 span { color: var(--green); }
.welcome-description { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.start-form { max-width: 458px; }
.start-form label { display: block; margin-bottom: 10px; color: #d5dfd7; font-size: 11px; font-weight: 600; }
.name-input-wrap { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid rgba(204,226,210,.2); border-radius: 8px; background: rgba(255,255,255,.035); transition: border-color .2s, background .2s; }
.name-input-wrap:focus-within { border-color: rgba(74,222,128,.72); background: rgba(74,222,128,.045); }
.name-input-wrap svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #97a99c; stroke-width: 1.5; stroke-linecap: round; }
.name-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: #f4f7f1; font-size: 12px; }
.name-input-wrap input::placeholder { color: #75887b; }
.button { min-height: 47px; padding: 0 19px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-size: 11px; font-weight: 700; transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease, opacity .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #0b1d12; background: var(--green); box-shadow: 0 7px 22px rgba(74,222,128,.12); }
.button-primary:hover:not(:disabled) { background: #68eb94; }
.button-primary:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.start-button { min-width: 188px; margin-top: 15px; }
.start-button span, .question-actions .button span { font-size: 16px; }
.welcome-meta { margin-top: 35px; display: flex; flex-wrap: wrap; align-items: center; gap: 13px; color: #91a298; font-size: 10px; }
.welcome-meta strong { color: #dce6dd; }
.welcome-meta i { width: 3px; height: 3px; border-radius: 50%; background: #61766a; }
.welcome-visual { position: relative; min-height: 402px; padding: 31px; isolation: isolate; overflow: hidden; border: 1px solid rgba(140,194,152,.3); border-radius: 11px; background: linear-gradient(135deg, rgba(7,15,10,.35), rgba(8,19,12,.5)); box-shadow: 0 28px 90px rgba(0,0,0,.18); }
.welcome-visual::before { content: ''; position: absolute; z-index: -1; width: 370px; height: 370px; top: 92px; right: -80px; border: 1px solid rgba(125,202,139,.17); border-radius: 50%; box-shadow: 0 0 0 30px rgba(125,202,139,.025), 0 0 0 60px rgba(125,202,139,.018); }
.road-lines { position: absolute; top: -41px; right: 49px; width: 77px; height: 178px; transform: skew(-28deg); border-right: 2px dashed rgba(195,229,106,.75); border-left: 2px dashed rgba(195,229,106,.24); opacity: .75; }
.road-lines span { display: none; }
.visual-kicker { display: flex; align-items: center; gap: 10px; color: #9eb0a2; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.visual-kicker-copy { max-width: 260px; color: #c7d5c9; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; }
.signal-icon { width: 54px; height: 29px; flex: 0 0 auto; display: block; overflow: hidden; border: 1px solid rgba(74,222,128,.36); border-radius: 5px; background: #061e35; }
.signal-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.visual-heading { margin-top: 48px; color: #eef4ed; font-size: clamp(30px, 4vw, 45px); font-weight: 600; line-height: 1.25; letter-spacing: -.065em; }
.visual-heading span { color: var(--green); }
.visual-bottom { position: absolute; right: 30px; bottom: 26px; left: 30px; display: flex; align-items: center; gap: 12px; color: #85998b; font-size: 8px; letter-spacing: .14em; }
.visual-rule { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(74,222,128,.5), transparent); }
.visual-orbit { position: absolute; right: 60px; bottom: -140px; width: 226px; height: 226px; border: 1px solid rgba(195,229,106,.17); border-radius: 50%; }
.site-footer { width: min(1220px, calc(100% - 72px)); min-height: 54px; margin: 0 auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #778a7d; font-size: 8px; letter-spacing: .13em; }
.site-footer b, .quiz-footer b, .result-end b { color: var(--green); }

.quiz-screen { position: relative; isolation: isolate; max-width: 100%; min-height: 560px; margin: 0 auto; padding: 38px 0 40px; background: transparent; }
.quiz-topline { width: min(100%, 760px); margin-left: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.quiz-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mini-mark { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(74,222,128,.3); border-radius: 9px; background: rgba(74,222,128,.08); color: var(--green); display: grid; place-items: center; font-weight: 700; }
.quiz-identity > span:last-child { display: grid; gap: 3px; min-width: 0; }
.quiz-identity strong { max-width: 280px; overflow: hidden; color: #e6eee7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quiz-identity small { color: #788c7e; font-size: 8px; letter-spacing: .12em; }
.quiz-progress-copy { display: flex; align-items: center; gap: 12px; color: #a8b7aa; font-size: 9px; letter-spacing: .11em; }
.quiz-progress-copy strong { color: var(--green); font-size: 12px; letter-spacing: 0; }
.progress-track { width: min(100%, 760px); margin-left: auto; height: 4px; margin-bottom: 31px; overflow: hidden; border-radius: 10px; background: rgba(221,239,223,.09); }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #26a85a, var(--green)); transition: width .35s ease; }
.question-card { width: min(100%, 760px); margin-left: auto; padding: clamp(24px, 4.2vw, 41px); border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.question-meta { display: flex; align-items: center; gap: 11px; }
.question-number { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.question-category { padding: 4px 0; border: 0; border-radius: 0; color: #d2e0e8; background: transparent; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
  .question-card h1 { max-width: 770px; margin: 17px 0 8px; padding: 13px 15px; border: 0; border-radius: 5px; color: #fff; background: rgba(8,43,76,.89); font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.24; letter-spacing: -.025em; }
.question-card h1:focus { outline: none; }
.question-instruction { margin: 0 0 14px; color: #edf3f6; font-size: 11px; }
.question-images { margin: 0 0 21px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); justify-content: start; align-items: start; gap: 12px; }
.question-image { position: relative; width: 100%; max-width: 360px; min-width: 0; margin: 0; overflow: hidden; border: 0; border-radius: 6px; background: transparent; }
.question-image img:not(.question-image-logo) { box-sizing: border-box; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border: 3px solid #1683c3; border-radius: 6px; object-fit: cover; background: transparent; }
.question-image .question-image-logo { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 66px; max-width: 24%; height: auto; aspect-ratio: 102 / 55; padding: 1px; border: 1px solid rgba(255,255,255,.44); border-radius: 4px; background: #002449; box-shadow: 0 2px 9px rgba(0,0,0,.28); object-fit: contain; pointer-events: none; }
.question-image figcaption { padding: 8px 0; border: 0; color: #d2e0e8; font-size: 9px; }
.answer-list { display: grid; gap: 11px; }
.answer-list-submitted .answer-option:not(.selected):not(.show-correct) { display: none; }
  .answer-option { width: 100%; min-height: 64px; padding: 14px 16px 14px 14px; display: grid; grid-template-columns: 29px minmax(0,1fr) 18px; align-items: center; gap: 12px; border: 0; border-radius: 6px; color: #000; background: rgba(184,245,0,.84); box-shadow: none; cursor: pointer; text-align: left; transition: background .18s, transform .17s, box-shadow .17s; }
  .answer-option:hover:not(:disabled) { transform: translateX(2px); border-color: transparent; background: rgba(202,255,56,.88); }
.answer-option:disabled { cursor: default; }
  .answer-key { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #000; background: rgba(0,0,0,.07); font-size: 10px; font-weight: 800; }
  .answer-copy { color: #000; font-size: 14px; font-weight: 800; line-height: 1.35; }
.answer-marker { width: 13px; height: 13px; justify-self: end; border: 1px solid rgba(0,0,0,.34); border-radius: 50%; }
  .answer-option.selected { border: 0; background: rgba(168,224,0,.88); box-shadow: inset 0 0 0 2px rgba(8,43,76,.45); }
.answer-option.selected .answer-key { color: var(--answer-ink); background: rgba(0,0,0,.1); }
.answer-option.selected .answer-marker { border: 4px solid var(--question-navy); }
  .answer-option.is-correct, .answer-option.show-correct { border: 0; background: rgba(184,245,0,.84); box-shadow: inset 0 0 0 2px #286316; }
.answer-option.is-correct .answer-key, .answer-option.show-correct .answer-key { color: var(--answer-ink); }
.answer-option.is-correct .answer-marker, .answer-option.show-correct .answer-marker { border: 0; background: #286316; }
  .answer-option.is-incorrect { border: 0; background: rgba(203,231,107,.88); box-shadow: inset 0 0 0 2px #8a4635; }
.answer-option.is-incorrect .answer-key { color: var(--answer-ink); }
.answer-option.is-incorrect .answer-marker { border: 0; background: #8a4635; }
.answer-feedback { max-height: 140px; margin-top: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; border: 0; border-radius: 6px; color: #fff; background: var(--question-navy); font-size: 14px; font-weight: 700; line-height: 1.3; }
.feedback-correct, .feedback-incorrect { border: 0; color: #fff; background: var(--question-navy); }
.answer-feedback strong { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; }
.answer-feedback span { color: #f6f9fd; font-size: 15px; font-weight: 600; line-height: 1.3; }
.question-actions { min-height: 48px; margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.answer-hint { color: #8b9e90; font-size: 9px; line-height: 1.5; }
.question-actions .button { min-width: 178px; }
.quiz-footer { width: min(100%, 760px); margin-top: 17px; margin-left: auto; display: flex; justify-content: space-between; color: #718579; font-size: 8px; letter-spacing: .13em; }

@media (min-width: 761px) {
  body.quiz-active { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .site-shell.quiz-active { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .site-shell.quiz-active .topbar { min-height: clamp(50px, 8vh, 64px); flex: 0 0 auto; }
  .site-shell.quiz-active .main-content { width: min(1400px, calc(100% - 48px)); max-width: none; min-height: 0; flex: 1; }
  .site-shell.quiz-active .site-footer { min-height: clamp(26px, 4vh, 34px); flex: 0 0 auto; }
  .quiz-screen { height: 100%; min-height: 0; padding: clamp(5px, 1.1vh, 10px) 0; display: flex; flex-direction: column; gap: clamp(4px, .8vh, 8px); }
  .quiz-topline, .progress-track, .question-card, .quiz-footer { width: 100%; max-width: none; }
  .quiz-topline { margin-top: auto; margin-right: 0; margin-bottom: 0; margin-left: 0; }
  .progress-track { height: 4px; margin-right: 0; margin-bottom: 0; margin-left: 0; }
  .question-card {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    grid-template-areas: "meta meta" "images title" "images instruction" "images answers" "images feedback" "images actions";
    align-content: space-between;
    gap: clamp(4px, .6vh, 8px) clamp(14px, 1.5vw, 22px);
    height: min(620px, 63vh);
    min-height: min(360px, 53vh);
    margin: 0;
    padding: 8px 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .question-meta { grid-area: meta; gap: 8px; }
  .question-category { padding: 4px 7px; font-size: 8px; }
  .question-card h1 { grid-area: title; max-width: none; margin: 0; padding: 14px 18px; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.16; }
  .question-instruction { grid-area: instruction; margin: 0; font-size: 12px; }
  .question-images { grid-area: images; width: 100%; height: 100%; min-width: 0; margin: 0; display: flex; align-items: flex-start; justify-content: center; gap: 0; }
  .question-image { width: min(100%, 67vh); max-width: none; align-self: flex-start; }
  .question-image img:not(.question-image-logo) { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
  .question-image figcaption { padding: 5px 0; font-size: 8px; line-height: 1.25; }
  .answer-list { grid-area: answers; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 7px; }
  .question-images.hidden + .answer-list { grid-column: 1 / -1; }
  .answer-option { min-height: 0; padding: 6px 10px; grid-template-columns: 24px minmax(0,1fr) 12px; gap: 9px; }
  .answer-key { width: 23px; height: 23px; font-size: 11px; }
  .answer-copy { font-size: 14px; line-height: 1.2; }
  .answer-marker { width: 12px; height: 12px; }
  .answer-feedback { grid-area: feedback; max-height: 92px; margin: 0; padding: 10px 14px; gap: 5px; font-size: 14px; line-height: 1.24; }
  .answer-feedback strong { font-size: 20px; }
  .answer-feedback span { font-size: 15px; line-height: 1.25; }
  .question-actions { grid-area: actions; min-height: 32px; margin-top: 0; gap: 8px; }
  .answer-hint { font-size: 10px; }
  .question-actions .button { min-width: 145px; min-height: 32px; padding: 0 11px; font-size: 9px; }
  .question-actions .button span { font-size: 13px; }
  .quiz-footer { margin: 0; font-size: 8px; }
}

@media (min-width: 761px) and (max-height: 780px) {
  .site-shell.quiz-active .topbar { min-height: 50px; }
  .site-shell.quiz-active .site-footer { min-height: 24px; }
  .quiz-screen { padding: 4px 0; gap: 4px; }
  .quiz-identity .mini-mark { width: 27px; height: 27px; }
  .quiz-identity strong { font-size: 10px; }
  .quiz-identity small, .quiz-progress-copy { font-size: 7px; }
  .quiz-progress-copy strong { font-size: 10px; }
  .site-shell.quiz-active .main-content { width: calc(100% - 40px); }
  .quiz-screen { padding: 3px 0; gap: 3px; }
  .question-card { grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); height: min(620px, 63vh); min-height: min(360px, 53vh); padding: 2px 0; gap: 1px 12px; }
  .question-category { padding: 3px 6px; font-size: 9px; }
  .question-card h1 { padding: 12px 15px; font-size: clamp(21px, 1.8vw, 24px); line-height: 1.14; }
  .question-instruction { font-size: 11px; }
  .question-images { gap: 0; }
  .question-image figcaption { padding: 4px 0; font-size: 7px; }
  .answer-list { gap: 5px; }
  .answer-option { padding: 5px 9px; grid-template-columns: 22px minmax(0,1fr) 11px; gap: 8px; }
  .answer-key { width: 21px; height: 21px; font-size: 10px; }
  .answer-copy { font-size: 14px; line-height: 1.18; }
  .answer-marker { width: 11px; height: 11px; }
  .answer-feedback { max-height: 88px; padding: 8px 11px; font-size: 14px; line-height: 1.2; }
  .answer-feedback strong { font-size: 20px; }
  .answer-feedback span { font-size: 15px; line-height: 1.2; }
  .question-actions { min-height: 31px; }
  .question-actions .button { min-width: 140px; min-height: 30px; padding: 0 9px; font-size: 9px; }
  .quiz-footer { font-size: 6px; }
}

@media (min-width: 761px) and (max-height: 640px) {
  .question-card { height: min(620px, 76vh); min-height: min(360px, 70vh); }
  .question-image { width: min(100%, 60vh); }
}

.result-screen { max-width: 950px; margin: 0 auto; padding: 52px 0 42px; }
.result-heading h1 { margin: 19px 0 13px; font-size: clamp(39px, 5vw, 57px); }
.result-heading > p:last-child { color: #a1b0a4; font-size: 12px; }
.result-heading > p:last-child strong { color: #e5ede6; }
.completion-video-panel { margin: 25px 0 31px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(115deg, rgba(30,48,40,.9), rgba(20,33,27,.95)); }
.completion-video-heading { margin-bottom: 13px; display: flex; align-items: center; gap: 12px; }
.completion-video-heading h2 { margin: 0 0 3px; color: #edf3ed; font-size: 14px; }
.completion-video-heading p { margin: 0; color: #91a297; font-size: 9px; }
.completion-video-frame { position: relative; width: min(100%, 800px); margin: 0 auto; overflow: hidden; border: 1px solid rgba(220,240,225,.14); border-radius: 8px; background: #06110c; aspect-ratio: 1280 / 576; }
.completion-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #06110c; }
.completion-video-caption { position: absolute; right: 14px; bottom: 50px; left: 14px; max-width: calc(100% - 28px); padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; border-left: 3px solid #55bd6d; border-radius: 3px; color: #f5f8f4; background: rgba(5,18,11,.82); pointer-events: none; }
.completion-video-caption strong { font-size: 12px; line-height: 1.35; }
.completion-video-caption span { color: #d0dfd2; font-size: 10px; line-height: 1.4; }
.result-summary { min-height: 155px; margin: 24px 0 38px; padding: 20px 26px; display: flex; align-items: center; gap: 25px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(110deg, rgba(30,48,40,.9), rgba(20,33,27,.95)); }
.score-ring { --score: 0%; width: 105px; height: 105px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) var(--score), rgba(219,238,222,.11) var(--score)); position: relative; }
.score-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #1c2c23; }
.score-ring > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.score-ring strong { color: #f2f7ef; font-size: 24px; letter-spacing: -.05em; }
.score-ring span { color: #9aaf9e; font-size: 6px; letter-spacing: .1em; }
.score-details { min-width: 160px; flex: 1; }
.score-label, .certificate-score span, .certificate-date span { display: block; color: #92a499; font-size: 8px; letter-spacing: .15em; }
.score-details > strong { display: block; margin-top: 5px; color: #eff4ef; font-size: 25px; }
.score-details p { max-width: 360px; margin: 7px 0 0; color: #a5b4a8; font-size: 10px; line-height: 1.6; }
.score-divider { width: 1px; height: 74px; background: var(--line); }
.score-stat { min-width: 107px; display: flex; align-items: center; gap: 9px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(74,222,128,.23); border-radius: 50%; color: var(--green); font-size: 13px; }
.stat-icon.miss { color: #d7c279; border-color: rgba(215,194,121,.25); }
.score-stat div { display: grid; gap: 3px; }
.score-stat strong { color: #eff4ef; font-size: 16px; }
.score-stat div span { color: #91a297; font-size: 8px; }
.certificate-section { padding-top: 3px; }
.certificate-section-heading { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.certificate-spark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(195,229,106,.25); border-radius: 9px; color: var(--gold); background: rgba(195,229,106,.06); font-size: 18px; }
.certificate-section-heading h2 { margin: 0 0 3px; color: #edf3ed; font-size: 14px; }
.certificate-section-heading p { margin: 0; color: #91a297; font-size: 9px; }
.certificate { position: relative; isolation: isolate; overflow: hidden; min-height: 510px; padding: 14px; border-radius: 10px; color: #173123; background-color: #f2f5ee; background-image: linear-gradient(rgba(242,245,238,.9), rgba(242,245,238,.9)), url('/images/praca-pedagio.jpg'); background-size: cover; background-position: center 54%; box-shadow: 0 15px 50px rgba(0,0,0,.18); }
.certificate-print-background { display: none; }
.certificate-inner { min-height: 482px; padding: 18px 26px 17px; position: relative; z-index: 1; border: 1px solid #b4c9b5; outline: 1px solid #dce7d9; outline-offset: -7px; border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 13px; overflow: hidden; }
.certificate-inner::before, .certificate-inner::after { content: ''; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(55,111,69,.07); border-radius: 50%; pointer-events: none; }
.certificate-inner::before { top: 70px; left: -100px; }
.certificate-inner::after { right: -100px; bottom: 5px; }
.certificate-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.certificate-logo { width: 100px; height: 54px; object-fit: contain; }
.certificate-series { color: #587465; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.certificate-series b { color: #58a970; }
.certificate-body { text-align: center; }
.certificate-eyebrow { margin: 0 0 9px; color: #55765f; font-size: 8px; font-weight: 700; letter-spacing: .21em; }
.certificate-body h2 { margin: 0; color: #15291c; font-size: clamp(27px, 4vw, 39px); font-weight: 700; letter-spacing: -.065em; line-height: 1.05; }
.certificate-body h2 span { color: #28633e; }
.certificate-recognition { margin: 10px 0 2px; color: #65776a; font-size: 9px; }
.certificate-name { display: inline-block; max-width: min(100%, 650px); margin: 0; overflow-wrap: anywhere; color: #173123; font-size: clamp(17px, 2.5vw, 24px); font-weight: 600; }
.certificate-statement { margin: 9px 0 0; color: #627267; font-size: 8px; line-height: 1.7; }
.certificate-signatures { z-index: 1; width: 100%; }
.certificate-signatures h3 { margin: 0 0 13px; color: #55765f; font-size: 7px; font-weight: 700; letter-spacing: .18em; text-align: center; }
.certificate-signers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.certificate-signer { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #65776a; text-align: center; }
.signature-line { width: 88%; height: 17px; border-bottom: 1px solid #9eb6a2; }
.certificate-signer strong { color: #173123; font-size: 8px; line-height: 1.35; }
.certificate-signer > span:last-child { font-size: 7px; line-height: 1.35; }
.certificate-bottom { z-index: 1; width: 100%; display: flex; justify-content: space-between; align-items: end; }
.certificate-score, .certificate-date { min-width: 120px; }
.certificate-score strong, .certificate-date strong { display: block; margin-top: 5px; color: #255e3b; font-size: 14px; }
.certificate-score span, .certificate-date span { color: #718679; font-size: 6px; }
.certificate-date { text-align: right; }
.certificate-seal { width: 44px; height: 44px; margin-bottom: -2px; border: 1px solid #bbd2bb; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #3d8652; }
.certificate-seal span { font-size: 14px; line-height: 1; }
.certificate-seal small { margin-top: 2px; font-size: 4px; line-height: 1.3; letter-spacing: .1em; text-align: center; }
.certificate-actions { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 9px; }
.certificate-actions .button { min-height: 42px; font-size: 10px; }
.button-secondary { border-color: rgba(210,231,214,.19); color: #dce7de; background: rgba(255,255,255,.035); }
.button-secondary:hover { border-color: rgba(74,222,128,.46); background: rgba(74,222,128,.05); }
.certificate-note { margin: 9px 0 0; color: #809286; font-size: 8px; }
.result-end { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.button-quiet { min-height: 37px; padding: 0 12px; color: #9bada0; border-color: rgba(211,231,215,.13); background: transparent; font-size: 9px; }
.result-end > span { color: #75877a; font-size: 8px; letter-spacing: .13em; }

@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .topbar, .main-content, .site-footer { width: min(100% - 38px, 600px); }
  .topbar { min-height: 72px; }
  .topbar-tag { display: none; }
  .cover-attribution { display: grid; }
  .welcome-copy .cover-attribution + h1 { margin-top: 15px; }
  .brand-logo { width: 78px; height: 42px; }
  .brand-mark, .brand-mark svg { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy span { font-size: 7px; }
  .welcome-screen { min-height: unset; padding: 49px 0 38px; grid-template-columns: 1fr; gap: 35px; }
  .welcome-copy h1 { font-size: clamp(34px, 9.5vw, 50px); }
  .welcome-description { font-size: 12px; }
  .welcome-visual { min-height: 272px; padding: 23px; }
  .visual-heading { margin-top: 39px; font-size: 34px; }
  .visual-bottom { right: 22px; bottom: 20px; left: 22px; }
  .site-footer { min-height: 48px; font-size: 6px; }
  .quiz-screen { min-height: unset; padding-top: 28px; }
  .quiz-topline, .progress-track, .question-card, .quiz-footer { width: 100%; }
  .question-card { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .question-card h1 { max-width: none; margin: 0; padding: 13px 14px; border-radius: 5px; font-size: 22px; }
  .question-instruction { margin: 0; color: #edf3f6; }
  .question-images { margin: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .question-image { width: 100%; max-width: none; background: transparent; }
  .question-image img:not(.question-image-logo) { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
  .answer-option { grid-template-columns: 25px minmax(0,1fr) 13px; gap: 9px; padding: 11px 10px; }
  .answer-copy { font-size: 12px; line-height: 1.48; }
  .question-actions { align-items: flex-start; flex-direction: column; }
  .question-actions .button { align-self: stretch; }
  .quiz-footer { font-size: 6px; }
  .result-screen { padding-top: 39px; }
  .completion-video-panel { margin: 19px 0 25px; padding: 12px; }
  .completion-video-heading { margin-bottom: 10px; }
  .completion-video-caption { right: 8px; bottom: 42px; left: 8px; max-width: calc(100% - 16px); padding: 7px 9px; }
  .completion-video-caption strong { font-size: 10px; }
  .completion-video-caption span { font-size: 8px; }
  .result-summary { padding: 17px 14px; gap: 13px; flex-wrap: wrap; }
  .score-ring { width: 86px; height: 86px; }
  .score-ring strong { font-size: 20px; }
  .score-details { min-width: 110px; }
  .score-details > strong { font-size: 21px; }
  .score-divider { display: none; }
  .score-stat { flex: 1; min-width: 120px; padding-top: 11px; border-top: 1px solid var(--line); }
  .certificate { padding: 8px; }
  .certificate-inner { min-height: 0; padding: 16px 12px 15px; gap: 15px; }
  .certificate-statement { font-size: 7px; }
  .certificate-signers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .certificate-signatures h3 { margin-bottom: 8px; }
  .certificate-signer strong { font-size: 7.5px; }
  .certificate-signer > span:last-child { font-size: 6.5px; }
}
@media (max-width: 400px) {
  .topbar-tag { display: none; }
  .welcome-meta { gap: 8px; font-size: 8px; }
  .quiz-progress-copy { gap: 7px; font-size: 7px; }
  .certificate-series { font-size: 6px; }
  .certificate-score, .certificate-date { min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-shell.cover-active { background-image: linear-gradient(110deg, rgba(8,18,12,.84), rgba(8,18,12,.72)), url('/images/praca-pedagio.jpg'); }
  .welcome-background-video, .quiz-background-video { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  @page { size: A4 landscape; margin: 0; }
  :root { color-scheme: light; }
  html, body, .site-shell { width: 100%; height: 100%; min-height: 100%; margin: 0; overflow: visible; background: #fff !important; }
  body * { visibility: hidden !important; }
  #certificate, #certificate * { visibility: visible !important; }
  #certificate { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 9mm; border-radius: 0; overflow: hidden; isolation: isolate; background: #f2f5ee !important; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #certificate > .certificate-print-background { display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; opacity: .14; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .certificate-inner { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 0; padding: 8mm 12mm; gap: 10mm; }
  .certificate-body h2 { font-size: 35pt; }
  .certificate-statement { font-size: 9pt; }
  .certificate-signatures h3 { font-size: 7pt; margin-bottom: 8mm; }
  .certificate-signers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4mm; }
  .signature-line { height: 13mm; }
  .certificate-signer strong { font-size: 7pt; }
  .certificate-signer > span:last-child { font-size: 6pt; }
}

@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body, .site-shell { width: 297mm !important; height: 210mm !important; min-height: 0 !important; max-height: 210mm !important; margin: 0 !important; overflow: hidden !important; }
  .site-shell { display: block !important; background: #fff !important; }
  .topbar, .site-footer, .quiz-background-stage { display: none !important; }
  .main-content { width: 297mm !important; height: 210mm !important; margin: 0 !important; padding: 0 !important; }
  #result-screen { position: fixed !important; inset: 0 !important; width: 297mm !important; max-width: none !important; height: 210mm !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; transform: none !important; animation: none !important; }
  #result-screen > :not(.certificate-section) { display: none !important; }
  .certificate-section { position: absolute !important; inset: 0 !important; width: 297mm !important; max-width: none !important; height: 210mm !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
  .certificate-section-heading, .certificate-actions, .certificate-note { display: none !important; }
  #certificate { position: absolute !important; inset: 0 !important; width: 297mm !important; max-width: none !important; height: 210mm !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; overflow: hidden !important; break-inside: avoid !important; page-break-inside: avoid !important; break-after: avoid-page !important; page-break-after: avoid !important; }
  #certificate > .certificate-print-background { display: block !important; position: absolute !important; inset: 0 !important; z-index: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 54% !important; opacity: .18 !important; }
  .certificate-inner { position: absolute !important; inset: 8mm !important; width: auto !important; max-width: none !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 6mm 10mm !important; gap: 4mm !important; overflow: hidden !important; break-inside: avoid !important; page-break-inside: avoid !important; }
  .certificate-top { flex: 0 0 18mm !important; }
  .certificate-logo { width: 28mm !important; height: 15mm !important; }
  .certificate-body h2 { font-size: 32pt !important; line-height: 1 !important; }
  .certificate-recognition { margin: 2mm 0 1mm !important; }
  .certificate-name { font-size: 21pt !important; }
  .certificate-statement { margin-top: 2mm !important; font-size: 7pt !important; line-height: 1.4 !important; }
  .certificate-signatures { flex: 0 0 auto !important; }
  .certificate-signatures h3 { margin: 0 0 3mm !important; font-size: 6pt !important; }
  .certificate-signers { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 3mm !important; }
  .signature-line { height: 10mm !important; }
  .certificate-signer strong { font-size: 6.5pt !important; }
  .certificate-signer > span:last-child { font-size: 5.5pt !important; }
  .certificate-bottom { flex: 0 0 15mm !important; }
  .certificate-seal { width: 13mm !important; height: 13mm !important; }
  .certificate-score strong, .certificate-date strong { font-size: 11pt !important; }
}
