:root {
  /* --- Brand paleta (Múzeum poistenia · Brand Manual 3.0) --- */
  --paper: #FCFBF8;          /* papierová biela — hlavné pozadie */
  --paper-2: #F7F4EE;        /* slonovina — tiché plochy a alternatívne sekcie */
  --champagne: #F0E4D0;      /* šampanská — deliace pásy, poznámkové boxy */
  --card: #FFFFFF;
  --ink: #414141;            /* grafit — text a nadpisy (nikdy čistá čierna) */
  --ink-strong: #2A2A2A;     /* grafit tmavý — footer, banner s claimom */
  --ink-soft: #6E6A64;       /* grafit mäkký — sekundárny text */
  --gray: #938d83;           /* najtichšie popisky */
  --gold: #A9793C;           /* zlatá tmavá — akcent, odkazy, hover */
  --gold-full: #B07F40;      /* plná zlatá */
  --gold-mid: #C0905C;
  --gold-light: #D8B285;     /* zlatá svetlá — highlight na tmavom */
  --gold-grad: linear-gradient(45deg, #A9793C 0%, #C0905C 52%, #D8B285 100%);
  /* aliasy pre spätnú kompatibilitu so starými názvami premenných */
  --copper: #A9793C;
  --copper-deep: #8a6330;
  --copper-soft: rgba(169, 121, 60, 0.10);
  --copper-line: rgba(169, 121, 60, 0.38);
  --steel: #7f96a3;
  --line: rgba(65, 65, 65, 0.10);
  --line-strong: rgba(65, 65, 65, 0.16);
  --shadow: 0 8px 30px rgba(60, 50, 30, 0.07);
  --shadow-lift: 0 24px 60px rgba(60, 50, 30, 0.13);
  --serif: 'Playfair Display', Georgia, serif;   /* claim, citácie, veľké čísla */
  --sans: 'Mulish', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;  /* nadpisy, text, UI — Mulish (Lato z Google Fonts nemá Č ť ď ľ ň, viď PROJEKT.md) */
  --mono: 'Mulish', -apple-system, system-ui, sans-serif;  /* labely CAPS — rovnaký font ako text */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: #fff; }

/* noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- cursor: husie brko ---------- */
.quill {
  position: fixed; top: 0; left: 0;
  height: 46px; width: auto;
  margin-left: -3px; margin-top: -46px;
  pointer-events: none; z-index: 10000;
  display: none;
  transform-origin: 14.9% 99.7%;
}
/* nad tmavým podkladom sa grafitové pierko prepne na čisto biele */
.quill.quill-light { filter: invert(1) brightness(1.8); transition: filter .2s; }
html.quill-on .quill { display: block; }
html.quill-on, html.quill-on * { cursor: none !important; }

/* ---------- typography ---------- */
/* Brand: nadpisy Lato (Black/Bold), akcentové em v Playfair Display Italic (zlatá) */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 em, h2 em, h3 em,
.section-title em, .hero h1 em, .page-hero h1 em, .bio-text h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold);
  letter-spacing: 0;
}
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--copper-line); }
.section-title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; margin: 22px 0 18px; line-height: 1.1; }
.section-lead { color: var(--ink-soft); max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.12rem); }

section { position: relative; padding: clamp(48px, 6vw, 82px) 0; }
.wrap { width: min(1240px, 92vw); margin: 0 auto; }

/* ---------- logo ---------- */
/* manuál: horizontálne logo v digitáli min. 160 px šírky -> výška ~57 px */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 57px; width: auto; display: block; transition: height .3s; }
nav.scrolled .logo img { height: 48px; }
footer .logo img { height: 42px; }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 16px 4vw;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(76, 57, 30, 0.06);
  padding: 10px 4vw;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-quick { display: flex; gap: 22px; list-style: none; }
.nav-quick a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 400;
  letter-spacing: 0.02em; transition: color .3s; position: relative;
}
.nav-quick a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--gold); transition: width .35s; }
.nav-quick a:hover, .nav-quick a.active { color: var(--ink); }
.nav-quick a:hover::after, .nav-quick a.active::after { width: 100%; }
.nav-social { display: flex; gap: 8px; }
.nav-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center;
  transition: border-color .3s, background .3s, transform .3s;
}
.nav-social a svg { width: 14px; height: 14px; fill: var(--ink-soft); transition: fill .3s; }
.nav-social a:hover { border-color: var(--copper-line); background: var(--copper-soft); transform: translateY(-2px); }
.nav-social a:hover svg { fill: var(--copper); }
.nav-cta {
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border: 1px solid var(--copper-line);
  padding: 11px 22px; border-radius: 100px; transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
/* neónový pulz (ako na tomaskromka.sk), v zlate značky */
@keyframes gold-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(176, 127, 64, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(176, 127, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 127, 64, 0); }
}
.nav-cta { animation: gold-pulse 2s cubic-bezier(.4, 0, .2, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .nav-cta { animation: none; } }
/* hamburger — viditeľný na všetkých veľkostiach, otvára plné menu */
.burger { display: flex; flex-direction: column; background: none; border: none; cursor: pointer; z-index: 1001; padding: 8px; }
.burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .35s, opacity .35s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; background: rgba(252, 251, 248, 0.98); z-index: 1000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 2px; padding: 90px 8vw 40px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--sans); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--ink); text-decoration: none; padding: 8px 0; letter-spacing: -0.01em; transition: color .3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mm-close {
  position: absolute; top: 20px; right: 5vw; z-index: 1002;
  background: none; border: none; cursor: pointer; padding: 6px;
  font-size: 40px; line-height: 1; color: var(--ink); transition: color .3s, transform .3s;
}
.mm-close:hover { color: var(--gold); transform: rotate(90deg); }
body.menu-open .burger { display: none; }
@media (max-width: 780px) { .nav-quick, .nav-cta { display: none; } }
@media (max-width: 460px) { .nav-social { display: none; } }
.mobile-social { display: flex; gap: 12px; padding-top: 26px; }
.mobile-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
}
.mobile-social a svg { width: 17px; height: 17px; fill: var(--ink-soft); }

/* ---------- hero (index) ---------- */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px;
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(192, 144, 92, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(169, 121, 60, 0.06), transparent 55%),
    var(--paper);
  overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 em { font-style: italic; color: var(--copper); }
.hero-sub { margin-top: 28px; color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 520px; }
.hero-ctas { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 17px 34px; border-radius: 100px;
  transition: transform .3s, background .3s, color .3s, border-color .3s, box-shadow .3s, filter .3s;
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer;
}
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 10px 26px rgba(169, 121, 60, 0.28); }
.btn-gold:hover { transform: translateY(-3px); filter: brightness(1.04); box-shadow: 0 16px 36px rgba(169, 121, 60, 0.38); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: none; }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--copper-line); color: var(--gold); }

