/* === Dobry Piec — design tokens === */
:root {
  /* Colors — calm, trustworthy, light */
  --bg: #f6f5f1;            /* warm neutral page background */
  --bg-soft: #efece4;       /* slightly deeper for alternating bands */
  --surface: #ffffff;
  --line: #e6e3da;
  --line-strong: #d4cfc1;

  --ink: #15315b;           /* primary dark navy — headings, primary CTA */
  --ink-2: #0f2444;         /* deeper for hover */
  --text: #1a2540;          /* body text */
  --text-soft: #4a5572;     /* secondary copy */
  --muted: #75809a;         /* tertiary/help */

  --accent: #1f6b4a;        /* small dose green — trust, "ok" states */
  --accent-2: #195839;      /* hover */
  --accent-soft: #e7efe9;   /* subtle green tints */

  --warn-soft: #fbf1e3;     /* warm tint for "warning" pill backgrounds */
  --warn-ink: #8a5a1c;

  /* Type scale (default) — generous, readable for older audience */
  --fs-base: 17px;
  --fs-lead: 19px;          /* hero subhead */
  --fs-h1: 56px;
  --fs-h2: 38px;
  --fs-h3: 24px;
  --fs-eyebrow: 13px;
  --fs-small: 14px;

  /* Large mode — toggled via [data-fontscale="large"] */
  --shadow-card: 0 1px 2px rgba(21, 49, 91, 0.04), 0 8px 24px rgba(21, 49, 91, 0.06);
  --shadow-soft: 0 1px 2px rgba(21, 49, 91, 0.04);
  --shadow-lift: 0 1px 2px rgba(21, 49, 91, 0.05), 0 18px 40px rgba(21, 49, 91, 0.10);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1200px;
  --gutter: 28px;
}

