:root{
  --brand:#005C87;
  --brand-ink:#00415f;
  --ink:#12212B;
  --muted:#5A6B72;
  --bg:#F7F8F6;
  --surface:#FFFFFF;
  --line:#E2E5E0;
  --safe:#1F8A4C;
  --safe-bg:#E7F4EC;
  --risk:#C4491A;
  --risk-bg:#FBE9E2;
  --radius:14px;
  --maxw:720px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ---- Top bar / progress ---- */
.topbar{
  position:sticky;top:0;z-index:20;background:rgba(247,248,246,.9);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--line);
}
.topbar-inner{max-width:var(--maxw);margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:14px}
.brand-mark{font-weight:700;font-size:15px;color:var(--brand);white-space:nowrap}
.progress{flex:1;height:6px;background:var(--line);border-radius:99px;overflow:hidden}
.progress-fill{height:100%;width:0;background:var(--brand);border-radius:99px;transition:width .35s ease}
.progress-label{font-size:13px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--brand);color:#fff;border:none;border-radius:10px;
  padding:14px 26px;font-size:16px;font-weight:600;font-family:inherit;
  cursor:pointer;text-decoration:none;transition:background .15s ease,transform .05s ease;
}
.btn:hover{background:var(--brand-ink)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-ghost{background:transparent;color:var(--muted);padding:14px 18px}
.btn-ghost:hover{background:transparent;color:var(--ink)}
.btn:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid color-mix(in srgb,var(--brand) 45%,white);outline-offset:2px;
}

/* ---- Landing / hero ---- */
.hero{min-height:calc(100vh - 0px);display:flex;flex-direction:column;justify-content:center;padding:64px 20px}
.hero .container{width:100%}
.eyebrow{color:var(--brand);font-weight:600;margin:0 0 14px}
.hero h1{font-size:clamp(30px,5vw,46px);line-height:1.12;letter-spacing:-.02em;margin:0 0 18px;max-width:16ch}
.hero p.lead{font-size:19px;color:var(--muted);max-width:52ch;margin:0 0 34px}
.hero .meta{margin-top:26px;color:var(--muted);font-size:14px}
.shield{width:64px;height:64px;margin-bottom:28px;color:var(--brand)}

