/* =========================================================
   cubpack333.org — Klub fitness premium
   Light adaptation of the Modal design system (DESIGN.md)
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces — light inversion of the Modal surface ladder */
  --surface-page:      #ffffff;
  --surface-ground:    #f5faf4;
  --surface-carbon:    #eef6ec;
  --surface-mint:      #def0dd;
  --surface-ink:       #131a12;
  --surface-ink-soft:  #1c261a;
  --surface-accent:    #7fee64;

  /* Text */
  --text-ink:      #131a12;
  --text-body:     #4d5f4b;
  --text-muted:    #6c7d69;
  --text-eyebrow:  #3f7a35;
  --text-on-dark:  #ddffdc;
  --text-on-dark-body: #a9c3a4;
  --text-on-dark-muted: #8aa287;

  /* Lines & accents */
  --border:        #dfeadc;
  --border-strong: #c6d8c2;
  --border-dark:   #2a3628;
  --accent:        #7fee64;
  --accent-deep:   #2f7a3c;
  --accent-wash:   #f0fbee;

  /* Typography */
  --font-display: 'Inter Tight', 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-base: 16px;
  --text-subheading: clamp(17px, 1.1vw + 14px, 20px);
  --text-heading-sm: clamp(20px, 0.6vw + 18px, 24px);
  --text-heading: clamp(24px, 1.4vw + 19px, 30px);
  --text-heading-lg: clamp(28px, 2.6vw + 18px, 42px);
  --text-display: clamp(36px, 5vw + 16px, 64px);

  /* Spacing */
  --sp-4: 4px;   --sp-8: 8px;   --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-28: 28px; --sp-32: 32px;
  --sp-40: 40px; --sp-48: 48px; --sp-56: 56px; --sp-64: 64px;
  --sp-96: 96px; --sp-128: 128px;

  /* Layout */
  --page-max: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-gap: clamp(56px, 7vw, 96px);
  --card-padding: clamp(24px, 2.4vw, 32px);

  /* Radii — only these three, per DESIGN.md */
  --radius-card: 8px;
  --radius-button: 12px;
  --radius-pill: 9999px;

  --shadow-nav: rgba(19, 26, 18, 0.06) 0 10px 15px -3px, rgba(19, 26, 18, 0.05) 0 4px 6px -4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 300ms;
}

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.5;
  letter-spacing: -0.022em;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-ink);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: var(--text-heading-lg); line-height: 1.06; letter-spacing: -0.028em; }
h3 { font-size: var(--text-heading-sm); line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: var(--text-subheading); line-height: 1.35; letter-spacing: -0.018em; }
p  { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

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

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-gap); }
.section--ground { background: var(--surface-ground); }
.section--mint   { background: var(--surface-mint); }
.section--ink    { background: var(--surface-ink); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-eyebrow);
  margin-bottom: var(--sp-12);
}
.section--ink .eyebrow { color: #9cbf93; }

.lead {
  font-size: var(--text-subheading);
  line-height: 1.55;
  letter-spacing: -0.018em;
  color: var(--text-body);
  margin-top: var(--sp-20);
}
.section--ink h2 { color: var(--text-on-dark); }
.section--ink .lead,
.section--ink p { color: var(--text-on-dark-body); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface-ink);
  color: var(--text-on-dark);
  padding: 12px 20px;
  border-radius: var(--radius-button);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.022em;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 14px 28px;
  cursor: pointer;
  text-align: center;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              fill var(--dur) var(--ease), stroke var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Accent pill — rationed: max one per viewport */
.btn--accent {
  background: var(--accent);
  color: var(--surface-ink);
  border-radius: var(--radius-pill);
  border-color: var(--accent);
  padding: 15px 30px;
}
.btn--accent:hover { background: #6fe152; border-color: #6fe152; }

/* Primary filled — dark, "engraved" */
.btn--filled {
  background: var(--surface-ink);
  color: var(--text-on-dark);
  border-color: var(--surface-ink);
}
.btn--filled:hover { background: #23301f; border-color: #23301f; }

/* Ghost outline */
.btn--ghost {
  background: transparent;
  color: var(--text-ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text-ink); background: rgba(19, 26, 18, 0.03); }

.section--ink .btn--ghost { color: var(--text-on-dark); border-color: #3e4a3c; }
.section--ink .btn--ghost:hover { border-color: var(--text-on-dark); background: rgba(221, 255, 220, 0.06); }

.btn--block { width: 100%; }

/* Outlined ghost link chip */
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--accent-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-chip:hover { border-color: var(--accent-deep); background: var(--accent-wash); }

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-nav); background: rgba(255, 255, 255, 0.94); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-ink);
  white-space: nowrap;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-card);
  background: var(--surface-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__suffix { color: var(--text-muted); font-weight: 400; }

.nav { display: flex; align-items: center; gap: var(--sp-32); }
.nav__link {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--text-ink);
  letter-spacing: -0.026em;
  padding: 6px 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--accent-deep); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__cta { display: inline-flex; }
/* CTA wewnątrz menu jest widoczne tylko w wersji mobilnej */
.nav > .btn { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-button);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 150ms linear;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.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(-6.5px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px);
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(127, 238, 100, 0.18) 0%, rgba(127, 238, 100, 0) 62%),
    radial-gradient(50% 60% at 92% 18%, rgba(127, 238, 100, 0.12) 0%, rgba(127, 238, 100, 0) 60%),
    var(--surface-ground);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-ink);
  margin-bottom: var(--sp-24);
}
.hero__badge i {
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  display: block;
  box-shadow: 0 0 0 4px rgba(127, 238, 100, 0.25);
}

