/* ==========================================================================
   eKlub — Fundacja eKlub
   Monochrome design system (black / white / grey)
   Palette sampled from the eKlub logo: #262626 ink, #bfbfbf grey, #ffffff paper
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink & paper */
  --ink:          #121212;
  --ink-2:        #262626; /* logo wordmark black */
  --grey-800:     #3d3d3d;
  --grey-700:     #545454;
  --grey-600:     #6e6e6e;
  --grey-500:     #8c8c8c;
  --grey-400:     #a8a8a8;
  --grey-300:     #bfbfbf; /* logo house grey */
  --grey-200:     #d8d8d8;
  --grey-150:     #e6e6e6;
  --grey-100:     #f0f0ef;
  --paper:        #ffffff;
  --paper-2:      #f7f7f6;

  /* Semantic */
  --bg:           var(--paper);
  --bg-alt:       var(--paper-2);
  --text:         var(--ink-2);
  /* Both greys are chosen to clear WCAG AA (4.5:1) for normal-size text on
     --paper and --paper-2, while staying visually distinct from each other:
     #5c5c5c ≈ 6.7:1, #6f6f6f ≈ 5.0:1 on white. */
  --text-muted:   #5c5c5c;
  --text-faint:   #6f6f6f;
  --line:         var(--grey-150);
  --line-strong:  var(--grey-300);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.80rem, 0.77rem + 0.14vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.34vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.27rem + 0.62vw, 1.8rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.1rem, 1.65rem + 2.2vw, 3.5rem);
  --step-5:  clamp(2.6rem, 1.85rem + 3.6vw, 5rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  /* Elevation — monochrome only */
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(18, 18, 18, 0.22);
  --shadow-lg: 0 24px 60px -28px rgba(18, 18, 18, 0.35);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Every photograph is rendered monochrome to hold the black & white schema */
img.photo, .photo img { filter: grayscale(100%) contrast(1.04); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

/* The reset zeroes every margin, so give text that directly follows a heading
   a default gap. Utility classes such as .mt-6 still win on specificity. */
h1 + p, h2 + p, h3 + p, h4 + p,
h1 + ul, h2 + ul, h3 + ul, h4 + ul { margin-top: var(--sp-4); }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, var(--sp-9)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-7)); }
.section--alt { background: var(--bg-alt); }

/* Inverted band — the only "dark mode" surface in the system */
.section--invert {
  background: var(--ink);
  color: var(--grey-200);
}
.section--invert h1, .section--invert h2,
.section--invert h3, .section--invert h4 { color: var(--paper); }
.section--invert .eyebrow { color: var(--grey-400); }
.section--invert .eyebrow::before { background: var(--grey-600); }
.section--invert .lead { color: var(--grey-300); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, var(--sp-6)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 600;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
  flex: none;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, var(--sp-7)); }

.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.85em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 1em; height: 1em; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn--invert { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--invert-ghost {
  --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--grey-700);
}
.btn--invert-ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Inline text link with animated rule */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.link:hover { background-size: 0% 1px; opacity: 0.65; }
.link svg { width: 0.9em; height: 0.9em; transition: transform var(--dur) var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Construction banner
   -------------------------------------------------------------------------- */
.notice {
  background: var(--ink);
  color: var(--grey-300);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--grey-800);
}
.notice[hidden] { display: none; }
.notice__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: 0.6rem;
}
.notice__text { flex: 1; margin: 0; }
.notice__text strong { color: var(--paper); font-weight: 600; }
.notice__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.notice__close {
  background: none; border: 0; cursor: pointer;
  color: var(--grey-500); font-size: 1.25rem; line-height: 1;
  padding: var(--sp-1) var(--sp-2); flex: none;
  transition: color var(--dur) var(--ease);
}
.notice__close:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 72px;
}

.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--sp-1); }

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--grey-700);
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.28rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

/* Language switch */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 2px;
  background: var(--paper);
}
.lang__btn {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
  color: var(--grey-600);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: var(--header-offset, 72px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-4) clamp(1.25rem, 4vw, 2.5rem) var(--sp-6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    max-height: calc(100dvh - var(--header-offset, 72px));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link {
    padding: 0.9rem 0;
    font-size: var(--step-1);
    font-family: var(--font-display);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, var(--sp-9)) clamp(3rem, 6vw, var(--sp-8));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/texture-concrete.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.07;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, var(--sp-8));
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__title { font-size: var(--step-5); font-weight: 600; }
.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.11em;
  background: var(--grey-300);
  z-index: -1;
}
.hero__lead { font-size: var(--step-1); color: var(--text-muted); max-width: 46ch; }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--grey-100);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) clamp(1.5rem, 5vw, var(--sp-8));
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.hero__stat dt {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.hero__stat dd {
  margin: var(--sp-2) 0 0;
  font-size: var(--step--1);
  color: var(--text-muted);
  max-width: 22ch;
}

/* --------------------------------------------------------------------------
   9. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, var(--sp-8)) clamp(2rem, 4vw, var(--sp-7));
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-head__title { font-size: var(--step-4); margin-bottom: var(--sp-4); }
.page-head .lead { max-width: 60ch; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-5);
}
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--grey-300); }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 3vw, var(--sp-6));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  height: 100%;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--text-muted); font-size: var(--step-0); margin: 0; }
.card .link { margin-top: auto; padding-top: var(--sp-2); }

.card--flat { border-color: transparent; background: var(--bg-alt); }
.card--flat:hover { border-color: var(--line-strong); }

/* Icon frame */
.icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  flex: none;
}
.icon-box svg { width: 20px; height: 20px; stroke: var(--ink); }

