:root {
  --ink: #1c1c1c;
  --muted: #6c6863;
  --paper: #f7f5f2;
  --white: #fff;
  --gold: #bd7d39;
  --gold-dark: #9a642d;
  --line: #dfd8cf;
  --charcoal: #171717;

  --max-width: 1920px;
  --gutter: clamp(24px, 4vw, 96px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.page {
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────── HERO ───────── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* fallback — JS nadpisuje proporcjami wideo po loadedmetadata */
  min-height: 480px;
  background-color: #1c1c1c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-video.is-active {
  opacity: 1;
}

/* Top bar: logo (lewy) + hamburger (prawy) */
.hero-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(20px, 2vw, 40px) var(--gutter);
  pointer-events: none;
}

.hero-bar > * {
  pointer-events: auto;
}

.hero-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}

.hero-logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-logo__text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-align: center;
  line-height: 1.25;
}

.hero-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  letter-spacing: 0;
}

.hero-menu span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.hero-menu:hover span {
  opacity: 0.85;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: 80px;
  padding-bottom: 120px;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  margin: 0 0 22px;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f0e4d3;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.2vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-content .small-line {
  margin: 18px 0 22px;
}

.hero-content .hero-eyebrow {
  margin: 0 0 22px;
}

.hero-lead {
  margin: 0;
  max-width: 480px;
  font-size: clamp(15px, 1.1vw, 20px);
  line-height: 1.6;
  color: #efe9e1;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  transform: translateX(-50%);
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #efe9e1;
  text-align: center;
}

.hero-scroll::after {
  content: "˅";
  display: block;
  margin-top: 6px;
  font-size: 16px;
  opacity: 0.8;
}

/* ───────── SIGNUP ───────── */
.signup {
  width: 100%;
  background: linear-gradient(90deg, #faf9f7, #f0ede8);
  padding: clamp(48px, 6vw, 96px) 0;
}

.signup .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}

.eyebrow,
.intro h1,
.form-card h2,
.why h2,
.location h2,
.local-list h3,
.footer h3 {
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  font-size: clamp(12px, 0.85vw, 16px);
  font-weight: 600;
  letter-spacing: 2px;
}

.small-line {
  display: block;
  width: 40px;
  height: 2px;
  margin: 18px 0 32px;
  background: var(--gold);
}

.small-line.centered {
  margin: 14px auto 36px;
}

.intro h1 {
  margin: 0 0 32px;
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.25;
  font-weight: 500;
  max-width: 640px;
}

.lead {
  margin: 0 0 40px;
  max-width: 560px;
  color: #222;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.65;
}

.benefit-list,
.why-grid,
.info-strip ul,
.local-list ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list {
  display: grid;
  gap: 22px;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: clamp(13px, 0.85vw, 15px);
  line-height: 1.5;
}

.benefit-list strong {
  display: block;
  color: var(--ink);
  font-size: clamp(14px, 0.95vw, 17px);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Ikony (SVG przez mask-image) ─── */
.line-icon,
.big-icon {
  display: inline-block;
  background-color: var(--gold);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.line-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.crown  { -webkit-mask-image: url("../svg/crown.svg");   mask-image: url("../svg/crown.svg"); }
.shield { -webkit-mask-image: url("../svg/shield.svg");  mask-image: url("../svg/shield.svg"); }
.leaf   { -webkit-mask-image: url("../svg/leaf.svg");    mask-image: url("../svg/leaf.svg"); }
.tree   { -webkit-mask-image: url("../svg/tree.svg");    mask-image: url("../svg/tree.svg"); }
.pin    { -webkit-mask-image: url("../svg/pin.svg");     mask-image: url("../svg/pin.svg"); }
.diamond{ -webkit-mask-image: url("../svg/diamond.svg"); mask-image: url("../svg/diamond.svg"); }
.phone  { -webkit-mask-image: url("../svg/phone.svg");   mask-image: url("../svg/phone.svg"); }
.shop   { -webkit-mask-image: url("../svg/shop.svg");    mask-image: url("../svg/shop.svg"); }
.school { -webkit-mask-image: url("../svg/school.svg");  mask-image: url("../svg/school.svg"); }
.bag    { -webkit-mask-image: url("../svg/bag.svg");     mask-image: url("../svg/bag.svg"); }
.chat   { -webkit-mask-image: url("../svg/chat.svg");    mask-image: url("../svg/chat.svg"); }

/* ───────── FORM CARD ───────── */
.form-card {
  padding: clamp(28px, 2.5vw, 48px) clamp(24px, 2.2vw, 44px) clamp(20px, 2vw, 36px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(66, 52, 38, 0.12);
  width: 100%;
}

.form-card .wpcf7,
.form-card .wpcf7-form {
  width: 100%;
}

.form-card .wpcf7-form > p {
  width: 100%;
}

.form-card .wpcf7-form label {
  display: block;
  width: 100%;
}

.form-card h2 {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 500;
  letter-spacing: 2px;
}

.form-card .wpcf7-form p {
  margin: 0;
}

.form-card .wpcf7-form-control-wrap {
  display: block;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card .field input {
  min-width: 0;
  width: 100%;
  height: 52px;
  margin-bottom: 14px;
  padding: 0 18px;
  border: 1px solid #dedbd7;
  outline: 0;
  background: #fff;
  color: #333;
  font-size: clamp(13px, 0.9vw, 15px);
  font-family: inherit;
}

.form-card .wpcf7-acceptance,
.form-card .check {
  display: block;
  margin: 20px 0 0;
}

.form-card .wpcf7-list-item {
  margin: 0;
}

.form-card .wpcf7-list-item-label {
  font-size: clamp(11px, 0.7vw, 13px);
  color: #5e5a55;
  line-height: 1.5;
}

.field {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  height: 52px;
  margin-bottom: 14px;
  border: 1px solid #dedbd7;
  background: #fff;
}

.field span {
  color: #888;
  text-align: center;
  font-size: 18px;
}

.field input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: #333;
  font-size: clamp(13px, 0.9vw, 15px);
  font-family: inherit;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  margin: 18px 0 0;
  color: #5e5a55;
  font-size: clamp(11px, 0.7vw, 13px);
  line-height: 1.5;
}

.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #aaa;
  border-radius: 2px;
  background: #fff;
}

.check input:checked {
  background: linear-gradient(var(--gold), var(--gold)) center / 10px 10px no-repeat #fff;
}

.check a,
.form-card .wpcf7-list-item-label a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.check a:hover,
.check a:focus-visible,
.form-card .wpcf7-list-item-label a:hover,
.form-card .wpcf7-list-item-label a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold-dark);
}

button,
.form-card input[type="submit"] {
  width: 100%;
  min-height: 56px;
  margin: 26px 0 18px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(90deg, #ba7430, #cb8b45);
  font: 500 clamp(13px, 0.9vw, 16px)/1.2 inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #938c84;
  font-size: clamp(10px, 0.7vw, 13px);
}

.privacy::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: var(--gold);
  -webkit-mask: url("../svg/check.svg") center / contain no-repeat;
          mask: url("../svg/check.svg") center / contain no-repeat;
}

/* ───────── WHY ───────── */
.why {
  width: 100%;
  background: #fff;
  padding: clamp(48px, 5vw, 96px) 0 clamp(56px, 6vw, 112px);
  text-align: center;
}

.why h2 {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
  letter-spacing: 2px;
}

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

.why-grid article {
  padding: 18px clamp(20px, 2.2vw, 48px) 0;
  border-right: 1px solid var(--line);
}

.why-grid article:last-child {
  border-right: 0;
}

.big-icon {
  display: block;
  width: 100%;
  height: clamp(56px, 5vw, 88px);
  margin-bottom: 22px;
}

.why-grid h3 {
  margin: 0 0 14px;
  font-size: clamp(13px, 0.95vw, 17px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.3;
}

.why-grid p {
  margin: 0;
  color: #5d5750;
  font-size: clamp(12px, 0.85vw, 15px);
  line-height: 1.7;
}

.info-strip {
  display: grid;
  grid-template-columns: 140px 1.1fr 1.2fr;
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
  margin-top: clamp(40px, 4vw, 72px);
  padding: clamp(24px, 2.5vw, 44px) clamp(28px, 3vw, 56px);
  border: 1px solid #c99f72;
  text-align: left;
}

.mail-badge {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c58c4c, #a66a2f);
  font-size: 0;
}

.mail-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  background-color: #fff;
  -webkit-mask: url("../svg/mail.svg") center / contain no-repeat;
          mask: url("../svg/mail.svg") center / contain no-repeat;
}

.info-strip h3 {
  margin: 0 0 14px;
  font-size: clamp(16px, 1.3vw, 24px);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info-strip p,
.info-strip li {
  margin: 0;
  color: #5b554d;
  font-size: clamp(12px, 0.85vw, 15px);
  line-height: 1.7;
}

.info-strip ul {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 2.5vw, 44px);
  display: grid;
  gap: 10px;
}

.info-strip li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
}

