:root {
  --bg-body: #f9f6f0;
  --bg-body2: #f0e8dc;
  --bg-wrapper: #ffffff;
  --bg-sidebar: #f9f6f0;
  --bg-nav: #ffffff;
  --bg-nav-warm: #fffdf7;
  --bg-hero: #eadfca;
  --bg-footer: #faf7f1;

  --text-main: #4a3f33;
  --text-dark: #2b2622;
  --text-light: #ffffff;
  --text-muted: #7c7166;
  --text-grey: #8d8379;
  --text-accent: #9c6b2f;
  --text-credits: #5a514a;
  --text-credits-hover: #3f3833;

  --accent: #c49a52;
  --accent-light: #e6cc93;
  --accent-gold: #f3e3c2;
  --accent-dark: #a67f3d;

  --grey-100: #f9f6f0;
  --grey-200: #f0e8dc;
  --grey-300: #ded4c7;
  --grey-400: #c2b7a9;
  --grey-600: #7c7166;
  --grey-700: #5f564f;
  --grey-800: #3a2f27;

  --border-light: #e8dfd2;
  --border-np: #f3ebdf;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 3px 10px rgba(0,0,0,0.10);
  --shadow-lg: 0 6px 18px rgba(0,0,0,0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  font-family: "Lora", serif;
  line-height: 1.7;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  animation: fadeInPage 0.4s ease-out forwards;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

a {
  color: var(--text-accent);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.15);
  text-underline-offset: 4px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

#wrapper {
  background-color: var(--bg-wrapper);
  max-width: 75rem;
  width: 100%;
  margin: 1rem auto;
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
}

section {
  margin: 2.5rem 0;
}

section:first-of-type {
  margin-top: 1.25rem;
}

.header-modern {
  text-align: center;
  background-color: #fff;
  position: relative;
  z-index: 1000;
  padding: 1rem 0;
}

.site-title-wrapper {
  text-align: center;
  position: relative;
  margin-top: 0.4rem;
}

.site-cross {
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 1px 3px rgba(196,154,82,0.4));
}

.site-cross svg {
  display: inline-block;
  vertical-align: middle;
  stroke: var(--accent);
  background: linear-gradient(to bottom, #d4a85c, #b3833b);
  -webkit-background-clip: text;
  color: transparent;
}

.site-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  letter-spacing: 0.6px;
  color: #2f2a26;
  text-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeSlideIn 1.1s ease forwards;
}

.site-title span {
  background: linear-gradient(to right, #b86a2a, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  color: transparent;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hamburger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #b48a3c;
  border-radius: 2px;
}

.header-wrapper {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.2rem 0 0.6rem;
  text-align: center;
  background: var(--bg-wrapper);
  position: relative;
}

.header-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  box-shadow: var(--shadow-sm);
  opacity: 0.7;
}

.header-logo {
  margin-bottom: 0.75rem;
}

.header-logo img {
  max-width: 160px;
  height: auto;
}

.light-nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: visible;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: 10px;
  margin: 0.75rem auto;
  max-width: 75rem;
  padding: 0.40rem 0;
}

.light-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  white-space: nowrap;
}

.light-nav li {
  position: relative;
}

.light-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: #2f2a26;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-weight: 520;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.25px;
  font-size: 1.12rem;
}

.light-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #d4a85c, var(--accent), #d4a85c);
  transform: translateX(-50%);
  transition: width 0.35s ease, box-shadow 0.35s ease;
  opacity: 0.9;
}

.light-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.light-nav a:hover::after,
.light-nav a.active::after {
  width: 70%;
  box-shadow: 0 0 6px rgba(196,154,82,0.50);
}

.light-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a::before {
  content: "▼";
  font-size: 0.75rem;
  color: #d4a85c;
  margin-right: 0.35rem;
  position: relative;
  top: -1px;
  transition: transform 0.25s ease;
}

.has-dropdown:hover > a::before,
.has-dropdown > a.active::before {
  transform: rotate(180deg);
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  list-style: none;
  padding: 6px 0;
  min-width: 230px;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  white-space: normal;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.has-dropdown .dropdown a {
  padding: 0.70rem 1rem;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  color: #2f2a26;
}

.has-dropdown .dropdown a:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.hero {
  position: relative;
  width: 100%;
  margin: 0.75rem 0 0 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28),
    rgba(0,0,0,0.12),
    rgba(0,0,0,0.05)
  );
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero img {
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  animation: heroImageFade 0.6s ease-out forwards;
  position: relative;
  z-index: 1;
}

@keyframes heroImageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-text {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.2;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn 0.7s ease-out forwards;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.45),
    0 3px 12px rgba(0,0,0,0.35),
    0 0 22px rgba(255,255,255,0.35);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.hero-text span {
  display: block;
  font-size: 2.9rem;
  margin-top: 0.35rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.35),
    0 0 18px rgba(255,255,255,0.28);
}

.hero::after {
  content: none;
}