.hero h1 .accent { color: var(--accent-deep); }

.hero__sub { max-width: 560px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-20);
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: var(--sp-32);
  border-top: 1px solid var(--border-strong);
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-ink);
  line-height: 1.1;
}
.hero__stat span {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero form card */
.form-card {
  background: var(--surface-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
.form-card__title { margin-bottom: var(--sp-8); }
.form-card__note {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-24);
}

/* ---------- 7. Forms ---------- */
.field { margin-bottom: var(--sp-16); }
.field__label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--text-ink);
  margin-bottom: 6px;
}
.field__control {
  width: 100%;
  background: var(--surface-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-size: var(--text-base);
  color: var(--text-ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field__control::placeholder { color: #97a894; }
.field__control:focus { outline: none; border-color: var(--accent-deep); background: var(--accent-wash); }
textarea.field__control { min-height: 112px; resize: vertical; }
select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234d5f4b' stroke-width='1.6'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
.field__error {
  display: none;
  font-size: var(--text-caption);
  color: #a3402f;
  margin-top: 5px;
}
.field.has-error .field__control { border-color: #c26a5b; background: #fdf5f3; }
.field.has-error .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
  cursor: pointer;
}
.checkbox a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

.form__footer { margin-top: var(--sp-24); }
.form__status {
  display: none;
  margin-top: var(--sp-16);
  padding: 14px 16px;
  border-radius: var(--radius-card);
  font-size: var(--text-body-sm);
  border: 1px solid var(--accent-deep);
  background: var(--accent-wash);
  color: #1f5c28;
}
.form__status.is-visible { display: block; }

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: var(--sp-20); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--sp-12); }
.card p { color: var(--text-body); }

.card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--surface-mint);
  border-radius: var(--radius-card);
  margin-bottom: var(--sp-20);
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--surface-ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card--dark {
  background: var(--surface-ink-soft);
  border-color: var(--border-dark);
}
.card--dark h3 { color: var(--text-on-dark); }
.card--dark p { color: var(--text-on-dark-body); }
.card--dark .card__icon { background: rgba(127, 238, 100, 0.12); }
.card--dark .card__icon svg { stroke: var(--accent); }
.card--dark:hover { border-color: #3e4a3c; }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.feature-list { display: grid; gap: var(--sp-20); }
.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.feature__num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
}
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: var(--text-body-sm); color: var(--text-muted); }