/* ---- Lesson player ---- */
.stage{padding:36px 0 120px;min-height:60vh}
.module-tag{color:var(--muted);font-size:14px;font-weight:600;margin-bottom:10px}
.step{animation:enter .4s ease both}
@keyframes enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.step h2{font-size:clamp(24px,3.6vw,32px);line-height:1.18;letter-spacing:-.015em;margin:0 0 18px}
.step p{font-size:18px;margin:0 0 16px}
.intro-lead{font-size:20px;color:var(--ink)}
.step-video-player{display:block;width:100%;max-width:100%;border-radius:var(--radius);
  border:1px solid var(--line);background:#000;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.points{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:12px}
.points li{position:relative;padding-left:34px;font-size:17px}
.points li::before{content:"";position:absolute;left:0;top:9px;width:18px;height:18px;border-radius:50%;
  background:var(--safe-bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3 3 7-7' fill='none' stroke='%231F8A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center}

/* reveal / flip cards */
.reveal-grid{display:grid;gap:14px;margin-top:24px}
@media(min-width:560px){.reveal-grid{grid-template-columns:1fr 1fr}}
.flip{background:none;border:none;padding:0;font-family:inherit;text-align:left;cursor:pointer;perspective:1000px;min-height:132px}
.flip-inner{position:relative;width:100%;height:100%;min-height:132px;transition:transform .5s;transform-style:preserve-3d}
.flip.is-open .flip-inner{transform:rotateY(180deg)}
.flip-face{position:absolute;inset:0;backface-visibility:hidden;border:1px solid var(--line);border-radius:var(--radius);
  padding:20px;display:flex;align-items:center;background:var(--surface)}
.flip-front{font-weight:600;font-size:17px;justify-content:space-between}
.flip-front .plus{color:var(--brand);font-size:22px;flex:none;margin-left:12px}
.flip-back{transform:rotateY(180deg);background:var(--brand);color:#fff;font-size:15.5px;line-height:1.5}

/* spot the red flags */
.spot-email{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:22px;background:var(--surface)}
.spot-head{padding:14px 18px;border-bottom:1px solid var(--line);background:#fbfcfb}
.spot-head .row{font-size:14px;color:var(--muted)}
.spot-head .row b{color:var(--ink);font-weight:600}
.spot-body{padding:8px}
.spot-item{display:block;width:100%;text-align:left;font-family:inherit;font-size:15.5px;background:none;border:2px solid transparent;
  border-radius:10px;padding:12px 14px;cursor:pointer;color:var(--ink);transition:background .12s,border-color .12s}
.spot-item:hover{background:#f4f6f4}
.spot-item.picked-flag{background:var(--risk-bg);border-color:var(--risk)}
.spot-item.picked-ok{background:var(--safe-bg);border-color:var(--safe)}
.spot-note{font-size:14px;margin-top:8px;display:none}
.spot-item.picked-flag .spot-note,.spot-item.picked-ok .spot-note{display:block}
.spot-item.picked-flag .spot-note{color:var(--risk)}
.spot-item.picked-ok .spot-note{color:var(--safe)}

/* inline check */
.check-options{display:grid;gap:10px;margin-top:20px}
.opt{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;font-family:inherit;font-size:16px;
  background:var(--surface);border:2px solid var(--line);border-radius:10px;padding:14px 16px;cursor:pointer;transition:border-color .12s,background .12s}
.opt:hover{border-color:var(--brand)}
.opt .mark{flex:none;width:22px;height:22px;border:2px solid var(--line);border-radius:50%;margin-top:1px}
.opt.correct{border-color:var(--safe);background:var(--safe-bg)}
.opt.correct .mark{border-color:var(--safe);background:var(--safe)}
.opt.wrong{border-color:var(--risk);background:var(--risk-bg)}
.opt.wrong .mark{border-color:var(--risk);background:var(--risk)}
.opt[disabled]{cursor:default}
.feedback{margin-top:16px;padding:14px 16px;border-radius:10px;font-size:15px;display:none}
.feedback.show{display:block}
.feedback.ok{background:var(--safe-bg);color:var(--safe)}
.feedback.no{background:var(--risk-bg);color:var(--risk)}

/* nav footer */
.stepnav{position:fixed;bottom:0;left:0;right:0;background:rgba(247,248,246,.94);backdrop-filter:blur(8px);
  border-top:1px solid var(--line);z-index:20}
.stepnav-inner{max-width:var(--maxw);margin:0 auto;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}

/* ---- Test ---- */
.test-head{padding:40px 0 8px}
.form-grid{display:grid;gap:16px;margin:24px 0 8px}
@media(min-width:560px){.form-grid{grid-template-columns:1fr 1fr}}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-size:14px;font-weight:600;color:var(--muted)}
.field input{font-family:inherit;font-size:16px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
.field input:focus{outline:none;border-color:var(--brand)}
.q{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:18px 0}
.q .qnum{color:var(--brand);font-weight:700;font-size:14px}
.q h3{font-size:18px;margin:6px 0 16px;line-height:1.4}
.q .answers{display:grid;gap:10px}
.answer{display:flex;gap:12px;align-items:flex-start;cursor:pointer;padding:12px 14px;border:2px solid var(--line);border-radius:10px;transition:border-color .12s,background .12s}
.answer:hover{border-color:var(--brand)}
.answer input{margin-top:3px;accent-color:var(--brand)}
.answer.sel{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,white)}
.notice{background:var(--risk-bg);color:var(--risk);padding:12px 16px;border-radius:10px;margin:12px 0;font-size:15px;display:none}
.notice.show{display:block}

/* ---- Result ---- */
.result{padding:60px 0 100px;text-align:center}
.result .ring{width:150px;height:150px;margin:0 auto 24px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  flex-direction:column;color:#fff;font-weight:700}
.result .ring.pass{background:var(--safe)}
.result .ring.fail{background:var(--risk)}
.result .ring .big{font-size:38px;line-height:1}
.result .ring .small{font-size:13px;opacity:.9;margin-top:4px}
.result h1{font-size:28px;margin:0 0 10px}
.result p{color:var(--muted);font-size:17px;max-width:46ch;margin:0 auto 26px}
.result .actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

/* ---- Test: locked identity + honour declaration ---- */
.identity{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:22px 0}
.identity .field{margin-bottom:12px}
.identity .field:last-of-type{margin-bottom:0}
.identity input[readonly]{background:#f4f6f4;color:var(--ink);cursor:not-allowed}
.idnote{color:var(--muted);font-size:13px;margin:10px 0 0}
.honor{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:16px 18px;margin:18px 0;cursor:pointer;font-size:15px;line-height:1.5}
.honor input{margin-top:3px;width:20px;height:20px;accent-color:var(--brand);flex:none}

/* ============ NETVEL branding, module hub, illustrations ============ */
/* logo in top bars */
.brand{display:inline-flex;align-items:center;text-decoration:none;flex:none}
.brand-logo{height:24px;width:auto;display:block}
.hero-logo{height:34px;width:auto;display:block;margin:0 0 30px}

/* ---- Hub (rozcestník modulov) ---- */
.hub{padding:14px 0 40px}
.hub-h1{font-size:clamp(26px,4.2vw,38px);line-height:1.14;letter-spacing:-.02em;margin:6px 0 14px;max-width:20ch}
.hub-lead{font-size:17px;color:var(--muted);max-width:60ch;margin:0 0 30px}
.mod-list{display:grid;gap:14px}
.mod{display:flex;align-items:center;gap:16px;width:100%;text-align:left;font-family:inherit;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 18px;
  transition:border-color .15s,box-shadow .15s,transform .05s}
.mod:hover{border-color:var(--brand);box-shadow:0 6px 22px rgba(0,92,135,.08)}
.mod:active{transform:translateY(1px)}
.mod-ico{flex:none;width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--brand) 10%,white);color:var(--brand)}
.mod-ico svg{width:26px;height:26px}
.mod-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.mod-top{display:flex;align-items:center;gap:10px}
.mod-num{font-size:12.5px;font-weight:700;color:var(--brand);text-transform:uppercase;letter-spacing:.04em}
.mod-status{font-size:12.5px;color:var(--muted);margin-left:auto}
.mod.is-done .mod-status{color:var(--safe);font-weight:600}
.mod.is-done .mod-ico{background:var(--safe-bg);color:var(--safe)}
.mod-title{font-size:18px;font-weight:600;line-height:1.25}
.mod-sum{font-size:14px;color:var(--muted);line-height:1.4}
.mod-go{flex:none;color:var(--muted);font-size:22px;line-height:1}
.mod:hover .mod-go{color:var(--brand)}

/* test call-to-action card */
.test-cta{display:flex;align-items:center;gap:16px;margin-top:26px;padding:20px 18px;border-radius:var(--radius);
  border:1px dashed var(--line);background:#fbfcfd}
.test-cta.ready{border-style:solid;border-color:var(--safe);background:var(--safe-bg)}
.test-cta-ico{flex:none;width:44px;height:44px;color:var(--brand)}
.test-cta.ready .test-cta-ico{color:var(--safe)}
.test-cta-ico svg{width:44px;height:44px}
.test-cta-main{flex:1;min-width:0}
.test-cta-main h3{margin:0 0 4px;font-size:17px}
.test-cta-main p{margin:0;font-size:14px;color:var(--muted)}
.test-cta .btn{flex:none}
@media(max-width:520px){
  .test-cta{flex-wrap:wrap}.test-cta .btn{width:100%}
  .mod-sum{display:none}
}

/* ---- breadcrumbs inside a module ---- */
.crumbs{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.crumb-back{background:none;border:none;font-family:inherit;font-size:14px;color:var(--brand);cursor:pointer;padding:0;font-weight:600}
.crumb-back:hover{text-decoration:underline}
.crumb-mod{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--muted)}
.crumb-ico{width:18px;height:18px;color:var(--brand)}

/* ---- large animated illustration for intros ---- */
.art{position:relative;width:132px;height:132px;margin:6px 0 26px;display:flex;align-items:center;justify-content:center}
.art-badge{position:relative;z-index:2;width:88px;height:88px;border-radius:24px;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--brand) 12%,white);color:var(--brand);animation:floaty 4s ease-in-out infinite}
.art-icon{width:48px;height:48px}
.art-ring{position:absolute;inset:0;border-radius:50%;border:2px solid color-mix(in srgb,var(--brand) 30%,white);
  opacity:.6;animation:pulse 3.2s ease-out infinite}
.art-ring2{animation-delay:1.4s}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes pulse{0%{transform:scale(.75);opacity:.55}70%{opacity:0}100%{transform:scale(1.15);opacity:0}}

/* ---- password strength widget ---- */
.pw{margin-top:22px}
.pw-input{width:100%;font-family:inherit;font-size:16px;padding:14px 15px;border:1px solid var(--line);
  border-radius:10px;background:var(--surface);color:var(--ink)}
.pw-input:focus{outline:none;border-color:var(--brand)}
.pw-bar{height:10px;background:var(--line);border-radius:99px;overflow:hidden;margin:14px 0 8px}
.pw-fill{height:100%;width:8%;background:var(--line);border-radius:99px;transition:width .3s ease,background .3s ease}
.pw-label{font-size:14px;font-weight:600;color:var(--muted)}
.pw-tips{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:8px}
.pw-tips li{position:relative;padding-left:24px;font-size:14px;color:var(--muted)}
.pw-tips li::before{content:"";position:absolute;left:0;top:7px;width:8px;height:8px;border-radius:50%;background:var(--brand);opacity:.5}

/* ---- toast ---- */
.toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%) translateY(12px);z-index:40;
  background:var(--ink);color:#fff;padding:12px 20px;border-radius:99px;font-size:14.5px;font-weight:600;
  box-shadow:0 8px 26px rgba(0,0,0,.22);opacity:0;transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* admin logo */
.admin-logo{height:26px;width:auto;vertical-align:middle;margin-right:12px}

/* ============ NETVEL ilustrácie (Claude Design) ============ */
/* The app uses a light theme, so pin the illustration palette to the light
   values; otherwise nv-ilustracie.css would switch to its dark palette when the
   OS is in dark mode and the scenes would look wrong on the light page. */
:root{
  --nv-primary:var(--brand);--nv-tint:#E4F0F6;--nv-surface:#FFFFFF;--nv-muted:#9CBACB;
  --nv-safe:#2E9D6A;--nv-safe-tint:#E2F3EA;--nv-risk:#D14B3F;--nv-risk-tint:#FBE6E3;
}
.illu-hero,.illu-micro{animation:enter .45s ease both}
.illu-hero{max-width:440px;margin:0 0 18px}
.illu-hero svg{display:block;width:100%;height:auto}
.illu-micro{width:84px;height:84px;margin:0 0 12px}
.illu-micro svg{display:block;width:100%;height:100%}
@media(max-width:520px){.illu-hero{max-width:100%}}
.shield-ok{color:var(--safe)}

/* ---- text steps: illustration beside the text + practical callouts ---- */
.container.wide{max-width:1040px}
.step-split{display:grid;gap:18px}
.step-side{order:-1}
.illu-side{max-width:340px;animation:enter .45s ease both}
.illu-side svg{display:block;width:100%;height:auto}
@media(min-width:900px){
  .step-split{grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:center;min-height:calc(100vh - 260px)}
  .step-side{order:0}
  .illu-side{max-width:360px}
}
.callout{margin-top:24px;padding:16px 18px;border-radius:12px;border-left:4px solid var(--brand);
  background:color-mix(in srgb,var(--brand) 7%,white)}
.callout p{margin:6px 0 0;font-size:16px}
.callout-t{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--brand)}
.callout-todo{border-left-color:var(--safe);background:var(--safe-bg)}.callout-todo .callout-t{color:var(--safe)}
.callout-lesson{border-left-color:#B4690E;background:#FFF5E6}.callout-lesson .callout-t{color:#8A5009}
body.wide .topbar-inner,body.wide .stepnav-inner{max-width:1040px}

/* v4.8 - spätná väzba po teste */
.missed{max-width:46ch;margin:0 auto 26px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 20px}
.missed h2{font-size:16px;margin:0 0 8px}.missed ul{margin:0;padding-left:20px}.missed li{margin:4px 0}
.missed a{color:var(--brand);font-weight:600}
.review{padding-top:40px;padding-bottom:80px}.review .actions{display:flex;justify-content:flex-end;padding:8px 0}
.review-item .rv{margin:8px 0 0;padding:10px 14px;border-radius:10px;font-size:15px}
.review-item .rv span{display:block;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;opacity:.85}
.rv-bad{background:var(--risk-bg);color:var(--risk)}
.rv-ok{background:var(--safe-bg);color:var(--safe)}
.review-note{max-width:52ch;margin:14px auto 0;font-size:14px;color:var(--muted)}
.hero .actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
