/* ==========================================================================
   DESIGN SYSTÉM PODLE PŘEDLOHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Mountains+of+Christmas:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;500;600;700&display=swap');






:root {
  /* Přesná barevná paleta z grafiky */
  --color-navy: #0E2A47;        /* Tmavě modrá patek a hlaviček */
  --color-paper: #F9F0E3;       /* Béžové/krémové pozadí stránky f9f0e3*/ 
  --color-card-bg: #F7EBD8;    /* Světlá béžová pro karty */ 
  --color-red: #C62828;        /* Tlačítka hlavní akce */
  --color-dark-green: #2E6B3F; /* Tlačítka na kartách & spodní navigace */
  --color-gold: #BA8A2B;       /* Textové akcenty a detaily */
  
  /* Typografie */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Source Sans 3', sans-serif;

  /* Material Design Elevation & Zaoblení */
  --radius-card: 16px;
  --radius-btn: 12px;
  --shadow-soft: 0 4px 15px rgba(14, 42, 71, 0.08);
  --shadow-hover: 0 8px 25px rgba(14, 42, 71, 0.15);
}

/* barvy */
.red { color: var(--color-red) !important; }
.green { color: var(--color-dark-green) !important; }
.bg-red { background-color: var(--color-red) !important; }
.bg-green { background-color: var(--color-dark-green) !important; }

/* ==========================================================================
   ZÁKLADNÍ STYLY STRÁNKY
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: #555;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--color-gold);
}

body {
  background-image: url("../resources/bg.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1600px auto;
  color: var(--color-navy);
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 60px;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* ==========================================================================
   VÁNOČNÍ ANKETY
   ========================================================================== */
.polls-page {
  width: 100%;
  margin: 30px auto 70px;
}

.poll-section {
  margin-top: 34px;
}

.poll-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.poll-section-heading h2 {
  color: #17314b;
  font-family: 'Merienda', cursive;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 10px;
}

.poll-section-heading h2 > span {
  color: #b38326;
  font-size: 1.15em;
}

.poll-archive-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-archive-heading-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.poll-archive-heading-icon .winter-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  transform: scale(.65);
  transform-origin: center;
}

.poll-eyebrow {
  margin-bottom: 3px;
  color: #8d5b22;
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.poll-section-note {
  max-width: 360px;
  color: #675a49;
  font-family: 'Nunito', sans-serif;
  font-size: .86rem;
  text-align: right;
}

.poll-current-list {
  display: grid;
  gap: 30px;
}

.poll-current-card {
  position: relative;
  padding: 27px clamp(16px, 3vw, 34px) 20px;
  border: 1px solid #d8c6a9;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 10% 0, rgb(255 255 255 / 62%), transparent 58%),
    linear-gradient(135deg, #fff8eb, #f7ead5);
  box-shadow: 0 7px 22px rgb(87 57 25 / 9%);
  background-image: url("../resources/bg-card-dark.jpg");
}

.poll-current-ribbon {
  position: absolute;
  top: -21px;
  left: -9px;
  z-index: 1;
  width: clamp(145px, 24vw, 210px);
  height: auto;
  pointer-events: none;
}

.poll-current-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 19px;
}

.poll-current-heading h3 {
  margin-bottom: 4px;
  color: #162f47;
  font-family: 'Merienda', cursive;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.poll-current-heading > div > p {
  font-weight: 700;
  line-height: 1.45;
  color: #555;
}

.poll-current-period {
  flex: 0 0 auto;
  color: #65533c;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  text-align: right;
}

.poll-current-period span {
  margin-right: 4px;
  color: #925b22;
  font-size: 1.1rem;
}

.poll-current-period .poll-countdown {
  margin-right: 0;
  color: #925b22;
  font-size: inherit;
}

.poll-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.poll-options--two {
  width: 66.6667%;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poll-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 11px;
  border: 1px solid rgb(139 107 65 / 21%);
  border-radius: 12px;
  background: rgb(255 255 255 / 62%);
  text-align: center;
  background-image: url("../resources/bg-card.jpg");
}

.poll-option-image {
  position: relative;
  display: grid;
  width: min(100%, 370px);
  aspect-ratio: 1.9 / 1;
  margin-inline: auto;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.poll-option-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px;
  object-fit: contain;
}

.poll-option h4 {
  margin: 0 0 10px 0;
  color: #263d2d;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.poll-vote-button {
  width: 220px;
  max-width: 100%;
  align-self: center;
  margin-top: auto;
  font-family: inherit;
  line-height: inherit;
  text-transform: uppercase;
}

.poll-vote-button:focus-visible {
  outline: 3px solid #c69a43;
  outline-offset: 2px;
}

.poll-vote-button:disabled {
  background: #8b927f;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.poll-vote-button:disabled:hover {
  opacity: 1;
  transform: none;
}

.poll-vote-feedback {
  margin-top: 10px;
  color: #2e6b3f;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 700;
}

.poll-vote-feedback.is-error {
  color: #a12e25;
}

.poll-empty,
.poll-notice {
  padding: 17px 20px;
  border: 1px solid #dfcfb4;
  border-radius: 10px;
  background: rgb(255 250 240 / 90%);
  color: #514638;
  font-family: 'Nunito', sans-serif;
}

.poll-notice--error {
  border-color: #e7c7bb;
  background: #fff3ef;
  color: #8c3328;
}

.poll-archive {
  margin-top: 46px;
}

.poll-archive-heading {
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid #cdb998;
}

.poll-sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #584a39;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
}

.poll-sort-control select {
  min-height: 36px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #cbb99b;
  border-radius: 7px;
  background: #fffaf1;
  color: #263b4f;
  font: inherit;
}

.poll-results-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d9c8ac;
  border-radius: 12px;
  background: rgb(255 250 241 / 94%);
  box-shadow: 0 5px 16px rgb(87 57 25 / 7%);
  scrollbar-width: thin;
  background-image: url("../resources/bg-card.jpg");
}

.poll-results-wrap:focus-visible {
  outline: 3px solid #b88a3b;
  outline-offset: 3px;
}

.poll-results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.poll-results-table th,
.poll-results-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e5d7c1;
  vertical-align: middle;
}

.poll-results-table th {
  color: #6b5131;
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.poll-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.poll-result-mobile-label {
  display: none;
}

.poll-result-title {
  display: flex;
  min-width: 320px;
  align-items: center;
  gap: 12px;
}

.poll-result-title img {
  width: 200px;
  height: 135px;
  flex: 0 0 200px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  vertical-align: middle;
}

.poll-result-title strong {
  display: block;
  min-width: 0;
  flex: 1;
  color: #18314a;
  font-family: 'Merienda', cursive;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.poll-result-total {
  color: #263d2d;
  font-weight: 700;
  white-space: nowrap;
}

.poll-result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
  font-family: 'Nunito', sans-serif;
}

.poll-result-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.poll-result-meta-item > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: #6b5131;
}