.info-strip li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: var(--gold);
  -webkit-mask: url("../svg/check.svg") center / contain no-repeat;
          mask: url("../svg/check.svg") center / contain no-repeat;
}

/* ───────── VISUAL BAND ───────── */
.visual-band {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 30vw, 480px);
  background-color: #2a2520;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 60%);
  pointer-events: none;
}

.visual-band .container {
  position: relative;
  z-index: 1;
}

.visual-band-caption {
  max-width: 640px;
}

.visual-band-caption h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 1px;
}

.visual-band-caption p {
  margin: 0;
  font-size: clamp(13px, 1vw, 18px);
  line-height: 1.65;
  color: #efe9e1;
}

/* ───────── LOCATION ───────── */
.location {
  position: relative;
  width: 100%;
  background: #f7f5f1;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 36%) 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.location::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(200px, 20vw, 320px);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(236, 231, 223, 0)    0%,
    rgba(236, 231, 223, 0.02) 40%,
    rgba(236, 231, 223, 0.08) 65%,
    rgba(236, 231, 223, 0.25) 80%,
    rgba(236, 231, 223, 0.65) 90%,
    rgba(236, 231, 223, 1)    100%);
  -webkit-backdrop-filter: blur(1.5px);
          backdrop-filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}

.location h2 {
  margin: 0 0 18px;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
  letter-spacing: 2px;
}