[data-fontscale="large"] {
  --fs-base: 19px;
  --fs-lead: 22px;
  --fs-h1: 64px;
  --fs-h2: 42px;
  --fs-h3: 26px;
  --fs-small: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 0.6em 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow.ink { color: var(--ink); }
.eyebrow.ink::before { background: var(--ink); }

/* Buttons — generous tap targets, calm */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 52px;
  white-space: nowrap;
  position: relative;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-primary:active { transform: translateY(1px); }

/* Pulse ring on primary CTA (calm, slow) */
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  animation: pulse 4.5s ease-out infinite;
}
@keyframes pulse {
  0%, 70% { transform: scale(0.98); opacity: 0; }
  78%     { transform: scale(1.0);  opacity: 0.55; }
  100%    { transform: scale(1.06); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse::after { display: none; }
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-2); }
.btn-link { background: transparent; padding: 8px 0; color: var(--ink); border-bottom: 2px solid var(--ink); border-radius: 0; min-height: 0; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Section spacing */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-small); color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 52px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(21, 49, 91, 0.10);
}
.field.error input { border-color: #c0492f; }
.field .err { color: #c0492f; font-size: 13px; font-weight: 600; }

/* Image-slot shape + caption */
image-slot {
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.imgslot-caption {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Reveal on hover for testimonials toggled-off state */
.dim { opacity: 0.6; }

/* Mobile sticky bar shown only on small screens */
.sticky-bar { display: none; }

/* === Responsive === */
@media (max-width: 980px) {
  :root { --fs-h1: 38px; --fs-h2: 28px; --fs-h3: 21px; --gutter: 20px; }
  [data-fontscale="large"] { --fs-h1: 44px; --fs-h2: 32px; --fs-h3: 22px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } /* sticky bar room + iOS home indicator */
  .sticky-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(21, 49, 91, 0.08);
  }
  .sticky-bar .btn { flex: 1; min-height: 56px; padding: 14px 16px; font-size: 15px; }
  .nav-desktop { display: none !important; }
}
@media (min-width: 981px) {
  .nav-mobile-only { display: none !important; }
}

/* Helpers */
.row { display: flex; gap: 24px; }
.grid { display: grid; gap: 24px; }

/* Two-column splits — collapse to 1 col on mobile */
.split-2,
.split-1-1-1 { display: grid; gap: 56px; align-items: start; }
.split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.split-1-1   { display: grid; gap: 56px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-1-4-1 { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.split-footer { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .split-2, .split-1-1, .split-1-4-1 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .split-no-sticky { position: static !important; top: auto !important; }
}
@media (max-width: 560px) {
  .split-footer { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.center-text { text-align: center; }
.muted { color: var(--text-soft); }
.lead { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.55; }

/* Hide scrollbars in tweak preview etc. */
.no-scrollbar::-webkit-scrollbar { display: none; }

/* === Polish & a11y (additive) ============================================= */

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
[id] { scroll-margin-top: 80px; }

body { -webkit-tap-highlight-color: transparent; }
.btn, a, button, summary, label {
  touch-action: manipulation;
}

@media (hover: none) {
  .btn:hover,
  .btn-primary:hover,
  .btn-call:hover,
  .btn-ghost:hover { transform: none; }
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 12px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

/* iPhone home-indicator clearance — only in the mobile range where the bar exists. */
@media (max-width: 980px) {
  .sticky-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  @supports (padding: env(safe-area-inset-bottom)) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  }
}

html, body { overflow-x: clip; }

/* === Card hover micro-interaction (subtle; works without JS) ============== */
.card { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }

/* === Soft divider between stacked content bands ==========================
   A centered, fading hairline at the top of each section that follows another
   section. Skips the dark FinalCTA (its inline style carries var(--ink)) —
   that band separates by colour already. */
.section + .section:not([style*="--ink"]) { position: relative; }
.section + .section:not([style*="--ink"])::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 88%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

/* === Scroll reveal (progressive enhancement; wired by reveal.js) =========
   Hidden state is gated behind html.js-reveal, which reveal.js adds ONLY when
   motion is allowed — so JS-off / reduced-motion users see everything at once
   (no CLS, no hidden content). Transform/opacity only → GPU-friendly. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .card,
  html.js-reveal .blog-card,
  html.js-reveal .reveal,
  html.js-reveal .post-cta,
  html.js-reveal .post-related {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease,
                transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  html.js-reveal .card.is-visible,
  html.js-reveal .blog-card.is-visible,
  html.js-reveal .reveal.is-visible,
  html.js-reveal .post-cta.is-visible,
  html.js-reveal .post-related.is-visible {
    opacity: 1;
    transform: none;
    transition-delay: 0s; /* don't delay later hover/interaction transitions */
  }
}

/* ============================================================
   REDESIGN 2026 — foundation ported from the Claude Design concept
   (deep navy + green, Bricolage/Hanken, photo-led). Only the landing
   + blog load styles.css, so this is scoped to them.
   Phase 1: fonts, tokens, hero. Header/sections/form/footer/blog follow.
   ============================================================ */
:root {
  --navy-900: #0c1d35;
  --navy-700: #102845;
  --navy-soft: #1d3f6f;
  --green: #1f9d57;
  --green-deep: #16794a;
  --green-bright: #2ecc71;
  --on-navy: #eaf1fb;
  --on-navy-mut: #9fb4d1;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
body { font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---- self-contained pill buttons (new design; coexist with old .btn) ---- */
.btn--green, .btn--secondary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16.5px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
  white-space: nowrap; line-height: 1; cursor: pointer; text-decoration: none;
}
.btn--green svg, .btn--secondary svg { width: 19px; height: 19px; flex: none; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 16px 34px -18px rgba(31,157,87,.8); }
.btn--green:hover { transform: translateY(-2px); background: var(--green-deep); }
.btn--secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }
@media (hover: none) { .btn--green:hover, .btn--secondary:hover { transform: none; } }

/* ---- HERO (full-bleed photo + navy scrim) ---- */
.hero {
  position: relative; min-height: min(82vh, 760px);
  display: flex; align-items: center;
  padding-block: clamp(96px, 12vh, 140px) clamp(52px, 8vh, 92px);
  overflow: hidden; isolation: isolate; background: var(--navy-900);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy-700) 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,18,33,.95) 0%, rgba(8,18,33,.88) 30%, rgba(8,18,33,.6) 60%, rgba(8,18,33,.4) 100%),
    linear-gradient(0deg, rgba(8,18,33,.8) 0%, rgba(8,18,33,0) 46%);
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 420px at 96% 4%, rgba(46,204,113,.18), transparent 62%);
  mix-blend-mode: screen;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 700px; }
.hero .eyebrow { color: var(--green-bright); margin-bottom: 20px; }
.hero .eyebrow::before { background: var(--green-bright); }
.hero h1 {
  font-size: clamp(37px, 5.4vw, 66px); color: #fff; line-height: 1.04;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 .accent { color: var(--green-bright); display: block; }
.hero-lead {
  margin: 24px 0 0; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.6;
  color: rgba(234,241,251,.9); max-width: 56ch; text-shadow: 0 1px 16px rgba(0,0,0,.35);
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-pills .pill {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  padding: 10px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-pills .pill svg { width: 16px; height: 16px; color: var(--green-bright); flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 620px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8,18,33,.62) 0%, rgba(8,18,33,.74) 60%, rgba(8,18,33,.9) 100%);
  }
  .hero-cta .btn--green, .hero-cta .btn--secondary { width: 100%; justify-content: center; }
  .hero-pills .pill { white-space: normal; }
}

/* ---- pill button set (navy / ghost / on-navy / outline-light) ---- */
.btn--primary, .btn--ghost, .btn--onnavy, .btn--outline-light {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16.5px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
  white-space: nowrap; line-height: 1; cursor: pointer; text-decoration: none;
}
.btn--primary svg, .btn--ghost svg, .btn--onnavy svg, .btn--outline-light svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 18px 44px -22px rgba(18,40,69,.34); }
.btn--primary:hover { transform: translateY(-2px); background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); background: rgba(21,49,91,.04); }
.btn--onnavy { background: #fff; color: var(--ink); }
.btn--onnavy:hover { transform: translateY(-2px); background: var(--on-navy); }
.btn--outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--outline-light:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
@media (hover: none) {
  .btn--primary:hover, .btn--ghost:hover, .btn--onnavy:hover, .btn--outline-light:hover { transform: none; }
}

/* ---- HEADER (sticky, scroll-shadow, desktop nav + mobile menu) ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 245, 241, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18,40,69,.5); }
.site-header .nav { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.brand span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--green-deep); text-transform: uppercase; margin-top: 5px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 17px; margin: 0 auto; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-soft); position: relative; white-space: nowrap; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--green); transition: width .25s var(--ease); border-radius: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 14.5px; white-space: nowrap; }
.nav-phone svg { width: 17px; height: 17px; color: var(--green); }
.nav-cta { padding: 11px 16px; font-size: 14.5px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; margin-left: auto; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; transform-origin: center; }
/* open state → morph the three bars into an X (bars sit 7.5px center-to-center) */
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* "Usługi" dropdown (desktop nav) */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dd-trigger svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-dd:hover .nav-dd-trigger svg { transform: rotate(180deg); }
.nav-dd::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 16px; } /* hover bridge over the gap */
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: -12px; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dd-menu a { padding: 10px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-dd-menu a::after { display: none; } /* no nav underline inside the menu */
.nav-dd-menu a:hover { background: var(--cream-2); color: var(--green-deep); }

/* "Usługi" group inside the mobile menu (hover can't work on touch) */
.mm-heading { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 0 2px; }
.mobile-menu .mm-group a { padding-left: 14px; }

@media (max-width: 1100px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .burger { display: flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 76px 0 auto 0; z-index: 55;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift); padding: 18px var(--gutter) 26px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.28s var(--ease);
  }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 13px 0; font-weight: 600; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu .mm-actions { display: grid; gap: 10px; margin-top: 18px; }
  .mobile-menu .mm-actions a { border: 0; justify-content: center; }
}

