/* ============================================================
   NOWICCY v2.1 — spokojna inżynierska premium
   Archivo (nagłówki i tekst) · IBM Plex Mono (mikroetykiety)
   Motyw: fazowane narożniki (jak faza na blasze stalowej)
   Żółć #f5c000 wyłącznie jako akcent — nigdy jako zalewka
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #141413;             /* ciepła czerń */
  --bg-deep: #0f0f0e;
  --surface: #1b1b19;
  --line: #2c2b28;
  --yellow: #f5c000;
  --yellow-hot: #ffd327;
  --paper: #edeae3;          /* jasna sekcja „beton” */
  --paper-line: #d3cfc4;
  --text: #f0efe9;
  --muted: #a29f96;
  --ink: #141413;
  --ink-muted: #5b584f;

  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --container: 76rem;
  --space-section: clamp(4.5rem, 3.5rem + 5vw, 8.5rem);
  --header-h: 78px;

  /* faza — ścięty narożnik */
  --bevel: 18px;
  --clip-bevel: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% 100%, 0 100%);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  color-scheme: dark;
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-light :focus-visible { outline-color: var(--ink); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 300;
  background: var(--yellow); color: var(--ink);
  padding: 0.6rem 1.2rem; font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(15, 15, 14, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand img { width: 170px; height: auto; }

.menu {
  display: flex; align-items: center;
  list-style: none; padding: 0;
}
.menu a {
  display: block; padding: 0.6rem 0.85rem;
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s;
}
.menu a:hover, .menu a.is-active { color: var(--yellow); }
.menu-cta a {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600;
  background: var(--yellow); color: var(--ink);
  clip-path: var(--clip-bevel);
  --bevel: 10px;
  margin-left: 0.8rem;
  padding: 0.62rem 1.15rem;
}
.menu-cta a:hover { background: var(--yellow-hot); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), top 0.3s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-deep);
    border-bottom: 2px solid var(--yellow);
    padding: 0.75rem 1.25rem 1.5rem;
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 0.9rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .menu-cta a { margin: 0.9rem 0 0; text-align: center; border-bottom: 0; }
}

/* ============================================================
   HERO — pełnoekranowe zdjęcie + pas treści poniżej
   ============================================================ */
.hero {
  position: relative;
  display: grid; align-items: center;
  min-height: min(88svh, 820px);
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(15, 15, 14, 0.93) 0%, rgba(15, 15, 14, 0.6) 52%, rgba(15, 15, 14, 0.28) 100%),
    linear-gradient(to top, rgba(15, 15, 14, 0.85) 0%, transparent 38%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.95) contrast(1.04);
  animation: hero-zoom 16s var(--ease-out) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-kicker {
  color: var(--yellow);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.4rem);
  font-weight: 750;
  margin-bottom: 1.4rem;
  max-width: 19ch;
}
.hero h1 .dot { color: var(--yellow); }
.hero-lead {
  color: rgba(240, 239, 233, 0.78);
  max-width: 46ch;
  font-size: 1.02rem;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-caption {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.75rem);
  bottom: 1.4rem;
  color: rgba(240, 239, 233, 0.55);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid {
  background: var(--yellow); color: var(--ink);
  clip-path: var(--clip-bevel);
  --bevel: 12px;
}
.btn-solid:hover { background: var(--yellow-hot); }
.btn-line {
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em;
}
.btn-line:hover { border-color: var(--yellow); color: var(--yellow); }

@media (max-width: 880px) {
  .hero { min-height: min(78svh, 700px); }
  .hero h1 { max-width: none; }
}

/* ============================================================
   SEKCJE — nagłówek w bocznej kolumnie
   ============================================================ */
.section { padding-block: var(--space-section); }
.section-line { border-top: 1px solid var(--line); }
.sec-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.sec-side { position: sticky; top: calc(var(--header-h) + 2rem); }
.sec-no {
  color: var(--yellow);
  margin-bottom: 0.9rem;
}
.sec-no::after {
  content: "";
  display: block;
  width: 30px; height: 2px;
  background: var(--yellow);
  margin-top: 0.55rem;
}
.sec-title {
  font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 730;
  margin-bottom: 0.9rem;
}
.sec-lead { color: var(--muted); font-size: 0.97rem; }

@media (max-width: 880px) {
  .sec-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .sec-side { position: static; }
}

/* ============================================================
   O NAS
   ============================================================ */
.about-big {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}
.about-big strong { color: var(--yellow); font-weight: 650; }
.about-small { color: var(--muted); max-width: 44rem; margin-bottom: 2.75rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
.fact {
  border-right: 1px solid var(--line);
  padding: 0.4rem 1.3rem;
}
.fact dd {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--yellow);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.fact dt { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .fact { padding-block: 1rem; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   USŁUGI
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 3.5rem);
}
.service {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.15rem;
  align-items: start;
}
.srv-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--yellow);
  border: 1px solid var(--line);
  clip-path: var(--clip-bevel);
  --bevel: 12px;
  background: var(--surface);
  padding: 10px;
  transition: border-color 0.25s, background-color 0.25s;
}
.srv-icon svg { width: 100%; height: 100%; }
.service:hover .srv-icon { border-color: var(--yellow); background: #201f1c; }
.service h3 {
  font-size: 1.12rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}
.service p { color: var(--muted); font-size: 0.93rem; }
.services-note {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.services-note a { color: var(--yellow); font-weight: 600; }
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
}

/* ============================================================
   KRUSZYWA — katalog na jasnym tle
   ============================================================ */
.section-light {
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--paper-line);
}
.section-light .sec-lead { color: var(--ink-muted); }
.section-light .sec-no { color: var(--ink); }
.section-light .sec-no::after { background: var(--yellow); }
.katalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
}
.pozycja figure { margin: 0; }
.pozycja img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--paper-line);
  transition: filter 0.3s;
  filter: saturate(0.95);
}
.pozycja:hover img { filter: saturate(1.12); }
.pozycja figcaption {
  padding-top: 0.6rem;
  font-weight: 550; font-size: 0.9rem;
  line-height: 1.35;
}
.pozycja figcaption .mono {
  display: block;
  color: var(--ink-muted);
  font-size: 0.66rem;
  margin-bottom: 0.15rem;
}

