/* ============================================================
   LUXURY CAMP — Global Stylesheet
   Design System: "Głęboka Północ" (Wariant A)
   ============================================================ */

/* ── Czcionki: fonts.css (lokalne pliki, ładowane w base.html) ── */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Surface */
  --color-bg: #0D0F11;
  --color-surface: #14171B;
  --color-surface-2: #1B1F24;
  --color-surface-3: #242931;

  /* Lines */
  --color-line: #2B313A;
  --color-line-strong: #3A4250;

  /* Text */
  --color-text: #F2F1EC;
  --color-text-muted: #B7BCC4;
  --color-text-subtle: #878D97;
  --color-text-on-light: #14171B;

  /* Accent (slate blue) */
  --color-accent: #7E97C2;
  --color-accent-hover: #9DB2D6;
  --color-accent-soft: #3A4A66;

  /* Warm (CTA) */
  --color-warm: #B5601F;
  --color-warm-hover: #CF7430;
  --color-warm-soft: #3A2415;

  /* Semantic */
  --color-success: #7BA88A;
  --color-error: #D9614F;

  /* Overlay */
  --overlay: rgba(13, 15, 17, 0.62);
  --overlay-strong: rgba(13, 15, 17, 0.85);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Container */
  --container-max: 1280px;
  --container-pad: 48px;

  /* Border radius — global 0 */
  --radius-none: 0;
  --radius-pill: 9999px;

  /* Borders */
  --border-hairline: 1px solid var(--color-line);
  --border-strong: 1px solid var(--color-line-strong);
  --border-accent: 1px solid var(--color-accent);

  /* Elevation */
  --shadow-1: 0 1px 0 0 rgba(0,0,0,0.35);
  --shadow-2: 0 8px 24px -12px rgba(0,0,0,0.55), 0 2px 4px -2px rgba(0,0,0,0.4);
  --shadow-3: 0 24px 48px -24px rgba(0,0,0,0.65), 0 8px 16px -8px rgba(0,0,0,0.45);
  --shadow-modal: 0 40px 80px -20px rgba(0,0,0,0.75), 0 16px 32px -12px rgba(0,0,0,0.5);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --dur-image: 600ms;

  /* Breakpoints (reference only) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
address { font-style: normal; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  text-wrap: balance;
}

.display {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--font-body);
  color: var(--color-text);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-accent);
  max-width: none; /* nadpisuje globalne p { max-width: 65ch } — inaczej w wyśrodkowanych sekcjach zjeżdża w lewo */
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.body-sm {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.small {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.mono-label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

p { max-width: 65ch; }
p + p { margin-top: var(--space-5); }

a.link-inline {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
a.link-inline:hover { color: var(--color-accent-hover); }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (max-width: 1023px) {
  .container, .container--narrow { padding-inline: 32px; }
}
@media (max-width: 767px) {
  .container, .container--narrow { padding-inline: 20px; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Primary */
.btn--primary {
  background-color: var(--color-warm);
  color: var(--color-text);
  padding: 0 24px;
  height: 48px;
  border: none;
}
.btn--primary:hover {
  background-color: var(--color-warm-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn--primary:active {
  background-color: var(--color-warm);
  transform: translateY(0);
}

/* Primary XL */
.btn--primary.btn--xl {
  height: 56px;
  padding: 0 32px;
  font-size: 0.9375rem;
}

/* Secondary */
.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 0 24px;
  height: 48px;
}
.btn--secondary:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* Ghost */
.btn--ghost {
  background: none;
  border: none;
  color: var(--color-accent);
  padding: 0;
  height: auto;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn--ghost .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
  display: inline-block;
}
.btn--ghost:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.header-topbar {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  padding: 6px 0;
  transition: max-height var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out);
  overflow: hidden;
  max-height: 50px;
}

.site-header.scrolled .header-topbar {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border: none;
}

.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-5);
}

.header-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: color var(--dur-fast);
}
.header-topbar__item:hover { color: var(--color-text); }
.header-topbar__item svg { color: var(--color-accent); flex-shrink: 0; }

.header-main {
  background: linear-gradient(180deg, rgba(13,15,17,0.75) 0%, transparent 100%);
  height: 96px;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out),
              border-bottom-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled .header-main {
  background-color: var(--color-surface);
  height: 64px;
  border-bottom-color: var(--color-line);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 48px;
  width: auto;
  transition: height var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}

.logo-full { display: block; }
.logo-scroll { display: none; }

.site-header.scrolled .logo-full { display: none; }
.site-header.scrolled .logo-scroll {
  display: block;
  height: 36px;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-accent); }
.nav-link .chevron {
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.nav-item:hover .chevron,
.nav-item.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-line);
  padding: var(--space-3) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: background-color var(--dur-fast),
              color var(--dur-fast),
              border-color var(--dur-fast);
  border-left: 2px solid transparent;
}
.nav-dropdown a:hover {
  background-color: var(--color-surface-3);
  color: var(--color-text);
  border-left-color: var(--color-accent);
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 90;
  padding: var(--space-7) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  padding-top: 80px;
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-nav__item {
  border-bottom: 1px solid var(--color-line);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  width: 100%;
}

.mobile-nav__link .chevron {
  transition: transform var(--dur-fast);
}
.mobile-nav__link.open .chevron { transform: rotate(180deg); }

.mobile-submenu {
  display: none;
  padding: 0 0 12px 16px;
}
.mobile-submenu.open { display: block; }

.mobile-submenu a {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-accent-soft);
  padding-left: 12px;
  margin-bottom: 4px;
}