/* ---- redesign tokens (rounder radii, layered shadows, paper bg) ---- */
:root {
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --card: #ffffff;
  --paper: #fbf8f2;
  --cream-2: #efe8db;
  --shadow-sm: 0 2px 8px rgba(18,40,69,.06);
  --shadow: 0 18px 44px -22px rgba(18,40,69,.34);
  --shadow-lg: 0 40px 90px -40px rgba(12,29,53,.55);
}

/* ---- section scaffolding (new design) ---- */
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--navy { background: var(--ink); color: var(--on-navy); position: relative; }
.section--navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(680px 440px at 96% 4%, rgba(46,204,113,.24), transparent 60%),
    radial-gradient(560px 420px at 6% 100%, rgba(46,204,113,.13), transparent 60%);
}
.section--navy > .container { position: relative; z-index: 2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: var(--on-navy-mut); }
.section--paper { background: linear-gradient(180deg, var(--cream-2), var(--bg)); }
/* Clearer section separation: alternate plain bands as SOLID flat tones — odd
   sections stay --bg (lighter), even get a solid --cream-2 (darker). Hard step
   at each boundary, no gradient. Explicit --navy / --paper / .final keep their
   own bg; the hero (.hero) is the 1st <section> and is excluded (not .section). */
main > .section:not(.section--navy):not(.section--paper):not(.final):nth-of-type(even) {
  background: var(--cream-2);
}

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: 18px; }
h2.h-sec { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.06; }