.hero-fade {
  display: none;
}

main {
  max-width: 75rem;
  background: #ffffff;
  padding: 1.25rem 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.75;
  color: var(--text-main);
  font-size: 1.1rem;
  margin: 0 auto;
  padding-top: 18px;
}

main h1 {
  font-family: "Cormorant Garamond", serif;
  margin: 1.5rem 0 2rem;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

main h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 2rem 0 1.25rem;
  font-size: 2.3rem;
}

main h3 {
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin: 1.75rem 0 1rem;
  font-size: 1.55rem;
}

main p {
  margin: 1rem 0 1.75rem;
  color: var(--text-main);
}

main p.datum-clanku {
  margin-bottom: 0.75rem;
  color: var(--grey-600);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: -0.25rem;
}

main ul,
main ol {
  color: var(--text-main);
  margin: 0 0 2.25rem 1.75rem;
  padding-left: 0.25rem;
}

main li {
  margin: 0.55rem 0;
  line-height: 1.65;
}

main li::marker {
  font-size: 0.55em;
  color: var(--accent);
}

main img {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  height: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

main img:hover {
  transform: scale(1.015);
  box-shadow: 0 4px 14px rgba(196,154,82,0.25);
}

img.no-style {
  border-radius: 0;
  box-shadow: none;
}

.imgr {
  float: right;
  margin: 5px 0 5px 10px;
  display: inline-block;
}

.hero-image-right {
  float: right;
  width: 260px;
  margin: 0.2rem 0 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(196,154,82,0.25);
}

.uvod-sekcia {
  overflow: hidden;
}

.uvod-sekcia h1,
.uvod-sekcia p {
  margin-right: 280px;
  max-width: calc(100% - 280px);
}

.uvod-sekcia::after {
  content: "";
  display: block;
  clear: both;
}

dl {
  margin: 2.25rem 0;
  border-left: 2px solid var(--accent-light);
  padding-left: 1.5rem;
}

dt {
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  line-height: 1.45;
  font-family: "Cormorant Garamond", serif;
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

dd {
  color: var(--text-main);
  margin: 0.4rem 0 1.25rem 0;
  line-height: 1.65;
}

details {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: 0.5rem 0;
  transition: border-left 0.3s ease;
}

details[open] {
  border-left: 3px solid var(--accent-light);
  padding-left: 0.75rem;
}

summary {
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
  letter-spacing: 0.25px;
  font-family: "Cormorant Garamond", serif;
  padding: 0.45rem 1.75rem 0.45rem 0.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
  background-color: rgba(0,0,0,0.02);
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

summary:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--accent);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▸";
  position: absolute;
  right: 0.75rem;
  top: 0.35rem;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
  color: var(--accent);
  opacity: 0.85;
}

details[open] summary::after {
  transform: rotate(90deg);
}

details > div,
details > ul {
  margin-top: 0.65rem;
  padding-left: 0.75rem;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.65;
}

details ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

details li {
  margin: 0.25rem 0;
}

details a {
  text-decoration-color: rgba(0,0,0,0.1);
}

.back-link {
  margin-top: 2rem;
  font-style: italic;
  color: var(--text-main);
  text-align: center;
}

li.tucne-pismo,
main .tucne-pismo {
  font-weight: 600;
}

main .tucne-pismo {
  font-size: 1.05em;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

.nastenka {
  margin: var(--space-section) 0;
}

.nastenka h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.nastenka-intro {
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.nastenka-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.nastenka-card {
  background: var(--bg-wrapper);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nastenka-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-date {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}

.card-title a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.card-title a:hover {
  color: var(--accent);
}

.sviatosti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sviatost-card {
  background: var(--bg-wrapper);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sviatost-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sviatost-card h3 {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.sviatost-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.oznamy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.oznam-card {
  background: var(--bg-wrapper);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.oznam-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.oznam-card h4 {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.oznam-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.oznam-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.oznam-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.oznam-link:hover {
  color: var(--accent-light);
}

.glightbox-container {
  z-index: 99999 !important;
}

.glightbox-overlay {
  z-index: 99998 !important;
}

.credits {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--grey-700);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.2px;
  opacity: 0.85;
}

.credits a {
  color: var(--text-credits);
}

footer.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
  background-color: #f9f7f4;
  border-top: 1px solid #e0d9cf;
  color: #3a2e1f;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 3rem 2rem;
}

footer.site-footer .footer-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  margin-top: 0;
}

footer.site-footer p {
  margin: 0.3rem 0;
}

footer.site-footer h4 {
  margin: 0 0 0.8rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #d8cbb8;
  color: #6b4e2e;
}

footer.site-footer a {
  color: #8b6b3f;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer a:hover {
  color: #5a3a1e;
  text-decoration: underline;
}

/* ============================================
   TYPOGRAFIA – DESKTOP (default)
   ============================================ */

body {
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Cormorant Garamond", serif;
  color: #2f2a26;
}

/* Nadpisy */
h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 600;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}