/* ============================================================
   PARK MASZYNOWY
   ============================================================ */
.flota {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}
.maszyna figure {
  margin: 0;
  overflow: hidden;
  clip-path: var(--clip-bevel);
  --bevel: 22px;
}
.maszyna img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.5s var(--ease-out);
}
.maszyna:hover img { transform: scale(1.04); }
.maszyna-info {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0.2rem 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}
.maszyna h3 { font-size: 1.05rem; font-weight: 650; }
.maszyna-spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   GALERIA — mozaika
   ============================================================ */
.mozaika {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.mozaika li:first-child { grid-column: span 2; grid-row: span 2; }
.foto {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: var(--surface);
  cursor: zoom-in; overflow: hidden;
}
.mozaika li:first-child .foto {
  clip-path: var(--clip-bevel);
  --bevel: 26px;
}
.foto img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.45s var(--ease-out), filter 0.3s;
}
.foto:hover img { transform: scale(1.05); filter: saturate(1.08); }
@media (max-width: 620px) { .mozaika { grid-template-columns: repeat(2, 1fr); } }

/* lightbox */
.lightbox {
  margin: auto; /* reset * { margin:0 } kasuje centrowanie <dialog> */
  border: 0; padding: 0;
  background: transparent;
  max-width: min(94vw, 1240px);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(10, 10, 9, 0.92); }
.lightbox img {
  max-width: min(94vw, 1240px);
  max-height: 86vh;
  width: auto; height: auto;
  margin-inline: auto;
}
.lightbox button {
  position: fixed;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--line);
  width: 50px; height: 50px;
  font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 0.2s, color 0.2s;
}
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.7rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ============================================================
   KONTAKT
   ============================================================ */
#kontakt { border-top: 1px solid var(--line); }
.kontakt-layout {
  display: grid;
  grid-template-columns: minmax(300px, 26rem) 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: stretch;
}
.kontakt-kol .sec-lead { margin-bottom: 1.9rem; }
.kontakt-lista { display: grid; gap: 1.1rem; align-content: start; }
.firma {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  padding: 1.4rem 1.6rem;
}
.firma h3 {
  font-size: 1rem; font-weight: 650;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}
.firma-adres { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.firma-adres .mono { color: var(--muted); }
.firma-tel {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--yellow);
  text-decoration: none;
  line-height: 1;
}
.firma-tel:hover { color: var(--yellow-hot); }
.firma-mail {
  display: block;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 1rem 1.6rem;
  font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.firma-mail:hover { border-color: var(--yellow); color: var(--yellow); }
.kontakt-mapa {
  min-height: 620px;
  clip-path: var(--clip-bevel);
  --bevel: 26px;
}
.kontakt-mapa iframe {
  width: 100%; height: 100%; min-height: 620px;
  border: 0; display: block;
  filter: grayscale(0.9) contrast(1.04);
  transition: filter 0.35s;
}
.kontakt-mapa:hover iframe { filter: grayscale(0.15); }
@media (max-width: 860px) {
  .kontakt-layout { grid-template-columns: 1fr; }
  .kontakt-mapa, .kontakt-mapa iframe { min-height: 440px; }
}

/* ============================================================
   STOPKA
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 4vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img { width: 185px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; }
.site-footer h3 { color: var(--yellow); margin-bottom: 1rem; font-weight: 400; }
.footer-nav ul { display: grid; gap: 0.4rem; }
.footer-nav a, .footer-kontakt a {
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-kontakt a:hover { color: var(--yellow); }
.footer-kontakt p { margin-bottom: 0.4rem; }
.footer-adres { color: var(--muted); margin-top: 1rem; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding-block: 1.2rem;
  color: #7b7973; font-size: 0.85rem;
}
.footer-bottom .mono { font-size: 0.68rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   ANIMACJE WEJŚCIA
   ============================================================ */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up var(--dur) var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-fade, .js .reveal {
    opacity: 1; transform: none;
    animation: none; transition: none;
  }
  .hero-bg { animation: none; transform: none; }
  .maszyna:hover img, .foto:hover img { transform: none; }
  .cookie-banner { animation: none; }
}

