/* ============================================================
   Notársky úrad Bardejov — Mgr. Juraj Hamara
   Vizuál „Zelená kniha“: fľaškovo-zelený zamat viazanej knihy
   listín, zlatá fólia (razba), slonovinový papier obsahu.
   Odvodené z reálnych artefaktov úradu — zelené dosky so zlatým
   znakom. Display: Marcellus (rímska kapitála), citáty: EB Garamond.
   ============================================================ */

/* ---------- Fonty (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-normal-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;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ebgaramond-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ebgaramond-italic-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;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3-normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3-normal-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;
}

/* ---------- Tokeny ---------- */
:root {
  /* zamat knihy */
  --green-9: #0a1d15;
  --green-8: #0f2a1e;
  --green-7: #17382a;
  /* zlatá razba */
  --gold: #c9a961;
  --gold-2: #e9d9ac;
  --gold-ink: #7a5c22;              /* zlato ako text na svetlom */
  --foil: linear-gradient(105deg, #8c6d2f 0%, #c9a961 22%, #f4e7bd 48%, #c9a961 72%, #8c6d2f 100%);
  /* papier */
  --paper: #f7f3ea;
  --paper-deep: #efe7d6;
  --card: #fdfbf5;
  --line: #ddd3bc;
  --line-soft: #e8e0cd;
  /* atrament */
  --ink: #17251e;
  --ink-soft: #45544b;
  --link: #1e4d38;
  --ivory: #f2edde;
  --ivory-soft: #cfc9b4;
  --shadow-soft: 0 18px 44px rgb(10 29 21 / .1);
  --display: 'Marcellus', 'Times New Roman', Georgia, serif;
  --quote: 'EB Garamond', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 72rem;
  --prose: 44rem;
  --ease-out: cubic-bezier(.22, .8, .35, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* zrno papiera a plátna */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--green-8); color: var(--gold-2); }

a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--gold) 65%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s ease, text-decoration-color .18s ease; }
a:hover { color: var(--green-9); text-decoration-color: var(--gold-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b08a3e; outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .55em; letter-spacing: .008em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 7rem; }

/* zlatá razba — na tmavých plochách */
.hero h1, .page-head h1, .band h2 {
  background: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 120; background: var(--green-9); color: var(--gold-2); padding: .6rem 1rem; }
.skip-link:focus { left: 0; }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.9rem; height: 1px; background: var(--gold-ink); flex: 0 0 auto; }

.ic { vertical-align: -.14em; margin-right: .35rem; }

/* ---------- Lišta s kontaktom ---------- */
.utility { background: var(--green-9); color: var(--ivory-soft); font-size: .9rem; border-bottom: 1px solid rgb(201 169 97 / .18); }
.utility .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.9rem; padding-block: .5rem; justify-content: space-between; }
.utility a { color: var(--ivory); font-weight: 700; text-decoration-color: rgb(201 169 97 / .5); }
.utility a:hover { color: #fff; text-decoration-color: var(--gold); }
.utility span { white-space: nowrap; display: inline-flex; align-items: center; }
.utility .ic { color: var(--gold); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-8);
  border-bottom: 1px solid rgb(201 169 97 / .28);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgb(10 29 21 / .45); }
.site-header .wrap { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; padding-block: .85rem; }
.site-header .wrap, .utility .wrap { max-width: 86rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 54px; height: 54px; transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg); }
.brand b { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.brand span { font-family: var(--display); font-size: 1.24rem; line-height: 1.12; color: var(--ivory); white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 1px solid rgb(201 169 97 / .4); border-radius: 4px; padding: .5rem .85rem; font: inherit; font-weight: 600; color: var(--ivory); cursor: pointer; }

/* telefón v hlavičke — viditeľný pri každom scrollovaní */
.header-call {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--gold-2); text-decoration: none; font-weight: 700; font-size: .92rem;
  border: 1px solid rgb(201 169 97 / .5); border-radius: 999px;
  padding: .45rem .9rem; white-space: nowrap; margin-left: 1rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.header-call .ic { color: var(--gold); margin: 0; }
.header-call:hover { background: var(--gold); color: var(--green-9); border-color: var(--gold); }
.header-call:hover .ic { color: var(--green-9); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
@media (max-width: 82rem) {
  .header-call span { display: none; }
  .header-call { padding: .5rem .7rem; }
  .header-call .ic { margin: 0; }
}
.site-nav a {
  color: var(--ivory); text-decoration: none; font-size: .95rem; font-weight: 600;
  padding-block: .35rem; position: relative; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right .25s var(--ease-out);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--gold-2); }
.site-nav a[aria-current="page"]::after { right: 0; }

@media (max-width: 75rem) {
  .nav-toggle { display: block; order: 3; }
  .header-call { order: 2; margin-left: auto; padding: .5rem .7rem; }
  .header-call span { display: none; }
  .header-call .ic { margin: 0; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--green-8); border-bottom: 1px solid rgb(201 169 97 / .3);
    box-shadow: 0 30px 50px rgb(10 29 21 / .5); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .6rem 1.2rem 1rem; }
  .site-nav a { display: block; padding: .85rem .2rem; font-size: 1.08rem; border-bottom: 1px solid rgb(201 169 97 / .16); }
  .site-nav a::after { content: none; }
}

