: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-light2: #ffffff;
  --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);

  --vr: 2.75rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  /*background-color: var(--bg-body);*/
  background-color: var(--bg-wrapper);
  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: var(--vr) auto;
  padding: 0 1.5rem;
  text-align: left;
  /*box-shadow: var(--shadow-md);*/
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light2);
  /*border-radius: 1rem;*/
}

.header-modern {
  text-align: center;
  background-color: #fff;
  position: relative;
  z-index: 1000;
  padding: 0;
  margin-bottom: var(--vr);
}

.site-title-wrapper {
  text-align: center;
  position: relative;
  margin: 0;
}

.site-cross {
  margin: var(--vr);
  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: 0;
  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;
}

.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: var(--vr) auto 0;
  padding: 0;
  max-width: 75rem;
}

.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;
  padding: 0.65rem 1rem;
  font-size: 1.22rem;
}

.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: 1.12rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 520;
  color: var(--text-dark);
  letter-spacing: 0.25px;
}

.has-dropdown .dropdown a:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.hero {
  position: relative;
  width: 100%;
  margin: var(--vr) 0 var(--vr) 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: 0 2rem;*/
  padding: 0 1rem;
  /*border-radius: 0.75rem;*/
  /*box-shadow: var(--shadow-sm);*/
  line-height: 1.75;
  color: var(--text-main);
  font-size: 1.1rem;
  margin: var(--vr) auto;
}

h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-top: var(--vr);   /* jednotný rytmus hore */
}

h1 {
  font-size: 2.55rem;
  margin-bottom: calc(var(--vr) * 0.60);
}

main h2 { 
  font-size: 2.05rem; 
  margin-bottom: calc(var(--vr) * 0.55);
}

main h3 { 
  font-size: 1.42rem; 
  margin-bottom: calc(var(--vr) * 0.50);
}

main h4 { 
  font-size: 1.22rem;
  margin-bottom: calc(var(--vr) * 0.45); 
}

main h5 { 
  font-size: 1.12rem; 
  margin-bottom: calc(var(--vr) * 0.40);
}

main h6 { 
  font-size: 1rem; 
  margin-bottom: calc(var(--vr) * 0.35);
}

main p {
  margin-bottom: calc(var(--vr) * 0.60);
  color: var(--text-main);
  line-height: 1.75;
}

main p.datum-clanku {
  margin-bottom: calc(var(--vr) * 0.4);
  margin-top: calc(var(--vr) * -0.2);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--grey-600);
}

main ul,
main ol {
  margin: calc(var(--vr) * 0.6) 0 calc(var(--vr) * 0.6) 1.75rem;
  padding-left: 0.25rem;
  color: var(--text-main);
}

main li {
  margin: calc(var(--vr) * 0.3) 0;
  line-height: 1.65;
}

main li::marker {
  font-size: 0.55em;
  color: var(--accent);
}

main img,
main figure {
  margin: var(--vr) 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;
}

/* obrázky zarovnané doprava */
.imgr {
  float: right;
  margin: calc(var(--vr) * 0.2) 0 calc(var(--vr) * 0.2) calc(var(--vr) * 0.4);
  display: inline-block;
}

.hero-image-right {
  float: right;
  width: 260px;
  margin: calc(var(--vr) * 0.2) 0 calc(var(--vr) * 0.6) calc(var(--vr) * 0.6);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(196,154,82,0.25);
}

.uvod-sekcia {
  overflow: hidden;
  margin-bottom: var(--vr);
}

.uvod-sekcia h1,
.uvod-sekcia p {
  margin-right: 280px;
  max-width: calc(100% - 280px);
}

.uvod-sekcia::after {
  content: "";
  display: block;
  clear: both;
}

dl {
  margin: var(--vr) 0;
  border-left: 2px solid var(--accent-light);
  padding-left: 1.5rem;
}

dt {
  margin-top: calc(var(--vr) * 0.6);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  line-height: 1.45;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
}

dd {
  margin: calc(var(--vr) * 0.3) 0 calc(var(--vr) * 0.6) 0;
  color: var(--text-main);
  line-height: 1.65;
}

li.tucne-pismo,
main .tucne-pismo {
  font-weight: 600;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--vr);
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Jednotný GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--vr) * 0.6);
  margin-top: var(--vr);
}

/* Jednotná KARTA */
.card {
  background: var(--bg-wrapper);
  padding: calc(var(--vr) * 0.5) calc(var(--vr) * 0.6);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Jednotný dátum */
.card-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: calc(var(--vr) * 0.3);
}

/* Jednotný nadpis */
.card-title {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  margin-bottom: calc(var(--vr) * 0.3);
}

/* Jednotný text */
.card-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Jednotný odkaz */
.card-link {
  display: inline-block;
  margin-top: calc(var(--vr) * 0.3);
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.card-link:hover {
  color: var(--accent-light);
}

.back-to-top {
  margin-top: var(--vr);
  margin-bottom: var(--vr);
}

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; 
  margin-top: var(--vr);
}

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;
}

.nastenka {
  margin-top: calc(var(--vr) * 1.2);
}

.archive-info {
   margin-top: calc(var(--vr) * 0.6);
}

.nastenka-card {
  padding: 1.2rem 1.4rem;              
  display: flex;
  flex-direction: column;
  justify-content: flex-start;        
  gap: 0.55rem;                        
}

/* Dátum */
.card-date {
  margin: 0;                         
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Nadpis */
.card-title {
  margin: 0;                          
  line-height: 1.3;                    
}

.card-title a {
  display: block;
  margin: 0;
  padding: 0;
}

.credits {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  color: var(--grey-700);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.2px;
  opacity: 0.85;
}

.credits a {
  color: var(--text-credits);
}

.fotky-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.fotky-grid img {
  width: 100%;
  height: 220px;      
  object-fit: cover;  
  border-radius: 6px;
  display: block;
}

.gallery-clean img,
.gallery-clean figure {
  all: unset;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.gallery-clean a {
  all: unset;
  cursor: pointer;
  display: block;
}

.gallery-clean {
  overflow: visible;
}


.font-bold {
  font-weight: 700;
}

.list {
  margin-top: 0px;
}

.back-link {
  margin-top: calc(var(--vr) * 1.2);
  font-style: italic;
  color: var(--text-main);
  text-align: center;
}
