:root {
  --background: #382597;
  --banner-background: #0b0380;
  --block: #bdb0ff;
  --text: #000000;
  --link: #ffffff;
  --link-hover: #849725;
  --link-visited: #6a57c9;
  --line: rgba(0, 0, 0, 0.22);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Roboto Serif", serif;
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

a:visited {
  color: var(--link-visited);
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

body,
p,
li,
span,
.content-card,
.media-card,
.map-embed-card,
.notice-card {
  font-family: "Roboto Serif", serif;
  font-weight: 400;
}

h1,
h2,
h3,
.brand {
  font-family: "Roboto Serif", serif;
  font-weight: 700;
}

a,
.nav-list a,
.card-link,
.button {
  font-family: "Roboto Serif", serif;
  font-weight: 600;
}

img,
iframe {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--background);
  color: var(--link-hover);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--block);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.top-banner {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--banner-background);
}

.banner-link {
  display: flex;
  justify-content: center;
  width: 100%;
  background: var(--banner-background);
  line-height: 0;
  text-decoration: none;
}

.site-banner-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  color: var(--link-hover);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(2.8rem, 7vw, 5.2rem);
  height: clamp(2.8rem, 7vw, 5.2rem);
  border-radius: 50%;
  color: var(--background);
  background: var(--block);
  box-shadow: inset 0 0 0 0.22rem rgba(255, 255, 255, 0.45);
  font-size: 0.8em;
}

.main-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}


.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 0;
  list-style: none;
}

.nav-list a,
.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 0.92rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nav-list a:visited {
  color: var(--text);
}

.brand:visited,
.brand:hover {
  color: var(--link-hover);
}

.button:visited {
  color: var(--link-hover);
}


.nav-list a:hover,
.nav-list a.is-active,
.lang-button:hover,
.lang-button.is-active {
  background: var(--background);
  color: var(--link-hover);
}

.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: "▾";
  margin-left: 0.45rem;
  font-size: 0.72em;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(340px, 88vw);
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--block);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-0.4rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  transition-delay: 120ms;
  visibility: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0ms;
}

.dropdown-menu a {
  justify-content: flex-start;
  width: 100%;
  border-radius: 0.8rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin-left: 0.4rem;
  color: var(--text);
}

.lang-button {
  min-width: 44px;
  padding-inline: 0.7rem;
}

.page-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 4rem) 0 4rem;
}

/* The main content container receives programmatic focus after route changes.
   Remove the browser's default page-wide focus outline while keeping visible
   focus styles on real interactive elements such as links and buttons. */
.page-shell:focus {
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.hero.copy-only {
  grid-template-columns: minmax(0, 1fr);
}

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  color: var(--text);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1rem;
}

.lead {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.content-card,
.media-card,
.map-embed-card,
.notice-card {
  background: var(--block);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.content-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose {
  max-width: 78ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.hero-image,
.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: contain;
  background: var(--block);
  box-shadow: var(--shadow);
}

.hero-image {
  max-height: none;
}

.card-image {
  align-self: center;
}

.image-note {
  margin: 0.7rem 0 0;
  color: var(--text);
  font-size: 0.92rem;
}

.section-stack {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.media-section {
  margin-top: clamp(1.6rem, 4vw, 3rem);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.media-card {
  position: relative;
  overflow: hidden;
}

.media-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  overflow: hidden;
  text-indent: -9999px;
}

.media-stretched-link:focus-visible {
  outline: 4px solid var(--link-hover);
  outline-offset: -6px;
  border-radius: var(--radius-xl);
}

.media-card .media-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  background: #fff;
}

.video-card .media-frame {
  aspect-ratio: 16 / 9;
}

.youtube-preview-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.youtube-thumbnail {
  height: auto;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background-color 160ms ease;
}

.youtube-preview-link:hover .play-badge,
.youtube-preview-link:focus-visible .play-badge {
  background: rgba(0, 0, 0, 0.88);
  transform: translate(-50%, -50%) scale(1.06);
}

.youtube-preview-link:focus-visible {
  outline: 4px solid var(--link-hover);
  outline-offset: -6px;
  border-radius: var(--radius-xl);
}

.media-card-body {
  padding: 1rem;
}

.placeholder-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.video-card .placeholder-image {
  aspect-ratio: 16 / 9;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.4rem);
}

.map-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.map-card:hover {
  color: inherit;
  transform: translateY(-3px);
}

.map-card .content-card {
  box-shadow: none;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--link);
}

.card-link::after {
  content: "→";
}

.map-embed-card {
  overflow: hidden;
}

.map-embed-card iframe,
.folder-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: var(--block);
}

.map-embed-card iframe {
  min-height: min(72vh, 680px);
}

.folder-embed iframe {
  height: 560px;
  border-radius: var(--radius-lg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.4rem);
}

.review-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0.75rem;
  overflow: hidden;
}

.review-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 0.35rem);
}

.reviews-grid .review-card:nth-child(10) {
  grid-column: 2;
}

.notice-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-style: dashed;
}

.notice-card strong {
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 63, 143, 0.18);
  background: var(--link);
  color: var(--link-hover);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(13, 63, 143, 0.18);
}

.button:hover {
  background: var(--background);
  color: var(--link-hover);
}

.button.secondary {
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--background);
  color: var(--link-hover);
}