.poll-result-options {
  display: grid;
  min-width: 220px;
  gap: 7px;
}

.poll-result-option-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344735;
  font-family: 'Nunito', sans-serif;
  font-size: .86rem;
}

.poll-result-option-label strong {
  color: #354c32;
  white-space: nowrap;
}

.poll-result-bar {
  height: 18px;
  overflow: hidden;
  border-radius: 5px;
  background: #e8dece;
}

.poll-result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #376f3e, #8b9b52);
}

.poll-winner {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 190px;
  min-height: 82px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-inline: auto;
  padding: 8px 14px 10px;
  border-radius: 8px;
  background: url("../resources/ankety/vintage.png") center / 100% 100% no-repeat;
  color: #704817;
  font-family: var(--font-serif);
  font-size: .85rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
}

.poll-winner > img {
  display: block;
  width: 32px;
  height: auto;
  margin: -18px auto 4px;
}

.poll-winner > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 28px);
  display: block;
  overflow-wrap: anywhere;
  transform: translate(-50%, -50%);
  text-align: center;
}

@media (max-width: 900px) {
  .poll-results-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .poll-results-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  .poll-results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .poll-results-table tbody {
    display: grid;
    gap: 14px;
  }

  .poll-results-table tr {
    display: grid;
    min-width: 0;
    padding: 14px;
    border: 1px solid #d9c8ac;
    border-radius: 12px;
    background: rgb(255 250 241 / 96%);
    box-shadow: 0 5px 16px rgb(87 57 25 / 7%);
    background-image: url("../resources/bg-card.jpg");
  }

  .poll-results-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .poll-results-table tbody tr td + td {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5d7c1;
  }

  .poll-result-title {
    min-width: 0;
    gap: 12px;
  }

  .poll-result-title img {
    width: 86px;
    height: 70px;
    flex-basis: 86px;
  }

  .poll-result-title strong { font-size: 1.02rem; }
  .poll-result-mobile-label {
    display: block;
    margin-bottom: 5px;
    color: #6b5131;
    font-family: 'Nunito', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .poll-result-meta {
    align-items: flex-start;
    gap: 4px;
    text-align: left;
  }

  .poll-result-total { white-space: normal; }
  .poll-result-options { min-width: 0; }
  .poll-result-option-label { gap: 8px; font-size: .8rem; }
  .poll-result-bar { height: 16px; }

  .poll-winner {
    position: relative;
    aspect-ratio: 100 / 61;
    max-width: 320px;
    min-height: 0;
    background-size: 100% 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-inline: auto;
    padding: 8px 14px;
    font-size: .86rem;
    text-align: left;
  }

  .poll-winner > img {
    display: none;
  }

  .poll-winner > span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 28px);
    max-width: none;
    text-align: center;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .poll-winner { max-width: 260px; }
}

