/* ==========================================================
   Nemocnica Svidník – Sieň slávy
   Slávnostná paleta: polnočná modrá, zlatá, slonovina.
   Písmo: Gotham Bold (licencovaný) – súbory vložte do /fonts.
   Bez nich sa použije náhradný font Montserrat / Arial.
   ========================================================== */

@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Bold.woff2") format("woff2"),
       url("../fonts/Gotham-Bold.woff") format("woff"),
       url("../fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Book.woff2") format("woff2"),
       url("../fonts/Gotham-Book.woff") format("woff"),
       url("../fonts/Gotham-Book.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink: #0b1626;        /* polnočná modrá – pozadie slávnostných sekcií */
  --ink-2: #12233b;
  --gold: #c5a059;       /* zlatá na tmavom */
  --gold-l: #e3cd9a;
  --gold-d: #85652a;     /* zlatá pre text na svetlom (kontrast) */
  --ivory: #f8f3e8;      /* hlavné svetlé pozadie */
  --paper: #fffdf8;
  --line: #e2d6bd;
  --text: #1b2433;
  --muted: #66615a;
  --font: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 1.7;
  color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .btn, .nav a, .nav button, .eyebrow, .num { font-family: var(--font); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.06; margin: 0 0 .35em; letter-spacing: -.012em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.14; margin: 0 0 .5em; color: var(--ink); }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .3em; color: var(--ink); }
p { margin: 0 0 1.1em; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Ozdoba ---------- */
.orn { display: block; width: 240px; height: 18px; margin: 0 auto 28px; stroke: var(--gold); fill: var(--gold); stroke-width: 1; }
.orn.left { margin-left: 0; }
.eyebrow { color: var(--gold-d); letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 2px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .has-sub > a {
  text-decoration: none; color: var(--ink); font-size: .9rem; letter-spacing: .04em;
  padding: 10px 14px; position: relative; display: inline-block; white-space: nowrap;
}
.nav > a::after, .nav .has-sub > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after,
.nav .has-sub:hover > a::after, .nav .has-sub > a[aria-current="page"]::after { transform: scaleX(1); }

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub .caret {
  background: none; border: 0; cursor: pointer; color: var(--ink); width: 36px; height: 44px; font-size: .8rem; margin-left: -10px;
}
.sub {
  display: none; position: absolute; top: 100%; right: 0; min-width: 270px; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(11,22,38,.18); padding: 8px 0;
}
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: flex; gap: 12px; align-items: baseline; padding: 11px 22px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 400; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--ivory); }
.sub .r { color: var(--gold-d); font-family: var(--font); font-weight: 700; min-width: 2.2em; font-size: .8rem; letter-spacing: .06em; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); color: var(--ink);
  padding: 10px 16px; font: 700 .9rem var(--font); letter-spacing: .08em; cursor: pointer; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; /* veľké pre dotykový kiosk */
  padding: 16px 32px; border: 2px solid var(--gold); background: var(--gold); color: var(--ink);
  text-decoration: none; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--gold-l); border-color: var(--gold-l); }
.btn.ghost { background: transparent; color: var(--ivory); border-color: rgba(227,205,154,.7); }
.btn.ghost:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--ivory); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero (tmavý, slávnostný) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory); text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(197,160,89,.28), rgba(197,160,89,0) 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 96px 0 88px;
}
.hero::before, .hero::after { /* jemný zlatý rám */
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(197,160,89,.35); pointer-events: none;
}
.hero::after { inset: 26px; border-color: rgba(197,160,89,.15); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--ivory); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.25rem; color: #d7d2c5; max-width: 38em; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.stats { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; margin: 6px 0 34px;
  font-family: var(--font); font-weight: 700; color: var(--gold-l); letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.stats i { width: 1px; height: 26px; background: rgba(197,160,89,.6); }
.stats b { font-size: 1.7rem; color: var(--gold); margin-right: 8px; letter-spacing: 0; }

