/* Demo COMDI, redesign 2: klidný diagnostický nástroj. Paleta z loga (inkoust a červená), Montserrat pro rozhraní,
   Source Serif 4 pro dlouhé texty výsledků. Psáno ručně, bez build kroku. */

@font-face { font-family: Montserrat; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/Montserrat-Regular.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/Montserrat-Medium.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/Montserrat-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/Montserrat-Bold.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/Montserrat-ExtraBold.woff2) format("woff2"); }

/* Source Serif 4 (SIL OFL), řezy latin a latin-ext */
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/SourceSerif4-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/SourceSerif4-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/SourceSerif4-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/SourceSerif4-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/SourceSerif4-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/SourceSerif4-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --inkoust: #1f1c5c;
    --inkoust-2: #3b3794;
    --inkoust-svetly: #eceefa;
    --pasmo-1: #e3e5f4;
    --pasmo-2: #c5c8e8;
    --pasmo-3: #9fa3d6;
    --signal: #c3203d;
    --signal-svetly: #fdeef1;
    --papir: #f5f6fa;
    --povrch: #fff;
    --text: #1f2133;
    --tlumeny: #5b6075;
    --linka: #e2e4ec;
    --stin: 0 1px 2px rgba(31, 28, 92, 0.06), 0 8px 24px rgba(31, 28, 92, 0.06);
    --pismo: Montserrat, "Segoe UI", system-ui, sans-serif;
    --pismo-cteni: "Source Serif 4", Georgia, "Times New Roman", serif;
    --rychlost: 0.16s;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--pismo);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--papir);
}

main { flex: 1; padding: 36px 0 56px; }
#obsah:focus { outline: none; }

.preskocit {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 20;
    padding: 10px 16px;
    background: #fff;
    color: var(--inkoust);
    border-radius: 8px;
    font-weight: 700;
}
.preskocit:focus { top: 12px; }

.jen-cteni { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----- sloupce obsahu ----- */
.sloupec { width: 100%; margin-inline: auto; padding-inline: 16px; max-width: calc(var(--sirka, 1080px) + 32px); }
.sloupec-siroky { --sirka: 1080px; }
.sloupec-stredni { --sirka: 800px; }
.sloupec-uzky { --sirka: 760px; }

/* ----- horní lišta ----- */
.lista { background: var(--povrch); border-bottom: 1px solid var(--linka); }
.lista-obsah { display: flex; align-items: center; gap: 20px; max-width: 1112px; height: 76px; margin-inline: auto; padding-inline: 16px; }
.logo { display: block; flex: none; border-radius: 6px; }
.logo img { display: block; width: auto; height: 52px; }
.lista-test { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--tlumeny); }
.lista-test:not(:empty) { padding-left: 20px; border-left: 1px solid var(--linka); }
.lista-test:empty { flex: 0 0 0; }
.lista-uzivatel { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; }
.uzivatel { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 0; font-size: 0.875rem; }
.uzivatel strong { min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.uzivatel-narozeni { flex: none; color: var(--tlumeny); }
.konec-form { margin: 0; }
button.odkaz-konec {
    min-height: 40px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--inkoust-2);
    cursor: pointer;
    transition: background-color var(--rychlost);
}
button.odkaz-konec:hover { background: var(--inkoust-svetly); }

/* ----- patička ----- */
.patka { border-top: 1px solid var(--linka); background: var(--povrch); font-size: 0.8125rem; color: var(--tlumeny); }
.patka-obsah { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px 40px; max-width: 1112px; margin-inline: auto; padding: 28px 16px 32px; }
.patka-firma, .patka-kontakt, .patka-odkazy { display: flex; flex-direction: column; gap: 4px; }
.patka-firma strong { font-weight: 700; color: var(--text); }
.patka a { color: var(--inkoust-2); font-weight: 600; text-decoration: none; }
.patka a:hover { text-decoration: underline; }