/* ---------- Zamatové plochy (hero, hlavičky stránok, pás) ---------- */
.hero, .page-head, .band {
  background:
    radial-gradient(120% 90% at 18% 0%, rgb(38 74 56 / .55), transparent 60%),
    radial-gradient(100% 120% at 100% 110%, rgb(5 14 10 / .8), transparent 55%),
    var(--green-8);
  color: var(--ivory);
}

/* guilloche prstence — zlaté, na zamate */
.rings { position: relative; overflow: hidden; }
.rings::before {
  content: ""; position: absolute; top: -24rem; right: -15rem;
  width: 56rem; aspect-ratio: 1; border-radius: 50%; z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle,
    transparent 0 19px,
    rgb(201 169 97 / .13) 19px 20px);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
}
.rings > .wrap { position: relative; z-index: 1; }

/* pomaly rotujúca legenda pečate — ambientný život tmavej scény */
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 46rem; aspect-ratio: 1; right: -14rem; top: -10rem;
  background: url('../img/seal-light.svg') center / contain no-repeat;
  opacity: .1;
}

/* ---------- Hero (domov) ---------- */
.hero { padding-block: clamp(3.4rem, 8vw, 6.2rem) clamp(3.2rem, 7vw, 5.4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.2rem, 5vw, 4.8rem); align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { margin-bottom: .4em; }
.hero .motto { font-family: var(--quote); font-style: italic; color: var(--gold-2); font-size: 1.22rem; margin-bottom: 1.5rem; }
.hero .lead { font-size: 1.27rem; line-height: 1.7; color: color-mix(in srgb, var(--ivory) 90%, transparent); max-width: 29.5em; }
@media (max-width: 56rem) { .hero .wrap { grid-template-columns: 1fr; } }

.facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  column-gap: clamp(1.1rem, 1.8vw, 1.8rem);
  margin: 2rem 0 2.3rem; border-block: 1px solid rgb(201 169 97 / .3);
}
.facts div { padding: 1.05rem 0; }
.facts div + div { border-left: 1px solid rgb(201 169 97 / .3); padding-left: clamp(1.1rem, 1.8vw, 1.8rem); }
@media (max-width: 44rem) {
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: .65rem 0; }
  .facts div + div { border-left: 0; padding-left: 0; border-top: 1px dashed rgb(201 169 97 / .25); }
}
.facts b { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }
.facts span { font-weight: 600; font-size: 1rem; color: var(--ivory); }
.facts a { color: var(--ivory); text-decoration-color: rgb(201 169 97 / .55); }
.facts a:hover { color: #fff; text-decoration-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--foil); background-size: 220% 100%; background-position: 0% 0;
  color: var(--green-9);
  font-weight: 700; text-decoration: none; border-radius: 4px;
  padding: .95rem 1.7rem; border: 0;
  box-shadow: 0 12px 30px rgb(10 29 21 / .35), inset 0 1px 0 rgb(255 255 255 / .5);
  transition: transform .18s var(--ease-out), box-shadow .18s ease, background-position .5s ease;
}
.btn:hover { transform: translateY(-2px); background-position: 60% 0; box-shadow: 0 18px 38px rgb(10 29 21 / .4), inset 0 1px 0 rgb(255 255 255 / .5); color: var(--green-9); }
.btn:active { transform: translateY(0); }
.btn-quiet { font-weight: 700; color: var(--ivory); text-decoration-color: rgb(201 169 97 / .55); }
.btn-quiet:hover { color: #fff; text-decoration-color: var(--gold); }

.hero-figure { position: relative; margin: 0 1.1rem 1.6rem 0; }
.hero-figure img:first-child {
  border-radius: 4px; border: 1px solid rgb(201 169 97 / .5); width: 100%;
  box-shadow: 0 26px 60px rgb(5 14 10 / .55);
}
.hero-figure::before {
  content: ""; position: absolute; z-index: 0; border-radius: 4px;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid rgb(201 169 97 / .55);
}
.hero-figure::after {
  content: ""; position: absolute; z-index: 0; border-radius: 4px;
  inset: 1.45rem -1.45rem -1.45rem 1.45rem;
  border: 1px solid rgb(201 169 97 / .25);
}
.hero-figure .seal-badge {
  position: absolute; left: -2.1rem; bottom: -2.1rem; width: 8.8rem; height: 8.8rem;
  border: 0; border-radius: 50%; z-index: 2;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 26px rgb(5 14 10 / .6));
}
@media (max-width: 56rem) {
  .hero-figure { max-width: 26rem; }
  .hero-figure .seal-badge { width: 6.8rem; height: 6.8rem; left: -1rem; bottom: -1.4rem; }
}