.location .local-list {
  /* Wyrównanie do lewej krawędzi .container'a: na wąskich ekranach = var(--gutter),
     na ekranach >var(--max-width) doliczamy połowę nadmiaru, żeby treść siedziała
     w tej samej kolumnie co reszta strony (zamiast lecieć aż do lewego brzegu viewportu). */
  padding-left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  padding-block: clamp(32px, 4vw, 56px);
}

.local-list h3 {
  margin: 0 0 32px;
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 500;
  letter-spacing: 1px;
}

.local-list ul {
  display: grid;
  gap: 18px;
}

.local-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
  color: #5a554e;
  font-size: clamp(13px, 0.95vw, 17px);
}

.local-list .line-icon {
  width: 22px;
  height: 22px;
}

.local-list li:not(:has(.line-icon))::before {
  content: "⌁";
  display: inline-block;
  width: 28px;
  color: var(--gold);
  font-size: 18px;
}

.map {
  width: 100%;
  height: clamp(420px, 48vw, 620px);
  background: #efece7;
  z-index: 0;
}

.map.leaflet-container {
  background: #efece7;
}

/* Wyszarzenie kafelków bazowych (CartoDB Positron) tak, żeby
   wpasować się w paletę paper/gold. Filter dotyczy TYLKO tile-pane,
   więc marker, popup i kontrolki zachowują pełen kolor. */
.map .leaflet-tile-pane {
  filter: grayscale(0.4) brightness(1.06) sepia(0.04);
}

.leaflet-popup-content {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.leaflet-control-attribution {
  font-size: 9px;
  opacity: 0.7;
}

.leaflet-control-attribution a {
  color: var(--gold-dark);
}

/* Custom marker U10 — czarny kwadrat z białym U10, strzałka w dół */
.u10-marker {
  background: transparent;
  border: 0;
}

.u10-marker__pin {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30);
}

.u10-marker__pin::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #1c1c1c;
  border-bottom: 0;
}