/* Hero podstránok */
.hero.sub-hero { padding: 72px 0 64px; text-align: left; }
.person-grid { display: grid; grid-template-columns: 330px 1fr; gap: 56px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, #1b3350, #0b1626);
  border: 1px solid var(--gold); padding: 10px; display: grid; place-items: center; color: var(--gold); text-align: center;
}
.portrait::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197,160,89,.4); pointer-events: none; }
.portrait img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; }
.portrait .rn { font-family: var(--font); font-weight: 700; font-size: 4.2rem; letter-spacing: .04em; }
.portrait small { display: block; font-size: .8rem; letter-spacing: .12em; color: var(--gold-l); margin-top: 8px; padding: 0 14px; }
.facts { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.chip { border: 1px solid rgba(197,160,89,.7); color: var(--gold-l); padding: 6px 18px; font-size: .85rem; letter-spacing: .08em; font-family: var(--font); font-weight: 700; }

/* ---------- Sekcie ---------- */
section.block { padding: 88px 0; }
section.block.paper { background: var(--paper); }
section.block.dark { background: var(--ink); color: var(--ivory); }
section.block.dark h2, section.block.dark h3 { color: var(--ivory); }
.section-head { max-width: 42em; margin: 0 auto 48px; text-align: center; }
.section-head .lead { color: var(--muted); font-size: 1.15rem; margin: 0; }
.dark .section-head .lead { color: #cfc9ba; }
.prose { max-width: 46em; margin: 0 auto; }
.prose p { font-size: 1.12rem; }
.prose h2 { text-align: center; }
.placeholder { border: 1px dashed var(--gold); padding: 30px; color: var(--muted); background: rgba(197,160,89,.07); text-align: center; }

/* Video */
.video { max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; position: relative; border: 1px solid var(--gold); padding: 10px; background: #060d18; }
.video iframe, .video .ph { width: 100%; height: 100%; border: 0; display: grid; place-items: center; color: var(--gold-l); text-align: center; }
.video .play { width: 84px; height: 84px; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.video .play::after { content: ""; border-left: 22px solid var(--gold); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }

/* Časová os */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--gold); }
.timeline li { position: relative; width: 50%; padding: 0 44px 38px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 38px 44px; text-align: left; }
.timeline li::after { content: ""; position: absolute; top: 8px; right: -7px; width: 13px; height: 13px; background: var(--ivory); border: 2px solid var(--gold); transform: rotate(45deg); }
.timeline li:nth-child(even)::after { right: auto; left: -7px; }
.timeline .year { font-family: var(--font); font-weight: 700; font-size: 1.6rem; color: var(--gold-d); }

/* ---------- Karty – Sieň slávy ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); color: inherit; text-decoration: none;
  border: 1px solid var(--line); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11,22,38,.16); border-color: var(--gold); }
.card .thumb { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #1b3350, #0b1626); display: grid; place-items: center;
  font-family: var(--font); font-weight: 700; font-size: 4rem; color: var(--gold); letter-spacing: .04em; }
.card .thumb::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197,160,89,.45); pointer-events: none; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; border-top: 3px solid var(--gold); }
.card .num { color: var(--gold-d); font-size: .78rem; letter-spacing: .22em; }
.card h3 { font-size: 1.28rem; margin-top: 4px; }
.card .links { margin-top: 12px; font-size: .88rem; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: .04em; }
.card .links span { color: var(--gold-d); margin: 0 6px; }
.card.gallery .thumb { background: var(--gold); color: var(--ink); }
.card.gallery .thumb::after { border-color: rgba(11,22,38,.35); }

/* Dokumenty na stiahnutie */
.docs { list-style: none; margin: 0 auto; padding: 0; max-width: 46em; display: grid; gap: 12px; }
.docs a {
  display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; font-family: var(--font); font-weight: 700; transition: border-color .2s ease, background .2s ease;
}
.docs a:hover { border-color: var(--gold); background: #fff; }
.docs .ext { background: var(--ink); color: var(--gold-l); padding: 4px 12px; font-size: .72rem; letter-spacing: .12em; }

/* Prepojenie osobností */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 48px 0 88px; }

/* ---------- Galéria ---------- */
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-grid figure { margin: 0 0 16px; break-inside: avoid; background: var(--ink); border: 1px solid var(--line); padding: 6px; cursor: zoom-in; overflow: hidden; }
.gallery-grid img { width: 100%; transition: transform .35s ease, opacity .2s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,13,24,.95); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border: 1px solid var(--gold); }
.lightbox button { position: absolute; top: 16px; right: 20px; font-size: 2.2rem; background: none; border: 0; color: var(--gold-l); cursor: pointer; width: 56px; height: 56px; }

/* ---------- Obsah: obrázky, citáty, zoznamy, video ---------- */
.prose p.lead-p { font-size: 1.32rem; line-height: 1.6; color: var(--ink); }
.prose p.lead-p::first-line { letter-spacing: .01em; }
.story-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px auto; max-width: 1000px; }
figure.pic { margin: 0; border: 1px solid var(--line); background: #fff; padding: 8px; }
figure.pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figure.pic figcaption { font-size: .85rem; color: var(--muted); padding: 10px 4px 2px; letter-spacing: .03em; }
blockquote.quote {
  margin: 40px auto; max-width: 46em; padding: 30px 38px; background: rgba(197,160,89,.12);
  border-left: 3px solid var(--gold); font-size: 1.15rem; line-height: 1.7; position: relative;
}
blockquote.quote::before { content: "\201E"; position: absolute; left: 12px; top: -6px; font: 700 4rem/1 var(--font); color: var(--gold); opacity: .5; }
blockquote.quote p { margin: 0 0 .8em; }
blockquote.quote cite { display: block; font-style: normal; font-family: var(--font); font-weight: 700; font-size: .85rem; letter-spacing: .08em; color: var(--gold-d); text-transform: uppercase; }
.list-block { max-width: 46em; margin: 40px auto; border: 1px solid var(--line); background: var(--paper); padding: 28px 34px; }
.list-block h3 { text-align: center; letter-spacing: .06em; margin-bottom: .8em; }
.list-block ul { list-style: none; margin: 0; padding: 0; }
.list-block li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px solid var(--line); }
.list-block li:last-child { border-bottom: 0; }
.list-block li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.list-block.cols ul { columns: 2 260px; column-gap: 36px; }
.list-block.cols li { break-inside: avoid; }
.video-box { max-width: 960px; margin: 0 auto; border: 1px solid var(--gold); padding: 10px; background: #060d18; }
.video-box video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 36px; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); padding: 5px; background: #fff; }
.gal-title { text-align: center; margin: 64px 0 26px; }
.gal-title:first-child { margin-top: 0; }
.gallery-grid.few { columns: auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.gallery-grid.few figure { width: min(100%, 360px); margin: 0; }
.gallery-grid figcaption { color: var(--gold-l); font-size: .82rem; padding: 8px 4px 2px; letter-spacing: .04em; }
.card .role { font-size: .9rem; color: var(--muted); margin: 2px 0 0; line-height: 1.4; }
.card .life { font-size: .8rem; color: var(--gold-d); letter-spacing: .1em; margin-top: 8px; font-family: var(--font); font-weight: 700; }
.card .thumb img { object-position: 50% 25%; }
@media (max-width: 900px) {
  .story-fig { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  blockquote.quote { padding: 26px 22px; }
}

/* ---------- Pätička ---------- */
.site-footer { background: var(--ink); color: #cfc9ba; padding: 44px 0; font-size: .95rem; border-top: 3px solid var(--gold); }
.site-footer a { color: var(--gold-l); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Tablet / mobil ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 24px 22px; gap: 0; border-bottom: 2px solid var(--gold); max-height: calc(100vh - 90px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .has-sub > a { padding: 14px 0; }
  .nav > a::after, .nav .has-sub > a::after { left: 0; right: auto; width: 40px; right: auto; bottom: 8px; }
  .has-sub { flex-wrap: wrap; }
  .has-sub .caret { margin-left: auto; }
  .sub { position: static; display: none; width: 100%; box-shadow: none; border: 0; border-left: 3px solid var(--gold); margin: 0 0 8px; padding: 0; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .person-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 300px; }
  section.block { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .timeline::before { left: 8px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 38px; text-align: left; }
  .timeline li::after, .timeline li:nth-child(even)::after { left: 2px; right: auto; }
  .stats i { display: none; }
}
@media print { .site-header, .site-footer, .pager { display: none; } }
