/* ==========================================================================
   Diaconia Svätý Jur — hlavný štýl
   Jediný CSS súbor, bez externých závislostí.
   Obsah: 1) tokeny 2) základ 3) layout 4) hlavička 5) hero 6) komponenty
          7) stránky 8) formulár 9) galéria 10) pätička 11) tlač
   ========================================================================== */

/* 1) TOKENY ---------------------------------------------------------------- */
:root {
  /* farby vychádzajú z loga (modrá #0090e0), doplnené teplými neutrálmi */
  --brand: #0090e0;
  --brand-600: #0a7cbe;
  --brand-700: #08689f;
  --brand-800: #06547f;
  --brand-050: #eaf6fd;
  --brand-100: #d3ecfa;

  --accent: #c06a35; /* terakota zo strešnej krytiny domov */
  --accent-050: #fbf1e9;

  --ink: #15303c;
  --ink-soft: #3c5561;
  --muted: #5f7480;
  --line: #e3ddd2;
  --line-soft: #efeae1;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --sand: #f4efe6;
  --sand-deep: #ece4d6;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 48, 60, .06), 0 2px 8px rgba(21, 48, 60, .05);
  --shadow-md: 0 2px 6px rgba(21, 48, 60, .07), 0 12px 28px rgba(21, 48, 60, .08);
  --shadow-lg: 0 6px 14px rgba(21, 48, 60, .08), 0 24px 56px rgba(21, 48, 60, .12);

  --container: 1160px;
  --narrow: 74ch;

  --font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;  /* 17px */
  --step-1: 1.1875rem;
  --step-2: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
  --step-4: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
  --step-5: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
}