.mobile-drawer__cta {
  margin-top: var(--space-5);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero--subpage {
  min-height: 56vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13,15,17,0.55) 0%,
    rgba(13,15,17,0.35) 40%,
    rgba(13,15,17,0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-10);
  padding-top: var(--space-10);
  width: 100%;
}

.hero__eyebrow { margin-bottom: var(--space-3); }
.hero__title { margin-bottom: var(--space-5); max-width: 720px; }
.hero__lead { margin-bottom: var(--space-7); }
.hero__lead.lead { color: var(--color-text-muted); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding-block: var(--space-9);
}

.section--lg {
  padding-block: var(--space-10);
}

.section--sm {
  padding-block: var(--space-7);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--surface-2 {
  background-color: var(--color-surface-2);
}

.section--warm {
  background-color: var(--color-warm-soft);
}

.section__header {
  margin-bottom: var(--space-8);
}

.section__header--center {
  text-align: center;
}

.section__header--center .lead,
.section__header--center p,
.text-center p {
  margin-inline: auto;
}

.section__eyebrow { margin-bottom: var(--space-3); }
.section__title { margin-bottom: var(--space-5); }

@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .section--lg { padding-block: 80px; }
  .section--sm { padding-block: 48px; }
  .section__header { margin-bottom: var(--space-7); }
}

/* ── Feature Bar ──────────────────────────────────────────── */
.feature-bar {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding-block: var(--space-7);
}

.feature-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  border-right: 1px solid var(--color-line);
}
.feature-item:last-child { border-right: none; }

.feature-item__icon {
  width: 56px;
  height: 56px;
  color: var(--color-accent-hover);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.feature-item__icon img,
.feature-item__icon svg {
  width: 56px;
  height: 56px;
}

/* Ikony z plików SVG (czarne kontury) malowane kolorem przez maskę —
   dzięki temu dziedziczą `color` i są dobrze widoczne na ciemnym tle. */
.glyph {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
          mask: var(--glyph) center / contain no-repeat;
}
.glyph--cabin { --glyph: url("../icons/CABIN.6d4b02f7c571.svg"); }
.glyph--sauna { --glyph: url("../icons/spa-1.b39eec5805d9.svg"); }
.glyph--swing { --glyph: url("../icons/SWING.20bece7add03.svg"); }
.glyph--grill { --glyph: url("../icons/bbq-1.9140b05da6a5.svg"); }
.glyph--car   { --glyph: url("../icons/CAR.b5169844eb7b.svg"); }

.feature-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.feature-item__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 1023px) {
  .feature-bar__grid { grid-template-columns: repeat(3, 1fr); }
  .feature-item { border-bottom: 1px solid var(--color-line); }
  .feature-item:nth-child(3) { border-right: none; }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 767px) {
  .feature-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item { border-right: none; border-bottom: 1px solid var(--color-line); }
  .feature-item:nth-child(odd) { border-right: 1px solid var(--color-line); }
  .feature-item:last-child { border-bottom: none; }
  /* nieparzysta liczba kafelków: ostatni na całą szerokość zamiast samotnej połówki */
  .feature-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; }
  .feature-item:nth-last-child(2):nth-child(even) { border-bottom: 1px solid var(--color-line); }
}

/* ── Cards Grid ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .cards-grid, .cards-grid--2, .cards-grid--4 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base),
              box-shadow var(--dur-base),
              transform var(--dur-base) var(--ease-out);
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__image {
  overflow: hidden;
  flex-shrink: 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-image) var(--ease-out);
}

.card__image--3-2 { aspect-ratio: 3/2; }
.card__image--4-3 { aspect-ratio: 4/3; }

.card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}

.card__lead {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur-fast);
  margin-top: auto;
}

.card__cta .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.card:hover .card__cta {
  color: var(--color-accent-hover);
}

.card:hover .card__cta .arrow {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .card__body { padding: var(--space-5); }
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
}

.badge--warm {
  background-color: var(--color-warm-soft);
  color: var(--color-warm-hover);
}

/* ── Equipment Grid ───────────────────────────────────────── */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-line);
  padding: 12px 16px;
}