/* ============================================================
   ZAŚLEPKA MAPY (zgoda na treści Google)
   ============================================================ */
.map-consent {
  height: 100%;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(20,20,19,0.9), rgba(15,15,14,0.9)),
    repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--bg-deep) 14px 28px);
  border: 1px solid var(--line);
}
.map-consent-title {
  color: var(--yellow);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-consent-text {
  color: var(--muted);
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
.map-consent-link {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.map-consent-link:hover { color: var(--yellow); border-color: var(--yellow); }
@media (max-width: 860px) {
  .map-consent { min-height: 360px; }
}

/* ============================================================
   STOPKA — informacje prawne
   ============================================================ */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}
.footer-legal a,
.link-btn {
  color: #9a988f;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover,
.link-btn:hover { color: var(--yellow); }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:focus-visible,
.footer-legal a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ============================================================
   BANER COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--bg-deep);
  border-top: 2px solid var(--yellow);
  box-shadow: 0 -18px 50px rgba(0,0,0,0.55);
  animation: cookie-in 0.5s var(--ease-out) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: 1.25rem;
}
.cookie-banner-title {
  color: var(--yellow);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.cookie-banner-text p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 46rem;
}
.cookie-banner-text a { color: var(--text); text-underline-offset: 3px; }
.cookie-banner-text a:hover { color: var(--yellow); }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner-actions .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
@media (max-width: 820px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   OKNO USTAWIEŃ COOKIES
   ============================================================ */
.cookie-modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: min(88vh, 720px);
  margin: auto; /* reset * { margin:0 } kasuje centrowanie <dialog> */
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  clip-path: var(--clip-bevel);
  --bevel: 16px;
}
.cookie-modal::backdrop { background: rgba(10,10,9,0.72); }
.cookie-modal-inner {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  max-height: inherit;
}
.cookie-modal-close {
  position: absolute;
  top: 0.6rem; right: 0.9rem;
  background: none; border: 0;
  color: var(--muted);
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover { color: var(--yellow); }
.cookie-modal-title {
  font-size: 1.4rem;
  font-weight: 730;
  margin-bottom: 0.5rem;
}
.cookie-modal-lead {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}
.cookie-cat {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.cookie-cat-name { font-weight: 600; font-size: 1.02rem; }
.cookie-cat-state {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cookie-cat-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch-track {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid #3a3934;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}
.cookie-switch input:checked + .cookie-switch-track { background: var(--yellow); border-color: var(--yellow); }
.cookie-switch input:checked + .cookie-switch-track::after { transform: translateX(20px); background: var(--ink); }
.cookie-switch input:focus-visible + .cookie-switch-track { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.cookie-modal-actions .btn { padding: 0.8rem 1.4rem; font-size: 0.92rem; }

/* ============================================================
   PODSTRONA PRAWNA (polityka prywatności)
   ============================================================ */
.legal-wrap { max-width: 52rem; margin-inline: auto; }
.legal-head { margin-bottom: 3rem; }
.legal-head .sec-title { margin-bottom: 0.6rem; }
.legal-updated { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.legal-body { color: #d9d7cf; }
.legal-body h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 700;
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  margin: 1.6rem 0 0.6rem;
}
.legal-body p { line-height: 1.7; margin-bottom: 1rem; max-width: 46rem; }
.legal-body ul { margin: 0 0 1.2rem 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal-body li { line-height: 1.6; }
.legal-body li::marker { color: var(--yellow); }
.legal-body a { color: var(--yellow); text-underline-offset: 3px; }
.legal-body strong { color: var(--text); font-weight: 650; }
.legal-callout {
  background: var(--surface);
  border-left: 3px solid var(--yellow);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0 1.6rem;
}
.legal-callout p { margin: 0; color: var(--text); }
.legal-table-wrap { overflow-x: auto; margin: 0.5rem 0 1.6rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 34rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.legal-table th { background: var(--bg-deep); color: var(--yellow); font-weight: 600; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-back:hover { color: var(--yellow); border-color: var(--yellow); }