/* KIEDY — card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.s-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.s-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.s-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(150deg, rgba(46,204,113,.16), rgba(21,49,91,.08));
  color: var(--green-deep); display: grid; place-items: center; border: 1px solid rgba(31,157,87,.2);
}
.s-ico svg { width: 26px; height: 26px; }
.s-card h3 { font-size: 20.5px; margin-bottom: 9px; }
.s-card p { margin: 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.55; }
.s-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-size: 15px; color: var(--line-strong); font-weight: 700; }

/* 3 WARIANTY — navy cards */
.var-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); margin-top: 14px; }
.var-card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 28px; position: relative;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.var-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: rgba(46,204,113,.4); }
.var-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--green-bright); background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.var-step { font-family: var(--font-display); font-size: 14px; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.var-card h3 { font-size: 25px; margin-bottom: 12px; }
.var-card p { color: var(--on-navy-mut); margin: 0; font-size: 15.5px; }
.var-note {
  margin-top: 30px; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.25);
  border-radius: var(--radius); padding: 20px 24px; font-size: 16px; color: var(--on-navy);
}
.var-note svg { width: 22px; height: 22px; color: var(--green-bright); flex: none; margin-top: 1px; }

/* CO SPRAWDZAMY — split list + photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.check-list li:last-child { border-bottom: 0; }
.check-list .ci { width: 28px; height: 28px; border-radius: 8px; background: rgba(31,157,87,.12); color: var(--green-deep); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check-list .ci svg { width: 17px; height: 17px; }
.checks-cta { margin-top: 30px; }
.figure-stack { position: relative; }
.figure-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 6; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.5); background: linear-gradient(135deg, var(--ink), var(--navy-700)); }
.figure-main img { width: 100%; height: 100%; object-fit: cover; }
.figure-stat {
  position: absolute; right: -18px; bottom: -22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); text-align: left;
}
.figure-stat b { font-family: var(--font-display); font-size: 34px; color: var(--ink); display: block; line-height: 1; letter-spacing: -.03em; }
.figure-stat span { font-size: 14px; color: var(--muted); }

/* PROCES — timeline */
.proc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
.proc-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.proc-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proc-step:last-child { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); }
.proc-step:last-child h3 { color: #fff; }
.proc-step:last-child p { color: var(--on-navy-mut); }
.proc-step:last-child .proc-n { background: var(--green); color: #fff; }
.proc-n {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(150deg, var(--ink), var(--navy-soft)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
.proc-step h3 { font-size: 19px; margin-bottom: 6px; }
.proc-step p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.5; }

/* WYMIANA — cards on paper */
.wym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.wym-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wym-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.wym-card .wn { font-family: var(--font-display); font-weight: 700; color: var(--green-deep); font-size: 15px; letter-spacing: .04em; }
.wym-card .wbar { height: 3px; width: 34px; background: var(--green); border-radius: 3px; margin: 14px 0 18px; }
.wym-card h3 { font-size: 20px; margin-bottom: 8px; }
.wym-card p { margin: 0; color: var(--text-soft); font-size: 15.5px; }

/* FINAL CTA */
.final { position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--navy-700), var(--ink) 60%, var(--navy-soft)); }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(680px 460px at 50% -8%, rgba(46,204,113,.28), transparent 60%),
    radial-gradient(520px 420px at 100% 100%, rgba(46,204,113,.12), transparent 60%); }
.final > .container { position: relative; z-index: 2; max-width: 880px; }
.final h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); }
.final p { color: var(--on-navy-mut); font-size: clamp(17px, 1.7vw, 21px); margin: 24px auto 0; max-width: 62ch; }
.final-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.final-note { color: var(--on-navy-mut); font-size: 14.5px; margin-top: 24px; }