/* ----- texty ----- */
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; color: var(--inkoust); text-wrap: balance; }
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
.podnadpis { margin: 2em 0 0.7em; }
.uvod-text { margin: 0 0 1.4em; font-size: 1.0625rem; color: var(--tlumeny); max-width: 62ch; }

a { color: var(--inkoust-2); text-underline-offset: 0.2em; }
a:hover { color: var(--inkoust); }

:focus-visible { outline: 3px solid var(--inkoust-2); outline-offset: 2px; border-radius: 6px; }

.text { max-width: 70ch; }
.text p { margin: 0 0 0.9em; }
.text p:last-child { margin-bottom: 0; }
.text-cteni, .cteni { font-family: var(--pismo-cteni); font-size: 1.125rem; line-height: 1.65; }
.cteni p { margin: 0 0 0.8em; }
.cteni p:last-child { margin-bottom: 0; }
.text-cteni strong, .cteni strong { font-weight: 600; }

kbd {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border: 1px solid #c9cde3;
    border-bottom-width: 2px;
    border-radius: 7px;
    background: #fff;
    font: 600 0.8125rem/1 var(--pismo);
    color: var(--inkoust);
    vertical-align: 1px;
}

/* ----- hlášky ----- */
.hlaska { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border-left: 4px solid var(--inkoust); background: var(--inkoust-svetly); font-weight: 500; }
.hlaska-error { border-left-color: var(--signal); background: var(--signal-svetly); }

/* ----- tlačítka ----- */
.tl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 28px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--rychlost), border-color var(--rychlost), color var(--rychlost), transform var(--rychlost);
    -webkit-appearance: none;
    appearance: none;
}
.tl:active { transform: translateY(1px); }
.tl .mala { flex: none; }

.tl-hlavni { background: var(--inkoust); color: #fff; }
.tl-hlavni:hover { background: var(--inkoust-2); color: #fff; }

.tl-druhotne { background: var(--povrch); color: var(--inkoust); border-color: #c4c7e0; }
.tl-druhotne:hover { background: var(--inkoust-svetly); border-color: var(--inkoust); color: var(--inkoust); }

.tl-text { padding-inline: 16px; background: transparent; color: var(--inkoust-2); }
.tl-text:hover { background: var(--inkoust-svetly); color: var(--inkoust); }

.tlacitka { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; align-items: center; }
.tlacitka .hlaska { flex-basis: 100%; margin-bottom: 0; }
.tlacitka .konec-form { display: contents; }

/* ----- formulář (úvod) ----- */
.pole { margin-bottom: 20px; }
.pole label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }

input[type="text"], input[type="date"] {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--text);
    background: #fff;
    border: 1.5px solid #b9bdd6;
    border-radius: 12px;
    transition: border-color var(--rychlost), box-shadow var(--rychlost);
}
input[type="text"]:focus, input[type="date"]:focus { outline: none; border-color: var(--inkoust-2); box-shadow: 0 0 0 3px rgba(59, 55, 148, 0.22); }
input[aria-invalid="true"], .pole:has(.chyba) input { border-color: var(--signal); }

.chyba { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--signal); }

.osoba { margin: 0 0 1.4em; display: grid; gap: 12px; }
.osoba div { padding: 14px 18px; background: var(--papir); border-radius: 12px; }
.osoba dt { font-size: 0.8125rem; font-weight: 600; color: var(--tlumeny); }
.osoba dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }

