/* Nunito z vlastného servera (rovnaké súbory a @font-face ako web/css/web.css), nie z Google Fonts. */
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/nunito-latin-ext.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/nunito-latin.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}

/* Layout: jeden stĺpec ako na mobile (úvod a otázky 560 px, výsledok 640 px) na teplom krémovom papieri, len jemný zlatý oblúk pri hlavičke.
   Červená PF = hlavné tlačidlá, zvýraznené slová, výber. Zlatá KU = progres, krúžky ikon, oblúk. Svetlé zlatisté plochy = odpovede a predmety.
   Vedome len svetlý režim: schválená referencia a presné odtiene červenej a zlatej. */
:root {
  --paper: #FBF6EE;
  --surface: #FFFAF5;
  --card: #F4E7CD;
  --card-hover: #EFDDBA;
  --card-edge: #E6D2AC;
  --field-edge: #8C7B5E;
  --gold-soft: #F1DCB8;
  --ink: #381F19;
  --ink-2: #735B4C;
  --line: #E7D9C3;
  --brick: #AD3938;
  --brick-hover: #922F2E;
  --on-brick: #FFFFFF;
  --brick-wash: #FAE9E5;
  --gold: #D1A619;
  --gold-wash: #F4E7BC;
  --focus: #381F19;
  --ph-bg: #FFF0A8;
  --ph-ink: #5C4600;
  --scrim: rgba(56, 31, 25, .72);

  --font: 'Nunito', 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;

  --fs-xs: .875rem;
  --fs-s: .9375rem;
  --fs-m: 1rem;
  --fs-l: 1.25rem;
  --fs-xl: clamp(1.4375rem, 1.15rem + 1.3vw, 1.875rem);
  --fs-xxl: clamp(2.25rem, .9rem + 7vw, 3.25rem);

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font); font-weight: 900; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brick); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--brick-hover); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.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;
}

.in {
  width: 100%;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.col { width: 100%; max-width: 560px; margin-inline: auto; min-width: 0; }
.col-wide { max-width: 640px; }

/* Jediná dekorácia: jemný zlatý oblúk vpravo hore pri hlavičke */
.screen > .col { position: relative; isolation: isolate; }
.screen > .col::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -16px; right: calc(-1 * var(--gutter-r));
  width: 98px; height: 98px;
  background: url("../img/zlaty-obluk.png") no-repeat top right / contain;
}
@media (min-width: 700px) {
  .screen > .col::before { width: 128px; height: 128px; right: -40px; }
}

/* Lišta prototypu */
.proto {
  background: var(--gold-wash);
  border-bottom: 1px dashed var(--gold);
  font-size: var(--fs-xs);
  color: var(--ink);
}
.proto .in { max-width: 1040px; display: flex; flex-wrap: wrap; gap: 4px 14px; padding-block: 8px; align-items: baseline; }
.proto strong { font-weight: 800; }
.proto nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.proto a { color: var(--ink); }

main { padding-block: 16px 40px; }
.screen { animation: enter .28s ease-out both; }
@keyframes enter { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Logo „budúci manažéri.“ (ako na hlavnom webe) = odkaz na hlavný web */
.org {
  justify-self: start; display: inline-block; margin: 8px 0 0 -8px; padding: 6px 8px; border-radius: 2px;
  color: var(--ink); font-size: 1.4375rem; font-weight: 900; letter-spacing: -.05em; line-height: 1.1;
  text-decoration: none; transition: background .15s;
}
.org span { color: var(--brick); }
.org small { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
@media (hover: hover) { .org:hover { background: var(--brick-wash); } }

/* Hlavička vedľajších stránok (náhľad e-mailu, ochrana údajov) */
.page-head .col { display: grid; gap: 10px; padding-top: 12px; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px; justify-self: start;
  min-height: 44px; margin-left: -6px; padding-right: 8px;
  color: var(--ink-2); font-weight: 700; font-size: var(--fs-s); text-decoration: none;
}
.back-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .back-link:hover { color: var(--ink); } }

/* Tlačidlá */
.btn {
  appearance: none;
  border: 0;
  border-radius: var(--r-m);
  font: 900 1.0625rem/1.2 var(--font);
  min-height: 56px;
  padding: 14px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--brick); color: var(--on-brick); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--card-edge); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--brick-hover); color: var(--on-brick); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink-2); color: var(--ink); }
}
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; position: relative; padding-inline: 56px; }
.btn-block .arrow { position: absolute; right: 22px; top: 50%; margin-top: -12px; }
.arrow { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-text {
  appearance: none; background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 10px 8px;
  font: 600 var(--fs-s) var(--font); color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
@media (hover: hover) { .btn-text:hover { color: var(--brick); } }
.quiet-link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px;
  color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600;
}
@media (hover: hover) { .quiet-link:hover { color: var(--brick); } }

/* Krúžky ikon: zlatý kruh, tmavá líniová ikona */
.disc {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
}
.disc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Úvod */
.intro { display: grid; gap: 22px; }
.intro-text { display: grid; gap: 14px; margin-top: 6px; }
.intro h1 { font-size: var(--fs-xxl); line-height: 1.04; letter-spacing: -1.4px; }
.hl { color: var(--brick); }
.lead { font-size: 1.1875rem; line-height: 1.45; max-width: 30ch; }
.hero-img { margin: 0; }
.hero-img img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.facts {
  list-style: none; margin: -6px 0 0; padding: 10px 6px;
  display: flex; flex-wrap: wrap; row-gap: 6px;
  background: var(--card); border-radius: var(--r-m);
}
.facts li {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 4px 8px; font-weight: 800; white-space: nowrap;
}
.facts li + li { border-left: 2px solid var(--gold-soft); }
.intro-foot { display: grid; justify-items: center; gap: 2px; text-align: center; margin-top: -6px; }
.intro-foot .fine { max-width: 42ch; }
.note { font-size: var(--fs-s); color: var(--ink-2); }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.fine { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }

/* Horná lišta (krok e-mailu, otázky) */
.topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-bottom: 14px; }
.topbar-title { text-align: center; font-weight: 900; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.3px; }
.icon-btn {
  width: 44px; height: 44px; margin-left: -8px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .icon-btn:hover { background: var(--card); } }

