@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@500;700;900&display=swap");

:root {
    --ink: #11140f;
    --ink-soft: #20251f;
    --paper: #f4f5ef;
    --white: #ffffff;
    --green: #b7d50a;
    --green-dark: #8da600;
    --cyan: #51c8ef;
    --cyan-soft: #eaf5f7;
    --teal: #197f75;
    --text: #29302b;
    --muted: #667068;
    --line: #dce1d7;
    --danger: #b73e4a;
    --danger-soft: #fff0f1;
    --warning: #f2bc43;
    --warning-soft: #fff7df;
    --success: #25765d;
    --success-soft: #e9f6ef;
    --shadow: 0 18px 48px rgba(17, 20, 15, .09);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::selection { background: var(--green); color: var(--ink); }
img { max-width: 100%; }

a {
    color: var(--teal);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, strong, .button, .badge, .topnav {
    font-family: "Roboto", Arial, sans-serif;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; }
h1 { font-size: 44px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
[hidden] { display: none !important; }

.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;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--green);
    color: var(--ink);
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 82px;
    background: rgba(17, 20, 15, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
    color: var(--white);
}

.brand:hover { color: var(--white); }
.brand img { display: block; width: 210px; height: auto; }

.brand span {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .3);
    color: #bdc5bd;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.topnav, .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topnav { justify-content: flex-end; }

.topnav a, .topnav button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #eef1eb;
    font: 700 12px/1 "Roboto", Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.topnav a:hover, .topnav button:hover { color: var(--cyan); }

.topnav .nav-action {
    min-height: 40px;
    margin-left: 5px;
    padding: 10px 17px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: var(--green);
    color: var(--ink);
}

.topnav .nav-action:hover {
    border-color: var(--cyan);
    background: var(--cyan);
    color: var(--ink);
}

[data-inline-form] { display: inline-flex; margin: 0; }

.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--white);
}

.page {
    width: min(1160px, calc(100% - 40px));
    min-height: calc(100vh - 290px);
    margin: 0 auto;
    padding: 42px 0 76px;
}

.hero {
    position: relative;
    display: grid;
    align-content: center;
    width: 100vw;
    min-height: 570px;
    margin: -42px 0 0 calc(50% - 50vw);
    padding: 78px max(24px, calc((100vw - 1160px) / 2));
    overflow: hidden;
    isolation: isolate;
    background: var(--ink) url("../img/doteky-hero.jpg") right center / auto 100% no-repeat;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, rgba(7, 9, 7, .98) 0%, rgba(7, 9, 7, .86) 38%, rgba(7, 9, 7, .24) 72%, rgba(7, 9, 7, .05) 100%);
}

.hero > div:first-child { max-width: 600px; }

.hero h1 {
    max-width: 600px;
    margin: 0 0 22px;
    color: var(--white);
    font-size: 68px;
    font-weight: 900;
    line-height: .98;
    text-transform: uppercase;
}

.hero p:not(.eyebrow) {
    max-width: 580px;
    color: #eef1eb;
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions { margin-top: 20px; }

.hero .button:not(.primary) {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
    color: var(--white);
}

.hero .button:not(.primary):hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.section { margin-top: 64px; }
.hero + .section { margin-top: 0; padding-top: 70px; }

.project-intro {
    padding-bottom: 54px;
    border-bottom: 1px solid var(--line);
}

.project-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.project-purpose p:first-child { margin-top: 0; color: var(--ink); font-size: 18px; line-height: 1.7; }

.project-steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: project-step;
}

.project-steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 4px 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
    counter-increment: project-step;
}

.project-steps li + li { padding-top: 18px; }
.project-steps li::before {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    content: counter(project-step);
    font-weight: 800;
}

.project-steps strong { color: var(--ink); font-size: 16px; }
.project-steps span { color: var(--muted); }

.project-rules {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
    padding: 24px 26px;
    background: var(--ink);
    color: #e8ede7;
}