.site-footer {
  padding: 2rem 1rem 2.4rem;
  text-align: center;
  color: var(--text);
  background: var(--block);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(var(--max), calc(100% - 1rem));
  }

  .top-banner {
    min-height: 0;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.55rem 0;
  }

  .nav-list a,
  .lang-button {
    min-height: 40px;
    padding: 0.5rem 0.65rem;
  }

  .dropdown-menu {
    position: absolute;
    width: min(320px, 92vw);
  }

  .language-switch {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-height: none;
  }

  .cards-grid,
  .media-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid .review-card:nth-child(10) {
    grid-column: auto;
  }

  .map-embed-card iframe {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

figure {
  margin: 0;
}

/* Layout updates requested 2026-06-22 */
.about-page {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.about-portrait {
  width: min(640px, 100%);
  margin: 0 auto;
}

.prose-wide {
  max-width: none;
}

.maps-intro {
  width: 100%;
}

.reviews-section {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.4rem);
  margin-top: clamp(1.6rem, 4vw, 3rem);
}

.reviews-title {
  margin: 0;
  color: var(--text);
}

.book-buy {
  width: 100%;
}


/* Updates requested for full-width copy blocks and social sections */
.about-copy,
.map-page-intro,
.book-buy {
  width: 100%;
  max-width: none;
}

.media-title,
.reviews-title {
  margin: 0;
  color: var(--link);
  text-align: center;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.facebook-card .media-frame,
.instagram-grid .media-frame {
  aspect-ratio: 4 / 5;
}

.tiktok-card .media-frame,
.tiktok-grid .placeholder-image {
  aspect-ratio: 9 / 16;
}

.reviews-section .book-buy {
  margin-top: clamp(0.4rem, 1.5vw, 1rem);
}

.contact-heading {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}


/* Fajansowa Mapa Włocławka details */
.map-page-header {
  display: grid;
  justify-items: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-bottom: clamp(1rem, 3vw, 1.6rem);
  text-align: center;
}

.map-page-title {
  margin: 0;
  color: var(--link-hover);
}

.map-places-block {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.map-places-intro {
  max-width: 86ch;
  margin: 0 auto;
  text-align: center;
}

.map-places-intro p {
  margin: 0 0 1rem;
}

.map-places-heading {
  margin: clamp(0.8rem, 2vw, 1.4rem) 0 0;
  text-align: center;
}

.map-places-list {
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.8rem);
}

.map-place {
  padding-top: clamp(1rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.map-place.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.map-place.image-left .map-place-media {
  order: -1;
}

.map-place-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.map-place-copy p {
  margin: 0 0 0.9rem;
}

.map-place-copy p:last-child {
  margin-bottom: 0;
}

.map-place-media {
  margin: 0;
}

.map-place-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-inline: auto;
}

.map-places-block,
.map-places-list,
.map-place,
.map-place-copy,
.map-place-media {
  min-width: 0;
  max-width: 100%;
}

.map-place-media img {
  max-inline-size: 100%;
}

.map-place-copy,
.map-place-copy p,
.map-places-block a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 860px) {
  .map-place.has-image {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .map-place-copy,
  .map-place-media {
    width: 100%;
  }

  .map-place-media {
    margin-top: 1rem;
  }

  .map-place.image-left .map-place-media {
    order: 0;
  }
}


/* About page feature image beside the final paragraphs */
.about-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: 1rem;
}

.about-feature-media {
  margin: 0;
  justify-self: end;
}

.about-feature-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .about-feature {
    grid-template-columns: 1fr;
  }

  .about-feature-media {
    justify-self: center;
  }
}

/* External media consent */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(calc(100% - 2rem), 980px);
  padding: clamp(1rem, 2vw, 1.25rem);
  background: var(--block);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.consent-banner-copy h2 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.consent-banner-copy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.consent-banner-actions,
.external-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.consent-banner-actions {
  justify-content: flex-end;
}

.external-media-placeholder,
.external-media-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.map-embed-card.external-media-placeholder {
  min-height: min(72vh, 680px);
}

.external-media-placeholder-inner,
.external-media-card-body {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  max-width: 58ch;
  text-align: center;
}

.external-media-placeholder-inner h2,
.external-media-card-body h3 {
  margin: 0;
  color: var(--text);
}

.external-media-placeholder-inner p,
.external-media-card-body p {
  margin: 0;
}

.external-media-card.video-card {
  aspect-ratio: 16 / 9;
}

.tiktok-grid .external-media-card.video-card {
  aspect-ratio: 9 / 16;
}

.consent-banner-actions .button[data-consent-action="accept"],
.external-media-actions .button[data-consent-action="accept"],
.consent-banner-actions .button[data-consent-action="accept"]:hover,
.external-media-actions .button[data-consent-action="accept"]:hover,
.consent-banner-actions .button[data-consent-action="accept"]:focus-visible,
.external-media-actions .button[data-consent-action="accept"]:focus-visible {
  color: var(--text) !important;
}

@media (max-width: 760px) {
  .consent-banner {
    grid-template-columns: 1fr;
  }

  .consent-banner-actions,
  .external-media-actions {
    justify-content: stretch;
  }

  .consent-banner-actions .button,
  .external-media-actions .button {
    justify-content: center;
    width: 100%;
  }
}