.panel {
  background: var(--surface-mint);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  border: 1px solid var(--border-strong);
}
.panel__list { display: grid; gap: var(--sp-16); }
.panel__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--text-body-sm);
  color: var(--text-ink);
}
.panel__list svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  stroke: var(--accent-deep);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Services */
.service {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service__tag {
  align-self: flex-start;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: var(--text-muted);
  margin-bottom: var(--sp-20);
}
.service__benefits {
  margin-top: var(--sp-20);
  padding-top: var(--sp-20);
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.service__benefits li {
  position: relative;
  padding-left: 20px;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}
.service__benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* Spaces / zones */
.zone {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface-page);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.zone:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.zone__visual {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eaf7e7 0%, #def0dd 55%, #d2ead0 100%);
  border-bottom: 1px solid var(--border);
}
.zone__visual svg { width: 56px; height: 56px; stroke: var(--surface-ink); fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.zone__body { padding: var(--sp-24); }
.zone__body h3 { font-size: var(--text-subheading); margin-bottom: 8px; }
.zone__body p { font-size: var(--text-body-sm); color: var(--text-muted); }

/* Trainers */
.trainer { text-align: left; }
.trainer__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #e6f4e3 0%, #def0dd 50%, #cfe6cc 100%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-20);
  overflow: hidden;
}
.trainer__initials {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
}
.trainer h3 { font-size: var(--text-subheading); margin-bottom: 2px; }
.trainer__role {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-eyebrow);
  font-weight: 500;
  margin-bottom: var(--sp-12);
}
.trainer p { font-size: var(--text-body-sm); color: var(--text-muted); }

/* Testimonials */
.quote {
  background: var(--surface-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  height: 100%;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.6;
  color: var(--accent);
}
.quote p { color: var(--text-body); }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface-mint);
  display: grid; place-items: center;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--accent-deep);
  flex: none;
}
.quote__author b { display: block; font-size: var(--text-body-sm); color: var(--text-ink); font-weight: 500; }
.quote__author span { display: block; font-size: var(--text-caption); color: var(--text-muted); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--border-strong);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  background: none;
  border: 0;
  padding: var(--sp-24) 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text-ink);
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--accent-deep); }
.faq__icon {
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-ink);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__icon::before { width: 11px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 11px; }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--accent); border-color: var(--accent); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.faq__a > div { padding-bottom: var(--sp-24); color: var(--text-body); max-width: 68ch; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.contact__info { display: grid; gap: var(--sp-24); }
.info-block {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--sp-20);
}
.info-block__label {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9cbf93;
  font-weight: 500;
  margin-bottom: 8px;
}
.info-block p, .info-block a { color: var(--text-on-dark); font-size: var(--text-base); }
.info-block a { text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur) var(--ease); }
.info-block a:hover { color: var(--accent); }

.contact__form {
  background: var(--surface-page);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}

/* ---------- 9. CTA band ---------- */
.cta-band {
  background: var(--surface-mint);
  border-radius: var(--radius-card);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-32);
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { margin-top: var(--sp-12); max-width: 46ch; }

/* ---------- 10. Footer ---------- */
.footer {
  background: var(--surface-ink);
  color: var(--text-on-dark-body);
  padding-block: clamp(48px, 6vw, 72px) var(--sp-32);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: var(--sp-40);
  border-bottom: 1px solid var(--border-dark);
}
.footer .logo { color: var(--text-on-dark); }
.footer .logo__mark { background: var(--accent); }
.footer .logo__mark svg rect { fill: var(--surface-ink); }
.footer .logo__suffix { color: var(--text-on-dark-muted); }
.footer__about { margin-top: var(--sp-16); font-size: var(--text-body-sm); color: var(--text-on-dark-body); max-width: 38ch; }
.footer__col h4 {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9cbf93;
  font-weight: 500;
  margin-bottom: var(--sp-16);
  font-family: var(--font-ui);
}
.footer__col li + li { margin-top: 10px; }
.footer__col a, .footer__col p {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-body);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__owner {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-body);
  line-height: 1.6;
}
.footer__owner b { color: var(--text-on-dark); font-weight: 500; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-16);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-24);
  font-size: var(--text-caption);
  color: #697368;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-20); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 11. Legal pages ---------- */
.legal-hero {
  background: var(--surface-ground);
  padding-block: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
}
.legal-hero p { margin-top: var(--sp-16); color: var(--text-muted); font-size: var(--text-body-sm); }
.legal {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--section-gap);
}
.legal h2 { font-size: var(--text-heading); margin-top: var(--sp-48); margin-bottom: var(--sp-16); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: var(--sp-32); margin-bottom: var(--sp-12); }
.legal p { margin-bottom: var(--sp-16); }
.legal ul { list-style: none; margin-bottom: var(--sp-16); display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal__box {
  background: var(--surface-mint);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  margin-top: var(--sp-32);
}
.legal__box p:last-child { margin-bottom: 0; }

/* ---------- 12. Reveal animation ----------
   Ukrywamy elementy wyłącznie wtedy, gdy JavaScript jest aktywny —
   bez skryptu cała treść pozostaje w pełni widoczna. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: 64px 0 auto;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-page);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-8) var(--gutter) var(--sp-24);
    box-shadow: var(--shadow-nav);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__link { padding: 14px 0; font-size: var(--text-base); border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: var(--sp-16); }

  .header__cta { display: none; }
}

@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: var(--sp-16); }
  .footer__top { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .link-chip { width: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .logo { font-size: 17px; }
  .logo__suffix { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .form-card, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