/* rotating seal with logo */
.hero-visual { position: relative; display: grid; place-items: center; }
.seal-wrap { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.seal-ring { position: absolute; inset: 0; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-core {
  position: absolute; inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf7, #f0e9d8 75%);
  border: 1px solid var(--copper-line);
  display: grid; place-items: center;
  box-shadow: 0 30px 70px rgba(76, 57, 30, 0.18), inset 0 0 50px rgba(191, 91, 29, 0.05);
}
.seal-core img { width: 68%; height: auto; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gray);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ''; width: 1px; height: 42px; background: linear-gradient(var(--copper), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- page hero (podstránky) ---------- */
.page-hero {
  padding: 150px 0 12px;
  background:
    radial-gradient(ellipse 90% 70% at 75% 0%, rgba(191, 91, 29, 0.07), transparent 60%),
    var(--paper);
}
/* sekcia hneď pod nadpisom podstránky — tesnejšie */
.page-hero + section { padding-top: clamp(22px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 22px 0 18px; }
.page-hero h1 em { font-style: italic; color: var(--copper); }

/* ---------- o projekte ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-text p strong { color: var(--ink); font-weight: 700; }
/* portrét zakladateľa v sekcii O projekte */
.founder-fig { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; }
.ff-foto {
  box-shadow: var(--shadow-lift); border: 1px solid var(--line);
}
/* pôvodné pravidlo ostáva pre istotu, keby fotka nebola v obale */
.founder-fig img {
  width: min(400px, 82vw); height: auto; display: block;
  border-radius: 26px; box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.founder-fig figcaption {
  margin-top: 18px; padding-top: 14px; text-align: center;
  border-top: 1px solid var(--copper-line); min-width: 220px;
}
.founder-fig .ff-name { display: block; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.founder-fig .ff-role {
  display: block; margin-top: 3px; font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}

/* ---------- virtuálna prehliadka ---------- */
.tour { background: var(--paper-2); }
.tour-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9; min-height: 380px;
  background: linear-gradient(180deg, #fbf7ec, #f1e9d8);
  box-shadow: var(--shadow-lift);
}
.tour-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tour-veil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, transparent 45%, rgba(247, 244, 238, 0.5));
  padding: clamp(16px, 3vw, 34px);
}
.tour-inner {
  text-align: center; position: relative;
  background: rgba(255, 253, 247, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 54px 40px 26px; max-width: 560px;
  box-shadow: var(--shadow-lift);
}
.tour-inner .badge360 {
  width: 76px; height: 76px; border-radius: 50%;
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  border: 1px solid var(--copper-line); display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; color: var(--copper); letter-spacing: 0.08em;
  background: #fffdf7;
  box-shadow: 0 12px 30px rgba(76, 57, 30, 0.15);
}
.badge360::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(191, 91, 29, 0.3); animation: spin 24s linear infinite; }
.tour-inner h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.tour-inner p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 22px; }
@media (max-width: 700px) {
  .tour-frame { aspect-ratio: 3 / 4; }
  .tour-inner { padding: 46px 22px 20px; }
}
.tour-alt {
  display: block; margin-top: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray); text-decoration: none; transition: color .3s;
}
.tour-alt:hover { color: var(--copper); }
.tour-hotspot {
  position: absolute; z-index: 3; width: 15px; height: 15px; border-radius: 50%;
  background: var(--copper); cursor: pointer; border: 2px solid #fffdf7;
  box-shadow: 0 2px 10px rgba(76, 57, 30, 0.3);
}
.tour-hotspot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--copper); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- exponáty (horizontal) ---------- */
.exhibits { overflow: clip; }
.exhibits-head { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.h-scroll-outer { position: relative; }
.h-track { display: flex; gap: 26px; padding: 40px 4vw; will-change: transform; width: max-content; }
.exhibit-card {
  width: clamp(300px, 30vw, 400px); flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .4s, box-shadow .4s;
}
.exhibit-card:hover { transform: translateY(-8px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.exhibit-visual {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f3ead6, #e8dec7);
  border-bottom: 1px solid var(--line);
}
.exhibit-visual svg { width: 68%; max-height: 78%; }
.exhibit-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); background: rgba(255, 253, 247, 0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--copper-line); border-radius: 100px; padding: 6px 14px;
}
.exhibit-body { padding: 24px 26px 28px; }
.exhibit-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.exhibit-body p { color: var(--ink-soft); font-size: 0.94rem; }
.exhibit-year { font-family: var(--mono); font-size: 11px; color: var(--gray); letter-spacing: 0.15em; display: block; margin-bottom: 10px; }

/* ---------- obdobia (bento) ---------- */
.eras { background: var(--paper-2); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 54px; }
.era-tile {
  border-radius: 26px; padding: 34px; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .35s, box-shadow .35s;
  min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end;
}
.era-tile:hover { transform: translateY(-5px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.era-tile .era-years {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--copper); margin-bottom: 12px;
}
.era-tile h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 10px; }
.era-tile p { color: var(--ink-soft); font-size: 0.93rem; max-width: 46ch; }
.era-tile .era-ghost {
  position: absolute; top: -14px; right: 6px;
  font-family: var(--serif); font-size: clamp(5rem, 8vw, 8rem); font-weight: 600;
  color: rgba(191, 91, 29, 0.08); line-height: 1; pointer-events: none;
}
.era-w6 { grid-column: span 6; }
.era-w4 { grid-column: span 4; }
.era-w8 { grid-column: span 8; }
@media (max-width: 860px) { .era-w6, .era-w4, .era-w8 { grid-column: span 12; } }
/* ---------- míľniky: horizontálna koľaj (slajduje sa do bokov, na PC šípky) ---------- */
.timeline-sec { overflow: clip; }
.tl-wrap { position: relative; margin-top: clamp(44px, 5vw, 64px); }
.tl {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 6px 0 2px; cursor: grab;
}
.tl::-webkit-scrollbar { display: none; }
.tl.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.tl-track { display: flex; align-items: stretch; gap: 22px; width: max-content; padding: 0 1px; }
.tl-item {
  position: relative; flex: 0 0 clamp(236px, 25vw, 300px);
  display: flex; flex-direction: column; scroll-snap-align: start;
}
/* spojnica prechádza stredmi bodiek; na krajoch začína a končí pri prvej a poslednej */
.tl-item::before {
  content: ''; position: absolute; left: -12px; right: -12px; bottom: 6px;
  height: 1px; background: var(--line-strong);
}
.tl-item:first-child::before { left: 50%; }
.tl-item:last-child::before { right: 50%; }
.tl-card {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 26px 24px; box-shadow: var(--shadow); margin-bottom: 26px; text-align: left;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.tl-card:hover { border-color: var(--copper-line); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--copper); margin: 0 auto; position: relative; z-index: 2;
}
.tl-year { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--copper); font-weight: 600; line-height: 1; }
.tl-card h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.tl-card p { color: var(--ink-soft); font-size: 0.92rem; }
/* ukazovateľ postupu pod koľajou */
.tl-line { position: relative; height: 2px; border-radius: 2px; background: var(--line); margin-top: 22px; overflow: hidden; }
.tl-line-fill {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--copper), rgba(191, 91, 29, 0.45));
  transform-origin: left center; transform: scaleX(0); transition: transform .18s linear;
}
/* šípky po bokoch — len tam, kde je myš */
.tl-arrow, .rail-arrow {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--ink-soft);
  font-size: 26px; line-height: 1; padding-bottom: 3px; cursor: pointer;
  box-shadow: var(--shadow); transition: border-color .3s, color .3s, opacity .3s, transform .3s;
}
.tl-arrow:hover, .rail-arrow:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-50%) scale(1.06); }
.tl-prev { left: -20px; }
.tl-next { right: -20px; }
.tl-arrow:disabled, .rail-arrow:disabled { opacity: 0.28; cursor: default; }
.tl-arrow:disabled:hover, .rail-arrow:disabled:hover { border-color: var(--line-strong); color: var(--ink-soft); transform: translateY(-50%); }
/* na dotykových zariadeniach sa slajduje prstom — šípky tam nepatria */
@media (hover: none) {
  .tl-arrow, .rail-arrow { display: none; }
}
/* na úzkom okne s myšou šípky nesmú vypadnúť zo stránky */
@media (max-width: 900px) { .tl-prev { left: -6px; } .tl-next { right: -6px; } }
@media (max-width: 620px) { .tl-prev { left: 2px; } .tl-next { right: 2px; } }
@media (max-width: 520px) {
  .tl-item { flex-basis: 78vw; }
}

/* ---------- osobnosti ---------- */
.people { background: var(--paper-2); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 54px; }
.person {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .35s, box-shadow .35s;
}
.person:hover { transform: translateY(-6px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.person-monogram {
  width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  border: 1px solid var(--copper-line);
  background: radial-gradient(circle at 35% 30%, #fffdf7, #f0e6d2);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--copper);
}
.person h3 { font-size: 1.35rem; }
.person .years { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--gray); margin: 6px 0 12px; }
.person p { color: var(--ink-soft); font-size: 0.9rem; }

/* featured osobnosť (Wagner) */
.wagner-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .wagner-grid { grid-template-columns: 1fr; } }
.portrait-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 40px 34px; text-align: center; box-shadow: var(--shadow);
  position: sticky; top: 110px;
}
@media (max-width: 860px) { .portrait-card { position: static; } }
.portrait-frame {
  width: min(240px, 60vw); aspect-ratio: 3 / 4; margin: 0 auto 26px;
  border: 1px solid var(--copper-line); border-radius: 120px 120px 18px 18px;
  background: radial-gradient(circle at 40% 25%, #fdf8ea, #ecdfc5);
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 0 40px rgba(191, 91, 29, 0.07);
}
.portrait-frame::before {
  content: ''; position: absolute; inset: 10px;
  border: 1px dashed rgba(191, 91, 29, 0.25);
  border-radius: 110px 110px 12px 12px;
}
.portrait-frame .pf-monogram { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: var(--copper); font-style: italic; }
.portrait-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-top: -14px; margin-bottom: 22px; }
.portrait-card h2 { font-size: 1.9rem; }
.portrait-card .years { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--copper); margin: 8px 0 14px; }
.portrait-card .role { color: var(--ink-soft); font-size: 0.94rem; }
.chip {
  display: inline-block; margin-top: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); border: 1px solid var(--copper-line); border-radius: 100px;
  padding: 8px 18px; background: var(--copper-soft);
}
.bio-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 24px; }
.bio-text h2 em { font-style: italic; color: var(--copper); }
.bio-text p { color: var(--ink-soft); margin-bottom: 18px; }
.bio-text p strong { color: var(--ink); font-weight: 700; }
.bio-quote {
  border-left: 2px solid var(--copper); padding: 6px 0 6px 24px; margin: 30px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink);
}

/* pátranie */
.quest { background: var(--paper-2); }
.quest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 54px; }
@media (max-width: 760px) { .quest-grid { grid-template-columns: 1fr; } }
.quest-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px; box-shadow: var(--shadow);
}
.quest-card h3 { font-size: 1.5rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.quest-card h3 .q-ico {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--copper-line); background: var(--copper-soft);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; color: var(--copper);
}
.quest-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.quest-card ul { list-style: none; }
.quest-card li { color: var(--ink-soft); font-size: 0.95rem; padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); }
.quest-card li:last-child { border-bottom: none; }
.quest-card li::before { content: '›'; position: absolute; left: 4px; color: var(--copper); font-family: var(--serif); font-size: 1.1rem; }
.sources { margin-top: 40px; }
.sources h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.sources a { display: inline-block; color: var(--ink-soft); text-decoration: none; font-size: 13.5px; border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; margin: 0 8px 10px 0; transition: color .3s, border-color .3s; background: var(--card); }
.sources a:hover { color: var(--copper); border-color: var(--copper-line); }

