:root {
  --navy: #20385f;
  --blue: #317bb8;
  --sky: #d9f0f6;
  --yellow: #ffc846;
  --cream: #fff8e8;
  --ink: #17233a;
  --rust: #b6583d;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
}

.navbar {
  background: rgba(255, 248, 232, .95);
  border-bottom: 1px solid rgba(32, 56, 95, .12);
  backdrop-filter: blur(12px);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--navy);
  font-family: "Bree Serif", serif;
  font-size: 1.5rem;
  line-height: .9;
}
.navbar-brand small {
  display: block;
  margin-top: .3rem;
  color: var(--blue);
  font-family: "Nunito Sans", sans-serif;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .22em;
}
.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.nav-link { color: var(--navy); font-weight: 800; }
.nav-link:hover { color: var(--blue); }
.navbar-toggler { border: 0; box-shadow: none !important; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 9.5rem 0 7.5rem;
  color: white;
  background: var(--blue);
}
.diamond-pattern {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-color: var(--blue);
  background-image:
    linear-gradient(135deg, white 25%, transparent 25%),
    linear-gradient(225deg, white 25%, transparent 25%),
    linear-gradient(45deg, white 25%, transparent 25%),
    linear-gradient(315deg, white 25%, var(--blue) 25%);
  background-position: 35px 0, 35px 0, 0 0, 0 0;
  background-size: 70px 70px;
}
.hero::after {
  position: absolute;
  top: 10%;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  border: 4rem solid rgba(255, 200, 70, .11);
  border-radius: 50%;
  content: "";
}
.eyebrow, .section-kicker {
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { color: var(--yellow); }
h1, h2, h3 { font-family: "Bree Serif", serif; }
h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: .8;
  letter-spacing: -.035em;
  text-shadow: 0 5px 0 rgba(23, 35, 58, .18);
}
h1 span {
  display: block;
  margin-bottom: .6rem;
  color: var(--yellow);
  font-family: "Nunito Sans", sans-serif;
  font-size: .25em;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.45rem;
  line-height: 1.7;
}
.date-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: .75rem 1.35rem .75rem .8rem;
  color: var(--navy);
  background: white;
  border-radius: 1rem;
  box-shadow: 10px 10px 0 var(--navy);
  transform: rotate(-1deg);
}
.date-number {
  display: grid;
  min-width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: .65rem;
  font-family: "Bree Serif", serif;
  font-size: 2.8rem;
  line-height: 1;
}
.date-copy strong, .date-copy span { display: block; }
.date-copy strong { font-size: 1.15rem; text-transform: uppercase; }
.date-copy span { color: #566075; font-weight: 700; }
.btn {
  padding: .9rem 1.4rem;
  border-radius: .65rem;
  font-weight: 900;
}
.btn-fest {
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--yellow);
  box-shadow: 5px 5px 0 var(--navy);
}
.btn-fest:hover, .btn-fest:focus {
  color: white;
  background: var(--rust);
  border-color: var(--rust);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--navy);
}
.poster-wrap {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}
.poster {
  border: .75rem solid white;
  border-radius: .5rem;
  box-shadow: 20px 24px 0 var(--navy), 0 30px 70px rgba(23,35,58,.35);
  transform: rotate(2.2deg);
}
.poster-sticker {
  position: absolute;
  right: -2rem;
  bottom: 10%;
  display: grid;
  width: 7rem;
  height: 7rem;
  place-content: center;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 50%;
  font-family: "Bree Serif", serif;
  font-size: 1.9rem;
  text-align: center;
  transform: rotate(-9deg);
}
.poster-sticker small { display: block; font-family: "Nunito Sans", sans-serif; font-size: .65rem; }
.hero-edge {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2.4rem;
  background: var(--cream);
  clip-path: polygon(0 55%, 4% 15%, 9% 65%, 14% 20%, 20% 72%, 25% 30%, 31% 80%, 37% 28%, 43% 73%, 49% 18%, 55% 67%, 61% 30%, 68% 78%, 74% 25%, 80% 70%, 86% 18%, 92% 72%, 100% 30%, 100% 100%, 0 100%);
}
.ticker { padding: 1.15rem 0; color: var(--navy); background: var(--yellow); overflow: hidden; }
.ticker-row { display: flex; justify-content: space-between; gap: 1rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ticker i { color: var(--rust); font-style: normal; }

.section { padding: 7rem 0; }
.section-kicker { color: var(--blue); font-size: .82rem; }
h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: .98; }
.section-intro { color: #596377; font-size: 1.1rem; line-height: 1.75; }
.program { position: relative; }
.feature-card {
  height: 100%;
  padding: 2rem;
  background: white;
  border: 2px solid var(--navy);
  border-radius: .85rem;
  box-shadow: 8px 8px 0 var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 12px 13px 0 var(--blue); }
.feature-icon { display: block; margin-bottom: 1.2rem; font-size: 4.8rem; }
.feature-no { color: var(--blue); font-weight: 900; letter-spacing: .15em; }
.feature-card h3 { font-size: 1.75rem; }
.feature-card p:last-child { margin: 0; color: #60687a; line-height: 1.7; }

.tickets { color: white; background: var(--navy); }
.ticket-shell {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 3px dashed rgba(255,255,255,.45);
  border-radius: 1.4rem;
}
.ticket-shell::before, .ticket-shell::after {
  position: absolute;
  top: 50%;
  width: 2.4rem;
  height: 4.8rem;
  background: var(--cream);
  content: "";
  transform: translateY(-50%);
}
.ticket-shell::before { left: -3px; border-radius: 0 3rem 3rem 0; }
.ticket-shell::after { right: -3px; border-radius: 3rem 0 0 3rem; }
.tickets h2 { color: white; }
.tickets p { max-width: 42rem; color: #d9e2f1; font-size: 1.12rem; line-height: 1.75; }
.price-list { background: var(--yellow); color: var(--navy); border-radius: .8rem; box-shadow: 10px 10px 0 var(--blue); transform: rotate(1deg); }
.price-list div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.7rem; }
.price-list div + div { border-top: 2px dashed rgba(32,56,95,.35); }
.price-list span { font-weight: 900; text-transform: uppercase; }
.price-list strong { font-family: "Bree Serif", serif; font-size: 2.25rem; white-space: nowrap; }

.location { background: white; }
.big-link { color: var(--blue); font-family: "Bree Serif", serif; font-size: clamp(1.7rem, 4vw, 3rem); text-decoration: none; }
.big-link:hover { color: var(--rust); }
footer { padding: 2.5rem 0; color: white; background: #152842; }
footer small { color: #bcc9dc; }
.back-top { color: var(--yellow); font-weight: 900; text-decoration: none; }

@media (max-width: 767.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .nav-item { width: 100%; }
  .hero { padding-top: 8rem; }
  h1 { font-size: clamp(3.7rem, 19vw, 5.4rem); }
  .hero-lead { font-size: 1.08rem; }
  .poster-wrap { max-width: 19rem; }
  .poster-sticker { right: -1rem; width: 5.8rem; height: 5.8rem; font-size: 1.45rem; }
  .ticker-row { animation: ticker 15s linear infinite; width: max-content; }
  .section { padding: 5rem 0; }
  .ticket-shell::before, .ticket-shell::after { display: none; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-row { animation: none; }
  .feature-card { transition: none; }
}


.oktoberfest-gallery {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 8rem;
    background:
        linear-gradient(rgba(217, 240, 246, 0.88),
                        rgba(255, 248, 232, 0.96)),
        repeating-linear-gradient(
            45deg,
            #ffffff 0,
            #ffffff 35px,
            #d9f0f6 35px,
            #d9f0f6 70px
        );
}

.oktoberfest-gallery::before {
    position: absolute;
    top: -130px;
    right: -130px;
    width: 320px;
    height: 320px;
    border: 65px solid rgba(49, 123, 184, 0.08);
    border-radius: 50%;
    content: "";
}

.gallery-kicker {
    margin-bottom: 0.8rem;
    color: #317bb8;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.oktoberfest-gallery h2 {
    margin-bottom: 1rem;
    color: #20385f;
}

.gallery-intro {
    max-width: 650px;
    margin: 0 auto;
    color: #596377;
    font-size: 1.1rem;
}

.photo-stack {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 1.5rem 2rem 3rem;
}

.photo-card {
    position: relative;
    width: 118%;
    margin: 0;
    padding: 0.55rem;
    background: #ffffff;
    border: 2px solid #20385f;
    border-radius: 0.65rem;
    box-shadow:
        8px 10px 0 #20385f,
        0 20px 35px rgba(23, 35, 58, 0.18);
    cursor: pointer;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.photo-card:nth-child(odd) {
    transform: rotate(-5deg);
}

.photo-card:nth-child(even) {
    transform: rotate(4deg) translateY(22px);
}

.photo-card:nth-child(3n) {
    transform: rotate(2deg) translateY(-14px);
}

/* Druhá řada se lehce překryje s první */
.photo-card:nth-child(n+6) {
    margin-top: -2rem;
}

/* Fotografie se navzájem překrývají */
.photo-card:not(:first-child) {
    margin-left: -12%;
}

.photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 5; /* fotografie budou vyšší */
    object-fit: cover;
    object-position: center;
    border-radius: 0.3rem;
    filter: saturate(0.88) contrast(0.96);
    transition: filter 0.35s ease;
}

/* Najetí myší nebo výběr klávesnicí */
.photo-card:hover,
.photo-card:focus {
    z-index: 20;
    outline: none;
    transform: translateY(-18px) rotate(0deg) scale(1.12);
    box-shadow:
        12px 14px 0 #ffc846,
        0 30px 60px rgba(23, 35, 58, 0.35);
}

.photo-card:hover img,
.photo-card:focus img {
    filter: saturate(1.08) contrast(1.03);
}

@media (max-width: 991.98px) {
    .photo-stack {
        grid-template-columns: repeat(3, 1fr);
        padding-inline: 1rem;
    }

    .photo-card:nth-child(n+4) {
        margin-top: -1rem;
    }
}

@media (max-width: 575.98px) {
    .oktoberfest-gallery {
        padding: 5rem 0;
    }

    .photo-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 2.5rem;
        padding: 0;
    }

    .photo-card {
        width: 105%;
        padding: 0.35rem;
        box-shadow:
            5px 6px 0 #20385f,
            0 12px 25px rgba(23, 35, 58, 0.16);
    }

    .photo-card:not(:first-child) {
        margin-left: -5%;
    }

    .photo-card:nth-child(n+3) {
        margin-top: -0.3rem;
    }

    .photo-card:hover,
    .photo-card:focus {
        transform: rotate(0deg) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-card,
    .photo-card img {
        transition: none;
    }
}