/* ---------- Sekcie na papieri ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.4rem); }

/* Aktualita — tabuľa vyhlášky */
.news { padding-block: clamp(1.8rem, 4vw, 2.8rem) 0; }
.news-card {
  background: var(--card); border: 1px solid var(--gold); border-radius: 6px;
  padding: 1.8rem clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft), inset 0 0 0 5px var(--card), inset 0 0 0 6px rgb(201 169 97 / .4);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.6rem, 4vw, 3.2rem); row-gap: .15rem;
  align-items: center;
}
.news-card .eyebrow { grid-column: 1 / -1; margin-bottom: .55rem; }
.news-card h2 { grid-column: 1; font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin-bottom: .35em; }
.news-card p { grid-column: 1; margin: 0; max-width: 56em; color: var(--ink-soft); }
.news-card a {
  grid-column: 2; grid-row: 2 / span 2; justify-self: end;
  display: inline-block; white-space: nowrap; font-weight: 700;
  border: 1px solid var(--gold); border-radius: 999px;
  padding: .75rem 1.4rem; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.news-card a:hover { background: var(--gold); color: var(--green-9); }
@media (max-width: 56rem) {
  .news-card { display: block; }
  .news-card a { display: inline-block; margin-top: 1.1rem; }
}
.section-deep { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p:last-child { color: var(--ink-soft); }

/* Karty životných situácií */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 60rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 38rem) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.65rem 1.65rem 1.4rem; display: flex; flex-direction: column; gap: .5rem;
  position: relative;
  transition: border-color .22s ease, transform .22s var(--ease-out), box-shadow .22s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 0 .45rem;
  color: var(--gold); background: var(--green-8);
  box-shadow: inset 0 0 0 1px rgb(201 169 97 / .4);
  transition: color .25s ease, background .25s ease, transform .25s var(--ease-out);
}
.card:hover .ico { color: var(--green-9); background: var(--gold); transform: rotate(-6deg) scale(1.05); }
.card .ico svg { display: block; }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; flex: 1; }
.card .go { color: var(--gold-ink); font-weight: 700; font-size: .95rem; }
.card .go::after { content: "→"; display: inline-block; margin-left: .45em; transition: translate .22s var(--ease-out); }
.card:hover .go::after { translate: .35em 0; }
.card:hover .go { color: var(--link); }

/* Pás — úkony mimo úradu */
.band { position: relative; overflow: hidden; border-block: 1px solid rgb(201 169 97 / .3); }
.band .wrap { padding-block: 2.8rem; position: relative; z-index: 1; max-width: 58rem; }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .35em; }
.band p { margin: 0; font-size: 1.05rem; color: color-mix(in srgb, var(--ivory) 85%, transparent); }
.band a { color: var(--ivory); text-decoration-color: rgb(201 169 97 / .55); }
.band a:hover { color: #fff; text-decoration-color: var(--gold); }
.band .seal-wm { position: absolute; right: -3rem; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 17rem; height: 17rem; opacity: .12; z-index: 0; }

/* Blok dôvery */
.trust .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 56rem) { .trust .wrap { grid-template-columns: 1fr; } }
.trust img { border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

/* ---------- Vnútorné stránky ---------- */
.page-head { border-bottom: 4px double var(--gold); padding-block: clamp(2.8rem, 6vw, 4.4rem); }
.page-head .eyebrow { color: var(--gold); }
.page-head .eyebrow::before { background: var(--gold); }
.page-head .lead { font-size: 1.22rem; color: color-mix(in srgb, var(--ivory) 82%, transparent); max-width: var(--prose); margin: 0; }
.page-head h1 { max-width: 48rem; }

.prose { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold-ink); }
.prose h2 { margin-top: 2.3em; }
.prose h3 { margin-top: 1.8em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
.prose .motto { font-family: var(--quote); font-size: 1.3rem; color: var(--gold-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.4rem, 6vw, 4rem); }
@media (max-width: 60rem) { .layout { grid-template-columns: 1fr; } }

.aside-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px double var(--gold); border-radius: 6px;
  padding: 1.6rem; font-size: 1rem; align-self: start; position: sticky; top: 6.6rem;
  box-shadow: var(--shadow-soft);
}
.aside-card h2 { font-size: 1.22rem; margin-bottom: .8em; }
.aside-card p { margin-bottom: .7em; }
.aside-card .btn { display: flex; text-align: center; margin-top: 1.1rem; }