.equipment-item svg,
.amenity-item svg {
  /* „kafelek” pod ikoną: cienka ikona sama ginęła na ciemnym tle */
  box-sizing: content-box;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 8px;
  color: var(--color-accent-hover);
  background-color: rgba(126, 151, 194, 0.14);
  stroke-width: 1.75;
}

.equipment-item span {
  font-size: 0.9375rem;
  color: var(--color-text);
}

@media (max-width: 1023px) {
  .equipment-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Cottage Info ─────────────────────────────────────────── */
.cottage-params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-line);
  margin-block: var(--space-7);
}

.param-item {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--color-line);
  text-align: center;
}
.param-item:last-child { border-right: none; }

.param-item__icon {
  color: var(--color-accent-hover);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: center;
}
.param-item__icon svg { width: 24px; height: 24px; }

.param-item__value {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: 4px;
}

.param-item__label {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

@media (max-width: 767px) {
  .cottage-params { grid-template-columns: repeat(2, 1fr); }
  .param-item:nth-child(2) { border-right: none; }
  .param-item:not(:last-child):not(:nth-child(2)) { border-bottom: 1px solid var(--color-line); }
  .param-item:nth-child(2) { border-bottom: 1px solid var(--color-line); }
}

/* ── Photo Gallery (sub-gallery) ──────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-block: var(--space-7);
}

.photo-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.photo-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-image) var(--ease-out);
}

.photo-grid a:hover img { transform: scale(1.05); }

@media (max-width: 767px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Gallery Page ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--color-line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-image) var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { aspect-ratio: 3/2; }
}

/* ── Opinions ─────────────────────────────────────────────── */
.opinions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.opinion-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
}

.opinion-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.star {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.opinion-card__quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-5);
  max-width: 480px;
  position: relative;
}

/* Polski cudzysłów „…” w treści opinii (wcześniej duży „ wjeżdżał na drugi wiersz) */
.opinion-card__quote::before,
.opinion-card__quote::after {
  color: var(--color-accent-hover);
}
.opinion-card__quote::before { content: '„'; }
.opinion-card__quote::after  { content: '”'; }

.opinion-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.opinion-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.opinion-card__name {
  font-weight: 600;
  font-size: 0.875rem;
}

.opinion-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

@media (max-width: 1023px) {
  .opinions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .opinions-grid { grid-template-columns: 1fr; }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table tr {
  border-bottom: 1px solid var(--color-line);
}

.contact-table td {
  padding: 14px 0;
  font-size: 0.9375rem;
  vertical-align: top;
}

.contact-table td:first-child {
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: 40%;
  padding-right: 16px;
  padding-top: 18px;
}

.contact-table td:last-child {
  color: var(--color-text);
}

.contact-table a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.contact-table a:hover { color: var(--color-accent-hover); }

.map-container {
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

@media (max-width: 1023px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line-strong);
  padding: 14px 0;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--dur-fast);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-accent);
  border-bottom-width: 2px;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-subtle); }

.form-textarea {
  min-height: 160px;
  resize: vertical;
  display: block;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  appearance: none;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-line-strong);
  cursor: pointer;
  margin-top: 2px;
  position: relative;
  transition: background-color var(--dur-fast);
}

.form-checkbox:checked {
  background-color: var(--color-accent);
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-text);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.form-checkbox-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin-top: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-surface-2);
  border-left: 2px solid var(--color-accent);
  display: none;
}

.form-hint.visible { display: block; }

/* Inline validation error messages */
.form-error-msg[hidden] { display: none; }
.form-error-msg {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.8125rem;
  color: #e05252;
  line-height: 1.4;
}

.form-input.error,
.form-textarea.error {
  border-bottom-color: #e05252;
}

.form-checkbox.error + .form-checkbox-label {
  color: #e05252;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-line);
}

.footer-brand__logo {
  margin-bottom: var(--space-5);
}

.footer-brand__logo img {
  height: 56px;
  width: auto;
}

.footer-brand__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--color-accent); }

