@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(../fonts/instrument-sans-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(../fonts/instrument-sans-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(../fonts/instrument-sans-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/literata-300-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/literata-400-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/literata-500-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/literata-600-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/literata-300.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/literata-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/literata-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/literata-600.woff2) format('woff2');
}
:root {
  --serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans:
    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --max: 1120px;
  --narrow: 720px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 9vw, 104px);
  --shadow-cover: 0 10px 24px -12px rgba(23, 37, 61, 0.45), 0 1px 2px rgba(23, 37, 61, 0.15);
  --radius: 9px;
  --paper: #fffdf9;
  --stone: #f4f1ea;
  --stone-deep: #e8e2d8;
  --rule: #dddcd3;
  --ink: #243a43;
  --ink-soft: #3a5058;
  --text: #354248;
  --muted: #63706e;
  --accent: #557264;
  --accent-dark: #355648;
  --sage: #e9efe8;
  --sand: #f1e8da;
  --mist: #edf0ec;
  --clay: #8c654a;
  --sage-rule: #d2ded2;
  --sand-rule: #e1d7c8;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(23, 37, 61, 0.35);
}
a:hover {
  text-decoration-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.08;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}
h3 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
}
h4 {
  font-size: 1.125rem;
  font-weight: 500;
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 34em;
}
.small {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--sans);
  z-index: 100;
}
.skip:focus {
  left: 12px;
}