.u10-marker__label {
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* POI markers (sklepy, CH itd. obok głównego U10) */
.u10-poi {
  background: transparent;
  border: 0;
  width: 0 !important;
  height: 0 !important;
  position: relative;
}

.u10-poi__dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.u10-poi__label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #3c3a37;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* ───────── TEAM ───────── */
.team {
  width: 100%;
  background: #ece7df;
  padding: clamp(56px, 6vw, 112px) 0;
  text-align: center;
}

.team .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team h2 {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.team-lead {
  max-width: 640px;
  margin: 0 0 clamp(36px, 4vw, 64px);
  color: #4d4943;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.6;
}

.team-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  margin: 0 0 clamp(36px, 4vw, 64px);
}

.team-grid figure {
  margin: 0;
}

.team-grid img {
  width: 100%;
  display: block;
}

.team-grid figcaption {
  padding: clamp(14px, 1.4vw, 22px) clamp(12px, 1.2vw, 20px);
  border: 1px solid var(--line);
  border-top: 0;
  text-align: center;
  line-height: 1.4;
}

.team-grid figcaption strong {
  display: block;
  color: var(--ink);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.team-grid figcaption .role {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(10px, 0.7vw, 12px);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.team-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 36px);
  width: 100%;
  max-width: 720px;
  text-align: left;
}

.team-cta .chat-icon {
  display: inline-block;
  flex-shrink: 0;
  width: clamp(36px, 3vw, 52px);
  height: clamp(36px, 3vw, 52px);
  background-color: var(--gold);
  -webkit-mask: url("../svg/chat.svg") center / contain no-repeat;
          mask: url("../svg/chat.svg") center / contain no-repeat;
}

.team-cta p {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-cta p strong {
  display: inline;
  font-weight: 600;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 52px;
  padding: 0 clamp(28px, 3vw, 48px);
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(90deg, #ba7430, #cb8b45);
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .15s ease;
}

.cta-button:hover {
  opacity: 0.92;
}

/* ───────── PAGE (strony tekstowe) ───────── */
.page-header {
  position: relative;
  width: 100%;
  background: #f7f5f1;
  padding: clamp(96px, 10vw, 160px) 0 clamp(40px, 4vw, 64px);
}

/* hero-bar w jasnym wariancie page-header — ciemne logo */
.page-header:not(.page-header--image) .hero-logo {
  color: var(--ink);
}

.page-header:not(.page-header--image) .hero-logo__mark {
  border-color: var(--ink);
}

.page-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}

.page-header .small-line {
  margin: clamp(16px, 2vw, 28px) 0 0;
}

/* wariant z obrazem tła pod tytułem */
.page-header--image {
  position: relative;
  background-color: #1c1c1c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: clamp(120px, 14vw, 240px) 0 clamp(80px, 9vw, 144px);
  color: #fff;
  overflow: hidden;
}

.page-header--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.page-header--image .container {
  position: relative;
  z-index: 1;
}

.page-header--image .page-title {
  color: #fff;
}

.page-content-section {
  width: 100%;
  background: var(--paper);
  padding: clamp(32px, 4vw, 64px) 0 clamp(64px, 7vw, 128px);
}

.page-content {
  width: 100%;
  color: var(--ink);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.75;
}

.page-content > *:first-child {
  margin-top: 0;
}

.page-content > *:last-child {
  margin-bottom: 0;
}

.page-content p {
  margin: 0 0 1.2em;
}

.page-content h2 {
  margin: clamp(40px, 4vw, 64px) 0 18px;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}

.page-content h3 {
  margin: clamp(32px, 3.2vw, 48px) 0 14px;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.page-content h4 {
  margin: 24px 0 12px;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
  color: var(--ink);
}

.page-content h5,
.page-content h6 {
  margin: 20px 0 10px;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 600;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.page-content li {
  margin-bottom: 0.5em;
}

.page-content li::marker {
  color: var(--gold);
}

.page-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.page-content a:hover,
.page-content a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold-dark);
}

.page-content strong,
.page-content b {
  font-weight: 600;
  color: var(--ink);
}

.page-content em,
.page-content i {
  font-style: italic;
}

.page-content blockquote {
  margin: clamp(20px, 2.4vw, 36px) 0;
  padding: clamp(14px, 1.6vw, 24px) clamp(18px, 2vw, 32px);
  border-left: 3px solid var(--gold);
  background: #f7f5f1;
  color: #3c3a37;
  font-style: italic;
}

.page-content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content hr {
  margin: clamp(28px, 3vw, 48px) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.page-content img,
.page-content figure {
  max-width: 100%;
  height: auto;
  margin: clamp(20px, 2vw, 32px) 0;
}

.page-content figure {
  margin-left: 0;
  margin-right: 0;
}

.page-content figcaption {
  margin-top: 10px;
  font-size: clamp(12px, 0.85vw, 14px);
  color: var(--muted);
  text-align: center;
}

.page-content table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
}

.page-content th,
.page-content td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.page-content th {
  background: #f7f5f1;
  font-weight: 600;
}

.page-content code {
  padding: 2px 6px;
  background: #f0ede8;
  border-radius: 2px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.page-content pre {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  background: #1c1c1c;
  color: #efe9e1;
  border-radius: 2px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(12px, 0.85vw, 14px);
  line-height: 1.55;
}

.page-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ───────── FOOTER ───────── */
.footer {
  width: 100%;
  background: var(--charcoal);
  color: #f1eee9;
  padding: clamp(48px, 5vw, 96px) 0 clamp(36px, 4vw, 72px);
}

.footer .container {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) minmax(220px, 1fr);
  gap: clamp(40px, 5vw, 96px);
}

.logo {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.logo span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border: 2px solid #fff;
  font-size: 22px;
}

.logo strong {
  display: block;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.25;
  letter-spacing: 6px;
  font-weight: 400;
}

.footer p {
  margin: 18px 0 0;
  color: #d0cbc5;
  font-size: clamp(12px, 0.85vw, 15px);
  line-height: 1.65;
}

.footer h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  letter-spacing: 1px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 14px;
  color: #d0cbc5;
  font-size: clamp(12px, 0.85vw, 15px);
  line-height: 1.5;
}

.contact-line a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.contact-line a:hover {
  color: #fff;
}

.contact-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.contact-line--phone .contact-icon { -webkit-mask-image: url("../svg/phone.svg"); mask-image: url("../svg/phone.svg"); }
.contact-line--mail  .contact-icon { -webkit-mask-image: url("../svg/mail.svg");  mask-image: url("../svg/mail.svg"); }
.contact-line--globe .contact-icon { -webkit-mask-image: url("../svg/globe.svg"); mask-image: url("../svg/globe.svg"); }

.footer-brand {
  text-align: center;
}

.footer-brand p {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  color: #fff;
  font-size: clamp(18px, 1.4vw, 24px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: inherit;
  text-decoration: none;
  transition: opacity .15s ease;
}

.social-link:hover {
  opacity: 0.75;
}

.social-link .social-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.social-link--facebook  .social-icon { -webkit-mask-image: url("../svg/facebook.svg");  mask-image: url("../svg/facebook.svg"); }
.social-link--instagram .social-icon { -webkit-mask-image: url("../svg/instagram.svg"); mask-image: url("../svg/instagram.svg"); }
.social-link--mail      .social-icon { -webkit-mask-image: url("../svg/mail.svg");      mask-image: url("../svg/mail.svg"); }

.copyright {
  width: 100%;
  background: #151515;
  color: #9c9893;
  font-size: clamp(11px, 0.75vw, 13px);
  padding: clamp(14px, 1.5vw, 24px) 0;
}

.copyright .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 8vw, 160px);
}

.copyright a {
  color: #d8d3cc;
  text-decoration: none;
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .signup .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-card {
    max-width: none;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .why-grid article:nth-child(2) {
    border-right: 0;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .info-strip ul {
    border-left: 0;
    padding-left: 0;
  }

  .location {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .location .local-list {
    padding-right: var(--gutter);
  }

  .map {
    height: clamp(320px, 60vw, 480px);
  }

  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead,
  .hero-lead,
  .intro h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
  }

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

  .why-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    padding-top: 24px;
  }

  .why-grid article:last-child {
    border-bottom: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .team-cta {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .team-cta p {
    text-align: center;
  }

  .copyright .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