/* --------------------------------------------------------------------------
   11. Feature / split blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(2rem, 5vw, var(--sp-8));
  align-items: center;
}
.split--media-first .split__media { order: -1; }
@media (max-width: 780px) {
  .split--media-first .split__media { order: 0; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
  transition: transform 600ms var(--ease);
}
.split__media:hover img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   12. Lists
   -------------------------------------------------------------------------- */
.list-check > li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--sp-3);
  color: var(--text-muted);
}
.list-check > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}
.section--invert .list-check > li::before {
  border-color: var(--paper);
}

.list-dash > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--sp-3);
  color: var(--text-muted);
}
.list-dash > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.82em;
  width: 12px; height: 1.5px;
  background: var(--grey-400);
}

/* Numbered editorial list (the climate timeline) */
.timeline { counter-reset: step; border-top: 1px solid var(--line); }
.timeline__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--sp-5);
  padding-block: clamp(1.5rem, 3vw, var(--sp-6));
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 1fr; gap: var(--sp-3); }
}
.timeline__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--text-faint);
  line-height: 1.2;
}
.timeline__item h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.timeline__item p { color: var(--text-muted); margin: 0; }

/* Definition rows (contact details) */
.dl-rows { border-top: 1px solid var(--line); }
.dl-rows > div {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 560px) {
  .dl-rows > div { grid-template-columns: 1fr; gap: var(--sp-1); }
}
.dl-rows dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.dl-rows dd { margin: 0; }
.dl-rows a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. Price / offer panel
   -------------------------------------------------------------------------- */
.price {
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, var(--sp-7));
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.price__tag {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}
.price__amount {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.price__unit { font-size: var(--step-0); color: var(--text-muted); }
.price__note {
  font-size: var(--step--1);
  color: var(--text-faint);
  font-style: italic;
  margin-bottom: var(--sp-5);
}
.price hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-5); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-muted);
}
.section--invert .badge { border-color: var(--grey-700); color: var(--grey-400); }

/* --------------------------------------------------------------------------
   14. Values marquee / logo strip
   -------------------------------------------------------------------------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.strip__item {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.strip__item:hover { border-color: var(--ink); color: var(--ink); }


/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.field { display: grid; gap: var(--sp-2); }
.field > label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}
.field__hint { font-size: var(--step--1); color: var(--text-faint); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--grey-500); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--grey-500); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--grey-150);
}
.textarea { resize: vertical; min-height: 130px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23262626' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* Radio / checkbox groups */
.choice-group { display: grid; gap: var(--sp-2); }
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  font-size: var(--step-0);
}
.choice:hover { border-color: var(--line-strong); background: var(--bg-alt); }
.choice input { accent-color: var(--ink); margin-top: 0.3em; flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--bg-alt); }

fieldset { border: 0; padding: 0; margin: 0; }
legend {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: var(--sp-3);
}

.form__status {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: var(--step--1);
}
.form__status[hidden] { display: none; }

.field-error {
  font-size: var(--step--1);
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.field-error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 0.7rem; flex: none; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }

/* --------------------------------------------------------------------------
   16. Accordion (FAQ / details)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--grey-600); }
.accordion summary::after {
  content: "";
  width: 12px; height: 12px; flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion details > div { padding-bottom: var(--sp-5); color: var(--text-muted); max-width: 68ch; }
.accordion details > div > * + * { margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   16b. Map
   -------------------------------------------------------------------------- */
.map {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  aspect-ratio: 16 / 10;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--ink);
  color: var(--grey-300);
  padding-block: clamp(3rem, 7vw, var(--sp-8));
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../img/texture-concrete.jpg");
  background-size: cover;
  filter: grayscale(100%);
  opacity: 0.08;
  mix-blend-mode: screen;
}
.cta > * { position: relative; }
.cta h2 { color: var(--paper); margin-bottom: var(--sp-4); }
.cta p { max-width: 54ch; margin-bottom: var(--sp-6); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  /* Extra bottom padding keeps the floating "back to top" button, which sits
     over the last ~76px of the viewport, clear of the footer legal links. */
  padding-block: clamp(2.5rem, 5vw, var(--sp-8)) calc(var(--sp-6) + 3rem);
  font-size: var(--step--1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, var(--sp-7));
  padding-bottom: var(--sp-7);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* width:auto is load-bearing — without it the width="300" attribute wins and
   the logo stretches to the column while height stays pinned at 36px. */
.footer__brand img { height: 36px; width: auto; margin-bottom: var(--sp-4); }
.footer__brand p { color: var(--text-muted); max-width: 34ch; }

.footer h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.footer li + li { margin-top: var(--sp-3); }
.footer a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }

/* --------------------------------------------------------------------------
   19. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--grey-800); }
.to-top svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */
/* Scoped to .js (set by an inline script in <head>) so that with JavaScript
   disabled the content is simply visible instead of stuck at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); }
.max-60 { max-width: 60ch; }

/* Hide the language that is not active — used only where both are inlined */
html[lang="pl"] [data-only="en"],
html[lang="en"] [data-only="pl"] { display: none; }

/* --------------------------------------------------------------------------
   22. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .to-top, .notice, .cta { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* --------------------------------------------------------------------------
   23. Honeypot
   A field that is invisible and unreachable for people, but that automated
   spam scripts fill in anyway. send.php silently discards any submission
   where it has a value. Deliberately not display:none — some bots skip
   fields hidden that way.
   -------------------------------------------------------------------------- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