/* ---------- blog slider ---------- */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.slider-nav { display: flex; gap: 12px; }
.slider-btn {
  width: 52px; height: 52px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--line-strong); color: var(--ink);
  font-size: 18px; cursor: pointer; transition: border-color .3s, background .3s, color .3s;
}
.slider-btn:hover { border-color: var(--copper); color: var(--copper); }
.blog-slider {
  display: flex; gap: 24px; margin-top: 50px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 24px; cursor: grab;
  scrollbar-width: none;
}
.blog-slider::-webkit-scrollbar { display: none; }
.blog-slider.dragging { cursor: grabbing; scroll-snap-type: none; }
.blog-card {
  flex: 0 0 clamp(300px, 31vw, 410px); scroll-snap-align: start;
  border-radius: 26px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: block;
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .4s, box-shadow .4s;
}
.blog-card:hover { transform: translateY(-8px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.blog-cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.blog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
.blog-card:hover .blog-cover img { transform: scale(1.05); }
.blog-cover .cover-num {
  font-family: var(--serif); font-style: italic; font-size: 5rem; font-weight: 600;
  color: rgba(43, 39, 35, 0.14);
}
.blog-cover-1 { background: linear-gradient(150deg, #f2e3c8, #e7d3ac); }
.blog-cover-2 { background: linear-gradient(150deg, #dfe5e8, #c9d3d9); }
.blog-cover-3 { background: linear-gradient(150deg, #f0dcd3, #e2c4b4); }
.blog-cover-4 { background: linear-gradient(150deg, #e2e8da, #ccd6c0); }
.blog-cover-5 { background: linear-gradient(150deg, #e6e0ee, #d2c9de); }
.blog-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper); display: flex; gap: 16px; }
.blog-body { padding: 26px 28px 30px; }
.blog-body h3 { font-size: 1.45rem; margin: 12px 0 10px; }
.blog-body p { color: var(--ink-soft); font-size: 0.93rem; }
.blog-more { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); }

/* ---------- kniha ---------- */
.book-sec { background: var(--paper-2); overflow: clip; }
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 7vw, 100px); align-items: center; }
/* ---------- 3D kniha (360° otočná, textúry z tlačovej obálky) ---------- */
.book-scene { display: grid; place-items: center; }
.book3d-stage {
  --bw: min(280px, 60vw);                 /* šírka obálky */
  --bh: calc(var(--bw) * 1.458);          /* výška (pomer skutočnej obálky) */
  --bd: calc(var(--bh) * 0.0474);         /* hrúbka knihy (pomer chrbta) */
  width: calc(var(--bw) * 1.5); height: calc(var(--bh) * 1.12);
  display: grid; place-items: center;
  perspective: 1300px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.book3d-stage.grabbing { cursor: grabbing; }
.book3d {
  position: relative; width: var(--bw); height: var(--bh);
  transform-style: preserve-3d; will-change: transform;
}
.b3-face { position: absolute; top: 0; left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.b3-front, .b3-back {
  width: var(--bw); height: var(--bh); object-fit: cover;
  border-radius: 3px; pointer-events: none; -webkit-user-drag: none;
}
.b3-front { transform: translateZ(calc(var(--bd) / 2)); box-shadow: 0 30px 60px rgba(60, 45, 25, 0.35); }
.b3-back  { transform: rotateY(180deg) translateZ(calc(var(--bd) / 2)); }
.b3-spine {
  width: var(--bd); height: var(--bh); object-fit: cover;
  left: calc((var(--bw) - var(--bd)) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  pointer-events: none; -webkit-user-drag: none;
}
.b3-edge {
  width: var(--bd); height: var(--bh);
  left: calc((var(--bw) - var(--bd)) / 2);
  background: repeating-linear-gradient(90deg, #efe8d8 0 1.5px, #d6cdb8 1.5px 3px);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2));
}
.b3-top, .b3-bottom {
  width: var(--bw); height: var(--bd);
  top: calc((var(--bh) - var(--bd)) / 2);
  background: repeating-linear-gradient(0deg, #efe8d8 0 1.5px, #d6cdb8 1.5px 3px);
}
.b3-top    { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2)); }
.b3-bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2)); }
/* odznak „360°" — nápoveda, že knihou sa dá točiť */
.b3-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 34px;
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.18em;
  color: var(--gray);
}
.b3-hint svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 3D kniha v paneli e-shopu (namiesto fotky) */
.shop-book {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(24px, 3vw, 40px); background: var(--paper-2);
}
.book-info p { color: var(--ink-soft); margin-bottom: 18px; }
.book-price { display: flex; align-items: baseline; gap: 16px; margin: 26px 0 30px; }
.book-price .price { font-family: var(--serif); font-size: 3rem; color: var(--copper); font-weight: 600; }
.book-price .note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }

/* ---------- social + footer ---------- */
/* štítok tichého pásika (trusted-by vzor): malý zlatý label s linkami po stranách */
.strip-label {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); text-align: center;
}
.strip-label::before, .strip-label::after {
  content: ''; height: 1px; width: clamp(30px, 6vw, 64px); background: var(--copper-line);
}
/* sociálne ikony v pätičke */
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(216, 178, 133, 0.3); display: grid; place-items: center;
  transition: background .3s, border-color .3s, transform .3s;
}
.footer-social a svg { width: 15px; height: 15px; fill: var(--gold-light); transition: fill .3s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-social a:hover svg { fill: #fff; }
footer {
  padding: 76px 0 40px; background: var(--ink-strong); color: #d7d2c9;
}
footer .logo img { height: 82px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.footer-grid a { display: block; color: #b6b1a8; text-decoration: none; padding: 5px 0; font-size: 14px; transition: color .3s; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { color: #948f86; font-size: 14px; max-width: 400px; margin-top: 16px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 0; font-size: 14px; color: #b6b1a8;
}
.footer-contact svg {
  flex: 0 0 auto; width: 14px; height: 14px;
  fill: none; stroke: var(--gold-light); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0.78;
}
.footer-contact a { display: inline; padding: 0; font-size: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid rgba(216, 178, 133, 0.16);
  font-family: var(--sans); font-weight: 400; font-size: 10.5px; letter-spacing: 0.10em; color: #837e75;
}

/* ---------- partneri ---------- */
.partners-sec { background: var(--paper-2); padding: clamp(38px, 5vw, 64px) 0; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 30px; }
.partner-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  min-height: 130px; padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .35s, box-shadow .35s;
}
.partner-tile:hover { transform: translateY(-5px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.partner-tile img { max-height: 112px; max-width: 88%; transition: transform .35s; }
.partner-tile:hover img { transform: scale(1.04); }
.partner-name { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: 0.01em; transition: color .35s; }
.partner-tile:hover .partner-name { color: var(--copper); }
.partner-kind { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gray); }
/* pulzujúce CTA pod logami partnerov */
.partner-cta { display: flex; justify-content: center; margin-top: 34px; }
.btn-pulse { animation: gold-pulse 2s cubic-bezier(.4, 0, .2, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .btn-pulse { animation: none; } }

/* ---------- darcovia ---------- */
.donor-group { margin-top: 38px; }
.donor-group > h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.donor-group > .donor-note { color: var(--gray); font-size: 0.88rem; font-style: italic; margin-bottom: 26px; }
.donor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 40px; }
.donor {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 13px 4px; border-bottom: 1px dashed var(--line-strong);
}
.donor .d-name { color: var(--ink); font-weight: 400; font-size: 0.98rem; }
.donor .d-what { color: var(--gray); font-size: 0.85rem; text-align: right; font-family: var(--mono); letter-spacing: 0.02em; }

/* ---------- projekty ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)); gap: 24px; margin-top: 54px; }
.project-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .35s, box-shadow .35s;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.project-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; font-weight: 600; color: rgba(191, 91, 29, 0.25); line-height: 1; }
.status {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 100px; padding: 7px 15px; white-space: nowrap;
}
.status-live { color: #3e7a4e; border: 1px solid rgba(62, 122, 78, 0.4); background: rgba(62, 122, 78, 0.08); }
.status-open { color: var(--copper); border: 1px solid var(--copper-line); background: var(--copper-soft); }
.status-soon { color: var(--gray); border: 1px solid var(--line-strong); background: rgba(43, 39, 35, 0.04); }
.project-card h3 { font-size: 1.65rem; margin-bottom: 12px; }
.project-card > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.project-how { list-style: none; margin-bottom: 26px; }
.project-how li { color: var(--ink-soft); font-size: 0.92rem; padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line); }
.project-how li:last-child { border-bottom: none; }
.project-how li::before { content: '›'; position: absolute; left: 4px; color: var(--copper); font-family: var(--serif); font-size: 1.1rem; }
.project-cta { margin-top: auto; }

/* CTA strip na podstránkach */
.cta-strip {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(34px, 5vw, 60px); text-align: center;
}
.cta-strip h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-strip p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 28px; }

/* reveal defaults */
.reveal { opacity: 0; transform: translateY(40px); }
.no-anim .reveal { opacity: 1; transform: none; }
.no-anim .h-scroll-outer { overflow-x: auto; scroll-snap-type: x mandatory; }
@media (max-width: 860px) {
  .h-scroll-outer { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .h-scroll-outer::-webkit-scrollbar { display: none; }
  .exhibit-card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* výnimka: intro opona + odlesk loga sa prehrajú aj pri obmedzených animáciách */
  .intro { transition-duration: 0.95s !important; }
  .intro-logo { animation-duration: 1s !important; }
  .hero-logo-shine.play .shine-bar { animation-duration: 4.6s !important; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .seal-wrap { width: min(260px, 60vw); }
  .hero { padding-top: 140px; }
  body.hero-editorial .hero-v-inner { grid-template-columns: 1fr; }
  body.hero-editorial .hero-logo { display: none; }
  body.hero-editorial .hero-v h1 { max-width: none; }
}

/* ---------- monogramový delič (signatúra kapitol) ---------- */
/* monogramový delič z manuálu — na webe momentálne NEPOUŽITÝ (Tomáš ho 20. 8. dal
   odstrániť z úvodu; stránka si kapitoly oddeľuje striedaním pozadia). Štýl ostáva
   pripravený, keby sa mal niekedy vrátiť ako signatúra kapitoly. */
.mono-div { display: flex; align-items: center; justify-content: center; gap: 20px; }
.mono-div::before, .mono-div::after { content: ''; height: 1px; width: clamp(40px, 8vw, 80px); background: var(--copper-line); }
.mono-div img { height: 34px; width: auto; opacity: 0.92; }

/* ---------- claim ako hero nadpis (vždy Playfair Italic, podľa manuálu) ---------- */
body.hero-editorial .hero-carousel h1.hero-claim {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(2.7rem, 5.6vw, 4.8rem); line-height: 1.12; letter-spacing: 0;
  color: var(--ink);
}
body.hero-editorial .hero-carousel h1.hero-claim em { font-weight: 600; }

/* ================= HERO — spoločná kostra pre obe varianty ================= */
.hero-v {
  position: relative; min-height: 92svh; display: flex; align-items: center;
  padding: 150px 0 92px; overflow: clip; isolation: isolate;
}
.hero-tex { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-v-inner { position: relative; z-index: 2; }
.hero-v h1 {
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.hero-v h1 .line { display: block; overflow: hidden; }
.claim-kicker { font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1.3; }

/* ---------- hero: kruhový 3D carousel ---------- */
body.hero-editorial .hero-v.hero-carousel {
  flex-direction: column; justify-content: center; text-align: center;
  gap: clamp(18px, 2.6vw, 34px); padding: 128px 0 60px;
}
body.hero-editorial .hero-carousel .hero-head { display: flex; flex-direction: column; align-items: center; }
body.hero-editorial .hero-carousel .eyebrow { justify-content: center; }
body.hero-editorial .hero-carousel .eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--copper-line); }
body.hero-editorial .hero-carousel h1 { max-width: none; font-size: clamp(2.3rem, 5vw, 4.2rem); }
body.hero-editorial .hero-carousel .hero-ctas { justify-content: center; margin-top: 0; }
body.hero-editorial .hero-carousel .hero-tex {
  -webkit-mask-image: linear-gradient(180deg, #000 0 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 55%, transparent 100%);
}

.ring-stage {
  --cardw: clamp(320px, 44vw, 620px);
  --cardh: calc(var(--cardw) * 0.6);
  width: 100%; height: calc(var(--cardh) * 1.45);
  display: grid; place-items: center;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  position: relative; z-index: 2;
}
.ring-stage.grabbing { cursor: grabbing; }
.ring { position: relative; width: var(--cardw); height: var(--cardh); }
.ring-card {
  position: absolute; inset: 0; margin: 0;
  border-radius: 22px; overflow: hidden;
  /* výrazný tieň pod fotkou — karta akoby levitovala nad papierom */
  box-shadow:
    0 38px 56px -20px rgba(50, 42, 28, 0.45),
    0 14px 26px rgba(50, 42, 28, 0.16);
  background: #1d1c1a;
  /* karta = jedna GPU vrstva: text je pevne spojený s dlaždicou a škáluje sa s ňou */
  will-change: transform;
}
/* stmavenie zadných kariet — tmavá vrstva namiesto filtra (text sa neprerasterizováva) */
.ring-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #16140f; opacity: var(--shade, 0);
}
.ring-card .ring-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none;
  /* jednotiaci grade: jemne ubratá sýtosť — fotky pôsobia ako jedna séria */
  filter: saturate(0.92);
}
/* teplý zlatý závoj (multiply) — zjednotí tón všetkých fotiek */
.ring-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--gold-full); mix-blend-mode: multiply; opacity: 0.09;
}
/* vodoznak M+P — pečať autenticity podľa brand manuálu (biela mono verzia na fotkách) */
.ring-mark {
  position: absolute; right: 13px; bottom: 13px; z-index: 2;
  width: 34px; height: auto; opacity: 0.38; pointer-events: none;
  filter: brightness(0) invert(1);
}
/* jemné stmavenie fotky, aby sklenená dlaždica vynikla */
.ring-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(26, 25, 23, 0.55), rgba(26, 25, 23, 0.08) 55%, rgba(26, 25, 23, 0.18));
}
/* sklenená dlaždica (dizajn z etomiku, prefarbený do grafitu + zlata) */
.ring-glass {
  position: absolute; left: 14px; right: auto; bottom: 14px; z-index: 2;
  max-width: min(420px, calc(100% - 28px));
  padding: 15px 17px; border-radius: 16px; text-align: left;
  background: rgba(35, 33, 30, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: var(--glass, 0);
  transition: opacity .25s linear;
  pointer-events: none;
}
.ring-glass .g-hl {
  display: block; font-weight: 700; font-size: 21px; line-height: 1.2;
  color: var(--gold-light); margin-bottom: 5px; letter-spacing: 0.01em;
}
.ring-glass p { color: rgba(247, 244, 238, 0.82); font-size: 12.5px; line-height: 1.45; margin: 0; }
/* výškové stupne — hero sa musí zmestiť aj s tlačidlami */
@media (max-height: 1040px) {
  .ring-stage { --cardw: clamp(300px, 40vw, 520px); }
}
@media (max-height: 920px) {
  .ring-stage { --cardw: clamp(280px, 36vw, 450px); }
  body.hero-editorial .hero-v.hero-carousel { padding-top: 118px; gap: clamp(14px, 2vw, 26px); }
}
@media (max-height: 820px) {
  .ring-stage { --cardw: clamp(250px, 32vw, 390px); }
  body.hero-editorial .hero-v.hero-carousel { padding-top: 108px; }
  body.hero-editorial .hero-carousel h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
}
/* mobil: karty na výšku (3:4) */
@media (max-width: 640px) {
  .ring-stage { --cardw: clamp(190px, 56vw, 260px); --cardh: calc(var(--cardw) * 1.28); }
}

/* ---------- Variant 2 · EDITORIÁL (svetlý, claim-forward, vľavo) ---------- */
body.hero-editorial .hero-v {
  text-align: left;
  background:
    radial-gradient(ellipse 70% 55% at 20% 12%, rgba(192, 144, 92, 0.11), transparent 60%),
    var(--paper);
}
body.hero-editorial .hero-tex {
  background-image: repeating-linear-gradient(0deg, rgba(169, 121, 60, 0.07) 0 1px, transparent 1px 15px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 58%, transparent 100%);
}
body.hero-editorial .hero-v-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center;
}
body.hero-editorial .eyebrow { justify-content: flex-start; }
body.hero-editorial .hero-v h1 { color: var(--ink); max-width: 16ch; }
body.hero-editorial .claim-kicker {
  color: var(--gold); font-size: clamp(1.12rem, 1.9vw, 1.55rem);
  margin-top: 24px; padding-left: 20px; border-left: 2px solid var(--copper-line); max-width: 30ch;
}
body.hero-editorial .hero-sub { color: var(--ink-soft); }
body.hero-editorial .hero-ctas { justify-content: flex-start; }

/* zlatý monogram vpravo + prechod svetla (gold shine) */
.hero-logo { position: relative; width: min(400px, 80%); aspect-ratio: 1; margin: 0 auto; justify-self: center; }
.hero-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 22px 44px rgba(120, 90, 40, 0.18)); }
.hero-logo-shine {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask: url("assets/znacka.svg") center / contain no-repeat;
  mask: url("assets/znacka.svg") center / contain no-repeat;
}
.hero-logo-shine .shine-bar {
  position: absolute; top: 0; left: 0; width: 46%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 50%, transparent);
  mix-blend-mode: screen;
  transform: translate(-170%, 130%) rotate(-28deg);
}
/* lesk sa prehrá na požiadanie (po zdvihnutí opony a pri nabehnutí kurzorom): zľava-dole → vpravo-hore */
.hero-logo-shine.play .shine-bar { animation: goldShine 4.6s ease-in-out; }
@keyframes goldShine {
  from { transform: translate(-170%, 130%) rotate(-28deg); }
  to   { transform: translate(270%, -130%) rotate(-28deg); }
}

