.logo-with-jubilee {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-with-jubilee .img-fluid {
  max-height: 92px;
  width: auto;
}

.jubilee-badge {
  width: auto;
  height: 92px;
  flex: 0 0 auto;
}

.jubilee-hero {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
  line-height: 0;
  /* bez transform/filter na kontenerze — psują ostrość img */
  transform: none;
  filter: none;
}

.jubilee-hero-photo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transform: none !important;
  filter: none !important;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.jubilee-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 10, 18, 0.58) 0%,
    rgba(12, 10, 18, 0.3) 28%,
    rgba(12, 10, 18, 0.08) 52%,
    rgba(12, 10, 18, 0) 100%
  );
  pointer-events: none;
}

.jubilee-ornament,
.jubilee-paths-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.jubilee-ribbon {
  position: absolute;
  height: 14px;
  border-radius: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 176, 0.15) 8%, #f6e2a4 28%, #d4a24a 62%, rgba(212, 162, 74, 0.15) 100%);
  box-shadow: 0 6px 14px rgba(120, 78, 16, 0.18);
}

.jubilee-ribbon-left {
  left: -6%;
  bottom: 16%;
  width: 46%;
  transform: rotate(-11deg);
}

.jubilee-ribbon-left::after,
.jubilee-ribbon-right::before {
  content: "";
  position: absolute;
  height: 8px;
  border-radius: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 210, 0.85), transparent);
}

.jubilee-ribbon-left::after {
  left: 18%;
  top: -16px;
  width: 42%;
  transform: rotate(-8deg);
}

.jubilee-ribbon-right {
  right: -8%;
  top: 18%;
  width: 34%;
  transform: rotate(16deg);
}

.jubilee-ribbon-right::before {
  right: 10%;
  bottom: -14px;
  width: 55%;
  transform: rotate(10deg);
}

.jubilee-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff8dc 0 30%, #e8c56a 31% 42%, transparent 43%);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
}

.jubilee-spark-1 { top: 18%; left: 38%; width: 18px; height: 18px; }
.jubilee-spark-2 { top: 62%; left: 46%; width: 10px; height: 10px; }
.jubilee-spark-3 { top: 22%; right: 8%; }
.jubilee-spark-4 { bottom: 18%; right: 28%; width: 8px; height: 8px; }

.jubilee-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 24px;
  line-height: normal;
}

.jubilee-kicker,
.jubilee-mark,
.jubilee-hero h1,
.jubilee-lead {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.jubilee-kicker {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.05;
}

.jubilee-mark {
  margin-top: 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #f3d78a;
}

.jubilee-hero h1 {
  margin-top: 6px;
  max-width: 14em;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.jubilee-lead {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 500;
}

.jubilee-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6e2a4 0%, #d4a24a 100%);
  color: #3a2a10;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(80, 50, 10, 0.22);
}

.jubilee-cta:hover,
.jubilee-cta:focus {
  color: #24180a;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe7b0 0%, #e0b45a 100%);
}

.jubilee-paths {
  position: relative;
  padding: 54px 0 18px;
  background: #fffdf9;
  overflow: hidden;
}

.jubilee-paths-title {
  margin-bottom: 28px;
  text-align: center;
}

.jubilee-paths-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 16px;
  color: #2a2158;
  font-size: 2rem;
  font-weight: 700;
}

.jubilee-paths-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: var(--color-gold);
  transform: translateX(-50%);
}

.jubilee-ribbon-side {
  top: 36px;
  width: 180px;
  opacity: 0.85;
}

.jubilee-ribbon-side-left {
  left: -40px;
  transform: rotate(-18deg);
}

.jubilee-ribbon-side-right {
  right: -40px;
  transform: rotate(18deg);
}

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

.jubilee-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #f3e6c8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 20, 63, 0.06);
  color: #2a2158;
  text-decoration: none;
}

.jubilee-card:hover,
.jubilee-card:focus {
  color: #2a2158;
  text-decoration: none;
  border-color: #d4a24a;
  box-shadow: 0 12px 28px rgba(212, 162, 74, 0.18);
}

.jubilee-card-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #c4963a;
}

.jubilee-card-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.jubilee-card-icon svg .jubilee-star {
  fill: currentColor;
  stroke: none;
}

.jubilee-card-label {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.jubilee-card-go {
  margin-left: auto;
  color: #d4a24a;
  font-size: 1.8rem;
  line-height: 1;
}

body.jubilee .page-banner {
  box-shadow: inset 0 -3px 0 #d4a24a;
}

body.jubilee .page-banner::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 18px;
  z-index: 2;
  width: 240px;
  height: 46px;
  border-bottom: 3px solid rgba(243, 215, 138, 0.9);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

@media (max-width: 991px) {
  .logo-with-jubilee {
    justify-content: center;
  }

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

  .jubilee-ribbon-side {
    display: none;
  }
}

@media (max-width: 767px) {
  .jubilee-badge {
    width: auto;
    height: 70px;
  }

  .logo-with-jubilee .img-fluid {
    max-height: 74px;
  }

  .jubilee-hero-copy {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .jubilee-paths {
    padding-top: 36px;
  }
}

html[data-acc-zoom] .jubilee-kicker {
  font-size: calc(2.15rem * var(--acc-text)) !important;
}

html[data-acc-zoom] .jubilee-mark {
  font-size: calc(4.2rem * var(--acc-text)) !important;
}

html[data-acc-zoom] .jubilee-hero h1 {
  font-size: calc(1.7rem * var(--acc-text)) !important;
}

html[data-acc-zoom] .jubilee-lead,
html[data-acc-zoom] .jubilee-cta {
  font-size: calc(1.05rem * var(--acc-text)) !important;
}

html[data-acc-zoom] .jubilee-paths-title h2 {
  font-size: calc(2rem * var(--acc-text)) !important;
}

html[data-acc-zoom] .jubilee-card-label {
  font-size: calc(1.2rem * var(--acc-text)) !important;
}

body.accessibility-contrast .jubilee-hero-photo,
body.accessibility-contrast .jubilee-ornament,
body.accessibility-contrast .jubilee-paths-ornament,
body.accessibility-contrast .page-banner::after {
  display: none !important;
}

body.accessibility-contrast .jubilee-kicker,
body.accessibility-contrast .jubilee-mark,
body.accessibility-contrast .jubilee-hero h1,
body.accessibility-contrast .jubilee-lead,
body.accessibility-contrast .jubilee-paths-title h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.accessibility-contrast .jubilee-cta,
body.accessibility-contrast .jubilee-card {
  background: #000 !important;
  background-image: none !important;
  color: #ffe14a !important;
  border: 2px solid #ffe14a !important;
  box-shadow: none !important;
}

body.accessibility-contrast .jubilee-card-icon,
body.accessibility-contrast .jubilee-card-label,
body.accessibility-contrast .jubilee-card-go,
body.accessibility-contrast .jubilee-cta span {
  color: #ffe14a !important;
  -webkit-text-fill-color: #ffe14a !important;
}