@media (max-width: 720px) {
  .poll-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .poll-section-note {
    text-align: left;
  }

  .poll-options {
    grid-template-columns: 1fr;
  }

  .poll-options--two {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poll-archive-heading {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .poll-current-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .poll-current-period {
    width: 100%;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .polls-page {
    margin-top: 20px;
  }

  .poll-current-card {
    padding: 24px 12px 14px;
  }

  .poll-current-ribbon {
    top: -17px;
    width: 145px;
  }

  .poll-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .poll-option {
    display: grid;
    grid-template-columns: 141px minmax(0, 1fr);
    align-items: center;
    gap: 4px 11px;
    text-align: left;
  }

  .poll-option-image {
    grid-row: span 2;
    width: 132px;
    height: 117px;
    aspect-ratio: auto;
  }

  .poll-option h4 {
    margin: 0;
  }

  .poll-vote-button {
    width: 100%;
    justify-self: start;
    align-self: stretch;
  }

  .poll-archive-heading {
    flex-direction: column;
  }

  .poll-sort-control {
    width: 100%;
    justify-content: space-between;
  }

  .poll-sort-control select {
    flex: 1;
    max-width: 200px;
  }
}

/* ==========================================================================
   HORNÍ NAVIGACE (App Bar)
   ========================================================================== */
.app-bar {
  background: linear-gradient(
    to bottom,
    rgba(5, 26, 41, 1) 0%,
    rgba(5, 26, 41, 1) 66%,
    rgba(5, 26, 41, 0) 100%
  );

  backdrop-filter: blur(5px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.app-bar.mini {
  background-color: rgb(5, 26, 41);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: 'Merienda', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-icon {
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
}

.desktop-nav {
  font-family: 'Nunito', sans-serif;
  display: none;
  gap: 24px;
}

.desktop-nav .nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.9;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.desktop-nav .nav-link:hover {
  color: var(--color-gold);
  opacity: 1;
}

.desktop-nav .nav-link--account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.desktop-nav .nav-link--account.is-signed-in {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  opacity: 1;
}

.desktop-nav .nav-link__signed-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(52, 118, 75, 0.3);
  color: #d8f0db;
  font-size: 0.58rem;
  letter-spacing: 0;
}

.desktop-nav .nav-link--account.is-signed-in:hover,
.desktop-nav .nav-link--account.is-signed-in:focus-visible {
  color: var(--color-gold);
  opacity: 1;
}

.desktop-nav .nav-link--account.is-signed-in:hover .nav-link__signed-status,
.desktop-nav .nav-link--account.is-signed-in:focus-visible .nav-link__signed-status {
  background: rgba(213, 170, 90, 0.2);
  color: #fff1c8;
}

.desktop-nav .nav-link--account.is-signed-in:hover .nav-link__signed-indicator,
.desktop-nav .nav-link--account.is-signed-in:focus-visible .nav-link__signed-indicator {
  background: #4a9b5b;
}

.desktop-nav .nav-link__signed-indicator {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #34764b;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
}

.header-actions {
  display: flex;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-menu-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  line-height: 1;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

@media (max-width: 899px) {
  .desktop-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    visibility: hidden;
    background: #051a29;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      max-height 260ms ease,
      padding 260ms ease,
      opacity 220ms ease,
      transform 260ms ease,
      visibility 0s linear 260ms;
  }

  .desktop-nav.is-open {
    max-height: 320px;
    padding: 8px 24px 16px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .desktop-nav .nav-link {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .desktop-nav .nav-link:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   HERO SEKCIE - VÁNOCE VESNICE (S POZADÍM theme.png)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 520px;
  background: url('../resources/ultra-night.png') center top / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px 24px;
  color: #FFFFFF;
  margin: auto;
  max-width: 2660px;
}

.hero-content {
  max-width: 420px;
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding-top: 28px;
  padding-right: 34px;
  padding-bottom: 30px;
  margin-left: calc(max(0px, (100vw - 1600px) / 2));
}

.hero-content::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -18px -24px -18px -12px;
  border-radius: 22px;
  background: rgba(7, 27, 55, 0.43);
  box-shadow: 0 12px 34px rgba(3, 17, 38, 0.16);
  filter: blur(14px);
  pointer-events: none;
}

.hero-title {
  font-family: 'Merienda', cursive;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  opacity: 0.95;
}

/* Hotspoty (Interaktivní domky) */
.village-hotspots {
  display: none; /* Zobrazuje se na desktopu */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  background-position: top left;
  color: var(--color-navy);
  padding: 8px 14px 8px 38px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 3;
  pointer-events: auto;
}

.hotspot:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-hover);
}

.hotspot:hover .hs-text strong,
.hotspot:focus-visible .hs-text strong {
  color: var(--color-navy);
}

.hs-icon {
  position: absolute;
  left: -24px;
  top: 50%;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 3px 8px rgba(14, 42, 71, 0.22);
  z-index: 1;
}

.hs-icon .winter-icon,
.hs-icon .winter-icon-2 {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.hs-icon .winter-icon {
  background-size: 600% 400%;
}

.hs-icon .winter-icon-2 {
  background-size: 300% 200%;
}

.hs-icon .winter-icon.icon-01 { background-position: 1% 4%; }
.hs-icon .winter-icon.icon-13 { background-position: 1.5% 66.6667%; }
.hs-icon .winter-icon.icon-24 { background-position: 97% 97%; }
.hs-icon .winter-icon-2.icon2-01 { background-position: 2% 4%; }
.hs-icon .winter-icon-2.icon2-02 { background-position: 49% 3%; }
.hs-icon .winter-icon-2.icon2-04 { background-position: 2% 95%; }

.hs-text { display: flex; flex-direction: column; line-height: 1.1; }
.hs-text strong { font-size: 0.85rem; font-family: 'Nunito', sans-serif;}
.hs-text small { font-size: 0.7rem; color: #666; }

/* Pozice hotspotů podle ilustrace na desktopu */
.hs-kostel { top: 22%; right: 28%; }
.hs-naves { top: 62%; right: 37%; }
.hs-pekarna { top: 46%; right: 60%; z-index: 4; }
.hs-chalupa { top: 77%; left: 20%; }
.hs-kramek { top: 51%; right: 13%; }
.hs-les { top: 78%; right: 13%; }

/* ==========================================================================
   TLAČÍTKA DESIGN SYSTÉMU
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-red);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.3);
}

.btn-dark-green {
  background-color: var(--color-dark-green);
  color: #FFFFFF;
}

.btn:hover {
  opacity: 0.9;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   KARTY & OBSAH
   ========================================================================== */

.main-content {
  max-width: 1600px;
  margin: 80px auto;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-navy);
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-gold);
}

.breadcrumb span[aria-hidden="true"] {
  color: var(--color-navy);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.breadcrumb [aria-current="page"] {
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.homepage-poll-card {
  grid-column: span 2;
  align-items: center;
  gap: 24px;
}

.homepage-poll-card .card-body {
  margin-left: 0;
  align-self: flex-start;
}

.homepage-poll-deadline {
  margin: 0 0 18px;
  color: #52614c;
  font-weight: 600;
}

.homepage-poll-image {
  width: min(36%, 20rem);
  max-height: 250px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.card {
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  background-position: top left;
  border: 2px solid #e2cdb0;
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  /*align-items: center;*/
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.card.dark {
  background-image: url("../resources/bg-card-dark.jpg");
}

.card.light {
  background-image: url("../resources/bg-card.jpg");
}

.card-special {
  background-image: url("../resources/bg-card-special.jpg");
  background-repeat: repeat;
  background-position: top left;
  border: 2px solid #e2cdb0;
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.card-body {
  width: 75%;
  flex: 1;
  margin-right: 20px;
  margin-left: 20px;
}

.world-card-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}

.card-image {
  width: min(34%, 20rem);
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}

@media (max-width: 700px) {
  .card:has(> .card-image) {
    flex-direction: column;
    align-items: stretch;
  }

  .card-image {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 16px;
  }

  .card-image + .card-body {
    width: auto;
    margin: 0;
  }
}

.carol-history-grid > .card {
  display: flow-root;
}

.carol-history-grid .card-body {
  width: auto;
  margin: 0;
}

.carol-history-grid > .card > .world-card-image {
  float: right;
  margin: 0 0 16px 24px;
}

.zvyky-image {
  display: block;
  float: right;
  width: clamp(230px, 26vw, 350px);
  height: auto;
  object-fit: contain;
}

.card h2.card-label {
  font-family: 'Merienda', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  display: block;
}

.card .card-label {
  font-family: 'Merienda', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  display: block;
}

.card .card-label-main {
  font-family: 'Merienda', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.card-special .card-label {
  font-family: 'Merienda', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: block;
}

.card .card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-special .card-title {
  color: #fcfcfc;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card .card-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 16px;
}

.card .card-body ul,
.card .card-body table {
  font-size: 1rem;
  color: #555;
  margin-bottom: 16px;
}

.card .card-body .card-illustration {
  display: block;
  width: 75%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}

@media (max-width: 800px) {
  .card .card-body .card-illustration {
    width: 100%;
  }
}

.card .card-body ul {
  padding-left: 1.5rem;
}

.card .card-body table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.card .card-body th,
.card .card-body td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.card-special .card-text {
  font-size: 1rem;
  color: #fcfcfc;
  margin-bottom: 16px;
}

.calendar-illu .calendar-number {
  background: #FFF;
  border: 2px solid #D2B48C;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.card-illu-svice {
  background-image: url("../resources/svice-small.png");
  background-repeat: no-repeat;
  width: 140px;
  height: 185px;
  flex: 0 0 140px;
  background-size: contain;
  background-position: center;
}

.--small {
  height: 74.5px;
  flex-basis: 74px;
}

.card-illu-pernicky {
  background-image: url("../resources/pernicky-small.png");
  background-repeat: no-repeat;
  width: 150px;
  flex: 0 0 150px;
  background-size: contain;
  background-position: bottom;
}

.card-illu-quiz {
  display: block;
  width: 150px;
  height: 185px;
  flex: 0 0 150px;
  object-fit: contain;
  object-position: center bottom;
}

/* Kategorie */
.explore-section {
  margin: 40px 0;
}

.section-title {
  font-family: 'Merienda', cursive;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.section-title-lined {
  font-family: 'Merienda', cursive;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--color-navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-title-lined::before,
.section-title-lined::after {
  width: clamp(32px, 8vw, 100px);
  height: 1px;
  background: rgba(186, 138, 43, 0.5);
  content: '';
}

.content-library {
  margin: 48px 0 40px;
}

.content-library + .content-library {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(186, 138, 43, 0.28);
}

.content-tiles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.content-tile-separator {
  display: flex;
  flex: 0 0 clamp(34px, 4vw, 58px);
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.content-tile-separator img {
  display: block;
  width: min(100%, 58px);
  height: auto;
}

.content-tile {
  display: flex;
  min-width: 180px;
  min-height: 280px;
  flex: 0 0 clamp(180px, 15vw, 208px);
  flex-direction: column;
  align-items: center;
  padding: 10px 12px 14px;
  overflow: hidden;
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  background-position: top left;
  border: 1px solid rgba(186, 138, 43, 0.2);
  border-radius: 10px;
  color: var(--color-navy);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-tile.dark {
  background-image: url("../resources/bg-card-dark.jpg");
}

.content-tile:hover,
.content-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.content-tile:hover .content-tile-title,
.content-tile:focus-visible .content-tile-title,
.content-tile:hover .content-tile-link,
.content-tile:focus-visible .content-tile-link {
  color: var(--color-navy);
}

.content-tile img {
  display: block;
  width: 100%;
  height: 150px;
  flex: 0 0 150px;
  object-fit: contain;
}

.content-tile-icon {
  display: block;
  width: 100%;
  height: 150px;
  flex: 0 0 150px;
}

img.satured {
  filter: blur(0.1px) saturate(0.80);
}

.content-tile h3 {
  margin: 4px 0 6px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.2;
}

.content-tile-title.is-hidden {
  display: none;
}

.content-tile p {
  max-width: 190px;
  margin-top: 12px;
  color: #444;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.content-tile-link {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-tile-link span {
  margin-left: 6px;
  font-size: 1.2em;
}

/* Úvodní banner stránky s vůněmi a kořením. */
.scent-hero {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  padding: 28px 24px 22px;
  /*background: var(--color-paper) url("../resources/bg.jpg") center / 1600px auto repeat;*/
}

.scent-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  color: #102e24;
}

.scent-hero-content h1 {
  margin-bottom: 8px;
  font-family: 'Merienda', cursive;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}

.scent-hero-content p {
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .scent-hero-content p {
    max-width: 22rem;
    margin-right: auto;
    margin-left: auto;
  }
}



.scent-hero-decoration {
  position: absolute;
  z-index: 1;
  bottom: -2px;
  width: min(31vw, 430px);
  height: 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  pointer-events: none;
}

.scent-hero-decoration-vune-koreni-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/vune_koreni_bg_left.png");
  filter: blur(0.1px) saturate(0.75);
}

.scent-hero-decoration-vune-koreni-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/vune_koreni_bg_right.png");
  filter: blur(0.1px) saturate(0.75);
}

.scent-hero-decoration-v-jinych-zemich-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/v_jinych_zemich_bg_right.png");
  filter: blur(0.3px) saturate(0.75);
}

.scent-hero-decoration-v-jinych-zemich-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/v_jinych_zemich_bg_left.png");
  filter: blur(0.3px) saturate(0.75);
}

.scent-hero-decoration-pohadky-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/pohadky_pribehy/pohadky_basnicky_bg_left.png");
  filter: blur(0.3px) saturate(0.75);
  width: min(31vw, 480px);
}

.scent-hero-decoration-pohadky-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/pohadky_pribehy/pohadky_basnicky_bg_right.png");
  filter: blur(0.3px) saturate(0.75);
  width: min(31vw, 480px);
}

.scent-hero-decoration-pohadka-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/pohadky_pribehy/pohadky_bg_left.png");
  filter: blur(0.3px) saturate(0.75);
}

.scent-hero-decoration-pohadka-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/pohadky_pribehy/pohadky_bg_right.png");
  filter: blur(0.3px) saturate(0.75);
}

.scent-hero-decoration-horoskop-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/horoskop_left_bg.png");
  filter: blur(0.3px) saturate(0.65);
}

.scent-hero-decoration-horoskop-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/horoskop_right_bg.png");
  filter: blur(0.3px) saturate(0.65);
}

.scent-hero-decoration-poznej-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/poznej_bg_left.png");
  filter: blur(0.1px) saturate(0.75);
}

.scent-hero-decoration-poznej-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/poznej_bg_right.png");
  filter: blur(0.1px) saturate(0.75);
}