/* ---------- scroll indikátor (kapsula ako topphem) ---------- */
.scroll-cue { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-left: 8px; }
.scroll-word {
  font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray); transition: color .3s;
}
.scroll-cue:hover .scroll-word { color: var(--gold); }
.scroll-cue:hover .scroll-mouse { border-color: var(--gold); }
.scroll-mouse {
  width: 27px; height: 44px; flex-shrink: 0;
  border: 1.6px solid var(--copper-line); border-radius: 100px;
  display: inline-flex; justify-content: center; align-items: flex-start; padding-top: 8px;
  transition: border-color .3s;
}
.scroll-mouse .scroll-dot { width: 4px; height: 8px; border-radius: 100px; background: var(--gold); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { transform: translateY(13px); opacity: 0; } }
/* scroll indikátor ostáva vedľa tlačidiel aj v responzíve (tlačidlá sa zmenšia) */
@media (max-width: 620px) {
  .hero-ctas { flex-wrap: nowrap; gap: 12px; align-items: center; }
  .hero-ctas .btn { padding: 15px 20px; font-size: 11px; }
}
@media (max-width: 440px) {
  .hero-ctas { gap: 8px; }
  .hero-ctas .btn { padding: 13px 14px; font-size: 10px; letter-spacing: 0.05em; }
  .scroll-cue { margin-left: 0; gap: 7px; }
  .scroll-word { display: none; }
  .scroll-mouse { width: 24px; height: 40px; }
}