/* Kroky — rímske číslice razby */
.steps { list-style: none; counter-reset: krok; margin: 2.2rem 0; padding: 0; }
.steps > li { counter-increment: krok; position: relative; padding: 0 0 2.1rem 4.7rem; margin: 0; }
.steps > li::before {
  content: counter(krok, upper-roman) ".";
  position: absolute; left: 0; top: -.3rem;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em;
  color: var(--gold-ink); border: 1.5px solid var(--gold-ink);
  background: var(--card);
  box-shadow: 0 0 0 5px var(--paper);
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.55rem; top: 3.2rem; bottom: 0;
  width: 1.5px; background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px);
  opacity: .55;
}
.steps h3 { margin: 0 0 .3em; }
.steps p { margin: 0; color: var(--ink-soft); }
.steps p + p { margin-top: .6rem; }
.steps figure { margin: 1rem 0 0; }
.steps figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.steps figcaption { margin-top: .45rem; font-size: .88rem; color: var(--ink-soft); }

/* Akordeóny */
details {
  border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  margin-bottom: .85rem;
  transition: border-color .22s ease, box-shadow .22s ease;
}
details:hover { border-color: color-mix(in srgb, var(--gold) 65%, var(--line)); }
details[open] { border-color: var(--gold); box-shadow: var(--shadow-soft); }
summary {
  cursor: pointer; list-style: none; display: flex; gap: .9rem; align-items: baseline;
  font-family: var(--display); font-size: 1.16rem;
  padding: 1.05rem 1.35rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+"; flex: 0 0 auto; align-self: center;
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-ink); border: 1.5px solid color-mix(in srgb, var(--gold-ink) 65%, transparent);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform .3s var(--ease-out), background .2s ease, color .2s ease;
}
details[open] summary::before { transform: rotate(45deg); background: var(--gold); color: var(--green-9); border-color: var(--gold); }
details .inner { padding: 0 1.35rem 1.3rem 3.8rem; }
details .inner :last-child { margin-bottom: 0; }
@media (max-width: 44rem) { details .inner { padding-left: 1.35rem; } }

/* Poznámky */
.note {
  border-left: 3px solid var(--gold); background: var(--paper-deep);
  padding: 1.05rem 1.35rem; border-radius: 0 6px 6px 0; margin: 1.7rem 0; font-size: 1rem;
}
.note :last-child { margin-bottom: 0; }

mark.todo {
  background: #f3d9a4; color: #5c4308; font-size: .85rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 3px; white-space: normal;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Tabuľky */
.table-wrap { overflow-x: auto; margin: 1.7rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .75rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); border-bottom: 2px solid var(--gold); }
tbody tr { transition: background .15s ease; }
tbody tr:nth-child(odd) { background: rgb(239 231 214 / .55); }
tbody tr:hover { background: rgb(239 231 214 / .95); }
td .muted { display: inline-block; margin-top: .15rem; font-size: .88em; color: var(--ink-soft); }

/* Portrét notára */
.portrait { float: right; width: min(38%, 18rem); margin: .2rem 0 1.3rem 1.9rem; }
.portrait img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.portrait figcaption { margin-top: .55rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 44rem) {
  .portrait { float: none; width: 100%; margin: 0 0 1.5rem; }
}