.scent-hero-decoration-prozij-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/prozij_vanoce_bg_left.png");
  filter: blur(0.3px) saturate(0.65);
}

.scent-hero-decoration-prozij-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/prozij_vanoce_bg_right.png");
  filter: blur(0.3px) saturate(0.65);
}

.scent-hero-decoration-recepty-right {
  right: 0;
  background-position: bottom right;
  background-image: url("../resources/recepty-bg-right.png");
  filter: blur(0.5px) saturate(0.75);
}

.scent-hero-decoration-recepty-left {
  left: 0;
  background-position: bottom left;
  background-image: url("../resources/recepty-bg-left.png");
  filter: blur(0.5px) saturate(0.75);
}

@media (max-width: 899px) {
  .scent-hero-content p br {
    display: none;
  }
}

@media (max-width: 700px) {
  .scent-hero {
    min-height: 250px;
    padding: 30px 20px;
  }

  .scent-hero-content h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .scent-hero-content p {
    font-size: 0.95rem;
    line-height: 1.45;
    border-radius: 18px;
    padding: 0.65rem 0.85rem;
    
  }

  .scent-hero-decoration {
    width: 42vw;
    opacity: 0.30;
  }
}

.categories-grid,
.categories-grid-5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-item {
  background-image: url("../resources/bg-card.jpg");
    background-repeat: repeat;
    background-position: top left;
  border: 1px solid rgba(186, 138, 43, 0.2);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-item:hover span,
.category-item:focus-visible span {
  color: var(--color-navy);
}

.category-item span {
  display: block;
  margin-top: 5px;
}

.category-item span.title {
  font-size: 1.2rem;
  display: block;
  margin-top: 5px;
}

.category-item p {
  margin-top: 12px;
  color: #444;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin-right: 6px;
  margin-left: 6px;
  text-align: justify;
}

.explore-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.explore-cards + .categories-grid {
  margin-top: 24px;
}

.explore-card {
  position: relative;
  display: block;
  aspect-ratio: 1.65;
  overflow: hidden;
  border: 1px solid rgba(186, 138, 43, 0.2);
  border-radius: var(--radius-card);
  background: var(--color-red) url("../resources/bg-red.jpg") center / cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.explore-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.explore-card:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 4px;
}

.explore-card__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.explore-card__image::before {
  content: "";
  position: absolute;
  top: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  left: 50%;
  background-image: url("../resources/rozcestnik.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  transform: translateX(-50%);
  filter: blur(0.2px) saturate(0.70);
}

.explore-card__image--poznej::before { background-position: 0 center; }
.explore-card__image--prozij::before { background-position: 50% center; }
.explore-card__image--ochutnej::before { background-position: 100% center; }

.cat-thumb {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

/* Velký adventní panel s ilustrací ukotvenou u spodního okraje. */
.calendar-panel-info {
  position: relative;
  min-height: 275px;/*todo*/
  overflow: hidden;
  background-repeat: no-repeat, repeat;
  background-position: right bottom, top left;
  background-size: auto 100%, auto;
  align-items: flex-start;
  isolation: isolate;
  padding: 32px;
}

.calendar-panel-info.bg1 {
  background-image: url("../resources/advent_cal_1.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg2 {
  background-image: url("../resources/advent_cal_2.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg2::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.75);
}

.calendar-panel-info.bg3 {
  background-image: url("../resources/advent_cal_3.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg3::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.75);
}

.calendar-panel-info.bg4 {
  background-image: url("../resources/advent_cal_4.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg4::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.75);
}

.calendar-panel-info.bg5 {
  background-image: url("../resources/advent_cal_5.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg5::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.75);
}

.calendar-panel-info.bg6 {
  background-image: url("../resources/advent_cal_6.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg6::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.85);
}

.calendar-panel-info.bg7 {
  background-image: url("../resources/advent_cal_7.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg7::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.75);
}

.calendar-panel-info.bg8 {
  background-image: url("../resources/advent_cal_8.png"), url("../resources/bg-card.jpg");
}

.calendar-panel-info.bg8::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(0.1px) saturate(0.65);
}

.calendar-panel-info-content {
  position: relative;
  z-index: 1;
  width: min(58%, 680px);
  margin-left: clamp(170px, 27%, 360px);
  padding-top: 12px;
}

.calendar-panel-info .card-label {
  margin-bottom: 12px;
}

.calendar-panel-info .card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.calendar-panel-info .card-text {
  margin-right: clamp(170px, 31%, 245px);
}

.calendar-day-card {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 10px;
  width: clamp(155px, 20vw, 235px);
  aspect-ratio: 380 / 388;
  background: url("../resources/big_calendar.png") center / contain no-repeat;
}

.calendar-day-number {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-56%, 0%);
  color: var(--color-red);
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
}

/* Karta s plnou sirkou */
.full-width-card {
  width: 100%;
  grid-column: 1 / -1;
  flex: 0 0 100%;
  padding-bottom: 20px;
}

.live-tree-benefits {
  display: grid;
  grid-template-columns: minmax(145px, 185px) 1fr;
  align-items: center;
}

.live-tree-benefits-tree {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.live-tree-benefits-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.live-tree-benefit {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.live-tree-benefit + .live-tree-benefit {
  border-left: 1px solid rgba(117, 82, 39, 0.2);
  padding-left: 12px;
}

.live-tree-benefit img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.live-tree-benefit h3 {
  margin: 0 0 3px;
  color: #1b2417;
  font-family: 'Merienda', cursive;
  font-size: clamp(0.98rem, 1.2vw, 1rem);
  line-height: 1.15;
}

@media (max-width: 1124px) {
  .live-tree-benefits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-tree-benefit:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .live-tree-benefits {
    grid-template-columns: 110px 1fr;
  }

  .live-tree-benefits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-tree-benefit:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .live-tree-benefits {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .live-tree-benefit h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .live-tree-benefits-tree {
    width: 130px;
    margin: 0 auto;
  }

  .live-tree-benefits-list {
    grid-template-columns: 1fr;
  }

  .live-tree-benefit,
  .live-tree-benefit:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .live-tree-benefit + .live-tree-benefit {
    border-left: 0;
    padding-left: 0;
  }
}

/* Sdílený banner pro vůně i koření. */
.feature-card {
  position: relative;
  min-height: 265px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 28px clamp(24px, 4vw, 52px);
  background: var(--color-paper) url("../resources/bg.jpg") center / 1600px auto repeat;
}

.feature-card-content {
  position: relative;
  z-index: 1;
  width: min(38%, 5500px);
  min-width: 0;
  margin-right: 0;
}

.feature-card .card-label-main {
  color: #102e24;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 1.05;
  margin-bottom: 6px;
}

.feature-card .card-label {
  max-width: 500px;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  line-height: 1.2;
}

.feature-card .card-text {
  max-width: clamp(250px, 500px, 500px);
  font-size: clamp(0.89rem, 1.25vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
}

.feature-card-image {
  position: absolute;
  z-index: 0;
  right: -1%;
  bottom: -3%;
  width: min(55%, 900px);
  height: 108%;
  object-fit: contain;
  object-position: right center;
}

.feature-card-image.satur75 {
  filter: blur(0.1px) saturate(0.75);
}

.feature-card-image.satur85 {
  filter: blur(0.1px) saturate(0.85);
}

@media (max-width: 700px) {
  .feature-card {
    min-height: 430px;
    align-items: flex-start;
    padding: 30px 22px 0;
  }

  .feature-card-content {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 auto;
  }

  .feature-card .card-label-main {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .feature-card .card-text {
    font-size: 0.88rem;
  }

  .feature-card-image {
    right: -16%;
    bottom: -4%;
    width: 130%;
    height: 58%;
    object-position: center bottom;
  }

  .feature-card-image.opacity {
    opacity: 0.30;
  }

  .feature-card-image.vune {
    bottom: -5%;
    height: 54%;
}

  .feature-card-break {
    display: none;
  }
}

.full-width-card.inspiration-card > .card {
  align-items: center;
}

.full-width-card.inspiration-card .card-body {
  display: grid;
  width: auto;
  margin-right: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: start;
}

.full-width-card.inspiration-card .card-title,
.full-width-card.inspiration-card .card-text {
  grid-column: 1;
}

.full-width-card.inspiration-card .card-body .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.calendar-card {
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  border: 2px solid #e2cdb0;
  border-radius: var(--radius-card);
  padding: 28px 20px 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.calendar-card-header {
  max-width: 680px;
  margin: 0 auto 12px;
  text-align: center;
}

.calendar-card-header .card-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Merienda', cursive;
  font-size: 1.4rem;
}

.calendar-card-header .card-title {
  margin-bottom: 8px;
}

.calendar-card-header .card-text {
  margin-bottom: 0;
}

.advent-calendar-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin: 0 auto;
}

.advent-calendar-grid .advent-calendar-tile {
  position: relative;
  flex: 0 0 104px;
  height: 138px;
  margin: 0 2px;
  border: 2px solid #ddb680;
  border-radius: 12px;
  overflow: hidden;
  background: url("../resources/bg-yellow.png") repeat;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.advent-calendar-grid .advent-calendar-tile.is-opened {
  border-color: #568810;
  background-image: url("../resources/bg-light-green.png");
}

.advent-calendar-grid .advent-calendar-tile.is-opened:hover,
.advent-calendar-grid .advent-calendar-tile.is-opened:focus-visible {
  filter: brightness(1.06);
  transform: scale(1.05);
}

.advent-calendar-grid .advent-calendar-tile .advent-calendar {
  position: absolute;
  top: 50%;
  left: 51%;
  display: block;
  width: 132px;
  height: 216px;
  scale: 1;
  transform: translate(-50%, -50%) scale(0.58);
  transform-origin: center;
}

@media (max-width: 1150px) {
  .advent-calendar-grid {
    max-width: 850px;
  }
}

@media (max-width: 600px) {
  .calendar-card {
    padding-inline: 8px;
  }

  .advent-calendar-grid {
    max-width: 570px;
  }
}

/* Pomerova karty 1:1 */
.one-one-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

.one-one-grid > .card {
  height: auto;
}  

.one-one-grid.special-spacing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

.one-one-grid.special-spacing > .card {
  height: auto;
} 
.scent-card {
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  text-align: center;
}

.scent-card.countdown-card {
  display: flex;
  grid-template-columns: none;
}

.scent-card-image {
  display: block;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 1536 / 768;
  object-fit: contain;
  margin: 0 auto 2px;
}

.scent-card-image.satur75 {
  filter: blur(0.1px) saturate(0.75);
}

.scent-card-image.satur85 {
  filter: blur(0.1px) saturate(0.85);
}

.scent-card-content {
  display: flex;
  width: min(100%, 520px);
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.scent-card .card-label {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.scent-card .card-text {
  max-width: 440px;
  font-size: 1rem;
}

.scent-card .btn {
  min-width: 220px;
  margin-top: auto;
  text-transform: uppercase;
}

.scent-card .btn span {
  margin-left: 12px;
  font-size: 1.3em;
  line-height: 0;
}

/* Pomerova karty 3:2 a 2:3 */
.three-two-grid,
.two-three-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

.three-two-grid > .card,
.two-three-grid > .card {
  height: auto;
}

.countdown-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
}

.countdown-card .card-label {
  text-align: center;
}

.countdown-card-body {
  width: auto;
  margin: 0;
}

.countdown-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

.countdown-unit {
  font-family: 'Merienda', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  display: block;
  text-align: center;
}

.digit {
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  background-position: top left;
  border: 2px solid #D2B48C;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Patka */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding: 18px 12px 14px;
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  background-position: top left;
  border: 1px solid rgba(124, 89, 46, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  gap: 14px;
  padding: 8px 8px;
  color: var(--color-navy);
}

.summary-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.summary-item .summary-icon .winter-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: block;
  transform: scale(0.78);
  transform-origin: center;
}

.summary-icon--gift,
.summary-icon--star {
  scale: 1.35;
}

.summary-icon--tree {
  scale: 1.25;
}

.summary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.summary-label {
  font-family: 'Merienda', cursive;
  font-size: 0.82rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.summary-value {
  font-family: 'Merienda', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.summary-meta {
  font-size: 0.7rem;
  opacity: 0.82;
  line-height: 1.2;
}

.site-footer {
  font-family: 'Nunito', sans-serif;
  background-image: url("../resources/bg-card-special.jpg");
  background-repeat: repeat;
  background-position: top left;
  color: #FFFFFF;
  padding: 20px;
  margin-top: 40px;
}

.footer-highlights {
  max-width: 1550px;
  margin: 0 auto;
}

.footer-features-title {
  margin: 0 0 18px;
  color: inherit;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
}

.footer-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
}

.feature-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.footer-meta {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-meta p {
  margin: 0;
}

.toplist-counter--hidden {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toplist-counter--hidden img {
  display: block;
  width: 1px;
  height: 1px;
}

.footer-meta a {
  color: inherit;
}

.footer-meta__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.footer-admin-trigger {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: default;
}

.footer-admin-trigger img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feat-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex: 0 0 38px;
  overflow: hidden;
  vertical-align: middle;
}

.feat-icon .winter-icon {
  display: block;
  flex: 0 0 76px;
  transform: scale(0.5);
  transform-origin: top left;
}

@media (max-width: 1100px) {
  .footer-features {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .footer-features .feature-item {
    grid-column: span 2;
  }

  .footer-features .feature-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .footer-features .feature-item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 640px) {
  .footer-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .footer-features .feature-item {
    grid-column: 1 / -1;
  }

  .footer-features .feature-item:nth-child(4),
  .footer-features .feature-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .footer-features-title {
    text-align: left;
  }
}

/* Mobilní spodní lišta (Material Bottom Navigation) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #17314b;
  background-image: url("../resources/bg-card-special.jpg");
  background-repeat: repeat;
  background-position: top left;
  display: flex;
  padding: 8px 4px;
  z-index: 1000;
  font-family: 'Nunito', sans-serif;
}

.bottom-nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2px;
  text-align: center;
}

.bottom-nav-item .nav-icon {
  font-size: 1.2rem;
  line-height: 1.1;
}

.bottom-nav-item .nav-label {
  max-width: 100%;
  font-size: clamp(0.7rem, 3.2vw, 0.8rem);
  line-height: 1.15;
  text-align: center;
}

.bottom-nav-item.active {
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.bottom-nav-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
  border-radius: 8px;
}

.bottom-nav-item__signed-indicator {
  position: absolute;
  top: 0;
  left: calc(50% + 5px);
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid var(--color-dark-green);
  border-radius: 50%;
  background: #69a76e;
  color: #fff;
  font: 800 0.62rem/1 'Nunito', sans-serif;
}

/* ==========================================================================
   RESPONZIVNÍ STRUKTURA (Tablet & Desktop)
   ========================================================================== */
@media (max-width: 1100px) {
  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .full-width-card.inspiration-card > .card {
    flex-direction: column;
  }

  .full-width-card.inspiration-card .card-body {
    width: 100%;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .full-width-card.inspiration-card .card-body .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .world-card-image {
    width: 30%;
  }

  .carol-history-grid > .card > .world-card-image {
    float: none;
    width: 100% !important;
    margin: 0 auto 16px;
  }
}

@media (max-width: 430px) {
  .summary-strip {
    grid-template-columns: 1fr;
  }
}

.gift-symbolism-card > .card-body {
  width: 100%;
  margin: 0;
}

.gift-symbolism-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  list-style: none;
}

.gift-symbol {
  display: flex;
  min-width: 0;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-left: 1px solid rgba(117, 82, 39, 0.2);
  text-align: center;
}

.gift-symbol:nth-child(8n + 1) {
  border-left: 0;
}

.gift-symbol img {
  width: 100%;
  max-width: 104px;
  height: 96px;
  margin-bottom: 6px;
  object-fit: contain;
}

.gift-symbol h3 {
  margin: 0;
  font-family: 'Merienda', cursive;
  font-size: 1rem;
  line-height: 1.3;
}

.gift-symbol p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .gift-symbolism-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gift-symbol:nth-child(4n + 1) {
    border-left: 0;
  }

  .gift-symbol:nth-child(n + 5) {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .gift-symbolism-card {
    padding: 14px;
  }

  .gift-symbolism-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-symbol:nth-child(2n + 1) {
    border-left: 0;
  }

  .gift-symbol:nth-child(n + 7) {
    border-bottom: 0;
  }

  .gift-symbol {
    min-height: 150px;
  }
}
@media (max-width: 599px) {
  .content-tile-separator {
    flex-basis: 100%;
    min-height: 34px;
  }

  .content-tile-separator img {
    width: 44px;
    transform: rotate(90deg);
  }
}

/* Kvíz */
.quiz-area {
  width: 100%;
  padding: 16px;
  border: 2px solid #e2cdb0;
  border-radius: var(--radius-card);
  background-image: url("../resources/bg-card.jpg");
  background-repeat: repeat;
  background-position: top left;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}

.quiz-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  margin-inline: 14px;
  color: var(--color-navy);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.quiz-progress-header strong {
  color: var(--color-dark-green);
}

.quiz-progress {
  height: 18px;
  margin: 0 14px 28px;
  overflow: hidden;
  background: #e2cfb2;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(14, 42, 71, 0.14);
}

.quiz-progress-fill {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--color-dark-green);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.quiz-question-card {
  display: flex;
  min-height: 430px;
  padding: 14px;
  flex-direction: column;
}

.quiz-question-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.quiz-question-layout--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.quiz-question-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin: 0;
}

.quiz-question-image {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 400px;
  object-fit: contain;
}

.quiz-question-content {
  min-width: 0;
}

.quiz-question-number,
.quiz-eyebrow {
  margin-bottom: 8px;
  color: var(--color-gold);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-question-title,
.quiz-result-title {
  margin-bottom: 24px;
  color: var(--color-navy);
  font-family: 'Lora', serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.2;
}

.quiz-answer-fieldset {
  min-width: 0;
  border: 0;
}

.quiz-answer-list {
  display: grid;
  gap: 12px;
}

.quiz-answer-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #e2cdb0;
  border-radius: 10px;
  background: rgba(255, 251, 242, 0.68);
  color: var(--color-navy);
  cursor: pointer;
  font-family: 'Lora', serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-answer-option:hover,
.quiz-answer-option:has(input:focus-visible) {
  border-color: var(--color-dark-green);
  box-shadow: 0 3px 10px rgba(46, 107, 63, 0.12);
}

.quiz-answer-option:has(input:checked) {
  border-color: rgba(46, 107, 63, 0.55);
  background: rgba(216, 230, 205, 0.72);
}

.quiz-answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quiz-answer-marker {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #a28d63;
  border-radius: 50%;
  background: #fffdf7;
}

.quiz-answer-option:has(input:checked) .quiz-answer-marker {
  border: 6px solid var(--color-dark-green);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.quiz-navigation-button {
  min-width: 236px;
  gap: 12px;
}

.quiz-navigation-button > span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  flex: 0 0 1.2em;
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-0.08em);
}

.quiz-navigation-button--previous {
  min-width: 260px;
  border: 1px solid #c49b5c;
  background: transparent;
  color: var(--color-navy);
}

.quiz-navigation-button--previous:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.quiz-form-error {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(198, 40, 40, 0.35);
  border-radius: 8px;
  background: rgba(198, 40, 40, 0.08);
  color: var(--color-red);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.quiz-result-card {
  display: block;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: clamp(28px, 5vw, 64px);
  text-align: center;
}

.quiz-result-title {
  margin-bottom: 12px;
}

.quiz-score {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
}

.quiz-score-detail {
  margin-bottom: 24px;
  color: #655e55;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.quiz-result-text {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--color-navy);
  font-family: 'Lora', serif;
  font-size: 1.2rem;
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

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

@media (max-width: 700px) {
  .quiz-progress-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .quiz-question-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quiz-question-figure {
    min-height: 0;
  }

  .quiz-question-image {
    max-height: 260px;
  }

  .quiz-navigation {
    flex-direction: column-reverse;
  }

  .quiz-navigation-button {
    width: 100%;
  }

  .quiz-result-actions {
    flex-direction: column;
  }

  .quiz-result-actions .btn {
    width: 100%;
  }
}

@media (max-width: 599px) {
  .content-tile {
    min-width: 0;
    flex-basis: calc(50% - 8px);
  }

  .explore-cards { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  .explore-card { aspect-ratio: 1; }

  .card-with-illu {
    display: flow-root;
  }

  .card-with-illu > .card-body {
    width: auto;
    margin: 0;
  }

  .card-illu-svice {
    float: left;
    width: clamp(72px, 26vw, 100px);
    height: 132px;
    margin: 0 12px 8px 0;
  }

  .card-illu-pernicky {
    float: right;
    width: clamp(80px, 28vw, 110px);
    height: 110px;
    margin: 0 0 8px 12px;
  }

  .homepage-poll-card {
    grid-column: auto;
    gap: 0;
  }

  .homepage-poll-image {
    float: right;
    width: clamp(88px, 30vw, 120px);
    max-height: 150px;
    margin: 0 0 10px 14px;
  }
}

@media (min-width: 600px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .one-one-grid.special-spacing {
    flex-direction: row;
  }
  .one-one-grid.special-spacing > .card {
    flex: 1 1 0;
  }
}

@media (min-width: 900px) {
  .desktop-nav { display: flex; align-items: center; }
  .mobile-menu-btn, .bottom-nav { display: none; }

  .card-with-illu > .card-body {
    order: 0;
  }

  .card-with-illu > .card-illu-pernicky,
  .card-with-illu > .homepage-poll-image {
    order: 1;
  }

  .card-with-illu > .card-illu-svice {
    order: -1;
  }

  .carol-youtube-card > .card-body {
    position: sticky;
    top: 16px;
    align-self: flex-start;
  }
  
  .hero-section { 
    min-height: 850px;
    top: 20px; 
  }
  .hero-title { font-size: 4.2rem; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
  .categories-grid-5 { grid-template-columns: repeat(5, 1fr); }
  .three-two-grid,
  .two-three-grid,
  .one-one-grid {
    flex-direction: row;
  }

  .three-two-grid > .card,
  .two-three-grid > .card,
  .one-one-grid > .card {
    flex: 1 1 0;
  }

  .calendar-panel-info {
    background-size: auto 175%, auto;
  }

  .calendar-panel-info-content {
    width: 100%;
    margin-left: clamp(170px, 23%, 245px);
  }

  .calendar-day-card {
    left: 12px;
    top: 12px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav .nav-link { font-size: 0.72rem; }
  .desktop-nav .nav-link--account.is-signed-in { gap: 4px; }
  .desktop-nav .nav-link__signed-status { padding: 2px 4px; font-size: 0.52rem; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .three-two-grid > .card:first-child {
     flex: 1.5 1 0; 
    }
  .three-two-grid > .card:last-child { flex: 1 1 0; }
  .two-three-grid > .card:first-child { flex: 1 1 0; }
  .two-three-grid > .card:last-child { flex: 1.5 1 0; }
}

@media (min-width: 1200px) {
  .village-hotspots { 
    display: block; 
    overflow: hidden;
    width: 1600px;
    left: 50%;
    transform: translateX(-50%);
  }
}


/* ==========================================================================
   Pranostiky slider
   ========================================================================== */
.proverb-card {
  width: 100%;
  min-height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 34px clamp(48px, 8vw, 85px) 75px;
  background: url("../resources/zvyky_tradice/lejstro.png") center / 100% 100% no-repeat;
  text-align: center;
}

.proverb-card .card-label {
  margin-bottom: 0px;
  margin-top: 6px;
}

.proverb-slider {
  display: grid;
  width: 100%;
  flex: 1;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 18px;
  align-content: center;
}

.proverb-text {
  max-width: 760px;
  margin: 0 auto;
  color: #4d2d16;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  align-content: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.proverb-text.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.proverb-arrow {
  width: 36px;
  border: 0;
  background: transparent;
  color: #6b3d18;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.proverb-arrow:hover,
.proverb-arrow:focus-visible {
  background: transparent;
  color: #3f210d;
  transform: scaleX(1.18);
}

@media (max-width: 700px) {

  .proverb-slider {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .proverb-arrow {
    width: 36px;
    font-size: 2.8rem;
  }
}


.carol-player {
  display: block;
  width: 100%;
  padding: 16px;
  background-image: url("../resources/bg-card.jpg");
}

.carol-player-header .card-label {
  font-family: 'Merienda', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  display: block;
}

.carol-info-tooltip {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  border: 1px solid var(--color-dark-green);
  border-radius: 50%;
  color: var(--color-dark-green);
  cursor: help;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.carol-info-tooltip-text {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 7px 9px;
  border-radius: 4px;
  background: var(--color-dark-green);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: transform 0.15s ease;
  visibility: hidden;
}

.carol-info-tooltip-text::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-top-color: var(--color-dark-green);
  content: '';
  transform: translateX(-50%);
}

.carol-info-tooltip:hover .carol-info-tooltip-text,
.carol-info-tooltip:focus .carol-info-tooltip-text {
  opacity: 1 !important;
  transform: translate(-50%, 0);
  visibility: visible;
}

.carol-player-header p {
  color: #555;
  margin-bottom: 16px;
}

.carol-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.carol-filter {
  padding: 6px 10px;
  border: 1px solid rgba(122, 79, 37, 0.3);
  border-radius: 5px;
  background: transparent;
  color: #1f1a15;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}

.carol-filter[aria-pressed="true"],
.carol-filter:hover,
.carol-filter:focus-visible {
  background: var(--color-dark-green);
  color: #fff;
}

.carol-filter:disabled {
  cursor: wait;
  opacity: 0.6;
}

.carol-list {
  margin-top: 8px;
  border-top: 1px solid rgba(122, 79, 37, 0.2);
}

.carol-list-message {
  margin: 16px 0;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
}

.carol-item {
  display: grid;
  min-height: 50px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(122, 79, 37, 0.2);
  margin-top: 6px;
}

.carol-icon {
  color: #392516;
  font-size: 1.7rem;
  line-height: 1;
}

.carol-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #1f1a15;
  line-height: 1.3;
}

.carol-info strong {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carol-video-icon {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  vertical-align: 0.05em;
}

.carol-info small {
  margin-top: 3px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.80rem;
}

.carol-play {
  min-width: 108px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: var(--color-dark-green);
  color: #fff;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.carol-play span {
  margin-left: 8px;
}

.carol-play:hover,
.carol-play:focus-visible {
  background: #214d2d;
}

.carol-play:disabled {
  cursor: wait;
  opacity: 0.7;
}

.carol-item.is-playing .carol-icon {
  color: var(--color-red);
}

.carol-controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(100px, 132px);
  align-items: center;
  gap: 8px;
  margin-left: 40px;
  padding-bottom: 8px;
}

.carol-progress,
.carol-volume {
  width: 100%;
  accent-color: var(--color-dark-green);
  cursor: pointer;
}

.carol-time {
  min-width: 72px;
  color: #555;
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  text-align: center;
  white-space: nowrap;
}

.carol-volume-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.carol-volume-control[hidden] {
  display: none;
}

.carol-youtube {
  grid-column: 1 / -1;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  margin: 4px auto 8px;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 2px 8px rgba(31, 26, 21, 0.16);
  overflow: hidden;
  pointer-events: none;
}

.carol-youtube[hidden] {
  display: none;
}

.carol-youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.carol-youtube-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.carol-youtube-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.carol-youtube-preview {
  display: flex;
  width: 100%;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #555;
  text-align: center;
}

.carol-youtube-preview-message {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
}

.carol-youtube-preview-title,
.carol-youtube-preview-empty {
  margin: 8px 0 0;
  color: #1f1a15;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.carol-youtube-preview-empty {
  color: #555;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
}

.carol-volume-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.carol-more {
  display: block;
  width: min(100%, 250px);
  margin: 12px auto 0;
  padding: 7px 10px;
  border: 1px solid rgba(122, 79, 37, 0.3);
  border-radius: 5px;
  color: #1f1a15;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.carol-more[hidden] {
  display: none;
}

.carol-more span {
  margin-left: 8px;
  font-size: 1.1rem;
}

@media (max-width: 430px) {
  .carol-player {
    padding: 12px 10px;
  }

  .carol-item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .carol-play {
    min-width: 94px;
    padding-inline: 6px;
    font-size: 0.52rem;
  }

  .carol-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: 30px;
  }

  .carol-volume-control {
    grid-column: 1 / -1;
  }
}

.aranze-ubrousku-image {
  display: block;
  width: 65%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .aranze-ubrousku-image {
    width: 100%;
  }
}