/* reveal for the new card types (uses our reveal.js + html.js-reveal gate) */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .s-card, html.js-reveal .var-card,
  html.js-reveal .proc-step, html.js-reveal .wym-card, html.js-reveal .post {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0s);
  }
  html.js-reveal .s-card.is-visible, html.js-reveal .var-card.is-visible,
  html.js-reveal .proc-step.is-visible, html.js-reveal .wym-card.is-visible, html.js-reveal .post.is-visible {
    opacity: 1; transform: none; transition-delay: 0s;
  }
}

/* grids collapse */
@media (max-width: 1100px) {
  .card-grid, .var-grid, .wym-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .figure-stack { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .card-grid, .var-grid, .wym-grid, .proc-grid { grid-template-columns: 1fr; }
  .proc-step:last-child { grid-column: auto; }
  .final-cta .btn--green, .final-cta .btn--onnavy, .final-cta .btn--outline-light { width: 100%; justify-content: center; }
  .figure-stat { right: 10px; }
}

/* eyebrow variants + retire the old band divider (new design separates by bg/cards) */
.eyebrow--light { color: var(--green-bright); }
.eyebrow--light::before { background: var(--green-bright); }
.eyebrow--center { justify-content: center; }
.section + .section::before { content: none; }

/* FORMULARZ — navy aside + white body shell */
.form-shell { display: grid; grid-template-columns: 1fr 1.02fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--card); }
.form-aside { background: var(--ink); color: #fff; padding: clamp(36px, 4vw, 56px); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.form-aside::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(460px 360px at 100% 0%, rgba(46,204,113,.28), transparent 60%); }
.form-aside > * { position: relative; z-index: 2; }
.form-aside h2 { color: #fff; font-size: clamp(27px, 3vw, 38px); }
.form-aside .lead { color: var(--on-navy-mut); margin-top: 16px; }
.form-bene { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.form-bene li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.form-bene svg { width: 20px; height: 20px; color: var(--green-bright); flex: none; }
.form-phone { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); padding: 14px 20px; border-radius: 14px; font-weight: 700; font-size: 19px; color: #fff; }
/* keep a minimum gap from the benefits list when the column is short */
.form-bene { margin-bottom: 32px; }
.form-phone svg { width: 20px; height: 20px; color: var(--green-bright); }
.form-body { padding: clamp(36px, 4vw, 56px); }
.form-body .field { margin-bottom: 22px; }
.form-body .field label { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 9px; }
.form-body .field input { width: 100%; padding: 15px 17px; font-size: 16.5px; font-family: inherit; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.form-body .field input::placeholder { color: #9aa7b4; }
.form-body .field input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(46,204,113,.14); }
.form-body .field.error input { border-color: #d14343; }
/* "Czego potrzebujesz?" select — mirror the input look, with a custom caret. */
.form-body .field select {
  width: 100%; padding: 15px 44px 15px 17px; font-size: 16.5px; font-family: inherit;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper);
  color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2375809a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.form-body .field select:focus { outline: none; border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(46,204,113,.14); }
.form-body .field.error select { border-color: #d14343; }
.form-body .err { color: #d14343; font-size: 13.5px; margin-top: 6px; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; font-size: 17.5px; padding: 17px; }
.form-note { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
/* RODO consent — required checkbox + info under the fields */
.form-consent { display: flex; gap: 11px; align-items: flex-start; margin: 2px 0 16px; text-align: left; }
.form-consent input[type="checkbox"] { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--green); cursor: pointer; }
.form-consent label { font-size: 13.5px; line-height: 1.5; color: var(--text-soft); font-weight: 500; cursor: pointer; }
.form-consent a { color: var(--green-deep); font-weight: 600; }
.form-consent.error input[type="checkbox"] { outline: 2px solid #d14343; outline-offset: 2px; }
.form-consent.error label { color: #d14343; }
.err--consent { margin-top: 0; margin-bottom: 14px; }
/* intl-tel-input — themed to the navy/green form (base layout from the lib's CSS) */
.form-body .iti { width: 100%; display: block; }
.form-body .field--tel input[type="tel"] { width: 100%; }
.iti__selected-country { border-radius: 12px 0 0 12px; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--ink); font-weight: 600; }
.iti__dropdown-content { border: 1.5px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); overflow: hidden; }
.iti__search-input { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); font-family: inherit; font-size: 15px; }
.iti__search-input:focus { outline: none; }
.iti__country { padding: 9px 14px; }
.iti__country.iti__highlight, .iti__country:hover { background: rgba(46,204,113,.12); }
.iti__country-name { color: var(--ink); }
.iti__dial-code { color: var(--muted); }
@media (max-width: 1100px) { .form-shell { grid-template-columns: 1fr; } }

/* FAQ — accordion */
.faq-wrap { max-width: 880px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; display: flex; align-items: center; gap: 18px; padding: 26px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 21px); color: var(--ink); }
.faq-q > span:first-child { flex: 1; }
.faq-q .qmark { width: 30px; height: 30px; border-radius: 8px; background: var(--line-strong); display: grid; place-items: center; flex: none; transition: background .25s, color .25s; color: var(--ink); }
.faq-q .qmark svg { transition: transform .35s var(--ease); }
.faq-item.open .qmark { background: var(--green); color: #fff; }
.faq-item.open .qmark svg { transform: rotate(45deg); }
.faq-a-inner { padding: 4px 48px 26px 0; color: var(--text-soft); font-size: 16.5px; line-height: 1.6; max-width: 760px; }

/* BLOG teaser (landing) — links out to /blog; scoped under .blog-grid so it
   never clashes with the article .post-meta in blog.css. */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 30px); }
.blog-grid .post { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blog-grid .post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-grid .post-img { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--navy-700)); }
.blog-grid .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-grid .post:hover .post-img img { transform: scale(1.05); }
.blog-grid .post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-grid .post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--green-deep); letter-spacing: .03em; margin-bottom: 14px; text-transform: uppercase; }
.blog-grid .post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.blog-grid .post h3, .blog-grid .post h2 { font-size: 21px; margin: 0 0 12px; line-height: 1.2; }
.blog-grid .post p { margin: 0 0 20px; color: var(--text-soft); font-size: 15.5px; flex: 1; }
.blog-grid .post-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.blog-after { margin-top: clamp(28px, 3vw, 40px); text-align: center; }

/* FOOTER (new dark navy) */
.site-footer { background: var(--navy-900); color: var(--on-navy-mut); position: relative; padding-block: clamp(56px, 7vw, 88px) 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.foot-brand b { font-family: var(--font-display); font-size: 24px; color: #fff; }
.foot-brand .ft-tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--green-bright); text-transform: uppercase; margin: 6px 0 18px; }
.foot-brand p { color: var(--on-navy-mut); font-size: 15.5px; max-width: 38ch; }
.foot-company { font-size: 13px; color: rgba(159,180,209,.6); line-height: 1.7; margin-top: 22px; }
.foot-col h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a, .foot-col li { font-size: 15.5px; color: var(--on-navy-mut); transition: color .2s; }
.foot-col a { cursor: pointer; }
.foot-col a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact li a { color: var(--on-navy-mut); }
.foot-contact li a:hover { color: #fff; }
.foot-contact svg { width: 17px; height: 17px; color: var(--green-bright); flex: none; margin-top: 3px; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13.5px; }
.foot-bottom a { color: var(--on-navy-mut); }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr; } }