/* ---------- intro „opona" (len pri prvej návšteve) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 20000; background: var(--ink-strong);
  display: grid; place-items: center; will-change: transform;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro.lift { transform: translateY(-100%); }
.intro-logo {
  width: min(230px, 52vw); height: auto; opacity: 0;
  transform: scale(0.92) translateY(12px);
  animation: introLogo 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s;
}
@keyframes introLogo { to { opacity: 1; transform: none; } }

/* ---------- e-shop ---------- */
.shop-product {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden; box-shadow: var(--shadow);
}
@media (max-width: 820px) { .shop-product { grid-template-columns: 1fr; } .shop-photo { min-height: 300px; } }
.shop-photo { position: relative; background: #101820; min-height: 100%; }
.shop-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-info { padding: clamp(28px, 4vw, 46px); }
.shop-info h1, .shop-info .shop-nazov { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.12; margin: 12px 0 16px; }
.shop-info .desc { color: var(--ink-soft); margin-bottom: 12px; }
.pay-note { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--gray); font-size: 13.5px; }
.pay-note svg { width: 17px; height: 17px; fill: var(--gold); flex-shrink: 0; }
.alt-order { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.alt-order a { color: var(--gold); font-weight: 700; text-decoration: none; }
.alt-order a:hover { text-decoration: underline; }
.addon {
  display: flex; align-items: center; gap: 28px; margin-top: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow);
}
@media (max-width: 560px) { .addon { flex-direction: column; align-items: flex-start; } }
.addon img { width: 150px; height: 150px; object-fit: cover; border-radius: 16px; flex-shrink: 0; border: 1px solid var(--line); }
.addon h3 { font-size: 1.35rem; margin-bottom: 8px; }
.addon p { color: var(--ink-soft); font-size: 0.95rem; }
.addon .addon-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold); margin-top: 10px; display: block; }
/* ekniha v e-shope: obálka je na výšku, nesmie sa orezať do štvorca ako hrnček */
#ekniha img { width: 150px; height: auto; align-self: flex-start; }
#ekniha p + p { margin-top: 10px; }
.addon-btn { margin-top: 18px; }
.addon-note { font-size: 0.82rem; color: var(--gray); margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; box-shadow: var(--shadow); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }
.ship-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 34px; }
.ship-table th, .ship-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.ship-table th { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }
.ship-table td { color: var(--ink-soft); }
.ship-table td.cena { font-weight: 700; color: var(--ink); white-space: nowrap; text-align: right; }
.ship-table tr:last-child td { border-bottom: none; }

/* ---------- kontakt: formulár + úradné údaje ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.cf-row { display: flex; flex-direction: column; gap: 7px; }
.cf-row label {
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.cf-row input, .cf-row select, .cf-row textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 13px 16px; outline: none; transition: border-color .3s, box-shadow .3s;
  width: 100%;
}
.cf-row textarea { resize: vertical; min-height: 140px; }
.cf-row input:focus, .cf-row select:focus, .cf-row textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 127, 64, 0.15);
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { min-height: 0; }
.contact-form .btn { align-self: flex-start; }
.cf-status { font-size: 14px; color: var(--ink-soft); min-height: 20px; margin: 0; }
.cf-status.ok { color: #3e7a4e; font-weight: 700; }
.cf-status.err { color: #a33327; font-weight: 700; }
.contact-info {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow);
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info dl { display: flex; flex-direction: column; }
.contact-info dl > div {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px dashed var(--line-strong);
}
.contact-info dl > div:last-child { border-bottom: none; }
.contact-info dt {
  font-family: var(--sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray);
}
.contact-info dd { margin: 0; font-size: 14.5px; color: var(--ink); text-align: right; }
.contact-info dd a { color: var(--gold); text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; }

/* ---------- nové podstránky ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 20px; }
.card-grid .blog-card { flex: none; }

/* poisťovne — abecedný zoznam */
.az-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.az-nav a {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
  color: var(--gold); text-decoration: none; border: 1px solid var(--copper-line); background: var(--copper-soft);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s;
}
.az-nav a:hover { background: var(--gold); color: #fff; }
.az-section { padding-top: 46px; }
.az-section .insurer-letter:first-child { margin-top: 0; }
.insurer-letter { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--gold); margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.insurer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.insurer-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 24px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .35s, box-shadow .35s;
}
.insurer-card:hover { transform: translateY(-4px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.insurer-card .in-name { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.insurer-card .in-note { color: var(--ink-soft); font-size: 0.9rem; }


/* ===== Profily poisťovní (podstránky poistovna-*.html) ===== */
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { color: var(--ink); }

.profile-sec { padding-top: clamp(22px, 3vw, 40px); }
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.profile-facts {
  position: sticky; top: 96px;
  background: var(--paper-2); border: 1px solid var(--copper-line); border-radius: 16px;
  padding: 24px 26px;
}
.profile-facts h3 {
  font: 700 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px;
}


/* poistka: keby poznamka pod clankom niekedy nasledovala hned za zlatym CTA boxom,
   nesmie sa ho dotykat (stalo sa v clanku o Gothe, medzera bola 0 px) */
.profile-cta + .legal-note, .profile-cta + .profile-back { margin-top: 34px; }
/* zdroj fotografie pod portretom v profile (staticky, na rozdiel od .ff-autor na uvodnej) */
.profile-foto-zdroj {
  margin: 10px 0 18px;
  font: 400 11.5px/1.45 var(--sans);
  color: var(--gray);
}
.profile-facts dl { margin: 0; display: grid; gap: 12px; }
.profile-facts dt { font: 700 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.profile-facts dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.profile-succ { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
.profile-succ a { color: var(--gold); text-decoration: none; }
.profile-succ a:hover { text-decoration: underline; }

.profile-text { max-width: 70ch; }
.profile-text h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 38px 0 14px;
}
.profile-text h2:first-child { margin-top: 0; }
.profile-text p { margin: 0 0 1.05em; line-height: 1.78; color: var(--ink); font-size: 1.02rem; }
.profile-text a { color: var(--gold); }
.profile-back { margin-top: 36px; }
.profile-back .btn { display: inline-flex; }

@media (max-width: 880px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-facts { position: static; order: -1; }
}

/* ===== Zoznam poisťovní — roky, stav, odkazy na profily ===== */
a.insurer-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; position: relative; }
a.insurer-card::after {
  content: '\2192'; position: absolute; right: 18px; bottom: 14px;
  color: var(--gold); font-size: 1.05rem; opacity: 0; transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
}
a.insurer-card:hover::after { opacity: 1; transform: translateX(0); }
.insurer-card .in-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.insurer-card .in-years { color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.02em; }
.insurer-card .in-chip {
  font: 700 9.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.insurer-card .in-chip.aktivna { color: var(--gold-dark, #A9793C); background: rgba(176, 127, 64, 0.12); }
.insurer-card .in-chip.zanikla { color: var(--ink-soft); background: rgba(110, 106, 100, 0.12); }

/* Kontaktný blok na profiloch poisťovní — grafitový panel, text vľavo, tlačidlo vpravo */
.profile-cta {
  margin-top: 48px; padding: clamp(24px, 3vw, 34px) clamp(24px, 3.5vw, 38px);
  background: var(--ink-strong); border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(18px, 3vw, 34px); flex-wrap: wrap;
}
.profile-cta-text { flex: 1 1 320px; min-width: 0; }
.profile-cta h3 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--gold-light); margin: 0 0 8px;
}
.profile-cta p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.97rem; line-height: 1.65; max-width: 56ch; }
.profile-cta .btn {
  display: inline-flex; flex: 0 0 auto; white-space: nowrap;
  background: var(--paper); color: var(--ink-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); border: none;
}
.profile-cta .btn:hover { transform: translateY(-3px); background: #fff; color: var(--gold); filter: none; }
.profile-text p.profile-back { margin: 56px 0 0; }
.profile-back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; transition: color 0.3s;
}
.profile-back-link .pb-arrow { font-size: 15px; transition: transform 0.3s; }
.profile-back-link:hover { color: var(--ink); }
.profile-back-link:hover .pb-arrow { transform: translateX(-4px); }

/* Logo poisťovne v kartičke V skratke (fallback = dlaždica s názvom) */
.p-logo {
  margin: 0 0 18px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  min-height: 96px; display: flex; align-items: center; justify-content: center; padding: 14px;
}
.p-logo img { max-width: 100%; max-height: 88px; display: block; }
.p-logo .p-logo-name { display: none; }
.p-logo.noimg { background: var(--paper-2); }
.p-logo.noimg img { display: none; }
.p-logo.noimg .p-logo-name {
  display: block; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.15rem; color: var(--gold); line-height: 1.3;
}

/* Galéria obrázkov poisťovne (zobrazí sa len ak fotky existujú) */
.p-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 36px; }
.p-gallery:empty { display: none; }
.p-gallery img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); }

/* Právne stránky (stanovy, GDPR) a spodná lišta */
.legal-text ol { margin: 0 0 1.2em; padding-left: 1.4em; line-height: 1.75; }
.legal-text ol li { margin-bottom: 0.55em; }
.legal-text ol ol { margin: 0.5em 0 0.3em; }
.legal-text h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.legal-note { color: var(--ink-soft); font-style: italic; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer-legal a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--gold-light); }