/* Galéria rytín */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.05rem; margin: 1.9rem 0; }
@media (max-width: 44rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img {
  border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.gallery img:hover { transform: scale(1.025); box-shadow: var(--shadow-soft); }
.gallery img.pos-top { object-position: 50% 16%; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-block: 1.9rem; }
@media (max-width: 44rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card:hover { border-color: var(--line); transform: none; box-shadow: none; }
.contact-grid .card b { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.contact-grid .card a, .contact-grid .card .big { font-family: var(--display); font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.contact-grid .card a:hover { color: var(--link); }
.map-frame { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-block: 1.5rem; box-shadow: var(--shadow-soft); }
.map-frame iframe { display: block; width: 100%; height: 26rem; border: 0; }

/* ---------- Mobilné tlačidlo Zavolajte ---------- */
.call-fab {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 110;
  display: none; align-items: center; justify-content: center; gap: .55rem;
  background: var(--foil); background-size: 220% 100%;
  color: var(--green-9); font-weight: 700; font-size: 1.05rem;
  padding: 1rem 1.2rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 16px 40px rgb(10 29 21 / .45), inset 0 1px 0 rgb(255 255 255 / .5);
  opacity: 0; translate: 0 12px;
  transition: opacity .3s ease, translate .3s var(--ease-out);
}
.call-fab .ic { color: var(--green-8); margin: 0; }
@media (max-width: 56rem) {
  .call-fab.show { display: flex; opacity: 1; translate: 0 0; }
  .site-footer .footer-base { padding-bottom: 5.2rem; }
}

/* ---------- Pätička ---------- */
.site-footer {
  background:
    radial-gradient(110% 100% at 85% 0%, rgb(38 74 56 / .35), transparent 55%),
    var(--green-9);
  color: var(--ivory-soft); margin-top: clamp(2.5rem, 6vw, 4.5rem);
  font-size: .98rem; border-top: 4px double var(--gold);
}
.site-footer a { color: var(--ivory); text-decoration-color: rgb(201 169 97 / .45); }
.site-footer a:hover { color: #fff; text-decoration-color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 2.9rem 2rem; }
@media (max-width: 54rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--gold); font-size: .9rem; font-family: var(--sans); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-base { border-top: 1px solid rgb(201 169 97 / .22); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.footer-base .motto { font-family: var(--quote); font-style: italic; font-size: 1.08rem; color: var(--gold); }

/* Draft banner (odstrániť pred publikovaním) */
.draft-note { background: #8c3a34; color: #fff; text-align: center; font-size: .88rem; padding: .45rem 1rem; margin: 0; position: relative; z-index: 105; }

/* ---------- Pohyb ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes stamp {
    0%   { opacity: 0; transform: rotate(-2deg) scale(1.6); }
    55%  { opacity: 1; transform: rotate(-9deg) scale(.94); }
    78%  { transform: rotate(-7.5deg) scale(1.04); }
    100% { transform: rotate(-8deg) scale(1); }
  }
  @keyframes sealturn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes foil {
    0%, 12%   { background-position: 0% 0; }
    50%       { background-position: 100% 0; }
    88%, 100% { background-position: 0% 0; }
  }

  .hero h1, .page-head h1 { animation: foil 9s ease-in-out infinite; }
  .hero::after { animation: sealturn 140s linear infinite; }

  .hero .eyebrow    { animation: rise .55s var(--ease-out) .05s backwards; }
  .hero h1          { animation: rise .6s var(--ease-out) .12s backwards, foil 9s ease-in-out 1s infinite; }
  .hero .motto      { animation: rise .6s var(--ease-out) .2s backwards; }
  .hero .lead       { animation: rise .6s var(--ease-out) .26s backwards; }
  .hero .facts      { animation: rise .6s var(--ease-out) .34s backwards; }
  .hero .btn-row    { animation: rise .6s var(--ease-out) .42s backwards; }
  .hero-figure      { animation: fade .8s ease .25s backwards; }
  .hero-figure .seal-badge { animation: stamp .75s cubic-bezier(.2, .75, .3, 1.15) .85s backwards; }

  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease-out); }
  [data-reveal].in { opacity: 1; transform: none; }

  .page-head .eyebrow { animation: rise .5s var(--ease-out) .05s backwards; }
  .page-head h1       { animation: rise .55s var(--ease-out) .12s backwards, foil 9s ease-in-out 1s infinite; }
  .page-head .lead    { animation: rise .55s var(--ease-out) .2s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tlač ---------- */
@media print {
  body::after, .utility, .site-header, .site-footer, .draft-note, .call-fab,
  .aside-card, .nav-toggle, .btn, .map-frame { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero h1, .page-head h1, .band h2 { background: none; color: #000; -webkit-text-fill-color: initial; }
  .hero, .page-head, .band { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  details { border: 1px solid #999; break-inside: avoid; }
  mark.todo { background: none; border: 1px solid #999; }
  .layout { display: block; }
}