/* unify legacy .btn (mobile sticky bar + blog pages) to the new pill shape */
.btn { border-radius: 999px; font-family: var(--font-body); }

/* legacy green call button → new brand green (matches .btn--green everywhere) */
.btn-call { background: var(--green); }
.btn-call:hover { background: var(--green-deep); }

/* footer action buttons are <a> inside .foot-col — restore their own colours
   (otherwise .foot-col a wins on specificity and tints the button text). */
.foot-col .btn--onnavy { color: var(--ink); }
.foot-col .btn--outline-light { color: #fff; }

/* footer — obszar działania (Warszawa · Wrocław · Katowice + mapa stref) */
.foot-area { text-align: center; margin-top: clamp(40px, 6vw, 60px); }
.foot-area-head h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; font-family: var(--font-body); font-weight: 700; }
.foot-cities { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.foot-city { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.05); border: 1px solid rgba(46,204,113,.3); color: #fff; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.foot-city::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); flex: none; }
.foot-area-note { color: var(--on-navy-mut); font-size: 13.5px; margin: 14px 0 0; }
@media (max-width: 640px) {
  .foot-area { justify-content: center; text-align: center; }
  .foot-cities { justify-content: center; }
}

/* === Service landings: hub router, price block, cross-link, geo chips ===== */
/* Homepage hub cards — .s-card rendered as <a>, with a bottom "Zobacz →" link. */
a.s-card { text-decoration: none; color: inherit; }
.svc-card { display: flex; flex-direction: column; }
.svc-card .svc-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--green-deep); font-size: 15.5px; }
.svc-card .svc-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(3px); }
.svc-card--featured { border-color: rgba(31,157,87,.5); box-shadow: 0 0 0 1px rgba(31,157,87,.2), var(--shadow-sm); }
.svc-badge { position: absolute; top: 16px; right: 16px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.card-grid.svc-router { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid.svc-router { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid.svc-router { grid-template-columns: 1fr; } }

/* Price block (GEO / AI-answer target) */
.price-factors { max-width: 760px; margin-inline: auto; }
.price-note { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 30px auto 0; max-width: 640px; text-align: center; color: var(--text-soft); font-size: 15.5px; }
.price-note svg { width: 22px; height: 22px; color: var(--green-deep); flex: none; }

/* Cross-link band — interlinks the landings (wymiana ↔ serwis ↔ naprawa) */
.cross-link { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 26px 30px; text-decoration: none; color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.cross-link:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cross-link h3 { margin: 0 0 6px; font-size: 21px; color: var(--ink); }
.cross-link p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.cross-cta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 700; color: var(--green-deep); }
.cross-cta svg { width: 18px; height: 18px; }

/* === Process timeline (landings) — vertical axis, existing palette only ==== */
.timeline { display: grid; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.5fr); column-gap: clamp(16px, 2.5vw, 32px); align-items: stretch; }
.tl-label { grid-column: 1; grid-row: 1; text-align: right; padding-top: 1px; padding-bottom: clamp(54px, 5vw, 76px); }
.tl-num   { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--green-deep); }
.tl-title { display: block; font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 21px); color: var(--ink); line-height: 1.2; margin-top: 4px; }
.tl-axis  { grid-column: 2; grid-row: 1; position: relative; display: flex; justify-content: center; align-items: flex-start; }
/* one continuous line: rows have no vertical gap, so each axis cell's full-height
   line touches the next → unbroken. First row starts at the dot, last row stops at it. */