/* ----- úvod ----- */
.uvod { display: grid; gap: 24px; }
.uvod-panel { position: relative; overflow: hidden; border-radius: 20px; background: var(--inkoust); color: #fff; }
.uvod-motiv { position: absolute; right: -230px; bottom: -150px; width: 760px; height: auto; overflow: visible; pointer-events: none; }
.uvod-panel-obsah { position: relative; padding: 48px; }
.uvod-panel h1 { margin: 0 0 16px; color: #fff; }
.uvod-popis { margin: 0 0 32px; max-width: 46ch; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.86); }
.uvod-testy { list-style: none; margin: 0; padding: 0; }
.uvod-testy li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.uvod-testy .ikona { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.uvod-test-nazev { flex: 1; min-width: 0; font-weight: 600; }
.uvod-test-pocet { flex: none; font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }

.uvod-formular { align-self: start; padding: 40px; border: 1px solid var(--linka); border-radius: 20px; background: var(--povrch); box-shadow: var(--stin); }
.uvod-formular h2 { margin-bottom: 8px; }
.uvod-formular .uvod-text { margin-bottom: 1.6em; font-size: 1rem; }
.tlacitka-sloupec { flex-direction: column; align-items: stretch; margin-top: 28px; }
.tlacitka-sloupec .tl { width: 100%; }
.uvod-formular .tlacitka { margin-top: 24px; }

@media (min-width: 900px) {
    .uvod { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
    .uvod-formular { align-self: stretch; }
}

.nabidka-vice { margin: 20px 4px 0; font-size: 0.9375rem; color: var(--tlumeny); }

/* výzva k další akci na výsledkové stránce */
.cta { position: relative; overflow: hidden; margin-top: 44px; border-radius: 20px; background: var(--inkoust); color: #fff; }
.cta-motiv { right: -260px; bottom: -190px; }
.cta-obsah { position: relative; max-width: 640px; padding: 44px 48px; }
.cta h2 { margin-bottom: 12px; color: #fff; font-size: 1.625rem; }
.cta p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.86); }
.cta a { color: #fff; }
.cta-cesty { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.cta-cesty a { font-weight: 600; text-decoration-thickness: 1.5px; }
.cta-akce { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-akce .cta-kontakt { margin: 0; font-size: 0.9375rem; }
.cta a:focus-visible, .patka a:focus-visible { outline-color: #fff; }
.patka a:focus-visible { outline-color: var(--inkoust-2); }
.cta .tl-svetle { background: #fff; color: var(--inkoust); text-decoration: none; }
.cta .tl-svetle:hover { background: var(--inkoust-svetly); color: var(--inkoust); }
.cta a:not(.tl):hover { color: #fff; text-decoration-thickness: 2px; }

/* ----- ikony testů ----- */
.ikona { flex: none; width: 56px; height: 56px; padding: 12px; color: var(--inkoust); background: var(--inkoust-svetly); border-radius: 14px; }
.mala { flex: none; }

/* ----- nabídka testů ----- */
.nabidka h1 { margin-bottom: 8px; }
.testy { list-style: none; margin: 28px 0 0; padding: 0; background: var(--povrch); border: 1px solid var(--linka); border-radius: 20px; box-shadow: var(--stin); overflow: hidden; }
.test-radek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 26px 32px; border-top: 1px solid var(--linka); transition: background-color var(--rychlost); }
.test-radek:first-child { border-top: 0; }
.test-radek:hover { background: #fafbfe; }
.test-text h2 { margin: 0 0 4px; font-size: 1.25rem; }
.test-popis { margin: 0; font-family: var(--pismo-cteni); font-size: 1.0625rem; line-height: 1.5; color: var(--tlumeny); }
.test-pocet { margin: 6px 0 0; font-size: 0.875rem; font-weight: 600; color: var(--tlumeny); }
.test-akce { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 176px; }
.test-akce .tl { width: 100%; }
.odkaz-vice { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; font-size: 0.875rem; font-weight: 600; }

.info-hlava { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.info-hlava .ikona { width: 64px; height: 64px; padding: 14px; }
.info-hlava h1 { margin: 0; }
.info-hlava .test-pocet { margin: 4px 0 0; }
.info .text-cteni { margin-top: 28px; }

/* ----- krokovník ----- */
.kroky { display: flex; align-items: center; list-style: none; margin: 0 0 36px; padding: 0; font-size: 0.875rem; font-weight: 600; color: var(--tlumeny); }
.kroky li { display: flex; align-items: center; flex: 1 1 auto; gap: 10px; min-width: 0; }
.kroky li:last-child { flex: 0 0 auto; }
.kroky li:not(:last-child)::after { content: ""; flex: 1; min-width: 12px; height: 2px; margin: 0 14px 0 4px; border-radius: 2px; background: var(--linka); }
.kroky li.hotovo:not(:last-child)::after { background: var(--inkoust); }
.krok-bod { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8eaf3; font-size: 0.8125rem; font-weight: 700; color: var(--tlumeny); }
.krok-bod i { width: 12px; height: 12px; border: 2.5px solid #fff; border-radius: 50%; }
.kroky li.hotovo .krok-bod, .kroky li.aktivni .krok-bod { background: var(--inkoust); color: #fff; }
.kroky li.hotovo { color: var(--text); }
.kroky li.aktivni { color: var(--inkoust); font-weight: 700; }
.krok-text { white-space: nowrap; }

/* ----- instrukce ----- */
.instrukce h1 { margin: 0; }
.instrukce .podnadpis { margin-top: 1.6em; font-size: 1.25rem; color: var(--tlumeny); }
.fakta { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--linka); }
.fakta li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linka); }
.fakta .mala { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--inkoust-svetly); color: var(--inkoust); }
.fakta kbd { margin: 0 2px; }

/* ----- otázka ----- */
.otazka-hlava { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.otazka-druh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.otazka-nazev { font-size: 0.9375rem; color: var(--tlumeny); }
.otazka-cislo { font-size: 1rem; font-weight: 500; color: var(--tlumeny); font-variant-numeric: tabular-nums; }
.otazka-cislo strong { font-weight: 800; color: var(--inkoust); }
.stitek { display: inline-flex; align-items: center; padding: 3px 14px; border: 1.5px solid var(--inkoust); border-radius: 999px; font-size: 0.875rem; font-weight: 700; line-height: 1.5; color: var(--inkoust); }
.stitek-test { border-color: var(--linka); background: var(--povrch); color: var(--tlumeny); }
.stitek-vysledek { padding: 2px 10px; border-color: var(--signal); background: var(--signal); font-size: 0.8125rem; color: #fff; }

.postup { display: flex; gap: 3px; height: 8px; margin: 16px 0 40px; }
.postup-dil { flex: 1 1 0; min-width: 0; border-radius: 4px; background: var(--linka); transition: background-color 0.3s; }
.postup-dil.hotovo { background: var(--inkoust); }
.postup-dil.aktualni { background: var(--pasmo-3); }
.postup-husty { gap: 2px; height: 6px; }
.postup-husty .postup-dil { border-radius: 2px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.otazka-text { display: block; width: 100%; margin: 0 0 28px; padding: 0; font-size: 1.75rem; font-weight: 600; line-height: 1.3; color: var(--text); text-wrap: balance; }

.volby { display: grid; gap: 12px; }
.volba-obal { position: relative; }
.volba-vstup { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.volba {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
    padding: 12px 18px 12px 14px;
    background: #fff;
    border: 1.5px solid var(--linka);
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--rychlost), background-color var(--rychlost), box-shadow var(--rychlost);
    -webkit-tap-highlight-color: transparent;
}
.volba:hover { border-color: rgba(31, 28, 92, 0.4); }
.volba-klavesa { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--inkoust-svetly); color: var(--inkoust); transition: background-color var(--rychlost), color var(--rychlost); }
.volba-klavesa kbd { min-width: 0; height: auto; padding: 0; border: 0; background: none; font-size: 0.9375rem; font-weight: 700; color: inherit; vertical-align: 0; }
.volba-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.volba-fajka { flex: none; color: var(--inkoust); opacity: 0; transform: scale(0.7); transition: opacity var(--rychlost), transform var(--rychlost); }

.volba-vstup:focus-visible + .volba { outline: 3px solid var(--inkoust-2); outline-offset: 2px; }
.volba-vstup:checked + .volba { border-color: var(--inkoust); background: var(--inkoust-svetly); box-shadow: 0 0 0 0.5px var(--inkoust); font-weight: 600; }
.volba-vstup:checked + .volba .volba-klavesa { background: var(--inkoust); color: #fff; }
.volba-vstup:checked + .volba .volba-fajka { opacity: 1; transform: none; }

.chyba-odpoved { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.9375rem; }
.chyba-odpoved:not(:empty)::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: var(--signal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chyba:empty, [hidden] { display: none !important; }

.otazka-patka { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px; }
.napoveda { margin: 0; font-size: 0.875rem; color: var(--tlumeny); max-width: 48ch; line-height: 1.9; }
.otazka-patka .tl { min-width: 200px; }

/* ----- připravte se, odpočet ----- */
.pripravit { text-align: center; }
.pripravit .kroky { text-align: left; }
.pripravit h1 { margin-bottom: 12px; }
.pripravit .uvod-text { margin-inline: auto; }
.pripravit-seznam { display: inline-block; margin: 0 0 8px; padding: 0; list-style: none; text-align: left; }
.pripravit-seznam li { position: relative; padding: 4px 0 4px 26px; font-size: 1.0625rem; }
.pripravit-seznam li::before { content: ""; position: absolute; left: 4px; top: 0.95em; width: 8px; height: 8px; border-radius: 50%; background: var(--inkoust-2); }
.odpocet-form { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.odpocet { position: relative; width: 208px; height: 208px; }
.odpocet svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.odpocet circle { fill: none; stroke-width: 6; }
.odpocet-draha { stroke: var(--inkoust-svetly); }
.odpocet-vypln { stroke: var(--inkoust); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; animation: odpocet linear forwards; }
.odpocet-cislo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; font-weight: 800; line-height: 1; color: var(--inkoust); font-variant-numeric: tabular-nums; }
@keyframes odpocet { to { stroke-dashoffset: 326.7; } }
.odpocet-form .napoveda { margin-top: 8px; text-align: center; }
.odpocet-form .tl { margin-top: 12px; min-width: 240px; }

/* ----- výsledkový list ----- */
.vl-hlava { margin-bottom: 8px; }
.vl-stitek { margin: 0 0 6px; font-size: 0.875rem; font-weight: 700; color: var(--inkoust-2); }
.vl-hlava h1 { margin-bottom: 8px; }
.vl-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 14px; font-size: 1rem; font-weight: 600; color: var(--tlumeny); }
.vl-meta span { overflow-wrap: anywhere; }
.vl-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 1em; margin: 0 14px; background: #c4c7e0; vertical-align: -0.15em; }
.vl-podtitul { max-width: 62ch; margin: 0; font-family: var(--pismo-cteni); font-size: 1.125rem; font-style: italic; color: var(--tlumeny); }

.hero { margin-top: 28px; padding: 40px; background: var(--povrch); border: 1px solid var(--linka); border-radius: 20px; box-shadow: var(--stin); }
.hero-radek { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.hero-vule .hero-radek { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 48px; }
.skore { text-align: center; }
.skore-cislo { margin: 0; font-size: 6.5rem; font-weight: 800; line-height: 1; color: var(--inkoust); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.skore-z { margin: 6px 0 0; font-size: 1.125rem; font-weight: 600; color: var(--tlumeny); }
.hero-pasmo { margin: 0 0 8px; font-size: 0.875rem; font-weight: 700; color: var(--inkoust-2); }
.hero-text .cteni { font-size: 1.25rem; line-height: 1.55; }
.hero-vule-rozsah { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; color: var(--inkoust); }
.hero-vule-rozsah:not(:first-of-type) { margin-top: 20px; }
.hero-uvod { max-width: 78ch; font-size: 1.1875rem; }
.hero-nadpis { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--tlumeny); }

.graf { margin: 0; }
.hero .graf-siroky, .hero .graf-uzky { margin-top: 0; }
.hero-body .graf, .hero-eq .graf { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--linka); }
.graf svg { display: block; width: 100%; height: auto; margin-inline: auto; }
.graf-uzky { display: none; }
.graf-jeden svg { max-width: 460px; }
.hero-mrizka { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--linka); }

/* pásma hodnocení */
.pasma { margin: 0; background: var(--povrch); border: 1px solid var(--linka); border-radius: 20px; overflow: hidden; }
.pasmo { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 32px; padding: 24px 32px; border-top: 1px solid var(--linka); color: var(--tlumeny); }
.pasmo:first-child { border-top: 0; }
.pasmo-nadpis { margin: 0; font-size: 1.125rem; font-weight: 800; color: var(--inkoust); }
.pasmo-rozsah { display: block; }
.pasmo .stitek { margin-top: 8px; }
.pasmo-text { font-family: var(--pismo-cteni); font-size: 1.0625rem; line-height: 1.65; }
.pasmo-text p { margin: 0 0 0.7em; }
.pasmo-text p:last-child { margin-bottom: 0; }
.pasmo:not(.vybrane) .pasmo-nadpis { color: var(--tlumeny); font-weight: 700; }
.pasmo.vybrane { color: var(--text); background: #fff; }
.pasmo.vybrane::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--signal); }

/* styly učení */
.typy { display: grid; gap: 16px; }
.typ { padding: 24px 32px; border-radius: 16px; }
.typ-hlava { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 12px; }
.typ-jmeno { font-size: 1.25rem; font-weight: 800; color: var(--inkoust); }
.typ-body { font-size: 0.9375rem; font-weight: 500; color: var(--tlumeny); font-variant-numeric: tabular-nums; }
.typ-body strong { font-weight: 800; color: var(--text); }
.typ.vybrane { position: relative; background: var(--povrch); border: 1px solid var(--linka); box-shadow: var(--stin); overflow: hidden; }
.typ.vybrane::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--signal); }
.typ.vybrane .typ-jmeno { color: var(--signal); }
.typ.ostatni { padding-block: 18px; border-left: 2px solid var(--linka); border-radius: 0; color: var(--tlumeny); }
.typ.ostatni .typ-jmeno { font-size: 1.0625rem; color: var(--tlumeny); }
.typ.ostatni .text-cteni { font-size: 1rem; }
.typ .text { max-width: 72ch; }

/* emoční inteligence */
.tabulka-detail { margin-top: 20px; padding: 0 22px; background: var(--povrch); border: 1px solid var(--linka); border-radius: 14px; }
.tabulka-detail summary { padding: 14px 0; font-weight: 600; color: var(--inkoust-2); cursor: pointer; }
.tabulka-obal { overflow-x: auto; margin: 0 0 18px; }
.tabulka { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tabulka caption { padding: 0 0 8px; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--tlumeny); caption-side: top; }
.tabulka th, .tabulka td { padding: 9px 12px; border-bottom: 1px solid var(--linka); text-align: left; }
.tabulka thead th { background: var(--papir); font-size: 0.8125rem; color: var(--tlumeny); }
.tabulka .cislo { text-align: right; font-variant-numeric: tabular-nums; }
.tabulka-nazev { font-weight: 500; color: var(--tlumeny); }
.tabulka tr.celkem th, .tabulka tr.celkem td { color: var(--signal); font-weight: 800; border-bottom: 0; }

.legenda { margin: 0; columns: 2; column-gap: 56px; }
.legenda div { margin-bottom: 20px; break-inside: avoid; }
.legenda dt { font-weight: 700; color: var(--inkoust); }
.legenda dd { margin: 4px 0 0; font-family: var(--pismo-cteni); font-size: 1rem; line-height: 1.55; color: var(--tlumeny); }

.vysledek-akce { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--linka); }

/* ----- chybová stránka ----- */
.chyba-stranka { padding: 48px 0 24px; text-align: center; }
.chyba-kod { margin: 0; font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 1; color: var(--pasmo-2); font-variant-numeric: tabular-nums; }
.chyba-stranka h1 { margin-top: 8px; }
.chyba-stranka .uvod-text { margin-inline: auto; }
.chyba-stranka .tlacitka { justify-content: center; }

/* ----- užší displeje ----- */
@media (max-width: 820px) {
    .graf-siroky { display: none; }
    .graf-uzky { display: block; }
    .graf-uzky svg { max-width: 460px; }
    .hero-mrizka { grid-template-columns: 1fr; }
    .hero-radek, .hero-vule .hero-radek { grid-template-columns: 1fr; gap: 20px; }
    .skore { text-align: left; }
    .pasmo { grid-template-columns: 1fr; gap: 10px; padding: 20px 22px; }
    .legenda { columns: 1; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    main { padding: 24px 0 40px; }
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.375rem; }

    .lista-obsah { gap: 12px; height: 60px; }
    .logo img { height: 40px; }
    .lista-test { font-size: 0.875rem; }
    .lista-test:not(:empty) { padding-left: 12px; }
    .uzivatel { display: none; }

    .uvod-panel-obsah { padding: 28px 22px 30px; }
    .uvod-panel h1 { margin-bottom: 10px; }
    .uvod-popis { margin-bottom: 0; font-size: 1rem; }
    .uvod-testy { display: none; }
    .uvod-motiv { right: -300px; bottom: -190px; }
    .cta-obsah { padding: 28px 22px 30px; }
    .cta h2 { font-size: 1.375rem; }
    .cta { border-radius: 16px; margin-top: 32px; }
    .patka-obsah { grid-template-columns: 1fr; padding-block: 24px 28px; }
    .uvod-formular { padding: 26px 20px; border-radius: 16px; }
    .uvod-panel { border-radius: 16px; }

    .testy { border-radius: 16px; margin-top: 20px; }
    .test-radek { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; padding: 20px 18px; }
    .test-radek .ikona { width: 48px; height: 48px; padding: 10px; }
    .test-akce { grid-column: 1 / -1; min-width: 0; }
    .tl { width: 100%; }
    .tlacitka { gap: 10px; }
    .tlacitka .tl { flex: 1 1 100%; }

    .info-hlava .ikona { width: 52px; height: 52px; padding: 11px; }

    .kroky { margin-bottom: 28px; }
    .krok-text { display: none; }
    .kroky li.aktivni .krok-text { display: block; }
    .kroky li:not(:last-child)::after { margin-right: 10px; }

    .otazka-text { font-size: 1.375rem; margin-bottom: 22px; }
    .postup { margin-bottom: 28px; }
    .volba { padding: 12px 14px 12px 12px; font-size: 1.0625rem; gap: 14px; }
    .otazka-patka { flex-direction: column-reverse; align-items: stretch; margin-top: 26px; }
    .otazka-patka .tl { min-width: 0; }
    .napoveda { max-width: none; }

    .odpocet { width: 176px; height: 176px; }
    .odpocet-cislo { font-size: 4.25rem; }

    .hero { padding: 24px 20px; border-radius: 16px; }
    .skore-cislo { font-size: 5.5rem; }
    .hero-text .cteni { font-size: 1.125rem; }
    .pasma { border-radius: 16px; }
    .typ { padding: 20px 20px; }
    .typ.ostatni { padding-inline: 18px 0; }
    .tabulka-detail { padding: 0 14px; }
    .vl-meta span + span::before { margin: 0 10px; }
}

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

@media print {
    .lista, .patka, .cta, .tlacitka, .preskocit, .kroky { display: none; }
    body { background: #fff; }
    .hero, .pasma, .testy { box-shadow: none; }
}