.project-rules strong { color: var(--cyan); text-transform: uppercase; }
.project-rules span { padding-left: 18px; border-left: 1px solid #454c45; }

.section-head, .admin-head, .question-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-head h1, .section-head h2, .admin-head h1, .admin-head h2, .question-head h1, .question-head h2 { margin: 0; }

.eyebrow {
    display: block;
    margin: 0 0 10px;
    color: var(--teal);
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero .eyebrow { color: var(--cyan); font-size: 14px; }

.panel, .auth-panel, .question, .table-wrap {
    margin-top: 24px;
    border: 1px solid var(--line);
    background: var(--white);
}

.panel, .auth-panel, .question { padding: 30px; }
.panel, .auth-panel { border-top: 3px solid var(--cyan); }

.panel h1, .auth-panel h1, .admin-head h1 {
    margin: 0 0 18px;
    font-size: 42px;
}

.panel h2, .auth-panel h2 { margin-top: 0; }

.auth-panel {
    max-width: 580px;
    margin: 42px auto 0;
    border-top-color: var(--green);
    box-shadow: var(--shadow);
}

.auth-panel.wide { max-width: 930px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 20px;
}

.card, .list-row, .stats > div { border: 1px solid var(--line); background: var(--white); }

.card {
    position: relative;
    min-height: 235px;
    padding: 28px;
    border-top: 4px solid var(--green);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:nth-child(even) { border-top-color: var(--cyan); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 14px; font-size: 24px; }
.card p:not(.eyebrow) { color: var(--muted); }
.card .button { margin-top: 8px; }

.list { display: grid; gap: 12px; }

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-left: 4px solid var(--cyan);
}

.list-row:nth-child(even) { border-left-color: var(--green); }
.list-row.block { display: block; }
.list-row p:last-child { margin-bottom: 0; }

.nested-list {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.nested-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.compact-list { margin: 12px 0 0; padding-left: 22px; }
.compact-list li { margin-bottom: 7px; }

.stats, .meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.stats > div, .meta-grid > span {
    min-height: 86px;
    padding: 17px;
    border-left: 3px solid var(--green);
    background: var(--paper);
}

.stats > div:nth-child(even), .meta-grid > span:nth-child(even) { border-left-color: var(--cyan); }
.stats strong { display: block; color: var(--ink); font-size: 30px; }
.stats span, .muted, .meta-grid span, .hint { color: var(--muted); }

.workflow, .checklist { display: grid; gap: 12px; }
.workflow { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.workflow > div, .check-item {
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--white);
}

.workflow > div { border-top: 3px solid var(--cyan); }
.workflow strong, .check-item strong { display: block; color: var(--ink); }
.workflow span, .check-item span { color: var(--muted); }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-left: 7px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.ok, .check-item.ok { border-color: #a9d1bb; background: var(--success-soft); color: #155a42; }
.badge.warning, .check-item.warning, .alert.warning, .warning-panel { border-color: #e6c86f; background: var(--warning-soft); color: #644809; }
.badge.error, .check-item.error, .hint.error { border-color: #e8b6bc; background: var(--danger-soft); color: var(--danger); }
.badge.muted { color: var(--muted); }

.form { display: grid; gap: 19px; }
.form.compact { gap: 11px; }

.filterbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    align-items: end;
    gap: 13px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    background: var(--white);
}

.two, .three, .four { display: grid; gap: 15px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

label, fieldset {
    display: grid;
    gap: 7px;
    color: #354039;
    font-size: 13px;
    font-weight: 700;
}

fieldset {
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--paper);
}

legend { padding: 0 8px; color: var(--ink); font: 700 16px/1.2 "Roboto", Arial, sans-serif; }

input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bdc6bb;
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
    font: 400 15px/1.45 "Open Sans", Arial, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--teal);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(81, 200, 239, .25);
}

input[type="file"] { padding: 8px; background: var(--paper); }
textarea { min-height: 110px; resize: vertical; }
.order-input { width: 76px; }

.attachment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.answer-key {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--green);
    background: var(--paper);
}

.check {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
}

.check:hover { border-color: var(--cyan); }

.check input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    accent-color: var(--teal);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.button:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.button.primary { border-color: var(--green); background: var(--green); color: var(--ink); }
.button.primary:hover { border-color: var(--cyan); background: var(--cyan); color: var(--ink); }
.button.danger { border-color: var(--danger); background: var(--danger); color: var(--white); }
.button.danger:hover { border-color: #8f2632; background: #8f2632; }
.button.small { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.button.disabled { opacity: .5; pointer-events: none; }

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    background: var(--white);
}

.alert.success { border-color: #a9d1bb; background: var(--success-soft); color: #155a42; }
.alert.error { border-color: #e8b6bc; background: var(--danger-soft); color: var(--danger); }
.danger-panel { border-top-color: var(--danger); }
.warning-panel { border-top-color: var(--warning); }

.subpanel {
    margin-top: 8px;
    padding: 22px;
    border-left: 4px solid var(--cyan);
    background: var(--paper);
}

.subpanel h2 { font-size: 22px; }

.quiz-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    border: 0;
    background: var(--ink);
    color: var(--white);
}

.quiz-progress.no-attachments { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.quiz-progress > div {
    min-height: 145px;
    padding: 24px;
    border-right: 1px solid #394038;
}

.quiz-progress > div:last-child { border-right: 0; }
.quiz-progress strong { display: block; margin-bottom: 8px; color: var(--white); font-size: 17px; }
.quiz-progress .muted { color: #bdc5bd; }
.quiz-progress p { margin-bottom: 0; }

.quiz-finality-warning {
    margin-top: 24px;
    padding: 20px 22px;
    border-left: 5px solid #c89a12;
    background: var(--warning-soft);
    color: #533d08;
}

.quiz-finality-warning strong { display: block; margin-bottom: 6px; color: #3f2e05; font-size: 18px; }
.quiz-finality-warning p { margin: 0; }

.final-submit-panel { border-top-color: #c89a12; }
.final-submit-panel > p:not(.eyebrow) { max-width: 760px; }
.final-submit-check {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid #e6c86f;
    background: var(--warning-soft);
    font-size: 15px;
}

.episode-video { margin-bottom: 28px; }

.video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    background: #000;
}

.video-frame iframe,
.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.question {
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--cyan);
    box-shadow: 0 8px 30px rgba(17, 20, 15, .05);
}

.question:nth-of-type(even) { border-left-color: var(--green); }

.question::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 5px;
    content: "";
    background: var(--green);
}

.question h2 { margin: 0; font-size: 25px; }

.question-head {
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.question-head > span {
    max-width: 240px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    text-transform: uppercase;
}

.question.needs-answer { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(183, 62, 74, .15); }

.option-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

th {
    background: var(--ink);
    color: var(--white);
    font: 700 11px/1.3 "Roboto", Arial, sans-serif;
    text-transform: uppercase;
}

tbody tr:hover { background: var(--cyan-soft); }

.map-settings {
    border-left-color: var(--green);
}

.map-canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 430px;
    margin: 16px 0;
    border: 1px solid #aeb8ac;
    background: #dce1d7;
}

.map-canvas:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(81, 200, 239, .25);
}

.map-admin { height: 480px; }
.map-result, .map-preview { height: 360px; }

.map-answer-footer,
.map-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.map-selection {
    color: var(--muted);
    font-size: 13px;
}

.map-view-fields {
    margin-top: 15px;
}

.map-legend {
    justify-content: flex-start;
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.map-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.answer-dot { background: var(--cyan); }
.target-dot { background: var(--green); }

.leaflet-container {
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
}

.leaflet-control-attribution {
    font-size: 10px;
}

.site-footer { background: var(--ink); color: #bdc5bd; }

.site-footer-inner {
    display: grid;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    gap: 32px;
    padding: 42px 0 48px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand img { display: block; width: 220px; margin-bottom: 14px; }
.footer-brand p { margin: 0; color: #bdc5bd; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

.footer-links a {
    color: var(--white);
    font: 700 12px/1.3 "Roboto", Arial, sans-serif;
    text-transform: uppercase;
}

.footer-links a:hover { color: var(--green); }

.footer-partners {
    padding-top: 28px;
    border-top: 1px solid #394038;
}

.footer-collaboration {
    max-width: 1080px;
    margin: 0 0 26px;
    color: #eef1eb;
    font-size: 14px;
}

.footer-collaboration a { color: var(--cyan); font-weight: 700; }
.footer-collaboration a:hover { color: var(--green); }
.footer-collaboration strong { color: var(--white); }

.partner-logos {
    display: grid;
    grid-template-columns: 1fr 1.65fr 1.25fr .65fr 2fr;
    align-items: center;
    gap: 28px;
}

.partner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 92px;
}

.partner-logos img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 74px;
    object-fit: contain;
}

.partner-logos .partner-mhmp img { max-height: 92px; }
.partner-logos .partner-kbes img { height: auto; max-height: 92px; filter: invert(1); }

@media (max-width: 1040px) {
    .brand img { width: 180px; }
    .brand span { display: none; }
    .topnav a, .topnav button { padding-inline: 7px; font-size: 11px; }
    .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filterbar { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 820px) {
    .topbar, .topbar-inner { min-height: 70px; }
    .topbar-inner { width: min(1160px, calc(100% - 28px)); }
    .brand img { width: 174px; }
    .nav-toggle {
        position: absolute;
        top: 13px;
        right: 14px;
        display: block !important;
    }

    .topnav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 14px;
        border-top: 1px solid #394038;
        background: var(--ink);
        box-shadow: 0 18px 32px rgba(0, 0, 0, .24);
    }

    .topnav.is-open { display: grid; }
    .topnav a, .topnav button, .topnav [data-inline-form] { width: 100%; }
    .topnav a, .topnav button { justify-content: flex-start; padding: 12px; }
    .topnav .nav-action { justify-content: center; margin-left: 0; }
    .page { width: min(1160px, calc(100% - 28px)); padding-top: 30px; }

    .hero {
        min-height: 560px;
        margin-top: -30px;
        padding-block: 68px;
        background-position: 62% center;
        background-size: cover;
    }

    .hero::before { background: rgba(7, 9, 7, .76); }
    .hero h1 { font-size: 55px; }
    .project-intro-grid { grid-template-columns: 1fr; gap: 36px; }
    .project-rules { grid-template-columns: 1fr; }
    .project-rules span { padding: 10px 0 0; border-top: 1px solid #454c45; border-left: 0; }
    .workflow, .quiz-progress, .filterbar { grid-template-columns: 1fr; }
    .quiz-progress > div { min-height: auto; border-right: 0; border-bottom: 1px solid #394038; }
    .quiz-progress > div:last-child { border-bottom: 0; }
    .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-logos .partner-kbes { grid-column: 1 / -1; }
    .partner-logos .partner-kbes img { width: 100%; max-width: 380px; }
}

@media (max-width: 620px) {
    h1, .panel h1, .auth-panel h1, .admin-head h1 { font-size: 34px; }
    h2 { font-size: 25px; }
    .hero { min-height: 520px; padding-inline: 20px; }
    .hero h1 { max-width: 8ch; font-size: 42px; overflow-wrap: anywhere; }
    .hero p:not(.eyebrow) { font-size: 16px; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .section, .hero + .section { margin-top: 46px; padding-top: 0; }
    .panel, .auth-panel, .question { padding: 22px 18px; }
    .two, .three, .four { grid-template-columns: 1fr; }

    .list-row, .nested-row, .section-head, .admin-head, .question-head, .attachment-row {
        align-items: stretch;
        flex-direction: column;
    }

    .list-row .actions, .nested-row .actions { width: 100%; }
    .list-row .button, .nested-row .button { flex: 1 1 auto; }
    .question-head > span { max-width: none; text-align: left; }
    .option-row { grid-template-columns: 1fr; }
    .map-canvas, .map-admin, .map-result, .map-preview { height: 340px; }
    .map-answer-footer { align-items: stretch; flex-direction: column; }
    .map-answer-footer .button { width: 100%; }

    .site-footer-inner {
        width: min(1160px, calc(100% - 28px));
        gap: 28px;
        padding-block: 36px;
    }

    .footer-main { align-items: flex-start; flex-direction: column; gap: 24px; }
    .footer-links { display: grid; gap: 12px; }
    .footer-partners { padding-top: 24px; }
    .partner-logos { gap: 24px 18px; }
    .partner-logos a { min-height: 76px; }
    .partner-logos img { max-height: 58px; }
    .partner-logos .partner-mhmp img { max-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