/* Výročné správy — obálkové dlaždice (titulná strana PDF) */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-bottom: 34px; }
.vs-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.vs-card:hover { transform: translateY(-5px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.vs-cover { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.vs-info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px 16px; }
.vs-year { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; color: var(--gold); line-height: 1; }
.vs-dl { font: 700 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* Obrázok v článku na blogu */
.article-figure { margin: 0 0 30px; }
.article-figure img { width: 100%; display: block; border-radius: 16px; border: 1px solid var(--line); }
.article-figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); font-style: italic; line-height: 1.5; }

/* Video odkaz v článku (nahľad + play, otvára YouTube) */
.video-link { position: relative; display: block; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(42, 42, 42, 0.82); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; padding-left: 6px;
  transition: background 0.3s, transform 0.3s;
}
.video-link:hover .video-play { background: var(--gold); transform: translate(-50%, -50%) scale(1.08); }

/* Články blogu: širší stĺpec textu; video sa prehráva priamo v stránke */
.article-text { max-width: 900px; }
.video-link { cursor: pointer; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }
.legal-text { max-width: 900px; }

/* Verzálkové UI prvky — kedysi tu bol Inter (Lato z Google Fonts nemalo mäkčene, viď PROJEKT.md).
   Mulish ich má čisté, tak je zoznam už len dokumentácia, ktoré prvky sú verzálkové. */
.btn, .nav-cta, .eyebrow, .footer-grid h4, .ship-table th, .strip-label, .scroll-word,
.cf-row label, .contact-info dt, .founder-fig .ff-role, .profile-facts h3, .profile-facts dt,
.in-chip, .profile-back-link, .vs-dl {
  font-family: var(--sans);
}
/* Hamburger menu: mierne stiahnuté prestrkanie */
.mobile-menu a { font-family: var(--sans); letter-spacing: -0.015em; }

/* E-shop v hamburger menu ako zlaté tlačidlo */
.mobile-menu a.mm-cta {
  background: var(--gold-grad); color: #fff;
  padding: 14px 46px; border-radius: 100px;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  box-shadow: 0 10px 26px rgba(169, 121, 60, 0.3);
  margin: 12px 0;
  transition: transform .3s, box-shadow .3s;
}
.mobile-menu a.mm-cta:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(169, 121, 60, 0.42); }