.tl-axis::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.tl-row:first-child .tl-axis::before { top: 13px; }
.tl-row:last-child  .tl-axis::before { bottom: auto; height: 13px; }
.tl-dot { position: relative; z-index: 1; margin-top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); }
.tl-dot--final { width: 34px; height: 34px; margin-top: -2px; background: var(--green); display: grid; place-items: center; color: #fff; }
.tl-dot--final svg { width: 18px; height: 18px; }
.tl-desc { grid-column: 3; grid-row: 1; color: var(--text-soft); font-size: 16.5px; line-height: 1.6; padding-bottom: clamp(54px, 5vw, 76px); }
.tl-row:last-child .tl-label,
.tl-row:last-child .tl-desc { padding-bottom: 0; }
@media (max-width: 720px) {
  /* axis on the left; label + desc stack in one column on the right. Label drops
     its desktop padding-bottom (else a huge gap appears between title and its desc);
     the desc carries the (tighter) inter-step spacing. */
  .tl-row { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .tl-axis  { grid-column: 1; grid-row: 1 / 3; }
  .tl-label { grid-column: 2; grid-row: 1; text-align: left; padding-bottom: 0; }
  .tl-desc  { grid-column: 2; grid-row: 2; padding-top: 4px; padding-bottom: 38px; }
}

/* Mobile polish — new sections (hub split CTA, cross-link band) */
@media (max-width: 560px) {
  .cross-link { padding: 22px; }
  .cross-link h3 { font-size: 19px; }
  .checks-cta a { width: 100%; justify-content: center; }
}

/* N-up card grids — used when a CardGrid sets cols (e.g. 4 cards in one even row,
   instead of the default 3-col which leaves an orphan). Same responsive scale. */
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; } }

/* Centered card flow — for odd counts (e.g. 5 cards): fills each row, then
   centers the incomplete last row instead of leaving a left-aligned orphan.
   Flex (not grid), so it ignores the .card-grid grid media-queries above. */
.card-grid--center { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2vw, 24px); }
.card-grid--center > .s-card { flex: 1 1 260px; max-width: 360px; }