/* Otázka */
.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.progress { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.progress span { height: 10px; border-radius: 5px; background: var(--gold-soft); transition: background-color .25s; }
.progress span.on { background: var(--gold); }
.count { font-size: var(--fs-s); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-text { font-size: var(--fs-xl); line-height: 1.22; letter-spacing: -.5px; margin-bottom: 22px; }
.q-text .hl { display: block; margin-top: 2px; }
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
  appearance: none;
  font: 600 var(--fs-m)/1.4 var(--font);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--card);
  border-radius: var(--r-m);
  padding: 12px 16px 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.answer-text { min-width: 0; }
.letter {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-weight: 900; font-size: 1rem; line-height: 1;
  transition: background-color .15s, color .15s;
}
.answer[aria-pressed="true"] { border-color: var(--brick); background: var(--brick-wash); }
.answer[aria-pressed="true"] .letter { background: var(--brick); color: var(--on-brick); }
@media (hover: hover) {
  .answer:hover { background: var(--card-hover); border-color: var(--card-hover); }
  .answer[aria-pressed="true"]:hover { background: var(--brick-wash); border-color: var(--brick); }
}
.answer:active { transform: scale(.99); }
.hint { margin-top: 16px; font-size: var(--fs-s); color: var(--ink-2); }

/* Výsledok: priamo na krémovom papieri, bez panelov */
.result { display: grid; }
.result > .org { margin-bottom: 34px; }
.r-head { display: grid; }
.result-label { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 12px; }
.r-head h1 {
  font-size: 2.6875rem; line-height: 1.02; letter-spacing: -1.4px;
  margin-bottom: 18px; overflow-wrap: break-word;
}
.r-head h1 .hl { display: block; }
.desc { font-size: 1.0625rem; line-height: 1.55; max-width: 36em; }
.mixed-note { font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); margin-top: 14px; max-width: 36em; }
.mixed-note strong { color: var(--ink); font-weight: 800; }
.timer { font-size: var(--fs-s); color: var(--ink-2); font-variant-numeric: tabular-nums; }
#r-sent { margin-top: 22px; }

.block { display: grid; min-width: 0; margin-top: 29px; }
.block > h2 { font-size: 1.5625rem; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 15px; }
.block > h2 em { font-style: normal; color: var(--brick); }
.block.strengths { margin-top: 22px; }
.strengths > h2 { font-size: var(--fs-m); line-height: 1.4; letter-spacing: 0; font-weight: 800; margin-bottom: 9px; }
.strengths ul { margin: 0; padding: 0 0 0 19px; font-size: var(--fs-s); line-height: 1.65; }
.strengths li::marker { color: var(--brick); }

.degree { font-size: .8125rem; color: var(--ink-2); margin-bottom: 12px; }
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.courses li {
  background: var(--card); border-radius: var(--r-m); padding: 16px 18px;
  font-size: 1.1875rem; font-weight: 900; line-height: 1.3; min-width: 0; overflow-wrap: break-word;
}
.master { margin-top: 20px; }
.master .degree { margin-bottom: 4px; }
.master ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.master li { font-size: 1.125rem; font-weight: 900; line-height: 1.4; }
.plan-note { font-size: .75rem; line-height: 1.5; color: var(--ink-2); margin-top: 13px; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.people figure { margin: 0; min-width: 0; }
.people img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; }
.people figcaption { margin-top: 10px; }
.people h3 { font-size: 1.125rem; line-height: 1.25; margin-bottom: 5px; }
.people p { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }

.mail-cta { margin-top: 32px; display: grid; }
.mail-cta .btn { justify-content: space-between; text-align: left; padding-inline: 18px; min-height: 58px; }
.mail-cta .arrow { transition: transform .2s; flex: none; }
.mail-cta .btn[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.optional { font-size: .8125rem; color: var(--ink-2); margin-top: 8px; }
#slot-post { padding-top: 20px; }

.secondary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; margin-top: 14px; }
.secondary .btn-text { padding-inline: 0; }