/* 2) ZÁKLAD ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.22;
  letter-spacing: -.015em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

p, ul, ol, dl, table, figure { margin: 0 0 1.15rem; }
p { text-wrap: pretty; }
:where(p, li) { max-width: 78ch; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-800); }

strong { font-weight: 700; }
small { font-size: .875em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 200;
  background: var(--surface); color: var(--brand-800);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md); font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3) LAYOUT --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand-050); }
.section + .section--sand, .section--sand + .section { border-top: 1px solid var(--line-soft); }

.prose { max-width: var(--narrow); }
.prose > h2 { margin-top: 2.2em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose blockquote {
  margin: 1.8rem 0; padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 4px solid var(--brand);
  font-size: var(--step-2); color: var(--ink-soft); font-style: italic;
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin-bottom: 0; }
.eyebrow {
  display: block; margin-bottom: .55rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700);
}
.center { text-align: center; margin-inline: auto; }

/* 4) HLAVIČKA ------------------------------------------------------------- */
.topbar {
  background: var(--brand-800); color: #fff;
  font-size: .875rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: .4rem 1.5rem; min-height: 2.5rem;
}
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 1rem; height: 1rem; flex: none; opacity: .85; }
.topbar__note { margin-right: auto; opacity: .9; }
@media (max-width: 720px) { .topbar__note { display: none; } .topbar__inner { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4.5rem;
}

.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo svg { width: 2.6rem; height: 2.6rem; flex: none; }
.logo__text { display: grid; line-height: 1.12; }
.logo__text b { font-size: 1.15rem; letter-spacing: -.02em; color: var(--brand-700); }
.logo__text span { font-size: .8125rem; color: var(--muted); letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .75rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.nav__link:hover { background: var(--brand-050); color: var(--brand-800); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--brand-700); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 10px 10px 0 0; }
.nav__row { display: flex; align-items: center; }
.nav__toggle-sub {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; margin-left: -.35rem;
  background: none; border: 0; border-radius: 8px;
  color: var(--muted); cursor: pointer;
}
.nav__toggle-sub:hover { color: var(--brand-800); background: var(--brand-050); }
.nav__toggle-sub svg { width: .75rem; height: .75rem; transition: transform .18s ease; }
.nav__toggle-sub[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute; left: 0; top: calc(100% + .35rem); z-index: 20;
  min-width: 13rem; padding: .45rem; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.nav__sub a:hover { background: var(--brand-050); color: var(--brand-800); }

.nav__cta { margin-left: .6rem; }

.burger {
  display: none; align-items: center; gap: .5rem; margin-left: auto;
  padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.burger svg { width: 1.25rem; height: 1.25rem; }

@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 101; width: min(24rem, 100%);
    background: var(--surface); box-shadow: var(--shadow-lg);
    padding: 5.5rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .24s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__row { justify-content: space-between; }
  .nav__row .nav__link { flex: 1; }
  .nav__toggle-sub { width: 2.75rem; height: 2.75rem; margin-left: 0; }
  .nav__link { padding: .8rem .75rem; font-size: 1.0625rem; justify-content: space-between; }
  .nav__link[aria-current="page"], .nav__link.is-active { box-shadow: none; background: var(--brand-050); }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: .1rem 0 .4rem .9rem; padding: 0 0 0 .35rem;
    display: none;
  }
  .nav__sub.is-open { display: block; }
  .nav__item--has-sub:hover .nav__sub { display: none; }
  .nav__item--has-sub:hover .nav__sub.is-open { display: block; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 99; background: rgba(21, 48, 60, .45);
    opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .nav__close {
    position: absolute; top: 1.1rem; right: 1.1rem;
    width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
    background: var(--sand); border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  }
  .nav__close svg { width: 1.1rem; height: 1.1rem; }
}
@media (min-width: 1041px) {
  .nav__close { display: none; }
  .nav-backdrop { display: none; }
}

/* 5) HERO ----------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__media img.is-active { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6, 43, 60, .88) 0%, rgba(6, 43, 60, .72) 45%, rgba(6, 43, 60, .3) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  max-width: 46rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__lead { font-size: var(--step-2); color: rgba(255, 255, 255, .92); margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.25rem; padding: .4rem .9rem .4rem .55rem;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff;
}
.hero__badge .dot {
  width: .55rem; height: .55rem; border-radius: 50%; background: #7ce0a3;
  box-shadow: 0 0 0 4px rgba(124, 224, 163, .25);
}

/* kompaktná hlavička podstránky */
.page-hero { position: relative; background: var(--sand); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { margin-bottom: .35rem; }
.page-hero__lead { font-size: var(--step-2); color: var(--ink-soft); max-width: 60ch; margin: 0; }
.page-hero--photo { background: var(--ink); }
.page-hero--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* prekryv drzi kontrast bieleho textu nad fotkou bezpecne nad WCAG AA */
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 43, 60, .92) 0%, rgba(6, 43, 60, .78) 100%);
}
.page-hero--photo h1, .page-hero--photo .page-hero__lead { color: #fff; }
.page-hero--photo .breadcrumbs, .page-hero--photo .breadcrumbs a { color: rgba(255, 255, 255, .85); }

.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.breadcrumbs a { color: inherit; }

/* 6) KOMPONENTY ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-800); color: #fff; }
.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--brand-050); color: var(--brand-800); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-800); background: var(--brand-050); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .9375rem; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: var(--step-2); }
.card__meta { font-size: .875rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.card--link { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); color: inherit; }
.card__more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--brand-700); display: inline-flex; align-items: center; gap: .4rem; }
.card--accent { border-left: 4px solid var(--brand); }

.icon-circle {
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  display: grid; place-items: center; flex: none;
  background: var(--brand-050); color: var(--brand-700); border-radius: 50%;
}
.icon-circle svg { width: 1.5rem; height: 1.5rem; }
.icon-circle--sand { background: var(--accent-050); color: var(--accent); }

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.fact { background: var(--surface); padding: 1.5rem 1.25rem; text-align: center; }
.fact b { display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--brand-700); letter-spacing: -.02em; }
.fact span { display: block; margin-top: .35rem; font-size: .9375rem; color: var(--ink-soft); }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.split--center { align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.15fr .85fr; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split__media figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }

.quote {
  text-align: center; max-width: 46rem; margin-inline: auto;
  font-size: var(--step-3); line-height: 1.45; font-weight: 600; color: var(--ink);
  letter-spacing: -.015em;
}
.quote__mark { display: block; font-size: 4rem; line-height: .6; color: var(--brand-100); margin-bottom: .5rem; }
.quote cite { display: block; margin-top: 1.1rem; font-size: 1rem; font-style: normal; font-weight: 600; color: var(--muted); }

.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308689f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .75rem no-repeat;
}

.definition-table { width: 100%; border-collapse: collapse; }
.definition-table th, .definition-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.definition-table th { width: 32%; font-weight: 700; color: var(--ink); background: var(--sand); }
.definition-table tr:last-child th, .definition-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 620px) {
  .definition-table th, .definition-table td { display: block; width: 100%; }
  .definition-table th { border-bottom: 0; }
}

.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; padding: 1rem 1rem .25rem; font-weight: 700; font-size: var(--step-1); }
.price-table th, .price-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table tbody tr:hover { background: var(--bg); }
.price-table .is-free td:last-child { color: var(--muted); }
.price-table tfoot td { font-weight: 700; font-size: var(--step-1); background: var(--brand-050); border-bottom: 0; color: var(--brand-800); }

.doc-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.doc-list a {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 600;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.doc-list a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.doc-list svg { width: 1.4rem; height: 1.4rem; color: var(--accent); flex: none; }
.doc-list small { display: block; font-weight: 500; color: var(--muted); }

.cta-band { background: var(--brand-800); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; font-size: var(--step-3); }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 52ch; }
.cta-band__text { flex: 1 1 22rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.notice {
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--accent-050); border: 1px solid #ecd9c8;
}
.notice > :last-child { margin-bottom: 0; }
.notice--info { background: var(--brand-050); border-color: var(--brand-100); }

.contact-card { display: grid; gap: .35rem; }
.contact-card__role { font-weight: 700; }
.contact-card__note { font-size: .9375rem; color: var(--muted); }
.contact-card a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.contact-card svg { width: 1rem; height: 1rem; color: var(--brand); flex: none; }

.map-embed {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sand-deep); border: 1px solid var(--line); min-height: 22rem;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }
.map-embed__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .75rem;
  justify-items: center; text-align: center; padding: 1.5rem;
  background: var(--sand-deep);
}
.map-embed__placeholder p { color: var(--ink-soft); max-width: 34ch; margin: 0; font-size: .9375rem; }

/* 7) STRÁNKY -------------------------------------------------------------- */
.people-group { margin-bottom: 2rem; }
.people-group h3 { font-size: var(--step-2); margin-bottom: .75rem; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.people li { padding: .8rem 1.1rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.people b { display: block; }
.people span { font-size: .9375rem; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--brand-100); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: -.53rem; top: .45rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand);
}
.timeline b { display: block; color: var(--brand-700); font-size: 1.0625rem; }
.timeline p { margin: .2rem 0 0; color: var(--ink-soft); }

.job-meta { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: 2rem; }
.job-meta div { background: var(--surface); padding: 1.1rem 1.25rem; }
.job-meta dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.job-meta dd { margin: .3rem 0 0; font-weight: 600; }

/* 8) FORMULÁR ------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; }
.field .hint { font-size: .875rem; color: var(--muted); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field--invalid input, .field--invalid textarea { border-color: #c0392b; }
.field__error { color: #a5281c; font-size: .875rem; font-weight: 600; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.checkbox input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--brand-700); }
.checkbox label { font-weight: 500; font-size: .9375rem; }
.form__hp { position: absolute; left: -9999px; }
.form__status { padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 600; }
.form__status--ok { background: #e7f6ec; border: 1px solid #b9e3c6; color: #1c6b39; }
.form__status--err { background: #fdeceb; border: 1px solid #f3c8c4; color: #a5281c; }
[hidden] { display: none !important; }

/* 9) GALÉRIA -------------------------------------------------------------- */
.gallery-grid { display: grid; gap: clamp(.75rem, 1.6vw, 1.1rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery-grid a {
  display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--sand-deep); aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

.album-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.album {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.album:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.album__img { display: block; aspect-ratio: 3 / 2; background: var(--sand-deep); overflow: hidden; }
.album__img img { width: 100%; height: 100%; object-fit: cover; }
.album__body { display: block; padding: 1.1rem 1.25rem 1.35rem; }
.album h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.album__meta { font-size: .875rem; color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(9, 26, 34, .96);
  padding: clamp(.5rem, 2vw, 2rem);
}
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #fff; }
.lightbox__count { font-size: .9375rem; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; min-height: 0; }
/* absolutne pozicovanie je jedina spolahliva cesta, ako obrazok vzdy zmestit do okna */
.lightbox__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
}
.lightbox__nav { display: flex; justify-content: center; gap: .75rem; padding-top: .75rem; }
.lb-btn {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
body.lb-open { overflow: hidden; }

/* 10) PÄTIČKA ------------------------------------------------------------- */
.site-footer { background: #102b36; color: rgba(255, 255, 255, .78); margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid {
  display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.footer__grid h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .6); margin-bottom: 1rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__logo svg { width: 2.4rem; height: 2.4rem; }
.footer__logo { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; }
.footer__logo b { font-size: 1.1rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding-block: 1.15rem; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .875rem;
}
.social { display: inline-flex; gap: .6rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.social a:hover { background: var(--brand); }
.social svg { width: 1.15rem; height: 1.15rem; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* 11) TLAČ + POHYB ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero__media img { transition: none; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .hero__media, .map-embed, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero, .page-hero { background: #fff !important; color: #000; }
  .hero h1, .page-hero h1, .hero__lead { color: #000 !important; }
  a { text-decoration: underline; }
  .card, .facts, .table-wrap { box-shadow: none; }
}