/* Stena vďaky — sieň slávy (podpora.html) */
.hof-major { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 44px; }
.hof-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 36px; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.hof-card:hover { transform: translateY(-4px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.hof-logo { max-height: 52px; max-width: 190px; object-fit: contain; margin-bottom: 18px; }
.hof-sum { font-family: var(--sans); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold); line-height: 1; letter-spacing: -0.01em; }
.hof-purpose { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.hof-name { margin-top: 16px; font: 700 10.5px/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

.hof-minor { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 18px; }
.hof-mcard {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 26px; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s;
}
.hof-mcard:hover { transform: translateY(-3px); border-color: var(--copper-line); }
.hof-mname { font-weight: 700; }
.hof-mcity { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2px; }
.hof-msum { margin-top: 12px; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--gold); }

.hof-names { font-size: 1.05rem; color: var(--ink); letter-spacing: 0.01em; }
.donor-group .btn { margin-top: 18px; }

/* Sien slavy vnorena do donor-group (darcovia artefaktov) */
.donor-group .hof-major { margin-top: 20px; }
.donor-group .hof-minor { margin-bottom: 20px; }
/* ===== Pridajte sa k múzeu + newsletter (index) ===== */
.join-sec { background: var(--paper-2); }
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 44px; }
.join-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
a.join-card:hover { transform: translateY(-4px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.join-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.join-card p { color: var(--ink-soft); line-height: 1.65; font-size: 0.97rem; }
.join-card ul { margin: 0 0 4px; padding-left: 1.15em; color: var(--ink-soft); line-height: 1.7; font-size: 0.97rem; }
.join-card ul li { margin-bottom: 4px; }
.join-more {
  margin-top: auto; padding-top: 16px;
  font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}

.nl-box {
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(26px, 3vw, 38px) clamp(26px, 3.5vw, 42px);
  background: var(--ink-strong); border-radius: 18px;
  display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 8px 34px; align-items: center;
}
.nl-text h3 { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-light); font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 6px; }
.nl-text p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.nl-form { display: flex; gap: 12px; flex-wrap: wrap; }
.nl-form input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: 15px 20px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-family: var(--sans); font-size: 15px; outline: none; transition: border-color .3s;
}
.nl-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.45); }
.nl-form input[type="email"]:focus { border-color: var(--gold-light); }
.nl-pasca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-status { grid-column: 1 / -1; font-size: 0.92rem; min-height: 1.2em; color: rgba(255, 255, 255, 0.75); }
.nl-status.ok { color: var(--gold-light); }
.nl-status.err { color: #e8a4a4; }
.nl-note { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; }
.nl-note a { color: rgba(255, 255, 255, 0.65); }
@media (max-width: 760px) { .nl-box { grid-template-columns: 1fr; } }

/* ===== Novinky (index) ===== */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 10px; align-items: stretch; }
.news-main {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.news-main:hover { transform: translateY(-4px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.news-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-body { padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.news-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; }
.news-body p { color: var(--ink-soft); line-height: 1.6; }
.news-side { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  /* päť položiek vedľa veľkej karty: pevná výška podľa obsahu, nie flex: 1,
     inak sa pri piatich kartách text stlačí */
  flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 18px; text-decoration: none; color: inherit;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.news-item:hover { transform: translateY(-3px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.news-item h4 { font-size: 1rem; line-height: 1.3; margin: 6px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-tag { font: 700 9.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ===== Povedali o nás (index) ===== */
.ref-sec { background: var(--paper-2); }
.ref-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.ref-card:hover { transform: translateY(-4px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.ref-foto { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--champagne); margin-bottom: 18px; }
.ref-card blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.02rem;
  line-height: 1.7; color: var(--ink);
}
.ref-card figcaption { margin-top: auto; padding-top: 20px; }
.ref-meno { display: block; font-weight: 700; }
.ref-rola { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; }

/* Kapitolová navigácia na zlúčenej stránke História */
.kap-nav a { width: auto; height: auto; padding: 10px 20px; border-radius: 100px; font-family: var(--sans); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }

/* Hamburger menu: zhustené, nech sa aj so sociálnymi sieťami zmestí na obrazovku */
.mobile-menu a { font-size: clamp(1.25rem, 2.9vw, 1.8rem); padding: 5px 0; }
.mobile-menu a.mm-cta { font-size: clamp(1.05rem, 2.3vw, 1.35rem); padding: 12px 40px; margin: 8px 0; }
@media (max-height: 940px) {
  .mobile-menu a { font-size: clamp(1.15rem, 2.6vw, 1.56rem); padding: 3px 0; }
  .mobile-menu a.mm-cta { padding: 10px 34px; margin: 6px 0; }
}

/* pätička — jednotná riadková mriežka pravých dvoch stĺpcov (riadky sedia na sebe) */
.footer-contact li,
.footer-grid > div:last-child a { line-height: 22px; padding: 6px 0; }
/* pätička — medzistupeň: brand na plnú šírku, dva stĺpce vedľa seba (inak je e-mail natesno) */
@media (max-width: 900px) and (min-width: 761px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}
/* formulárové prvky nededia font automaticky — inak sú v systémovom Ariale */
button, input, select, textarea { font-family: inherit; }

/* Hero CTA: „Vstúpiť do múzea" duplikuje pilulku v lište (rovnaká adresa), tak sa ukáže
   len tam, kde lišta pilulku skrýva — pod 780 px. Nad tým nesie akciu lišta. */
.hero-enter { display: none; }
@media (max-width: 780px) { .hero-enter { display: inline-flex; } }
/* po vypustení tlačidiel je pod carouselom voľno — hero, delič aj prvá sekcia idú vyššie */
body.hero-editorial .hero-v.hero-carousel { padding-bottom: 30px; }
#projekt { padding-top: clamp(38px, 4.5vw, 58px); }  /* delič zrušený — sekcia potrebuje vlastný odstup od hero */

/* ---------- koľaj: znovupoužiteľný horizontálny slider (referencie, ďalšie sekcie) ----------
   Vzhľad šípok zdieľa s míľnikmi (.tl-arrow, .rail-arrow). Keď sa obsah zmestí na šírku,
   JS pridá .rail-static — šípky aj ukazovateľ zmiznú a karty sa vycentrujú. */
.rail-wrap { position: relative; margin-top: 44px; }
.rail {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab; padding: 4px 0 2px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail-track { display: flex; align-items: stretch; gap: 22px; width: max-content; }
.rail-track > * { scroll-snap-align: start; }
.rail-prev { left: -20px; }
.rail-next { right: -20px; }
.rail-bar { position: relative; height: 2px; border-radius: 2px; background: var(--line); margin-top: 22px; overflow: hidden; }
.rail-bar-fill {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--copper), rgba(191, 91, 29, 0.45));
  transform-origin: left center; transform: scaleX(0); transition: transform .18s linear;
}
/* obsah sa zmestí → nič netreba posúvať */
.rail-static { cursor: default; }
.rail-static .rail-track { margin: 0 auto; }
.rail-fits .rail-arrow,
.rail-fits .rail-bar { display: none; }
@media (max-width: 900px) { .rail-prev { left: -6px; } .rail-next { right: -6px; } }
@media (max-width: 620px) { .rail-prev { left: 2px; } .rail-next { right: 2px; } }

/* referencie ako karty koľaje */
.ref-card { flex: 0 0 clamp(280px, 27vw, 348px); }
@media (max-width: 520px) { .ref-card { flex-basis: 82vw; } }

/* referencie: dlhé citáty orezané na 7 riadkov, celé znenie na kliknutie */
.ref-card blockquote {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden;
}
.ref-card.ref-open blockquote {
  display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible;
}
.ref-more {
  align-self: flex-start; margin-top: 14px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--copper); transition: color .3s;
}
.ref-more:hover { color: var(--gold); }
.ref-more[hidden] { display: none; }
/* kým je niektorá karta rozbalená, rastie len ona — ostatné sa nenaťahujú */
.rail-track.ref-any-open { align-items: flex-start; }

/* ---------- galéria osobností (osobnosti.html) ---------- */
.pg-featured-sec { padding-bottom: clamp(20px, 3vw, 34px); }
.pg-sec--alt { background: var(--paper-2); }
.pg-hlavicka { margin-bottom: 6px; }
.pg-hlavicka .section-lead { margin-top: 12px; }

/* hlavná osobnosť */
.pg-featured {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 54px);
  align-items: center; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.pg-featured:hover { transform: translateY(-4px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.pg-featured-portret { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; }
.pg-featured-portret img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-featured-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 6px; }
.pg-featured-text h2 em { font-style: italic; color: var(--copper); font-family: var(--serif); }
.pg-featured-text .years { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--copper); margin: 10px 0 14px; }
.pg-featured-text p { color: var(--ink-soft); max-width: 62ch; }
.pg-viac {
  display: inline-block; margin-top: 18px; font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper);
  transition: color .3s;
}
.pg-featured:hover .pg-viac { color: var(--gold); }
@media (max-width: 720px) { .pg-featured { grid-template-columns: 1fr; } .pg-featured-portret { max-width: 220px; } }

/* karta osobnosti v koľaji */
.pg-card {
  flex: 0 0 clamp(196px, 20vw, 236px);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px 16px 20px; box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
a.pg-card:hover { transform: translateY(-5px); border-color: var(--copper-line); box-shadow: var(--shadow-lift); }
.pg-portret {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px;
  overflow: hidden; margin-bottom: 16px; background: var(--paper-2);
}
.pg-portret img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* bez fotky → monogram (rovnaký princíp ako logá poisťovní) */
.pg-mono {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--copper);
  background: radial-gradient(circle at 35% 28%, #fffdf7, #f0e6d2);
}
.pg-portret.bez-fotky .pg-mono, .pg-featured-portret.bez-fotky .pg-mono { display: grid; }
.pg-meno { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.pg-roky { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--gray); margin: 6px 0 10px; }
.pg-co { display: block; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; }
.pg-stav {
  display: inline-block; margin-top: 14px; padding: 5px 11px; border-radius: 100px;
  background: var(--champagne); color: var(--copper);
  font-family: var(--sans); font-weight: 700; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.pg-card--caka { box-shadow: none; }
.pg-card--vyzva { border-style: dashed; box-shadow: none; }
.pg-card--vyzva .pg-mono { font-size: 2.4rem; }

/* odkaz pod kolajnicou na plnu galeriu */
.pg-viac { margin-top: 24px; }
.pg-viac-link {
  display: inline-flex; align-items: baseline; gap: 9px;
  font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  padding-bottom: 5px; border-bottom: 1px solid var(--copper-line);
  transition: gap .25s ease, border-color .25s ease;
}
.pg-viac-link:hover, .pg-viac-link:focus-visible { gap: 15px; border-bottom-color: var(--gold); }

/* mriezka na podstranke Vsetky osobnosti */
.pg-mriezka { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
.pg-mriezka .pg-card { flex: initial; }
@media (max-width: 560px) { .pg-mriezka { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
@media (max-width: 520px) { .pg-card { flex-basis: 62vw; } }
/* galéria osobností sa zarovnáva doľava aj vtedy, keď sa karty zmestia na šírku */
.pg-sec .rail-static .rail-track,

/* Hamburger menu má 12 položiek — na nízkych obrazovkách treba ďalší stupeň zhustenia,
   aby sa aj so sociálnymi sieťami zmestilo bez rolovania. */
@media (max-height: 780px) {
  .mobile-menu { padding: 74px 8vw 26px; gap: 0; }
  .mobile-menu a { font-size: clamp(1rem, 2.2vw, 1.3rem); padding: 2px 0; }
  .mobile-menu a.mm-cta { padding: 8px 30px; margin: 5px 0; }
}
@media (max-height: 700px) {
  .mobile-menu { padding: 62px 8vw 18px; }
  .mobile-menu a { font-size: clamp(0.95rem, 2vw, 1.16rem); padding: 1px 0; }
  .mobile-menu a.mm-cta { padding: 7px 26px; margin: 4px 0; }
}

/* ---------- prechody medzi stránkami (View Transitions) ----------
   Prehliadače, ktoré to nevedia, jednoducho nič neanimujú. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-von .18s ease both; }
::view-transition-new(root) { animation: vt-dnu .26s ease both; }
@keyframes vt-von { to { opacity: 0; } }
@keyframes vt-dnu { from { opacity: 0; transform: translateY(8px); } }
/* lišta a pätička sa pri prechode nehýbu — držia stránku pokope */
nav, footer { view-transition-name: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- vyhľadávanie ---------- */
.nav-search {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-strong); color: var(--ink-soft);
  cursor: pointer; transition: border-color .3s, color .3s, transform .3s; flex-shrink: 0;
}
.nav-search:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.nav-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(42, 42, 42, 0.55);
  backdrop-filter: blur(3px); display: none; padding: clamp(60px, 12vh, 140px) 6vw 40px;
}
.search-overlay.open { display: block; }
.search-box { max-width: 640px; margin: 0 auto; }
.search-box input {
  width: 100%; padding: 20px 24px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--paper); font-family: var(--sans); font-size: 1.05rem; color: var(--ink);
  box-shadow: var(--shadow-lift); outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.search-results { margin-top: 14px; max-height: 58vh; overflow-y: auto; border-radius: 20px; }
.search-results a {
  display: block; padding: 14px 22px; background: var(--paper); text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.search-results a:first-child { border-radius: 20px 20px 0 0; }
.search-results a:last-child { border-bottom: none; border-radius: 0 0 20px 20px; }
.search-results a:hover, .search-results a.vybrany { background: var(--champagne); }
.sr-t { display: block; font-weight: 700; }
.sr-k { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); margin-bottom: 3px; }
.sr-d { display: block; color: var(--ink-soft); font-size: 0.84rem; margin-top: 3px; }
.search-empty { padding: 18px 22px; background: var(--paper); border-radius: 20px; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- zvýraznenie nájdeného výrazu (príchod z vyhľadávania) ---------- */
mark.najdene {
  background: linear-gradient(180deg, rgba(240, 228, 208, 0.55) 40%, rgba(216, 178, 133, 0.62) 100%);
  color: inherit; padding: 0 3px; border-radius: 3px; box-decoration-break: clone;
}
mark.najdene.najdene-prvy {
  background: var(--gold-grad); color: #fff;
  box-shadow: 0 4px 14px rgba(169, 121, 60, 0.32);
}
.najdene-lista {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 900;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  padding: 12px 20px; border-radius: 100px;
  background: var(--ink-strong); color: #f2efe9; box-shadow: var(--shadow-lift);
  font-size: 13px; width: max-content; max-width: min(92vw, 560px);
}
.najdene-lista strong { color: var(--gold-light); font-weight: 700; }
.najdene-lista button {
  background: none; border: 1px solid rgba(216, 178, 133, 0.45); color: var(--gold-light);
  padding: 7px 14px; border-radius: 100px; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; transition: background .3s, color .3s;
}
.najdene-lista button:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { mark.najdene.najdene-prvy { box-shadow: none; } }

/* fotka zakladateľa: bez prekrytia, meno fotografa je až v popiske pod ňou */
.ff-foto { position: relative; display: block; width: min(400px, 82vw); border-radius: 26px; overflow: hidden; }
.ff-foto img { width: 100%; border-radius: 0; border: 0; box-shadow: none; }
.founder-fig .ff-autor {
  display: block; margin-top: 8px;
  font-family: var(--sans); font-weight: 400; font-size: 11.5px;
  letter-spacing: 0.01em; text-transform: none; color: var(--gray);
}

/* ---------- ochutnávka zo zbierky (expozicia.html) ---------- */
.ery-sec { background: var(--paper-2); }

/* ---------- miesto posledného odpočinku (Wagnerov profil) ---------- */
.hrob {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(22px, 3vw, 40px);
  align-items: start; margin-top: 44px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow);
}
@media (max-width: 820px) { .hrob { grid-template-columns: 1fr; } }
.hrob-text h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 8px 0 14px; }
.hrob-text p { color: var(--ink-soft); margin-bottom: 12px; }
.hrob-text p:last-child { margin-bottom: 0; }
.hrob-pdf {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
  padding: 18px 20px; border-radius: 18px; background: var(--paper-2);
  border: 1px solid var(--line); transition: border-color .3s, transform .3s, box-shadow .3s;
}
.hrob-pdf:hover { border-color: var(--copper-line); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hrob-pdf-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--gold-grad); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.08em;
}
.hrob-pdf-text strong { display: block; font-size: 0.98rem; }
.hrob-pdf-text span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; }
/* pseudonymy, pod ktorými Wagner publikoval */
.pseudonymy {
  background: var(--paper-2); border-left: 2px solid var(--copper-line);
  padding: 16px 20px; border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; color: var(--copper);
}

/* podpis autora pod textom o knihe */
.kniha-podpis { font-family: var(--serif); font-style: italic; color: var(--copper); margin-top: 18px; }

/* zoznam v článku: odsek za ním sa dotýkal poslednej odrážky (0 px), teraz drží rytmus odsekov */
.article-text ul { margin-bottom: 17px; }

/* ===== ZÁLOŽKY NA BLOGU (filter podľa témy) ===== */
.blog-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px;
}
.bf-chip {
  font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  padding: 10px 18px; border-radius: 100px;
  color: var(--copper); background: var(--copper-soft); border: 1px solid var(--copper-line);
  transition: background .3s, color .3s, border-color .3s;
}
.bf-chip:hover { background: var(--champagne); }
.bf-chip.is-active { background: var(--gold-full); border-color: var(--gold-full); color: #fff; }
.bf-chip.is-active:hover { background: var(--gold-full); }
/* atribút [hidden] sám nestačí: .blog-card má vlastné display: block, ktoré ho prebije */
.blog-card[hidden], .blog-prazdne[hidden], .pribehy-vyzva[hidden] { display: none; }
.blog-prazdne {
  color: var(--ink-soft); font-size: 0.95rem; padding: 26px 0 6px;
}
.pribehy-vyzva { margin-bottom: 46px; }
.pribehy-vyzva .section-lead { max-width: 760px; }
.pribehy-vyzva .quest-grid { margin-top: 34px; }
.pribehy-vyzva .cta-strip { margin-top: 26px; }
@media (max-width: 720px) {
  .blog-filter { gap: 8px; margin-bottom: 26px; }
  .bf-chip { padding: 9px 14px; font-size: 11px; letter-spacing: 0.08em; }
}

/* ===== GALÉRIA ZBIERKY (expozicia.html) ===== */
.gal-sec { padding: clamp(48px, 6vw, 82px) 0 clamp(56px, 7vw, 96px); background: var(--paper-2); }
.gal-obdobie { margin-top: clamp(38px, 4.5vw, 58px); }
.gal-hlavicka {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 26px; border-bottom: 1px solid var(--copper-line);
}
.gal-roky {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.gal-podtitul { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.gal-mriezka { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.gal-karta {
  display: block; text-align: left; cursor: pointer; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); font: inherit; color: inherit;
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .3s, box-shadow .3s;
}
.gal-karta:hover, .gal-karta:focus-visible {
  transform: translateY(-6px); border-color: var(--copper-line); box-shadow: var(--shadow-lift);
}
.gal-foto {
  display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px;
  background: var(--champagne); margin-bottom: 12px;
}
.gal-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
.gal-karta:hover .gal-foto img { transform: scale(1.04); }
.gal-rok {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--gold); margin-bottom: 6px;
}
.gal-popis {
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5;
}
.gal-lupa {
  display: block; margin-top: 10px; font-family: var(--sans); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper);
  opacity: 0; transition: opacity .3s;
}
.gal-karta:hover .gal-lupa, .gal-karta:focus-visible .gal-lupa { opacity: 1; }
.gal-poznamka { margin-top: 40px; color: var(--gray); font-size: 0.86rem; }

/* svetlík na zväčšený dokument */
.lb[hidden] { display: none; }   /* samotný atribút nestačí, .lb má vlastné display */
.lb {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  grid-template-columns: auto 1fr auto; gap: clamp(4px, 2vw, 24px);
  padding: clamp(12px, 3vw, 34px); background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(3px);
}
.lb-obsah { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 92vh; }
.lb-obsah img {
  max-width: 100%; max-height: 74vh; border-radius: 8px; background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.lb-obsah figcaption { max-width: 760px; text-align: center; color: #EDE9E2; }
.lb-rok {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold-light); margin-bottom: 6px;
}
.lb-popis { display: block; font-size: 0.92rem; line-height: 1.6; }
.lb-zavri, .lb-krok {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.lb-zavri:hover, .lb-krok:hover { background: rgba(255, 255, 255, 0.22); }
.lb-krok { width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.lb-zavri { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; font-size: 26px; }

@media (max-width: 980px) {
  .gal-mriezka { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .gal-mriezka { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gal-karta { padding: 10px; border-radius: 16px; }
  .gal-popis { -webkit-line-clamp: 3; line-clamp: 3; font-size: 0.78rem; }
  .gal-lupa { display: none; }
  .lb { grid-template-columns: 1fr; }
  .lb-krok { position: absolute; bottom: 18px; }
  .lb-prev { left: 22px; }
  .lb-next { right: 22px; }
  .lb-obsah img { max-height: 62vh; }
}

/* odkaz z obdobia do galérie a poznámka pri obdobiach bez dokumentov */
.era-odkaz {
  display: inline-block; margin-top: 16px; font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--copper-line);
  padding-bottom: 3px; transition: color .3s, border-color .3s;
}
.era-odkaz:hover { color: var(--copper-deep); border-color: var(--gold); }
.era-caka {
  display: inline-block; margin-top: 16px; font-family: var(--sans); font-weight: 700;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray);
}
/* galéria je terč odkazov z období, aby nadpis nezmizol pod lištou */
.gal-obdobie { scroll-margin-top: 100px; }

/* ===== CHRONOLÓGIA (historia.html) =====
   Variant B: jedna zvislá os, rok pri nej, text v šírke na čítanie.
   Zlomové roky sú zastávky s dokumentom zo zbierky. */
.chr-sec { padding: clamp(30px, 4vw, 54px) 0 clamp(56px, 7vw, 96px); }
.chr-vrch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.chr-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.chr-nav a {
  font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; padding: 9px 16px; border-radius: 100px;
  color: var(--copper); background: var(--copper-soft); border: 1px solid var(--copper-line);
  transition: background .3s, color .3s;
}
.chr-nav a:hover { background: var(--gold-full); border-color: var(--gold-full); color: #fff; }
.chr-pocet {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray); margin: 0;
}

/* obdobie vľavo, os vpravo; hlavička obdobia sa lepí, aby bolo vidno, kde človek je */
.chr-skupina {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(44px, 5vw, 72px); scroll-margin-top: 100px;
}
.chr-obdobie { position: sticky; top: 108px; align-self: start; }
.chr-obdobie h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; margin-bottom: 10px; }
.chr-obdobie h2::after {
  content: ""; display: block; width: 38px; height: 2px; background: var(--gold-full);
  margin-top: 12px;
}
.chr-obdobie p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; margin-top: 12px; }

/* samotná os: linka beží celým zoznamom, bod má každá udalosť */
.chr-zoznam { list-style: none; margin: 0; padding: 0; position: relative; }
.chr-zoznam::before {
  content: ""; position: absolute; left: 96px; top: 14px; bottom: 14px;
  width: 1px; background: var(--copper-line);
}
.chr-udalost {
  position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr);
  gap: 38px; padding: 11px 0;
}
.chr-udalost::before {
  content: ""; position: absolute; left: 93px; top: 19px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--copper-line);
}
.chr-udalost > p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; margin: 0; max-width: 64ch; }
.chr-rok {
  font-family: var(--serif); font-size: 1.15rem; color: var(--copper); font-weight: 600;
  text-align: right; white-space: nowrap; line-height: 1.35;
}
.chr-kedy {
  display: block; font-family: var(--sans); font-style: normal; font-weight: 700;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray);
  margin-top: 3px;
}
/* zlomové roky: zlatý bod a väčší rok, žiadny bežový pás ako predtým */
.chr-dolezita { padding: 15px 0; }
.chr-dolezita::before {
  width: 11px; height: 11px; left: 91px; top: 21px;
  background: var(--gold-full); border-color: var(--gold-full);
}
.chr-dolezita .chr-rok { color: var(--gold); font-size: 1.5rem; }
.chr-dolezita > p, .chr-karta p { color: var(--ink); }

/* zastávka: karta s dokumentom zo zbierky */
.chr-zastavka { padding: 18px 0; }
.chr-karta {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
}
.chr-obraz {
  display: block; border-radius: 10px; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line);
}
.chr-obraz img {
  display: block; width: 100%; height: 168px; object-fit: cover; object-position: top;
  transition: transform .5s;
}
.chr-obraz:hover img { transform: scale(1.04); }
.chr-karta-text { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.chr-karta p { font-size: 0.98rem; line-height: 1.6; margin: 0; max-width: 58ch; }
.chr-popiska {
  font-size: 0.85rem !important; color: var(--gray) !important; line-height: 1.55 !important;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.chr-popiska a { color: var(--copper); text-decoration: none; border-bottom: 1px solid var(--copper-line); }
.chr-popiska a:hover { color: var(--gold-full); }

@media (max-width: 900px) {
  .chr-skupina { grid-template-columns: 1fr; gap: 18px; }
  .chr-obdobie { position: static; border-bottom: 1px solid var(--copper-line); padding-bottom: 14px; }
  .chr-obdobie h2::after { display: none; }
  .chr-obdobie p { max-width: 62ch; }
}
@media (max-width: 720px) {
  .chr-zoznam::before { left: 3px; }
  .chr-udalost, .chr-dolezita, .chr-zastavka { grid-template-columns: 1fr; gap: 5px; padding: 13px 0 13px 24px; }
  .chr-udalost::before, .chr-dolezita::before { left: 0; top: 20px; }
  .chr-rok { text-align: left; font-size: 1.1rem; }
  .chr-dolezita .chr-rok { font-size: 1.3rem; }
  .chr-kedy { display: inline; margin-left: 8px; }
  .chr-karta { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .chr-obraz img { height: 200px; object-position: center; }
}

/* ===== STRÁNKA 404 ===== */
.err-sec { padding: clamp(70px, 10vw, 130px) 0 clamp(80px, 10vw, 140px); }
.err-wrap { max-width: 720px; text-align: center; }
.err-logo { width: clamp(96px, 14vw, 132px); height: auto; margin: 0 auto 34px; display: block; }
.err-sec h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.err-sec .section-lead { margin: 20px auto 0; }
.err-ctas { justify-content: center; margin-top: 36px; }
.err-tip { margin-top: 34px; color: var(--gray); font-size: 0.9rem; line-height: 1.65; }
.err-tip a { color: var(--copper); }