.method { margin-top: 18px; font-size: .8125rem; color: var(--ink-2); }
.method summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.method > p { margin-top: 2px; max-width: 60ch; }
.method .profile { margin-top: 14px; display: grid; gap: 8px; }
.method .profile h3 { font-size: var(--fs-xs); font-weight: 800; color: var(--ink); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 84px minmax(0, 1fr) 38px; align-items: center; gap: 10px; font-size: .8125rem; color: var(--ink-2); }
.bar .track { height: 10px; border-radius: 5px; background: var(--gold-soft); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 5px; background: var(--ink-2); opacity: .35; transform-origin: left; animation: grow .6s ease-out both .2s; }
.bar.is-x .fill { background: var(--brick); opacity: 1; }
.bar.is-y .fill { background: var(--gold); opacity: 1; }
.bar.is-x { font-weight: 800; color: var(--ink); }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

.more { margin-top: 26px; display: grid; gap: 6px; }
.more h2 { font-size: var(--fs-m); font-weight: 800; letter-spacing: 0; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: var(--fs-s); }
.links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); }
@media (hover: hover) { .links a:hover { color: var(--brick); } }
.result-foot {
  margin-top: 27px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .75rem; line-height: 1.6; color: var(--ink-2);
}
.result-foot .quiet-link { padding-inline: 0; font-size: .75rem; }

@media (min-width: 541px) {
  .result > .org { margin-bottom: 40px; }
  .result-label { font-size: var(--fs-s); margin-bottom: 14px; }
  .r-head h1 { font-size: 3.375rem; letter-spacing: -1.8px; margin-bottom: 22px; }
  .desc { font-size: 1.1875rem; }
  .block { margin-top: 34px; }
  .block > h2 { font-size: 1.6875rem; margin-bottom: 17px; }
  .strengths ul { font-size: var(--fs-m); line-height: 1.7; }
  .degree { font-size: var(--fs-xs); }
  .courses li { padding: 18px 22px; font-size: 1.25rem; }
  .people { gap: 28px; }
  .people h3 { font-size: 1.25rem; }
  .people p { font-size: var(--fs-xs); }
  .mail-cta .btn { padding-inline: 24px; }
  .secondary { font-size: var(--fs-s); }
}

/* Formulár: bez karty, priamo na papieri */
.mail { display: grid; gap: 16px; min-width: 0; }
.mail h2 { font-size: var(--fs-l); letter-spacing: -.3px; }
#s-email .mail h2 { font-size: var(--fs-xl); letter-spacing: -.5px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: var(--fs-s); }
.field input {
  font: 600 var(--fs-m) var(--font); color: var(--ink); background: var(--surface);
  min-height: 52px; width: 100%; padding: 12px 14px;
  border: 2px solid var(--field-edge); border-radius: var(--r-s);
}
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink-2); }
.field .opt { color: var(--ink-2); font-weight: 600; }
.field-hint { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.45; }
/* Návrhy škôl: panel pod poľom, prekryje nápovedu a súhlasy pod ním */
.combo { position: relative; }
.school-list {
  position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 4px; list-style: none;
  max-height: min(310px, 52vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 2px solid var(--field-edge); border-radius: var(--r-s);
}
.school-list[hidden] { display: none; }
.school-list li {
  display: grid; gap: 1px; min-height: 48px; padding: 8px 12px; align-content: center;
  border-radius: 8px; cursor: pointer; overflow-wrap: break-word;
}
.school-list .s-name { font-weight: 700; line-height: 1.3; }
.school-list .s-place { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.35; }
.school-list li[aria-selected="true"] { background: var(--card); }
@media (hover: hover) { .school-list li:hover { background: var(--card); } }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--fs-xs); line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--brick); }
.check .opt { color: var(--ink-2); font-weight: 800; }
/* do bloku; delenie slov (lang="sk") zabráni veľkým medzerám v úzkom stĺpci */
.mail .fine { font-size: .8125rem; max-width: none; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.mail .fine a { color: inherit; }
.err { color: var(--brick); font-weight: 700; font-size: var(--fs-s); }
.ok { background: var(--card); border-radius: var(--r-s); padding: 14px 16px; font-weight: 700; }
.form-actions { display: grid; gap: 2px; justify-items: center; }
.form-actions .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Zástupné texty, ktoré treba doplniť */
mark.ph { background: var(--ph-bg); color: var(--ph-ink); border-radius: 4px; padding: 0 3px; font-weight: 700; }

/* Kartička na zdieľanie */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  background: var(--scrim);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.sheet {
  background: var(--paper); border-radius: var(--r-l); padding: 20px;
  display: grid; gap: 14px; justify-items: center; text-align: center;
  max-height: 100%; overflow: auto; width: min(420px, 100%);
}
.sheet h2 { font-size: var(--fs-l); }
.sheet img { width: min(240px, 100%); height: auto; border-radius: var(--r-s); border: 1px solid var(--line); }
.sheet .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Kiosk: tablet na stánku */
.kiosk .col { max-width: 680px; }
.kiosk .answer { min-height: 76px; font-size: 1.1875rem; }
.kiosk .q-text { font-size: 2rem; }

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