/* =========================================================
   Hovorca – podstránka (tmavý úvod)
   Tmavomodrý úvod s fotkou, interaktívna časová os kariéry.
   ========================================================= */

.h2 {
  margin: .35em 0 .5em;
  font-size: clamp(30px, 3.4vw, calc(46 * var(--u)));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.h3 { margin: 0 0 1.1em; font-size: calc(22 * var(--u)); font-weight: 800; letter-spacing: -.02em; }
section { padding: calc(100 * var(--u)) 0; }

/* tmavá hlavička */
.site-head { background: rgba(19, 35, 63, .88); }
.site-head.is-scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.site-head .logo img { filter: brightness(0) invert(1); }
.site-head .nav a { color: rgba(255, 255, 255, .65); }
.site-head .nav a:hover, .site-head .nav a[aria-current="page"] { color: #fff; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: #fff; }
@media (max-width: 767px) {
  .nav { background: var(--navy); border-bottom-color: rgba(255, 255, 255, .1); }
  .nav a { border-bottom-color: rgba(255, 255, 255, .1); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--head-h));
  min-height: calc(100svh - var(--head-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;                /* užšia → fotka ukáže aj hruď */
  z-index: -1;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: fadeIn 1.4s ease both;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(19, 35, 63, .55) 30%, rgba(19, 35, 63, 0) 60%),
    linear-gradient(0deg, var(--navy) 0%, rgba(19, 35, 63, 0) 35%);
}
.hero__in { flex: 1; display: flex; align-items: center; padding: calc(50 * var(--u)) 0; }
.hero__text { max-width: calc(680 * var(--u)); }
.hero__text > * { animation: rise 1s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .3s; }
.hero__text > :nth-child(5) { animation-delay: .4s; }

.hero__rank {
  font-family: var(--mono);
  font-size: clamp(17px, 1.6vw, calc(24 * var(--u)));
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero__name {
  margin: .2em 0 .25em;
  font-size: min(clamp(44px, 6.4vw, calc(104 * var(--u))), 13.5vw);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
  white-space: nowrap;                 /* meno vždy na jednom riadku */
}
.hero__role {
  display: flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1em;
  font-size: clamp(16px, 1.4vw, calc(20 * var(--u)));
  font-weight: 600;
}
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__lead { max-width: 40ch; margin: 0 0 2em; color: rgba(255, 255, 255, .72); font-size: calc(17 * var(--u)); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--light:hover, .btn--ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.live { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #e0453c; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #e0453c; animation: ping 1.8s ease-out infinite; }

/* čísla v spodnom páse */
.hero__stats { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(10, 20, 38, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stats__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: calc(26 * var(--u)) calc(24 * var(--u)); border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(28px, 2.8vw, calc(42 * var(--u))); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .55em; font-size: calc(13 * var(--u)); color: rgba(255, 255, 255, .62); line-height: 1.4; }

/* ---------- kariéra: časová os (ako v návrhu 3) ---------- */
.career__in { display: grid; grid-template-columns: .75fr 1.25fr; gap: calc(70 * var(--u)); }
.career__head { position: sticky; top: calc(var(--head-h) + 30px); align-self: start; }
.career__head img { width: 100%; max-width: calc(380 * var(--u)); margin-top: calc(10 * var(--u)); }

.steps { position: relative; padding-left: calc(56 * var(--u)); }
.steps__line {
  position: absolute;
  left: calc(11 * var(--u));
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.steps__line i {
  display: block;
  height: 100%;
  background: linear-gradient(var(--blue), var(--navy));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.step { position: relative; padding-bottom: calc(44 * var(--u)); }
.step:last-child { padding-bottom: 0; }
.step summary { position: relative; list-style: none; cursor: pointer; }
.step summary::-webkit-details-marker { display: none; }
.step summary:focus-visible { outline: 2px solid var(--blue-d); outline-offset: 6px; }
.step summary:hover .step__title { color: var(--blue-d); }
.step__title { transition: color .3s; }
.step__more {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--mono);
  font-size: calc(12 * var(--u));
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--blue-d);
}
.step__more::before { content: "Čítať viac"; }
.step__more::after {
  content: "";
  width: .5em;
  height: .5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .4s var(--ease);
}
.step[open] .step__more::before { content: "Zbaliť"; }
.step[open] .step__more::after { transform: translateY(15%) rotate(-135deg); }
.step[open] .step__more { margin-bottom: 1em; }
.step[open] .step__body { animation: open .5s var(--ease); }
.step__dot {
  position: absolute;
  left: calc(-56 * var(--u));
  top: 6px;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transition: border-color .5s, background-color .5s, transform .6s var(--ease);
}
.step.is-in .step__dot { border-color: var(--blue-d); background: var(--blue-d); box-shadow: inset 0 0 0 5px var(--bg); }
.step__year { font-family: var(--mono); font-size: calc(13 * var(--u)); letter-spacing: .08em; color: var(--blue-d); }
.step__title { margin: .3em 0 .2em; font-size: clamp(22px, 2.1vw, calc(30 * var(--u))); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.step__org { margin: 0 0 .7em; color: var(--muted); }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5em; }
.step li { position: relative; padding-left: 1.4em; color: #3c3e45; }
.step li::before { content: ""; position: absolute; left: 0; top: .7em; width: .65em; height: 2px; background: var(--blue); }

/* ---------- kurzy + fotka ---------- */
.skills { background: var(--paper); }
.skills__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: calc(70 * var(--u)); align-items: center; }
.courses { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.courses li { display: flex; gap: 1.2em; align-items: baseline; padding: calc(16 * var(--u)) 0; border-top: 1px solid var(--line); }
.courses li:last-child { border-bottom: 1px solid var(--line); }
.num { font-family: var(--mono); font-size: .8em; color: var(--blue-d); }
.skills__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.skills__photo::before { content: ""; position: absolute; inset: calc(-20 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)) calc(-20 * var(--u)); border: 1px solid var(--blue); z-index: 0; }
.skills__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }

/* ---------- jazyky + vodič ---------- */
.extra__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: calc(20 * var(--u)); }
.card { padding: calc(36 * var(--u)); background: #fff; border: 1px solid var(--line); }
.card--drive { background: var(--navy); color: #fff; border-color: var(--navy); }
.lics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lic { padding: calc(16 * var(--u)); border: 1px solid rgba(255, 255, 255, .14); }
.lic__cat { display: block; font-size: calc(46 * var(--u)); font-weight: 800; line-height: 1; }
.lic__km { display: block; margin-top: .6em; font-family: var(--mono); font-size: calc(12 * var(--u)); color: rgba(255, 255, 255, .6); }
.lic__km b { font-family: var(--sans); font-size: calc(20 * var(--u)); color: #fff; font-variant-numeric: tabular-nums; }
.prio { display: flex; align-items: center; gap: calc(18 * var(--u)); margin-top: calc(24 * var(--u)); padding-top: calc(20 * var(--u)); border-top: 1px solid rgba(255, 255, 255, .14); }
.prio p { margin: 0; font-size: calc(14 * var(--u)); color: rgba(255, 255, 255, .7); }
.prio strong { color: #fff; font-size: calc(16 * var(--u)); }
.prio .siren { flex: none; }

.cite { padding-top: calc(30 * var(--u)); }

/* ---------- responzivita ---------- */
@media (max-width: 991px) {
  .hero__photo { width: 70%; opacity: .75; }
  .skills__in, .extra__in, .career__in { grid-template-columns: 1fr; }
  .skills__photo { order: -1; }
  .career__head { position: static; }
  .skills__photo { max-width: 440px; }
}
@media (max-width: 767px) {
  section { padding: 64px 0; }
  .hero { min-height: 0; }
  .hero__photo { position: relative; width: 100%; height: 62vh; }
  .hero__photo::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(19, 35, 63, 0) 45%); }
  .hero__in { margin-top: -120px; position: relative; padding-bottom: 40px; }
  .stat { padding: 18px 10px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 11.5px; }
  .card { padding: 22px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.card--drive .siren rect { fill: #4a5d80; }