/* ---------- Jazyk / language: každý text existuje v oboch jazykoch, zobrazí sa jeden ---------- */
[data-lang='sk'] [lang='en'] {
  display: none !important;
}
[data-lang='en'] [lang='sk'] {
  display: none !important;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section) 0;
}
.section.tight {
  padding: calc(var(--section) * 0.65) 0;
}
.section.stone {
  background: var(--stone);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 44px);
  flex-wrap: wrap;
}
.section-head p {
  margin: 0;
}
.section-head .more {
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.page > .container:last-child {
  padding-bottom: var(--section);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .mark {
  flex: none;
}
.wordmark .wm-name {
  font-family: var(--serif);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
}
.nav a {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover {
  border-bottom-color: rgba(23, 37, 61, 0.35);
}
.nav .lang {
  margin-left: 10px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav .lang:hover {
  border-color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
  }
  .nav a[aria-current='page'] {
    border-bottom-color: var(--rule);
    font-weight: 600;
  }
  .nav .lang {
    margin: 12px 0 0;
    align-self: flex-start;
    padding: 9px 14px;
  }
}

/* ---------- Pages / router ---------- */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: page-in 0.28s ease-out;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page.active {
    animation: none;
  }
}
.page-title {
  padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 48px);
}
.page-title h1 {
  margin-bottom: 0.5em;
}
.page-title .lead {
  margin: 0;
}

/* ---------- Photos (real images with a quiet fallback) ---------- */
.photo {
  position: relative;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.photo.missing img {
  visibility: hidden;
}
.photo.missing::after {
  content: attr(data-fallback);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  border-radius: var(--radius);
  max-width: 85%;
}
.photo.square {
  aspect-ratio: 1/1;
}
figure {
  margin: 0;
}
figcaption {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero .name {
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
}
.hero .roles {
  font-family: var(--sans);
  font-size: 1rem;
  margin: 16px 0 0;
  letter-spacing: 0.01em;
}
.hero .roles i {
  font-style: normal;
  margin: 0 0.4em;
}
.hero .motto {
  font-style: italic;
  margin: clamp(24px, 3.5vw, 36px) 0 0;
}
.hero .lead {
  margin: clamp(18px, 2.5vw, 26px) 0 0;
  max-width: 30em;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3.5vw, 36px);
}
.hero .portrait .photo {
  aspect-ratio: 1/1;
}
.hero .portrait .photo img {
  object-position: 50% 18%;
}
.hero .portrait {
  order: 2;
}
@media (max-width: 820px) {
  .hero .portrait {
    order: -1;
  }
  .hero .lead {
    max-width: none;
  }
}
.hero .reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero .reveal:nth-child(2) {
  animation-delay: 0.08s;
}
.hero .reveal:nth-child(3) {
  animation-delay: 0.16s;
}
.hero .reveal:nth-child(4) {
  animation-delay: 0.24s;
}
.hero .reveal:nth-child(5) {
  animation-delay: 0.32s;
}
.hero .portrait.reveal {
  animation-delay: 0.15s;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .reveal {
    animation: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 0.9375rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--ink-soft);
}
.btn.ghost {
  color: var(--ink);
}
.btn.small {
  padding: 10px 14px;
  font-size: 0.875rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Three spaces: three plain boxes ---------- */
.spaces-intro {
  max-width: var(--narrow);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.box {
  background: var(--paper);
  padding: clamp(22px, 3vw, 32px) clamp(20px, 2.5vw, 28px) clamp(26px, 3vw, 34px);
}
.box h3 {
  font-size: 1.5rem;
  font-weight: 400;
}
.box p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .boxes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Book picks (home) ---------- */
.picks {
  display: grid;
}
.pick {
  display: grid;
}
.pick .cover-wrap {
  width: min(100%, 200px);
}
.pick .year {
  font-family: var(--sans);
  color: var(--muted);
}
.pick h3 {
  font-weight: 500;
  margin-bottom: 6px;
}
.pick h3 a {
  text-decoration: none;
}
.pick h3 a:hover {
  text-decoration: underline;
}
.pick p {
  margin: 0 0 10px;
  font-size: 1rem;
}
.pick .buy {
  font-family: var(--sans);
}
@media (max-width: 760px) {
  .picks {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pick {
    align-items: start;
  }
  .pick .cover-wrap {
    width: 112px;
  }
}

/* ---------- Covers: real cover image with typographic fallback ---------- */
.cover-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 1px;
  box-shadow: var(--shadow-cover);
  background: var(--stone-deep);
  overflow: hidden;
}
.cover-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.cover-wrap.missing img {
  display: none;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9% 10%;
  color: #fff;
  font-family: var(--serif);
  line-height: 1.15;
  background: var(--ink);
}
.cover .ct {
  font-size: 0.72rem;
  font-weight: 500;
}
.cover .cp {
  font-family: var(--sans);
  font-size: 0.55rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}
.cover.tone-ink {
  background: var(--ink);
}
.cover.tone-cirk {
  background: #7b2c3b;
}
.cover.tone-vere {
  background: #946318;
}
.cover.tone-akad {
  background: #1f3d6b;
}
.cover.tone-stone {
  background: var(--stone-deep);
  color: var(--ink);
}
.cover.lg {
  padding: 10% 11%;
}
.cover.lg .ct {
  font-size: 1rem;
}
.cover.lg .cp {
  font-size: 0.7rem;
}

/* ---------- Media list (home + media page) ---------- */
.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.media-item {
  display: grid;
  gap: clamp(12px, 3vw, 32px);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.media-item .when,
.media-item .outlet {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}
.media-item h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 2px;
}
.media-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
@media (max-width: 700px) {
  .media-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .media-item .outlet {
    margin-bottom: 6px;
  }
}

/* ---------- Home: about ---------- */
.home-about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.home-about .photo {
  aspect-ratio: 4/5;
}
.home-about .photo img {
  object-position: 50% 30%;
}
.home-about h2 {
  margin-bottom: 18px;
}
.home-about p {
  max-width: 34em;
}
@media (max-width: 820px) {
  .home-about {
    gap: 28px;
  }
}

/* ---------- Home: next event ---------- */
.event {
  display: grid;
}
.event .kind {
  font-family: var(--sans);
}
.event .where {
  margin: 0;
}
.event .where span {
  display: block;
}
.event .btn {
  text-align: center;
}
.event .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 820px) {
  .event .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- Home: thoughts ---------- */

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.filters button {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.filters button:hover {
  border-color: var(--ink);
}

/* ---------- Books page ---------- */
.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.book {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.book .meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
}
.book h3 {
  margin-bottom: 4px;
}
.book .sub {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.book p.desc {
  margin: 0;
  max-width: 40em;
}
.book .buy {
  white-space: nowrap;
  align-self: start;
}
@media (max-width: 760px) {
  .book .buy {
    justify-self: start;
  }
}
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: var(--narrow);
}
.pubs li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.pubs .src {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

/* ---------- Texts ---------- */
.text-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.text-item {
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: clamp(16px, 3vw, 40px);
}
.text-item .kind {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}
.text-item .kind-year {
  display: block;
}
.text-item h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.text-item p {
  margin: 0 0 8px;
  max-width: 42em;
}
.text-item .src {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .text-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Lectures ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.topic {
  border-bottom: 1px solid var(--rule);
}
.topic p {
  margin: 0;
  max-width: 34em;
}
@media (max-width: 720px) {
  .topics {
    grid-template-columns: 1fr;
  }
}
.formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.formats div {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.formats p {
  margin: 0;
  font-size: 0.9375rem;
}
@media (max-width: 820px) {
  .formats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.venues li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(12px, 3vw, 32px);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.venues .y {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
.venues .place {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.cta-block {
  background: var(--ink);
  color: #fff;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: var(--radius);
}
.cta-block h2,
.cta-block p {
  color: #fff;
}
.cta-block p {
  margin: 8px 0 0;
  max-width: 36em;
  opacity: 0.9;
}
.cta-block .btn {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.cta-block .btn:hover {
  background: var(--stone);
}
@media (max-width: 720px) {
  .cta-block {
    grid-template-columns: 1fr;
  }
}

/* ---------- Media page: facts + collage ---------- */
.facts {
  display: grid;
  align-items: start;
}
.facts dl {
  margin: 0;
  display: grid;
  align-items: baseline;
}
.facts dt {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
@media (max-width: 760px) {
  .facts {
    grid-template-columns: 1fr;
  }
}
.collage {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
}
.collage .photo:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.collage .photo:nth-child(4) {
  grid-column: span 2;
}
@media (max-width: 760px) {
  .collage {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 92px;
  }
}
.collage-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-grid .photo {
  position: sticky;
  top: 96px;
  aspect-ratio: 4/5;
}
@media (max-width: 820px) {
  .about-grid .photo {
    position: static;
  }
}
/* O mne: nadpis profilu vedľa fotky a podrobný akademický životopis (kategória vľavo, chronológia vpravo). */
.profile-title {
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  margin: 0 0 20px;
}
.cv-section {
  margin-top: var(--section);
}
.cv-born {
  margin: -8px 0 clamp(26px, 3.5vw, 36px);
  font: 0.9375rem/1.6 var(--sans);
  color: var(--ink-soft);
}
.cv-block {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 12px clamp(28px, 4vw, 56px);
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid var(--rule);
}
.cv-block:last-child {
  padding-bottom: 0;
}
.cv-block h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
}
.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cv-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  font-size: 0.96875rem;
  line-height: 1.65;
}
.cv-list .y {
  font: 600 0.875rem/1.75 var(--sans);
  color: var(--accent-dark);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .cv-block {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .cv-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.service > div {
  padding-top: 16px;
}
.service h3 {
  margin-bottom: 10px;
}
.service p {
  max-width: 34em;
}
.service .mark-lg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}
.gallery figure .photo {
  aspect-ratio: 4/3;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-grid dl {
  margin: 0 0 28px;
}
.contact-grid dt {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-grid dd {
  margin: 0 0 18px;
  font-size: 1.125rem;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field.full .btn {
  align-self: flex-start;
}
label {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 500;
}
input,
textarea {
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  width: 100%;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
textarea {
  min-height: 170px;
  resize: vertical;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  grid-column: 1/-1;
  font-family: var(--sans);
  color: var(--muted);
  margin: 0;
}
.form-msg {
  grid-column: 1/-1;
  padding: 18px 20px;
  border-left: 2px solid var(--ink);
}
@media (max-width: 600px) {
  form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer (compact) ---------- */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.9375rem;
  align-items: center;
}
.foot-links a {
  text-decoration: none;
}
.foot-links a:hover {
  text-decoration: underline;
}
.foot-bottom {
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
}
.foot-bottom a {
  color: var(--muted);
}

/* ---------- Utilities ---------- */
.stack > * + * {
  margin-top: var(--stack, 24px);
}
.empty {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9375rem;
}
body {
  line-height: 1.7;
  overflow-x: clip;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
a {
  transition:
    color 0.18s,
    text-decoration-color 0.18s,
    background 0.18s;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  orphans: 2;
  widows: 2;
}
.container > * {
  min-width: 0;
}
.site-header .container {
  height: 76px;
  gap: 18px;
}
.wordmark {
  gap: 12px;
  min-height: 44px;
}
.wordmark .mark {
  width: 32px;
  height: 32px;
}
.wordmark .wm-name {
  font-size: 1.27rem;
}
.nav {
  gap: 2px;
}
.nav a {
  font-size: 1rem;
  line-height: 1.35;
  padding: 12px 10px;
}
.nav .lang {
  font-size: 0.8125rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle {
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
}
.nav-toggle svg {
  width: 18px;
  height: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  line-height: 1.4;
  padding: 11px 19px;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.btn.small {
  min-height: 42px;
  line-height: 1.4;
}
.hero {
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero .name {
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  letter-spacing: -0.035em;
}
.hero .roles {
  line-height: 1.7;
}
.hero .motto {
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  line-height: 1.45;
  max-width: 17em;
}
.hero .lead {
  font-size: 1.075rem;
  line-height: 1.8;
}
.box {
  border-top: 1px solid #9ea99a;
  padding-top: 26px;
  border-radius: 0 0 4px 4px;
}
.box h3 {
  margin-bottom: 14px;
}
.section-head .more {
  white-space: normal;
  line-height: 1.5;
}
.photo {
  background: var(--stone-deep);
  border-radius: 5px;
}
.photo img {
  transition: transform 0.35s ease;
}
.picks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0 30px;
}
.pick {
  grid-template-columns: 1fr;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 0;
  align-content: stretch;
  min-width: 0;
}
.book-stage {
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 24px;
  position: relative;
}
.book-stage .cover-wrap {
  width: auto;
  height: 220px;
  max-width: 88%;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.book-stage .cover-wrap img {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(5px 9px 7px rgba(23, 37, 61, 0.14));
  border-radius: 1px;
}
.book-stage .cover-wrap .cover {
  display: none;
}
.book-stage .cover-wrap.missing {
  width: 148px;
  aspect-ratio: 2/3;
}
.book-stage .cover-wrap.missing .cover {
  display: flex;
}
.pick .year {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}
.pick h3 {
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0;
  align-self: start;
}
.pick .pick-description {
  font-size: 0.96875rem;
  line-height: 1.75;
  margin: 14px 0 22px;
  color: #4f5865;
}
.pick-footer {
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.pick .buy {
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  text-decoration: none;
}
.pick .buy:hover {
  text-decoration: underline;
}
.arrow {
  font-family: var(--sans);
  font-size: 1.15em;
  line-height: 1;
  display: inline-block;
}
.book .cover-wrap {
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
  min-height: 150px;
}
.book .cover-wrap img {
  position: relative;
  height: auto;
  width: 100%;
  object-fit: contain;
  box-shadow: var(--shadow-cover);
  border-radius: 2px;
}
.book .cover-wrap:has(img):not(.missing) .cover {
  display: none;
}
.book .cover-wrap.missing,
.book .cover-wrap:not(:has(img)) {
  aspect-ratio: 2/3;
}
.book {
  grid-template-columns: 132px minmax(0, 1fr) auto;
  scroll-margin-top: 110px;
}
.book h3 {
  font-size: 1.35rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.book .desc {
  font-size: 1rem;
  line-height: 1.8;
}
.book .meta {
  line-height: 1.5;
  gap: 5px 12px;
}
.book:focus {
  outline: none;
}
.media-item {
  grid-template-columns: 110px 135px minmax(0, 1fr);
  padding: 23px 0;
}
.media-item h3 {
  line-height: 1.55;
}
.media-item h3 a {
  text-decoration-color: transparent;
}
.media-item h3 a:hover {
  text-decoration-color: currentColor;
}
.media-item p {
  line-height: 1.6;
  margin-top: 4px;
}
.home-about p {
  line-height: 1.85;
}
.event {
  color: var(--text);
}
.event .kind {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 1;
  line-height: 1.6;
  margin-bottom: 10px;
}
.event h3 {
  color: var(--ink);
  margin-bottom: 14px;
}
.event .where {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 1;
  max-width: none;
}
.event .event-meta {
  font-family: var(--sans);
  display: flex;
  align-items: flex-start;
}
.event-meta svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.event .actions {
  align-items: center;
  margin-top: -10px;
}
.event .btn {
  min-width: 145px;
}
.event .btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: #b0baa7;
}
.about-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.about-grid .photo img {
  object-position: 51% 30%;
}
.about-grid p {
  line-height: 1.85;
}
.service > div {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  border-top: 1px solid var(--rule);
}
.service .institution-mark {
  height: 72px;
  display: flex;
  align-items: center;
}
.service .institution-mark img,
.service .mark-lg {
  height: 68px;
  width: 68px;
  object-fit: contain;
  margin: 0;
}
.service h3 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 0;
}
.service p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}
.service .institution-links {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  font: 0.9375rem/1.5 var(--sans);
}
.gallery .photo img {
  object-position: 50% 35%;
}
.gallery a,
.collage a {
  display: block;
}
.gallery a:focus-visible img,
.gallery a:hover img,
.collage a:hover img {
  transform: scale(1.025);
}
.gallery figure:nth-child(1) .photo {
  aspect-ratio: 2.08/1;
}
.gallery figcaption {
  font-size: 0.8125rem;
  line-height: 1.6;
}
.collage {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px 140px;
  grid-auto-rows: auto;
  gap: 8px;
}
.collage .photo {
  height: 100%;
  aspect-ratio: auto !important;
}
.collage .photo:nth-child(1),
.collage .photo:nth-child(4) {
  grid-column: auto;
  grid-row: auto;
}
.collage > a:first-child {
  grid-row: span 2;
}
.collage > a:first-child img {
  object-position: 50% 25%;
}
.collage > a:nth-child(3) {
  display: none;
}
.facts {
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
}
.facts dl {
  grid-template-columns: 108px minmax(0, 1fr);
  font-size: 0.96875rem;
  line-height: 1.7;
  gap: 15px 18px;
}
.filters button {
  min-height: 42px;
  line-height: 1.4;
  padding: 9px 15px;
}
.text-item {
  grid-template-columns: 130px minmax(0, 1fr);
}
.text-item h3 {
  line-height: 1.45;
}
.text-item .src {
  line-height: 1.7;
}
.section.texts-section {
  padding-top: clamp(26px, 4vw, 40px);
}
.text-format {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 4px 12px 4px 10px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-format svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.text-format-pdf svg {
  color: var(--clay);
}
.text-format-web svg {
  color: var(--accent);
}
.text-format-casopis svg {
  color: var(--ink-soft);
}
.text-format:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.texts-more {
  margin: clamp(22px, 3vw, 30px) 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}
.texts-more a {
  color: var(--ink-soft);
}
.form-note {
  font-size: 0.8125rem;
  line-height: 1.65;
}
.contact-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.contact-grid a {
  overflow-wrap: anywhere;
}
input,
textarea {
  line-height: 1.5;
  font-family: var(--sans);
  font-size: 1rem;
}
.foot-links {
  gap: 12px 22px;
  line-height: 1.6;
  max-width: 540px;
}
.foot-bottom {
  line-height: 1.7;
}
.venues li {
  line-height: 1.65;
}
.source-note {
  font: 0.8125rem/1.6 var(--sans);
  color: var(--muted);
  margin-top: 22px;
}
@media (min-width: 821px) and (max-width: 1050px) {
  .hero-grid {
    gap: 38px;
    grid-template-columns: 1fr minmax(280px, 36%);
  }
  .hero .name {
    font-size: 3rem;
  }
  .hero .motto {
    font-size: 1.6rem;
  }
  .book {
    grid-template-columns: 115px minmax(0, 1fr);
  }
  .book .buy {
    grid-column: 2;
  }
  .facts {
    gap: 24px;
  }
}
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 20px;
    gap: 0;
    max-height: calc(100dvh - 76px);
    overflow: auto;
    box-shadow: 0 12px 18px -18px #17253d;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 15px 8px;
    min-height: 48px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
  }
  .nav a[aria-current='page'] {
    font-weight: 600;
    border-bottom-color: var(--rule);
  }
  .nav .lang {
    margin: 14px 0 0;
    align-self: flex-start;
    padding: 9px 17px;
  }
}
@media (max-width: 820px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 54px;
  }
  .hero .portrait {
    max-width: 280px;
    width: 100%;
  }
  .hero-grid {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .hero .name {
    font-size: clamp(2.3rem, 6vw, 3rem);
  }
  .hero .portrait .photo {
    aspect-ratio: 1/1;
  }
  .hero .lead {
    font-size: 1.0625rem;
  }
  .event {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid .photo {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4/3;
  }
  .home-about {
    grid-template-columns: 1fr;
  }
  .home-about .photo {
    max-width: 420px;
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .collage {
    max-width: 650px;
    grid-template-rows: 220px 180px;
  }
}
@media (max-width: 760px) {
  .picks {
    display: block;
  }
  .pick {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 0 20px;
    padding: 0 0 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--rule);
  }
  .pick:last-child {
    margin-bottom: 0;
  }
  .book-stage {
    grid-column: 1;
    grid-row: 1/5;
    padding: 12px 9px;
    height: auto;
    min-height: 160px;
    max-height: 180px;
    margin: 0;
    align-self: start;
  }
  .book-stage .cover-wrap {
    height: auto;
    width: 100%;
    max-width: 100%;
  }
  .book-stage .cover-wrap img {
    height: auto;
    width: 100%;
    max-height: 156px;
  }
  .pick .year,
  .pick h3,
  .pick-description,
  .pick-footer {
    grid-column: 2;
  }
  .pick .year {
    font-size: 0.75rem;
  }
  .pick h3 {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .pick .pick-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 12px 0;
  }
  .pick-footer {
    padding-top: 4px;
    border: 0;
  }
  .pick .buy {
    min-height: 40px;
  }
  .book {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px 20px;
  }
  .book .buy {
    grid-column: 2;
    margin-top: 2px;
  }
  .book h3 {
    font-size: 1.15rem;
  }
  .book .cover-wrap {
    min-height: 0;
  }
  .book .sub,
  .book .desc {
    font-size: 0.9375rem;
  }
  .service > div {
    flex-direction: column;
    padding-top: 26px;
  }
  .service .institution-mark {
    height: 72px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .gallery figure:nth-child(1) .photo {
    aspect-ratio: 1.65/1;
  }
  .media-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 6px 14px;
  }
  .media-item > div {
    grid-column: 1/-1;
  }
  .media-item .outlet {
    margin: 0;
  }
  .foot-bottom > span:first-child {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .site-header .container {
    height: 68px;
    gap: 10px;
  }
  .nav {
    top: 68px;
    max-height: calc(100dvh - 68px);
  }
  .wordmark .wm-name {
    font-size: 1.15rem;
  }
  .wordmark .mark {
    width: 28px;
    height: 28px;
  }
  .wordmark {
    gap: 9px;
  }
  .section-head {
    gap: 14px;
    margin-bottom: 26px;
  }
  .hero .name {
    font-size: clamp(2.05rem, 8vw, 2.9rem);
  }
  .hero .roles {
    font-size: 0.875rem;
    margin-top: 12px;
  }
  .hero .roles i {
    margin: 0 0.3em;
  }
  .hero .motto {
    font-size: 1.5rem;
    margin-top: 23px;
    max-width: 16em;
  }
  .hero .actions {
    gap: 10px;
    margin-top: 26px;
  }
  .hero .actions .btn {
    font-size: 0.875rem;
    padding: 11px 15px;
    flex: 1 1 auto;
  }
  .hero .portrait {
    max-width: 245px;
  }
  .hero .lead {
    font-size: 1rem;
    line-height: 1.8;
  }
  .lead {
    font-size: 1.08rem;
    line-height: 1.7;
  }
  .box p {
    font-size: 1rem;
    line-height: 1.75;
  }
  .event {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .event .actions {
    grid-column: 1;
    margin-top: 0;
    gap: 12px;
  }
  .event .actions .btn {
    width: 100%;
  }
  .event .event-meta {
    font-size: 0.875rem;
  }
  .text-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .text-item .kind-year {
    display: inline;
  }
  .text-item .kind-year::before {
    content: ' · ';
  }
  .text-item .kind {
    font-size: 0.8125rem;
  }
  .facts dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .facts dd {
    margin-bottom: 16px;
  }
  .facts dt {
    font-weight: 500;
    color: var(--accent-dark);
  }
  .collage {
    grid-template-rows: 180px 125px;
  }
  .collage-actions .btn {
    width: 100%;
  }
  .contact-grid dd {
    font-size: 1rem;
  }
  .foot-links {
    font-size: 0.875rem;
    gap: 12px 22px;
  }
  .formats {
    grid-template-columns: 1fr 1fr;
  }
  .formats p {
    font-size: 0.875rem;
  }
  .page-title {
    padding-top: 40px;
  }
  .gallery figure .photo {
    aspect-ratio: 1/1;
  }
  .gallery figure:nth-child(1) .photo {
    aspect-ratio: 1.55/1;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 16px;
  }
  .wordmark .wm-name {
    font-size: 1.05rem;
  }
  .wordmark .mark {
    width: 25px;
    height: 25px;
  }
  .nav-toggle {
    padding: 8px;
  }
  .pick {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0 15px;
  }
  .book-stage {
    min-height: 135px;
    padding: 9px 7px;
  }
  .book {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }
  .book h3 {
    font-size: 1.08rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery figure:nth-child(1) {
    grid-column: auto;
  }
  .gallery figure .photo {
    aspect-ratio: 4/3;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .hero .reveal {
    opacity: 1;
    transform: none;
  }
}
.wordmark .mark {
  color: var(--accent-dark);
}
.nav a {
  border-radius: 6px 6px 0 0;
}
.nav a[aria-current='page'] {
  border-bottom-color: var(--accent);
}
.btn {
  border-radius: 7px;
  font-weight: 500;
  box-shadow: none;
}
.btn:hover {
  box-shadow: none;
  transform: none;
}
.btn:not(.ghost):hover {
  background: var(--ink-soft);
}
.btn.ghost {
  background: transparent;
}
.hero .portrait .photo {
  border-radius: 15px;
  box-shadow:
    10px 12px 0 var(--sand),
    0 16px 38px -28px #1c304477;
}
.hero .roles {
  color: var(--accent-dark);
}
.hero .motto {
  color: var(--ink-soft);
}
.section-head h2 {
  letter-spacing: -0.025em;
}
.section-head .more {
  color: var(--accent-dark);
}
.spaces-section.section.stone {
  background: var(--stone);
}
.boxes {
  gap: 20px;
  align-items: stretch;
}
.boxes .box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-background);
  border: 1px solid #4765781c;
  border-radius: 14px;
  padding: 27px 26px 30px;
  overflow: hidden;
}
.box-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 23px;
}
.box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border: 1px solid #ffffffb3;
  border-radius: 13px;
  color: var(--card-accent);
}
.box-icon svg {
  width: 27px;
  height: 27px;
}
.box-icon svg.personal-mark {
  width: 32px;
  height: 32px;
}
.box-number {
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.12em;
  color: var(--card-accent);
  opacity: 0.8;
}
.boxes .box h3 {
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.boxes .box p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}
.box::after {
  content: '';
  height: 3px;
  width: 30px;
  border-radius: 2px;
  background: var(--card-accent);
  opacity: 0.45;
  margin-top: auto;
  position: relative;
  top: 12px;
}
.book-stage {
  background: var(--stone);
  border: 1px solid #eae7de;
  border-radius: 11px;
}
.pick-footer {
  border-top-color: #d8ded7;
}
.pick .buy {
  color: var(--accent-dark);
}
.pick .buy .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--accent-dark);
}
.media-item {
  border-color: var(--rule);
}
.media-item .outlet strong {
  font-weight: 500;
  color: var(--accent-dark);
}
.home-about .photo,
.about-grid .photo {
  border-radius: 13px;
}
.home-about .photo {
  box-shadow: -10px 10px 0 var(--sage);
}
.event {
  border-radius: 13px;
}
.event .event-meta svg {
  color: var(--accent);
}
.event .btn {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.event .btn:hover {
  background: #27483f;
  border-color: #27483f;
}
/* ---------- Home: myšlienka na cestu a odber e-mailom (na konci stránky, nad pätičkou) ---------- */
/* Odstup nad boxom dáva spodok predchádzajúcej sekcie; táto sekcia nesie spodný odstup stránky. */
.thought-section {
  padding: 0 0 clamp(60px, 7vw, 92px);
  background: var(--paper);
}
@media (max-width: 600px) {
  .thought-section {
    padding-bottom: 56px;
  }
}
.thought-card {
  --on-ink: #fffdf9;
  --on-ink-soft: #c8d9cb;
  --on-ink-accent: #ead1ae;
  --field-fill: #3f5259;
  --card-pad-left: clamp(28px, 3.8vw, 44px);
  display: grid;
  /* Box odberu lícuje ľavou hranou s portrétom v hero: 400 px mínus pravý okraj karty (23 px). */
  grid-template-columns: minmax(0, 1fr) 377px;
  gap: clamp(26px, 4.4vw, 56px);
  margin: 0;
  padding: 22px 22px 22px var(--card-pad-left);
  background: var(--ink);
  border: 1px solid var(--ink-soft);
  border-radius: 18px;
  box-shadow: 0 18px 36px -30px #243a435e;
}
.thought-quote {
  align-self: center;
  min-width: 0;
  padding: 10px 0 12px;
}
.thought-card h2 {
  font: 500 0.75rem/1.6 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  margin: 0 0 12px;
}
/* Veľkosť písma je maximum; dlhšiu myšlienku skript zmenší, aby sa zmestila do troch riadkov. */
.thought-card blockquote {
  margin: 0;
  font: 400 clamp(1.375rem, 2.6vw, 1.875rem) / 1.42 var(--serif);
  letter-spacing: -0.018em;
  color: var(--on-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  transition: opacity 0.3s ease;
}
/* Kým sa načíta aktuálna myšlienka (najviac 1,5 s), text sa neukáže, aby nepreblikla stará. */
.myslienka-caka [data-myslienka] {
  opacity: 0;
}
.thought-card blockquote em {
  font-weight: 400;
  color: var(--on-ink-accent);
}

/* Odber: samostatný box vpravo, na úzkych šírkach pod citátom. */
.thought-sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 16px 18px;
  background: rgba(255, 253, 249, 0.055);
  border: 1px solid rgba(255, 253, 249, 0.13);
  border-radius: 12px;
}
.thought-sub-title {
  max-width: 13em;
  margin: 0 0 12px;
  font: 400 1.25rem/1.35 var(--serif);
  letter-spacing: -0.01em;
  color: var(--on-ink);
}
.thought-sub-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  background: rgba(255, 253, 249, 0.07);
  border: 1px solid rgba(255, 253, 249, 0.42);
  border-radius: 9px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.thought-sub-field:hover {
  border-color: rgba(255, 253, 249, 0.62);
}
.thought-sub-field:focus-within {
  border-color: var(--on-ink);
  box-shadow: 0 0 0 3px rgba(200, 217, 203, 0.3);
}
.thought-sub-field:has(.btn:focus-visible) {
  border-color: rgba(255, 253, 249, 0.42);
  box-shadow: none;
}
.thought-sub-field input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0 8px 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--on-ink);
  font: 400 1rem/1.4 var(--sans);
  text-align: left;
}
.thought-sub-field input::placeholder {
  color: #b9c9bf;
  opacity: 1;
}
/* Fokus ukazuje okraj a žiara celého poľa; priehľadný obrys ostáva pre režim vynútených farieb. */
.thought-sub-field input:focus {
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.thought-sub-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--on-ink);
  caret-color: var(--on-ink);
  box-shadow: 0 0 0 100px var(--field-fill) inset;
}
.thought-sub-field .btn {
  position: relative;
  flex: none;
  min-height: 36px;
  margin-right: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--on-ink);
  border-color: var(--on-ink);
  color: var(--ink);
}
/* Dotyková plocha tlačidla siaha po okraj poľa. */
.thought-sub-field .btn::after {
  content: '';
  position: absolute;
  inset: -5px;
}
.thought-sub-field .btn:hover {
  background: var(--sage);
  border-color: var(--sage);
}
.thought-card a:focus-visible,
.thought-card button:focus-visible {
  outline-color: var(--on-ink);
}
.thought-sub-note,
.thought-sub-alert {
  margin: 9px 0 0;
  font: 400 0.75rem/1.45 var(--sans);
  color: var(--on-ink-soft);
}
.thought-sub-note a {
  color: inherit;
  text-decoration-color: rgba(200, 217, 203, 0.55);
}
.thought-sub-note a:hover {
  color: var(--on-ink);
  text-decoration-color: currentColor;
}
.thought-sub-alert {
  font-weight: 500;
  color: var(--on-ink-accent);
}
.thought-sub.has-alert .thought-sub-note {
  display: none;
}
.thought-sub.is-invalid .thought-sub-field {
  border-color: var(--on-ink-accent);
}
.thought-sub-ok:focus {
  outline: none;
}
.thought-sub-ok p {
  margin: 0;
  font: 400 0.8125rem/1.5 var(--sans);
  color: var(--on-ink-soft);
}
.thought-sub-ok strong {
  display: block;
  margin-bottom: 4px;
  font: 400 1.0625rem/1.35 var(--serif);
  color: var(--on-ink);
}
.thought-sub.is-done > :not(.thought-sub-ok) {
  display: none;
}
.thought-sub .hp,
.daily-sub .hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1050px) {
  .thought-card {
    /* Portrét má tu 36 % šírky obsahu; rovnaký prepočet na vnútro karty, najmenej 300 px. */
    grid-template-columns:
      minmax(0, 1fr)
      max(300px, calc(36% + 0.36 * (24px + var(--card-pad-left)) - 23px));
  }
  .thought-sub {
    padding: 14px 16px;
  }
  .thought-sub-title {
    margin-bottom: 11px;
    font-size: 1.125rem;
  }
}
/* Od 820 px nadol sa hero skladá pod seba; box odberu prejde pod citát. */
@media (max-width: 820px) {
  .thought-card {
    --field-fill: #334850;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 18px 18px 16px;
    text-align: center;
  }
  .thought-quote {
    padding: 0;
  }
  .thought-card h2 {
    font-size: 0.6875rem;
    letter-spacing: 0.13em;
    margin-bottom: 7px;
  }
  .thought-card blockquote {
    font-size: 1.4rem;
  }
  .thought-sub {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }
  .thought-sub-title {
    max-width: none;
    margin-bottom: 8px;
    font: 400 0.875rem/1.4 var(--sans);
    letter-spacing: 0;
    color: #dfe8e0;
  }
  .thought-sub-field {
    height: 44px;
  }
  .thought-sub-field .btn {
    min-height: 34px;
  }
  /* Poznámka pod poľom sa tu ukáže až pri vypĺňaní, aby box nebol vyšší než pôvodný. */
  .thought-sub-note {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.2s ease,
      margin-top 0.2s ease,
      opacity 0.2s ease,
      visibility 0s linear 0.2s;
  }
  .thought-sub:focus-within .thought-sub-note,
  .thought-sub.is-filled .thought-sub-note {
    max-height: 3em;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}
@media (max-width: 699px) {
  .thought-card blockquote {
    font-size: 1.3125rem;
  }
}
@media (max-width: 609px) {
  .thought-card blockquote {
    font-size: 1.1875rem;
  }
}
@media (max-width: 600px) {
  .thought-card {
    border-radius: 13px;
  }
}
@media (max-width: 369px) {
  .thought-card blockquote {
    font-size: 1.125rem;
  }
}
@media (max-width: 349px) {
  .thought-card {
    padding: 18px 16px 16px;
  }
  .thought-card blockquote {
    font-size: 1.09rem;
  }
  .thought-sub-title {
    font-size: 0.84rem;
  }
}

/* ---------- Texty: myšlienka na každý deň – citát v strede, pod ním info a odber e-mailom ---------- */
.daily {
  /* Citát má viac miesta než na úvodnej stránke; dlhší sa zmenší, aby mal najviac štyri riadky. */
  --myslienka-riadky: 4;
}
.section.daily-section {
  padding-top: 0;
}
.daily-thought {
  /* Myšlienka týždňa: jemná šalviová karta, rovnaká ako ostatné zvýraznené karty webu (pozvánka, formáty). */
  margin: 0;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 88px) clamp(38px, 5.4vw, 64px);
  text-align: center;
  background: var(--sage);
  border: 1px solid var(--sage-rule);
  border-radius: 13px;
}
.daily-thought .daily-quote {
  max-width: 860px;
  margin-inline: auto;
}
/* Na šalviovom pozadí o odtieň tmavšie, aby text držal kontrast aj pri menšom písme. */
.daily-thought .daily-quote em {
  color: #7d5a42;
}
.daily-thought .daily-source {
  color: #5a6764;
}
.daily-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 clamp(14px, 2vw, 20px);
  font: 500 0.75rem/1.6 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.daily-label::before,
.daily-label::after {
  content: '';
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.daily-quote {
  margin: 0;
  font: 400 clamp(1.5rem, 3vw, 2.125rem) / 1.4 var(--serif);
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  transition: opacity 0.3s ease;
}
.daily-quote em {
  font-style: italic;
  color: var(--clay);
}
.daily-foot {
  display: grid;
  /* Pravý stĺpec má šírku portrétu v hero (400 px), aby stránky držali rovnakú mriežku. */
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(32px, 4.4vw, 48px);
}
.daily-info p {
  max-width: 32em;
  margin: 0;
}
.daily-fb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font: 500 0.9375rem/1.5 var(--sans);
  color: var(--accent-dark);
  text-decoration-color: rgba(53, 86, 72, 0.35);
}
.daily-fb:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.daily-fb svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Odber: svetlá obdoba boxu z úvodnej stránky. */
.daily-sub {
  position: relative;
  display: block;
  min-width: 0;
  padding: 20px 22px 18px;
  background: var(--paper);
  border: 1px solid #e7e3d9;
  border-radius: 13px;
  box-shadow: 0 18px 36px -30px #243a435e;
}
.daily-sub-title {
  margin: 0 0 12px;
  font: 400 1.25rem/1.35 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.daily-sub-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  background: #fff;
  border: 1px solid #bfccbf;
  border-radius: 9px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.daily-sub-field:hover {
  border-color: #899f91;
}
.daily-sub-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(85, 114, 100, 0.18);
}
.daily-sub-field:has(.btn:focus-visible) {
  border-color: #bfccbf;
  box-shadow: none;
}
.daily-sub-field input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 400 1rem/1.4 var(--sans);
  text-align: left;
}
.daily-sub-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
/* Fokus ukazuje okraj a žiara celého poľa; priehľadný obrys ostáva pre režim vynútených farieb. */
.daily-sub-field input:focus {
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.daily-sub-field .btn {
  position: relative;
  flex: none;
  min-height: 38px;
  margin-right: 4px;
  padding: 6px 16px;
  border-radius: 6px;
}
/* Dotyková plocha tlačidla siaha po okraj poľa. */
.daily-sub-field .btn::after {
  content: '';
  position: absolute;
  inset: -5px;
}
.daily-sub-note,
.daily-sub-alert {
  margin: 9px 0 0;
  font: 400 0.75rem/1.45 var(--sans);
  color: var(--muted);
}
.daily-sub-note a {
  color: inherit;
  text-decoration-color: rgba(99, 112, 110, 0.5);
}
.daily-sub-note a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.daily-sub-alert {
  font-weight: 500;
  color: #9a4630;
}
.daily-sub.has-alert .daily-sub-note {
  display: none;
}
.daily-sub.is-invalid .daily-sub-field {
  border-color: #9a4630;
}
.daily-sub-ok:focus {
  outline: none;
}
.daily-sub-ok p {
  margin: 0;
  font: 400 0.8125rem/1.5 var(--sans);
  color: var(--muted);
}
.daily-sub-ok strong {
  display: block;
  margin-bottom: 4px;
  font: 400 1.0625rem/1.35 var(--serif);
  color: var(--ink);
}
.daily-sub.is-done > :not(.daily-sub-ok) {
  display: none;
}
/* Odber je na počítači vedľa textu, na mobile pod ním – slovo v texte sa podľa toho prispôsobí. */
.daily-where-below {
  display: none;
}
@media (max-width: 820px) {
  .daily-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .daily-where-beside {
    display: none;
  }
  .daily-where-below {
    display: inline;
  }
  .daily-info p {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .daily {
    --myslienka-riadky: 5;
  }
  .daily-label::before,
  .daily-label::after {
    width: 18px;
  }
  .daily-quote {
    font-size: 1.375rem;
  }
  .daily-sub {
    padding: 18px 16px 16px;
    border-radius: 12px;
  }
  .daily-sub-title {
    font-size: 1.125rem;
  }
}
/* ---------- Myšlienky: zdroj citátu, odkaz na archív, anglická verzia bez odberu ---------- */
.thought-source {
  margin: 12px 0 0;
  font: 400 0.875rem/1.5 var(--sans);
  color: var(--on-ink-soft);
}
.thought-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font: 500 0.875rem/1.4 var(--sans);
  color: var(--on-ink-accent);
  text-decoration: none;
}
.thought-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s;
}
.thought-more:hover {
  color: var(--on-ink);
}
.thought-more:hover svg {
  transform: translateX(3px);
}
.thought-card .thought-more:focus-visible {
  outline-offset: 3px;
}
/* V angličtine sa odber neponúka: ostáva iba citát v strede karty. */
[data-lang='en'] .thought-sub,
[data-lang='en'] .daily-foot {
  display: none !important;
}
[data-lang='en'] .thought-card {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: clamp(30px, 4vw, 44px) clamp(22px, 5vw, 64px);
  text-align: center;
}
[data-lang='en'] .thought-quote {
  max-width: 34em;
  padding: 0;
}
.daily-source {
  margin: 14px 0 0;
  font: 400 0.9375rem/1.5 var(--sans);
  color: var(--muted);
}
.daily-info .daily-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 14px 0 0;
}
.daily-links .daily-fb {
  margin-top: 0;
}
.daily-sub-lead {
  margin: -6px 0 12px;
  font: 400 0.875rem/1.5 var(--sans);
  color: var(--muted);
}
.h1-sub {
  color: var(--muted);
  font-size: 0.62em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .h1-sub {
    display: block;
    margin-top: 6px;
  }
}

/* Archív myšlienok: mesiace, pod nimi deň a citát. */
.archive-section .section-head {
  align-items: baseline;
}
.archive-month {
  margin: clamp(26px, 4vw, 40px) 0 4px;
  font: 600 0.75rem/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.thought-archive > .archive-month:first-child {
  margin-top: 0;
}
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px clamp(16px, 3vw, 40px);
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.archive-date {
  padding-top: 5px;
  font: 500 0.875rem/1.5 var(--sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.archive-quote {
  margin: 0;
  max-width: 36em;
  font: 400 1.25rem/1.5 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.archive-quote em {
  font-style: italic;
  color: var(--clay);
}
.archive-source {
  margin: 8px 0 0;
  font: 400 0.875rem/1.5 var(--sans);
  color: var(--muted);
}
.archive-empty {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.archive-more-wrap {
  margin: 26px 0 0;
}
.archive-more-wrap:has(> [hidden]) {
  display: none;
}
@media (max-width: 600px) {
  .archive-item {
    grid-template-columns: 1fr;
    padding: 16px 0 18px;
  }
  .archive-date {
    padding-top: 0;
  }
  .archive-quote {
    font-size: 1.125rem;
  }
}

/* ---------- Kontakt: sociálne siete ako ikonky ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.social-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent-dark);
}
.social-link:hover {
  background: var(--sage);
  border-color: var(--sage-rule);
}

/* ---------- O mne: mimo práce ---------- */
.leisure {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.leisure-photos {
  grid-column: 1 / -1;
}
.leisure:not(:has(.leisure-photo:not(.missing))) .leisure-photos {
  display: none;
}
.leisure-text {
  max-width: 36em;
}
.leisure-text h2 {
  margin-bottom: 16px;
}
.leisure-icons {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.leisure-icons li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
}
.leisure-ico {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--accent-dark);
}
.leisure-icons li:nth-child(2) .leisure-ico {
  background: var(--sand);
  color: var(--clay);
}
.leisure-icons li:nth-child(3) .leisure-ico {
  background: var(--mist);
  color: var(--ink-soft);
}
.leisure-ico svg {
  width: 34px;
  height: 34px;
}
.leisure-name {
  align-self: end;
  color: var(--ink);
  font: 500 1.125rem/1.3 var(--serif);
}
.leisure-note {
  align-self: start;
  margin-top: 2px;
  color: var(--muted);
  font: 400 0.875rem/1.45 var(--sans);
}
.leisure-photos {
  display: none;
}
.leisure-text {
  max-width: 36em;
}
.leisure-text h2 {
  margin-bottom: 16px;
}
.leisure-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.leisure-photo {
  aspect-ratio: 4/5;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}
.leisure-photo:nth-child(2) {
  margin-top: 36px;
}
.leisure-photo:only-child,
.leisure-photo:has(+ .missing),
.missing + .leisure-photo {
  grid-column: 1 / -1;
  margin-top: 0;
  aspect-ratio: 4/3;
}
.leisure-photo.missing {
  display: none;
}
.leisure-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 820px) {
  .leisure {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service {
  gap: 24px;
  grid-template-rows: 88px auto 1fr auto;
}
.service > div {
  background: var(--stone);
  border: 1px solid #e7e3d9;
  border-radius: 13px;
  padding: 30px;
  gap: 17px;
}
.service > div + div {
  background: var(--sage);
}
.service .institution-mark {
  color: var(--accent-dark);
}
.service .mark-lg {
  color: var(--accent-dark);
}
.service .institution-links {
  padding-top: 9px;
  gap: 12px 22px;
  color: var(--accent-dark);
}
.service .institution-links a {
  color: var(--accent-dark);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 220px 64px 220px;
  gap: 16px;
  align-items: stretch;
}
.gallery figure {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 13px;
  background: var(--stone-deep);
  isolation: isolate;
}
.gallery figure:nth-child(1) {
  grid-column: 1;
  grid-row: 1/3;
}
.gallery figure:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.gallery figure:nth-child(3) {
  grid-column: 2;
  grid-row: 2/4;
}
.gallery figure:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}
.gallery figure a {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
}
.gallery figure .photo,
.gallery figure:nth-child(1) .photo {
  position: relative;
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  margin: 0;
  background: transparent;
  overflow: hidden;
}
.gallery figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery figure::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #102431b8);
  pointer-events: none;
  z-index: 1;
}
.gallery figcaption {
  position: absolute;
  left: 22px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  z-index: 2;
  pointer-events: none;
  color: #fff;
  font: 500 0.9375rem/1.5 var(--sans);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  text-shadow: 0 1px 7px #0005;
}
.gallery .photo-credit {
  display: block;
  color: #ffffffc9;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-top: 3px;
}
.gallery .gallery-arrow {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff6b;
  border-radius: 50%;
  font-size: 1rem;
  background: #ffffff0f;
}
.gallery figure:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.gallery figure a:focus-visible {
  outline: 0;
}
.gallery figure a:hover img {
  transform: scale(1.025);
}
.collage .photo {
  border-radius: 9px;
}
.topics {
  border-top: 0;
  gap: 18px;
}
.topic {
  padding: 25px 26px;
  border: 1px solid #e8e5dd;
  border-radius: 11px;
}
.topic h3 {
  font-size: 1.23rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
.topic p {
  font-size: 1rem;
  line-height: 1.8;
}
.formats {
  gap: 17px;
}
.formats > div {
  padding: 23px 21px;
  border: 1px solid #dde5dd;
  border-radius: 10px;
  background: var(--sage);
}
.formats h4 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.formats p {
  line-height: 1.7;
}
.filters button {
  border-radius: 7px;
  color: var(--accent-dark);
}
.filters button[aria-pressed='true'] {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.filters button:hover:not([aria-pressed='true']) {
  background: var(--sage);
}
input,
textarea {
  border-radius: 7px;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  outline-color: var(--accent);
}
.form-msg {
  border-radius: 0 9px 9px 0;
  background: var(--sage);
  border-left-color: var(--accent);
}
.site-footer {
  border-top: 1px solid #eae6dc;
}
.foot-bottom > span:first-child {
  max-width: none;
}
@media (max-width: 980px) {
  .nav a {
    border-radius: 6px;
  }
  .nav a[aria-current='page'] {
    background: var(--sage);
  }
  .gallery {
    grid-template-rows: 195px 50px 195px;
  }
}
@media (max-width: 820px) {
  .hero .portrait .photo {
    box-shadow: 8px 9px 0 var(--sand);
  }
  .gallery {
    grid-template-rows: 170px 48px 170px;
  }
  .gallery figcaption {
    left: 18px;
    right: 16px;
    bottom: 15px;
    font-size: 0.875rem;
  }
  .service > div {
    padding: 25px;
  }
  .event {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .boxes {
    gap: 16px;
  }
  .boxes .box {
    padding: 25px 26px 28px;
  }
  .box-heading {
    margin-bottom: 18px;
  }
  .boxes .box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .boxes .box p {
    max-width: 42em;
  }
  .box::after {
    margin-top: 18px;
    top: 0;
  }
  .service {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-rows: auto;
  }
  .service > div {
    display: flex;
    grid-row: auto;
    gap: 16px;
  }
  .service > div + div {
    margin-top: 0;
  }
  .service .institution-links {
    align-self: flex-start;
  }
  .gallery figure:nth-child(1) {
    grid-column: 1;
    grid-row: 1/3;
  }
  .topics {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .hero .portrait {
    margin-left: 0;
  }
  .book-stage {
    border-radius: 8px;
  }
  .gallery {
    grid-template-rows: 155px 40px 155px;
    gap: 12px;
  }
  .gallery figcaption {
    left: 14px;
    right: 12px;
    bottom: 12px;
    font-size: 0.8125rem;
  }
  .gallery .photo-credit {
    font-size: 0.625rem;
  }
  .gallery .gallery-arrow {
    display: none;
  }
  .topic {
    padding: 22px;
  }
  .formats {
    gap: 13px;
  }
  .formats > div {
    padding: 21px 18px;
  }
  .service > div {
    padding: 25px;
  }
  .page-title {
    padding-bottom: 32px;
  }
}
@media (max-width: 520px) {
  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 248px;
    gap: 14px;
  }
  .gallery figure:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
  .gallery figcaption {
    left: 20px;
    right: 18px;
    bottom: 16px;
    font-size: 0.9375rem;
  }
  .gallery .photo-credit {
    font-size: 0.6875rem;
  }
  .gallery .gallery-arrow {
    display: flex;
  }
  .boxes .box p {
    font-size: 1rem;
  }
  .topics {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .gallery {
    grid-auto-rows: 220px;
  }
  .boxes .box {
    padding: 23px 22px 26px;
  }
  .formats {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery figure img {
    transition: none;
  }
  .gallery figure a:hover img {
    transform: none;
  }
}
::selection {
  background: #d7e3d8;
  color: var(--ink);
}
.site-header {
  background: rgba(255, 253, 249, 0.97);
  border-bottom-color: var(--rule);
}
.nav a:hover {
  background: var(--mist);
}
.btn.ghost {
  border-color: #aebbb3;
}
.btn.ghost:hover {
  background: var(--sage);
  border-color: #899f91;
}
.section-head .more {
  text-decoration-color: #a9bbae;
}
.boxes .box {
  --card-accent: var(--ink-soft);
  --card-background: var(--mist);
  border-color: #d8dfd8;
}
.boxes .box:nth-child(2) {
  --card-accent: var(--accent-dark);
  --card-background: var(--sage);
  border-color: var(--sage-rule);
}
.boxes .box:nth-child(3) {
  --card-accent: var(--clay);
  --card-background: var(--sand);
  border-color: var(--sand-rule);
}
.box-icon {
  background: #fffdf9c7;
  border-color: #fffdf9;
}
.boxes .box p {
  color: var(--text);
}
.book-stage {
  border-color: var(--sand-rule);
}
.pick-footer {
  border-color: var(--rule);
}
.media-item .when {
  color: var(--muted);
}
.service > div {
  border-color: var(--sand-rule);
}
.service > div + div {
  border-color: var(--sage-rule);
}
.topic {
  background: var(--stone);
  border-color: var(--sand-rule);
}
.formats > div {
  border-color: var(--sage-rule);
}
.formats > div:nth-child(even) {
  background: var(--sand);
  border-color: var(--sand-rule);
}
.filters button {
  background: var(--paper);
  border-color: #c3d0c4;
}
.book:focus {
  background: var(--sage);
}
input,
textarea {
  background: var(--paper);
  border-color: #bfccbf;
}
.site-footer {
  border-top-color: var(--sand-rule);
}

/* Pozvánka s popisom vľavo a časom a miestom vpravo. */
.event {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 44px;
  align-items: center;
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid var(--sage-rule);
  border-top: 3px solid var(--accent);
  background: var(--sage);
}
.event .kind {
  margin: 0 0 12px;
  font: 600 0.75rem/1.5 var(--sans);
  letter-spacing: 0.105em;
  color: var(--accent-dark);
  text-transform: uppercase;
}
.event h3 {
  margin: 0 0 23px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.event .where {
  display: grid;
  gap: 7px;
  color: var(--text);
}
.event .event-meta {
  font-size: 0.9375rem;
  line-height: 1.65;
  gap: 10px;
}
.event-meta svg {
  margin-top: 3px;
  color: var(--accent-dark);
}
.event .actions {
  grid-column: auto;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  gap: 0;
}
.event .actions .btn {
  width: auto;
  min-width: 158px;
  min-height: 49px;
  padding: 13px 22px;
  white-space: nowrap;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
}
.event .actions .btn:hover {
  background: #284638;
  border-color: #284638;
}

/* Pätička: copyright a odkazy pod deliacou čiarou. */
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-top-color: var(--rule);
  margin-top: 28px;
  padding-top: 15px;
}
.foot-bottom > span {
  flex: none;
}
.foot-bottom .foot-links {
  max-width: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 22px;
  font: 400 0.8125rem/1.5 var(--sans);
}
.foot-bottom .foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.foot-bottom .foot-links a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}
@media (max-width: 980px) {
  .foot-bottom {
    align-items: flex-start;
  }
  .foot-bottom .foot-links {
    flex: 1;
    gap: 4px 18px;
  }
}
@media (max-width: 760px) {
  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .foot-bottom .foot-links {
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  .event {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .event .actions {
    justify-self: end;
  }
  .event .event-meta {
    font-size: 0.875rem;
  }
  .event h3 {
    margin-bottom: 19px;
  }
}
@media (max-width: 600px) {
  .foot-bottom {
    margin-top: 25px;
    padding-top: 17px;
  }
  .foot-bottom .foot-links {
    gap: 3px 19px;
  }
  .foot-bottom .foot-links a {
    min-height: 40px;
  }
  .event {
    padding: 26px 24px;
  }
  .event .kind {
    font-size: 0.6875rem;
    letter-spacing: 0.09em;
  }
}
@media (max-width: 360px) {
  .event {
    padding: 24px 20px;
  }
  .event h3 {
    font-size: 1.4rem;
  }
  .foot-bottom .foot-links {
    gap: 0 18px;
  }
}

/* Pozvanie na knihu: názov a podtitul, termín a miesto. */
.event.event-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(285px, 320px);
  gap: 30px 38px;
  align-items: center;
}
.event-invitation h3 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.4;
}
.event-summary {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0;
  text-wrap: pretty;
}
.event-invitation .event-details {
  border-left: 1px solid #c3d2c4;
  padding-left: 28px;
  gap: 16px;
}
.event-invitation .event-meta {
  align-items: flex-start;
  gap: 11px;
}
.event-invitation .event-meta strong {
  font-weight: 500;
  color: var(--ink);
}
.event-invitation .event-meta time,
.event-invitation .event-meta > span {
  display: block;
}
.event-invitation .event-meta time span {
  display: inline;
  white-space: nowrap;
}
.event-invitation .event-meta svg {
  margin-top: 4px;
}

/* Jednoduchá pätička s jedinou oddeľovacou čiarou. */
.site-footer {
  background: var(--paper);
  border: 0;
  padding: 0 0 19px;
}
.site-footer .foot-bottom {
  margin-top: 0;
  padding-top: 17px;
}

/* E-mail zostáva ovládateľný klávesnicou aj čítačkou obrazovky. */
.email-reveal {
  appearance: none;
  border: 0;
  border-radius: 3px;
  padding: 2px 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  min-height: 36px;
}
.email-reveal:hover {
  color: var(--ink);
}
.email-reveal:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.protected-email {
  overflow-wrap: anywhere;
}
.form-note {
  margin-bottom: 4px;
}
.form-alert {
  grid-column: 1/-1;
  font: 400 0.875rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--sand);
  border-left: 3px solid var(--clay);
  padding: 13px 17px;
  border-radius: 0 7px 7px 0;
}
.form-alert[hidden] {
  display: none;
}
#contact-form .hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  .event.event-invitation {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }
  .event-invitation .event-details {
    padding-left: 24px;
  }
  .event-summary {
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  .event.event-invitation {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .event-invitation .event-details {
    border-left: 0;
    border-top: 1px solid #c3d2c4;
    padding: 21px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .event-invitation h3 {
    margin-bottom: 12px;
  }
  .event-summary {
    max-width: none;
  }
  .site-footer .foot-bottom {
    padding-top: 20px;
  }
}
@media (max-width: 600px) {
  .event-invitation .event-details {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .event-invitation .event-meta {
    font-size: 0.9375rem;
  }
  .event-summary {
    font-size: 0.9375rem;
  }
}

/* Štúdia v zozname kníh: piktogram článku namiesto obálky */
.book .cover-wrap.study {
  aspect-ratio: 2/3;
  border-radius: 2px;
  overflow: hidden;
}
.study-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.study-art .sa-bg {
  fill: var(--sage);
}
.study-art .sa-back {
  fill: #fffdf9;
  opacity: 0.55;
}
.study-art .sa-sheet {
  fill: #fffdf9;
  stroke: rgba(36, 58, 67, 0.08);
}
.study-art .sa-accent {
  fill: var(--accent);
}
.study-art .sa-head {
  fill: var(--ink);
  opacity: 0.75;
}
.study-art .sa-line {
  fill: var(--ink);
  opacity: 0.2;
}
.study-art .sa-label {
  fill: var(--accent-dark);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.book h3 + .desc {
  margin-top: 6px;
}

/* ---------- Knihy: filter podľa kategórií a bibliografia na stiahnutie ---------- */
#book-filters button {
  display: inline-flex;
  align-items: center;
}
.chip-count {
  font: 600 0.75rem/1 var(--sans);
  margin-left: 8px;
  padding: 3px 7px 4px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}
.chip-count:empty {
  display: none;
}
.filters button[aria-pressed='true'] .chip-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.filters button:hover:not([aria-pressed='true']) .chip-count {
  background: #fff;
}

/* Bibliografia na stiahnutie: náhľad dokumentu, počty a tlačidlo */
.bib-download {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 940px;
}
.bib-doc {
  position: relative;
  width: 176px;
  margin: 6px 0 14px;
}
.bib-doc::before,
.bib-doc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(23, 37, 61, 0.14);
}
.bib-doc::before {
  transform: translate(13px, 11px) rotate(3deg);
}
.bib-doc::after {
  transform: translate(6px, 5px) rotate(1.4deg);
}
.bib-doc img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 20px 34px -20px rgba(23, 37, 61, 0.5),
    0 1px 2px rgba(23, 37, 61, 0.16);
}
.bib-download h2 {
  margin: 0 0 14px;
}
.bib-download-text {
  max-width: 36em;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.bib-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 26px 0 28px;
  border-top: 1px solid var(--sand-rule);
  border-bottom: 1px solid var(--sand-rule);
}
.bib-stats > div {
  padding: 15px 16px 16px;
}
.bib-stats > div:first-child {
  padding-left: 0;
}
.bib-stats > div + div {
  border-left: 1px solid var(--sand-rule);
}
.bib-stats dt {
  font: 400 1.875rem/1.1 var(--serif);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bib-stats dd {
  margin: 6px 0 0;
  font: 0.8125rem/1.4 var(--sans);
  color: var(--muted);
}
.bib-actions .btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
@media (max-width: 820px) {
  .bib-download {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .bib-doc {
    width: 132px;
  }
}
@media (max-width: 600px) {
  .bib-stats {
    grid-template-columns: 1fr 1fr;
  }
  .bib-stats > div {
    padding: 14px 14px 15px;
  }
  .bib-stats > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .bib-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--sand-rule);
  }
  .bib-actions .btn {
    width: 100%;
  }
}

/* ---------- Prednášky: tri oblasti, v každej tri témy ---------- */
.areas {
  display: grid;
  gap: 20px;
}
.area {
  --area-bg: var(--mist);
  --area-rule: #d8dfd8;
  --area-accent: var(--ink-soft);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(26px, 3.6vw, 44px) clamp(24px, 3.6vw, 44px);
  background: var(--area-bg);
  border: 1px solid var(--area-rule);
  border-radius: 14px;
}
.area:nth-child(2) {
  --area-bg: var(--sage);
  --area-rule: var(--sage-rule);
  --area-accent: var(--accent-dark);
}
.area:nth-child(3) {
  --area-bg: var(--sand);
  --area-rule: var(--sand-rule);
  --area-accent: var(--clay);
}
.area-head {
  align-self: start;
}
.area-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border: 1px solid #fffdf9;
  border-radius: 13px;
  background: #fffdf9c7;
  color: var(--area-accent);
}
.area-icon svg {
  width: 27px;
  height: 27px;
}
.area-head h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.45rem, 2.3vw, 1.7rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}
.area-head p {
  margin: 0;
  max-width: 22em;
  font: 0.96875rem/1.6 var(--sans);
  color: var(--muted);
}
.area-head::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--area-accent);
  opacity: 0.45;
}
.area-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}
.area-topics li {
  padding: 22px 0;
  border-top: 1px solid var(--area-rule);
}
.area-topics li:first-child {
  padding-top: 4px;
  border-top: 0;
}
.area-topics li:last-child {
  padding-bottom: 0;
}
.area-topics h4 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.area-topics p {
  margin: 0;
  max-width: 40em;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
@media (max-width: 820px) {
  .area {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .area-head {
    display: grid;
    grid-template-columns: 49px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }
  .area-head h3 {
    margin: 0;
  }
  .area-head p {
    grid-column: 1 / -1;
    margin-top: 14px;
    max-width: none;
  }
  .area-head::after {
    display: none;
  }
  .area-topics li:first-child {
    padding-top: 20px;
    border-top: 1px solid var(--area-rule);
  }
}
@media (max-width: 600px) {
  .area {
    padding: 24px 20px 26px;
  }
  .area-topics h4 {
    font-size: 1.0625rem;
  }
  .area-topics p {
    font-size: 0.96875rem;
  }
}

/* Ochrana údajov a voľby cookies. Farby nadväzujú na paletu webu. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body:has(.privacy-dialog[open]) {
  overflow: hidden;
}
.privacy-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 24px 80px #243a4333;
  overflow: hidden;
}
.privacy-dialog[open] {
  display: flex;
  flex-direction: column;
}
.privacy-dialog::backdrop {
  background: #182f3a73;
  backdrop-filter: blur(3px);
}
.privacy-header,
.privacy-body,
.privacy-actions {
  padding: 24px 30px;
}
.privacy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--sage);
}
.privacy-dialog h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1.3;
}
.privacy-date {
  margin: 9px 0 0;
  font: 400 0.75rem/1.5 var(--sans);
  color: var(--muted);
}
.privacy-x {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: -6px -8px 0 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.privacy-x:hover {
  border-color: var(--sage-rule);
  background: var(--paper);
}
.privacy-x svg {
  width: 18px;
  height: 18px;
}
.privacy-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  font: 400 0.9375rem/1.7 var(--sans);
}
.privacy-body h3 {
  margin: 25px 0 8px;
  font: 600 1rem/1.4 var(--sans);
}
.privacy-body h3:first-child {
  margin-top: 0;
}
.privacy-body p {
  margin: 0 0 14px;
}
.privacy-body p:last-child {
  margin-bottom: 0;
}
.privacy-body a,
.privacy-body code {
  overflow-wrap: anywhere;
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  padding-bottom: 16px;
}
.privacy-button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.8125rem/1.4 var(--sans);
  cursor: pointer;
}
.privacy-button:hover {
  background: var(--ink-soft);
}
.privacy-button.secondary {
  border-color: var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.privacy-button.secondary:hover {
  background: var(--stone);
}
.privacy-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.cookie-banner {
  position: fixed;
  z-index: 150;
  right: 24px;
  bottom: 24px;
  left: 24px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--sage-rule);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 8px 48px #243a4326;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.cookie-banner p {
  max-width: 62ch;
  margin: 0;
  font: 400 0.8125rem/1.65 var(--sans);
}
.cookie-banner .privacy-link {
  white-space: nowrap;
}
.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cookie-banner-actions [data-open-cookies] {
  grid-column: 1 / -1;
}
.cookie-option {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.cookie-option p {
  margin-bottom: 8px;
}
.cookie-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}
.cookie-option-head label,
.cookie-option-head strong {
  font-weight: 600;
  cursor: pointer;
}
.cookie-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--accent-dark);
  cursor: pointer;
}
.cookie-option input:disabled {
  cursor: not-allowed;
}
.cookie-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--accent-dark);
  background: var(--sage);
  font-size: 0.75rem;
}
.cookie-detail,
.cookie-choice-date {
  font-size: 0.8125rem;
  color: var(--muted);
}
.cookie-detail summary {
  width: fit-content;
  padding: 4px 0;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-detail[open] summary {
  margin-bottom: 8px;
}
.cookie-status {
  padding: 12px 15px;
  border-radius: 7px;
  background: var(--stone);
  font-size: 0.8125rem;
}
.privacy-reload-note {
  flex: 1 0 100%;
  margin: 0;
  font: 400 0.75rem/1.5 var(--sans);
  color: var(--muted);
}
@media (max-width: 850px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cookie-banner-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .cookie-banner-actions [data-open-cookies] {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .privacy-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .privacy-header,
  .privacy-body {
    padding: 20px;
  }
  .privacy-actions {
    padding: 14px 20px;
  }
  .privacy-actions .privacy-button {
    flex: 1 1 auto;
  }
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 20px;
  }
  .cookie-banner-actions {
    grid-template-columns: 1fr 1fr;
  }
  .cookie-banner-actions [data-open-cookies] {
    grid-column: 1 / -1;
  }
}

/* Mobilné zarovnanie: čitateľné karty a spoločné okraje bez zásahu do desktopu. */
@media (max-width: 820px) {
  .hero-grid > *,
  .pick > *,
  .book > *,
  .formats > *,
  .service > *,
  .event-invitation > * {
    min-width: 0;
  }
  .event.event-invitation {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .event-invitation .event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    border-left: 0;
    border-top: 1px solid #c3d2c4;
    padding: 21px 0 0;
  }
}
@media (max-width: 600px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-head .more {
    margin-left: 0;
    white-space: normal;
  }
  .pick {
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto;
    column-gap: 18px;
  }
  .pick .book-stage {
    grid-row: 1 / 3;
    min-height: 140px;
    max-height: 160px;
  }
  .pick .year {
    grid-row: 1;
    margin-bottom: 8px;
  }
  .pick h3 {
    grid-row: 2;
    align-self: start;
  }
  .pick .pick-description,
  .pick .pick-footer {
    grid-column: 1 / -1;
  }
  .pick .pick-description {
    margin: 18px 0 10px;
  }
  /* Obálka, rok a názov tvoria hlavičku; dlhý popis využije celú šírku. */
  .book {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px 18px;
  }
  .book > div:not(.cover-wrap) {
    display: contents;
  }
  .book > .cover-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }
  .book .meta {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: start;
  }
  .book h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: start;
    font-size: 1.125rem;
    line-height: 1.45;
  }
  .book .desc,
  .book .sub,
  .book .buy {
    grid-column: 1 / -1;
  }
  .book .desc,
  .book .sub {
    margin: 0;
  }
  .book .buy {
    justify-self: start;
    margin: 0;
    min-height: 44px;
  }
  .formats {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .formats > div {
    padding: 22px;
  }
  .formats p {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .event-invitation .event-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters button {
    min-height: 44px;
  }
  .media-item {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 18px;
  }
}
@media (max-width: 520px) {
  .leisure-photos {
    grid-template-columns: minmax(0, 1fr);
  }
  .leisure-photo:nth-child(2) {
    margin-top: 0;
  }
  .gallery figcaption > span:first-child {
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .hero .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hero .actions .btn,
  #contact-form button[type='submit'] {
    width: 100%;
    min-height: 48px;
  }
  .event .actions {
    justify-self: stretch;
    width: 100%;
  }
  .event .actions .btn {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 360px) {
  .pick {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
  }
  .pick .book-stage {
    min-height: 124px;
  }
  .book {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 16px;
  }
}