.footer-address {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-address a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer-tel {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  display: block;
}

.footer-bottom {
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-bottom__copy {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-strong);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 92vw;
  max-width: 1080px;
  height: 88vh;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  transform: scale(0.98);
  transition: transform var(--dur-base) var(--ease-out);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal__header {
  height: 56px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  flex-shrink: 0;
}

.modal__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--dur-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.modal__close:hover { color: var(--color-accent); }

.modal__body {
  flex: 1;
  overflow: hidden;
}

.modal__body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 720px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-3);
  padding: var(--space-5) var(--space-6);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner.hidden { display: none; }

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Reveal Animation ─────────────────────────────────────── */
/* Ukrywamy tylko, gdy działa JS (klasa .js na <html>) — inaczej karty zostałyby niewidoczne. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Press Cards ──────────────────────────────────────────── */
.press-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base);
}
.press-card:hover {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.press-card__source {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.press-card__title {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.3;
}

.press-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: auto;
  transition: color var(--dur-fast);
}
.press-card__link:hover { color: var(--color-accent-hover); }

/* ── Attraction Detail ────────────────────────────────────── */
.attraction-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.attraction-detail__content h2 {
  margin-bottom: var(--space-5);
}

.attraction-detail__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.attraction-detail__image {
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.attraction-detail__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .attraction-detail { grid-template-columns: 1fr; }
  .attraction-detail__image { order: -1; }
  .attraction-detail__image img { height: 280px; }
}

/* ── Info Box ─────────────────────────────────────────────── */
.info-box {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
}

.info-box p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  max-width: none;
}

/* ── List ─────────────────────────────────────────────────── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin-block: var(--space-7);
}

/* ── Lightbox styles ──────────────────────────────────────── */
.pswp {
  --pswp-bg: var(--color-bg);
  --pswp-placeholder-bg: var(--color-surface-2);
  --pswp-root-z-index: 600;
  --pswp-icon-color: var(--color-text);
  --pswp-icon-color-secondary: var(--color-text-muted);
  --pswp-icon-stroke-color: var(--color-bg);
  --pswp-icon-stroke-width: 2px;
  --pswp-error-text-color: var(--color-error);
}

/* ── Hero text shadow ─────────────────────────────────────── */
.hero__title, .hero__lead {
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ── Two column content ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 1023px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Amenities grid ───────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-line);
}

.amenity-item span {
  font-size: 0.9375rem;
  color: var(--color-text);
}

@media (max-width: 1023px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .amenities-grid { grid-template-columns: 1fr; }
}

/* ── Routes list ──────────────────────────────────────────── */
.route-item {
  border: 1px solid var(--color-line);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
  background-color: var(--color-surface);
}

.route-item h4 {
  margin-bottom: var(--space-3);
  font-size: 1.125rem;
}

.route-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: none;
}

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  background-color: var(--color-warm-soft);
  padding-block: var(--space-10);
  text-align: center;
}

.cta-section__bg {
  position: relative;
}

.cta-section__bg-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-section__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  margin-bottom: var(--space-6);
  margin-inline: auto;
  color: var(--color-text-muted);
}

.cta-section .btn-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Spacing top for fixed header ─────────────────────────── */
.page-main {
  padding-top: 0; /* hero handles this */
}

.page-main--has-hero {
  /* first child is hero full-bleed */
}

/* For non-hero pages that need spacing */
.page-spacer {
  height: 144px; /* header topbar + header main */
}

@media (max-width: 767px) {
  .page-spacer { height: 120px; }
}

/* ── Responsive helpers ───────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .nav-list { display: none; }
  .nav-hamburger { display: flex; }
  .site-nav .btn { display: none; }
  h3 { font-size: 1.375rem; }
  .card__title { font-size: 1.25rem; }
  .lead { font-size: 1.125rem; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ── Focus styles ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background-color: var(--color-accent-soft);
  color: var(--color-text);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface-3); }
::-webkit-scrollbar-thumb:hover { background: var(--color-line-strong); }

/* ── Legal text (polityka prywatności) ── */
.legal-text h2 { font-size: 1.375rem; margin: var(--space-7) 0 var(--space-3); }
.legal-text p, .legal-text li { line-height: 1.7; margin-bottom: var(--space-3); }
.legal-text ul { padding-left: 1.25rem; list-style: disc; }
.legal-text mark { background: #fff3c4; padding: 0 .2em; }
.footer-bottom__copy a, .cookie-banner__text a { color: inherit; text-decoration: underline; }

/* ── Treść z edytora w panelu (Wagtail rich text) ─────────── */
.rich-text h3 { margin-top: var(--space-7); margin-bottom: var(--space-5); }
.two-col .rich-text h3 { margin-top: var(--space-6); margin-bottom: var(--space-4); }
.rich-text h4 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.rich-text ul,
.rich-text ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block: var(--space-5);
}
.rich-text ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.rich-text ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.rich-text ol { list-style: decimal; padding-left: 1.25rem; }
.rich-text a,
.info-box a,
.form-intro a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.rich-text--muted p { color: var(--color-text-muted); }
