/* BiogazExpert — site styles
   Palette D "Ekspert Ciemny" (Czarny Las, Biogaz Neon, Złoto Eksperta, Frost White).
   Type: Catamaran (headings), Figtree (text), Playfair Display (logo wordmark only). */

/* ── Fonts (self-hosted) ───────────────────────────────────── */
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/catamaran-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/catamaran-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('/fonts/figtree-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('/fonts/figtree-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/playfair-display-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF; }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --forest:     #0E1C17;  /* Czarny Las */
  --forest-2:   #1A2820;  /* Deep Shadow */
  --forest-3:   #26322E;
  --forest-60:  #56605C;
  --neon:       #7BC842;  /* Biogaz Neon */
  --neon-80:    #88CD54;
  --neon-60:    #A2D87A;
  --neon-20:    #D7EEC6;
  --neon-10:    #EBF6E2;
  --gold:       #D4AF37;  /* Złoto Eksperta */
  --frost:      #F2F7F4;  /* Frost White */
  --frost-2:    #E7EFEA;
  --line:       #C8D8D0;
  --white:      #FFFFFF;

  --text:   var(--forest-2);
  --muted:  var(--forest-60);
  --on-dark: rgba(242, 247, 244, .86);
  --on-dark-muted: rgba(242, 247, 244, .66);

  --font-head: 'Catamaran', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --gutter: clamp(16px, 7.8vw, 120px);
  --container: 1300px;
  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-y: clamp(64px, 7vw, 112px);
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--forest);
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--neon-20); color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--neon); }
html { scrollbar-color: var(--forest-60) var(--frost); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--forest); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn .icon { transition: transform .25s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--neon); color: var(--forest); box-shadow: 0 1px 0 rgba(14, 28, 23, .12); }
.btn-primary:hover { background: var(--neon-80); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-3); }
.btn-outline { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.on-dark .btn-outline { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(242, 247, 244, .5); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--forest); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--forest); text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.text-link:hover { text-decoration-color: var(--forest); }

/* ── Logo (unchanged brand lock-up) ────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 44px; height: 44px; }
.logo-word { font-family: var(--font-logo); font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: -.01em; color: var(--forest); }
.logo-word span { color: var(--neon); }
.on-dark .logo-word { color: var(--white); }

/* ── Header ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow .25s var(--ease-out); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(14, 28, 23, .08), 0 8px 24px -16px rgba(14, 28, 23, .35); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.nav-links { display: flex; justify-content: center; gap: clamp(14px, 1.7vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 500; font-size: 1rem; color: var(--forest); text-decoration: underline;
  text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px;
  transition: text-decoration-color .2s var(--ease-out);
}
.nav-links a:hover { text-decoration-color: var(--neon-60); }
.nav-links a[aria-current="page"] { text-decoration-color: var(--neon); font-weight: 650; }
.header-phone { padding: 0 20px 0 18px; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover .icon { transform: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--forest); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--frost); }
.mobile-nav { display: none; }

@media (max-width: 1280px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav-links { display: none; }
  .header-phone { justify-self: end; }
  .header-phone span { display: none; }
  .header-phone { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--white); padding: 12px var(--gutter) 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s .22s; }
  .mobile-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li + li { border-top: 1px solid var(--frost-2); }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; color: var(--forest); text-decoration: none; }
  .mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .mobile-nav a.btn { justify-content: center; font-family: var(--font-body); font-size: 1rem; font-weight: 650; padding: 0 22px; text-decoration: none; }
  .mobile-nav .btn { margin-top: 24px; width: 100%; }
}
@media (max-width: 420px) {
  .logo img { width: 32px; height: 32px; }
  .logo-word { font-size: 1.35rem; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero { background: var(--forest); color: var(--white); }
.hero-stage { position: relative; isolation: isolate; min-height: clamp(420px, 27.75vw, 600px); display: flex; align-items: center; padding-block: clamp(18px, 1.3vw, 24px); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; display: block; }
.hero-media img { object-fit: cover; object-position: 50% 55%; }
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 28, 23, .92) 0%, rgba(14, 28, 23, .86) 26%, rgba(14, 28, 23, .5) 44%, rgba(14, 28, 23, .08) 60%, rgba(14, 28, 23, 0) 72%),
    linear-gradient(0deg, rgba(14, 28, 23, .28), rgba(14, 28, 23, 0) 40%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24.5vw, 400px); gap: 48px; align-items: center; }
.hero-copy { max-width: 34rem; }
.hero-title { color: var(--white); font-weight: 700; font-size: clamp(2rem, 1.05rem + 1.95vw, 3.1rem); line-height: 1.1; letter-spacing: 0; max-width: 13em; text-wrap: balance; }
.hero-title em { font-style: normal; color: var(--neon); }
.hero-lead { margin-top: clamp(16px, 1.4vw, 22px); font-size: clamp(1rem, .75rem + .42vw, 1.2rem); font-weight: 400; line-height: 1.55; color: var(--on-dark); max-width: 21.3em; }
.about-diagram { margin: clamp(36px, 4vw, 60px) 0 0; }
.about-diagram img { display: block; width: 100%; max-width: 1100px; height: auto; }
.about-diagram figcaption { margin-top: 12px; font-size: .875rem; color: var(--on-dark-muted); }
.services-more { margin: clamp(20px, 2vw, 28px) 0 0; }
.hero .btn-primary { min-height: 50px; padding-inline: 26px; }

/* Testimonials inside the hero: a forest strip under the photo */
.hero-proof { border-top: 1px solid rgba(242, 247, 244, .14); padding-block: clamp(22px, 2vw, 32px); }
.hero-quotes { list-style: none; margin-inline: auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.hero-quotes li + li { border-left: 1px solid rgba(242, 247, 244, .14); padding-left: clamp(24px, 3vw, 48px); }
.hero-quote { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.hero-quote blockquote { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--on-dark); text-wrap: pretty; }
.hero-quote figcaption { margin-top: auto; font-size: .875rem; color: var(--on-dark-muted); }
.hero-quote figcaption strong { display: block; color: var(--white); font-weight: 650; }

/* ── Enquiry form card ─────────────────────────────────────── */
.form-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 18px 24px 20px; box-shadow: 0 24px 48px -20px rgba(4, 12, 9, .55), 0 2px 6px rgba(4, 12, 9, .12); }
.form-card .form-card-title { font-size: 1.55rem; font-weight: 700; color: var(--forest); line-height: 1.15; }
.form-card-sub { margin-top: 2px; font-size: .875rem; color: var(--muted); }
.cf { display: grid; gap: 8px; margin-top: 10px; }
.form-card { container-type: inline-size; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@container (max-width: 340px) { .cf-row { grid-template-columns: minmax(0, 1fr); } }
.cf-opt { font-weight: 400; color: var(--muted); }
.cf-req { color: #B3261E; }
.cf-field { display: grid; gap: 3px; }
.cf-field label { font-size: .8125rem; font-weight: 600; color: var(--forest); }
.cf-field input, .cf-field textarea {
  width: 100%; min-height: 36px; padding: 6px 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .9375rem; color: var(--text);
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.cf-field textarea { min-height: 58px; resize: vertical; line-height: 1.45; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #6E7A74; }
.cf-field input:hover, .cf-field textarea:hover { border-color: #A9BEB3; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--neon-20); }
.cf-field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.cf-error { font-size: .8125rem; color: #B3261E; min-height: 0; }
.cf-error:empty { display: none; }
.cf-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.cf-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--forest); }
.cf-consent a { color: var(--forest); font-weight: 600; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf .btn { margin-top: 4px; }
.cf-status { font-size: .875rem; line-height: 1.45; border-radius: var(--radius-sm); padding: 10px 12px; }
.cf-status:empty { display: none; }
.cf-status.ok { background: var(--neon-10); color: var(--forest); }
.cf-status.err { background: #FBEAE9; color: #8C1D18; }

/* ── Trust facts ───────────────────────────────────────────── */
.trust-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { position: relative; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding-block: clamp(20px, 1.85vw, 30px); }
.trust-item + .trust-item { padding-left: clamp(24px, 5.6vw, 92px); }
.trust-item + .trust-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.trust-item .icon { color: var(--forest); flex-shrink: 0; width: clamp(44px, 4.2vw, 66px); height: auto; }
.trust-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, .9rem + 1.05vw, 2rem); line-height: 1.1; color: var(--forest); }
.trust-sub { display: block; margin-top: 4px; font-size: clamp(.95rem, .85rem + .25vw, 1.1rem); color: var(--muted); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(20px, 1.5vw, 24px); }
.section-title { font-weight: 800; font-size: clamp(1.75rem, 1.05rem + 1.3vw, 2.2rem); line-height: 1.12; }
.section-lead { max-width: 40rem; color: var(--muted); font-size: 1.0625rem; }

/* ── Service cards ─────────────────────────────────────────── */
.services { padding-block: clamp(48px, 4.3vw, 66px) var(--section-y); }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.4vw, 22px); }
.svc-card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); padding: clamp(22px, 1.8vw, 28px) clamp(20px, 1.8vw, 28px) clamp(24px, 2vw, 30px); transition: box-shadow .25s var(--ease-out); }
.svc-card:hover { box-shadow: inset 0 0 0 2px var(--forest); }
.svc-card > .icon { color: var(--forest); width: clamp(44px, 3.7vw, 58px); height: auto; }
.svc-card h3 { margin-top: 18px; font-weight: 700; font-size: clamp(1.25rem, .95rem + .55vw, 1.45rem); }
.svc-card h3 a { text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc-card p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.svc-card .svc-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9375rem; color: var(--forest); }
.svc-card .svc-more .icon { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.svc-card:hover .svc-more .icon, .svc-card:focus-within .svc-more .icon { transform: translateX(4px); }

/* ── About band (dark) ─────────────────────────────────────── */
.band-dark { background: var(--forest); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { font-size: 1.0625rem; line-height: 1.7; max-width: 36rem; }
.about-copy p + p { margin-top: 16px; }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy .text-link { margin-top: 28px; color: var(--white); }
.facts { margin: 0; display: grid; border-top: 1px solid rgba(242, 247, 244, .14); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(242, 247, 244, .14); }
.facts dt { font-size: .9375rem; color: var(--on-dark-muted); }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--white); }
.facts dd small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9375rem; color: var(--on-dark-muted); margin-top: 2px; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps { --gap: clamp(20px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 20px; left: 21px; width: calc((100% + var(--gap)) * .75); height: 2px; background: var(--line); }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: var(--neon); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; position: relative; }
.steps h3 { margin-top: 20px; font-size: 1.3rem; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); }

/* ── Example chart ─────────────────────────────────────────── */
.example { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.example-copy p { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.example-copy p + p { margin-top: 14px; }
.example-copy .section-title { margin-bottom: 18px; }
.chart { background: var(--white); border-radius: var(--radius); padding: clamp(18px, 2vw, 28px); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.chart figcaption strong { color: var(--forest); font-family: var(--font-head); font-size: 1.05rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chart-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--forest); }
.chart-legend i.dash { background: repeating-linear-gradient(90deg, var(--forest-60) 0 5px, transparent 5px 9px); }
.chart-legend i.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--frost-2); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 12px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .before { fill: none; stroke: var(--forest-60); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .after { fill: none; stroke: var(--forest); stroke-width: 3; }
.chart .after-area { fill: var(--neon); opacity: .18; }
.chart .marker { fill: var(--gold); }
.chart .marker-label { fill: var(--forest); font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.chart-note { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

/* ── Quotes ────────────────────────────────────────────────── */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.quote { height: 100%; display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 2vw, 30px); background: var(--white); border-radius: var(--radius); }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--text); }
.quote figcaption { margin-top: auto; font-size: .9375rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--forest); font-weight: 650; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, .95rem + .35vw, 1.3rem); line-height: 1.3; color: var(--forest); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; transition: transform .3s var(--ease-out); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--forest-3); }
.faq-answer { padding: 0 0 22px; max-width: 46rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }

/* ── Contact band ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact-copy .section-title { color: var(--white); }
.contact-copy > p { margin-top: 16px; font-size: 1.125rem; max-width: 32rem; }
.contact-lines { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-lines li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.contact-lines .icon { color: var(--neon); width: 26px; height: 26px; justify-self: center; }
.contact-lines small { display: block; font-size: .8125rem; color: var(--on-dark-muted); }
.contact-lines a, .contact-lines strong { font-weight: 600; font-size: 1.125rem; color: var(--white); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 2px; }
.contact-phone a { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ── Inner page hero ───────────────────────────────────────── */
.page-hero { --overlap: clamp(36px, 4vw, 60px); background: var(--forest); color: var(--on-dark); padding-block: clamp(40px, 5vw, 80px); position: relative; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24.5vw, 400px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.page-hero h1 { color: var(--white); font-weight: 700; font-size: clamp(2rem, 1.2rem + 2vw, 3.1rem); line-height: 1.08; }
.page-hero-lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.65; max-width: 38rem; }
.quote-mini { margin-top: 32px; padding-left: 20px; border-left: 1px solid rgba(242, 247, 244, .25); max-width: 34rem; }
.quote-mini blockquote { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--on-dark); }
.quote-mini figcaption { margin-top: 10px; font-size: .875rem; color: var(--on-dark-muted); }
.quote-mini figcaption strong { color: var(--white); font-weight: 650; }

/* ── Long-form service content ─────────────────────────────── */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 5vw, 72px); }
.doc-section h2 { font-weight: 800; font-size: clamp(1.6rem, 1.05rem + 1.1vw, 2.05rem); max-width: 34ch; }
.doc-section > p { margin-top: 16px; max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.doc-section > p + p { margin-top: 14px; }
.doc-section a:not(.btn) { color: var(--forest); text-decoration-color: var(--neon); text-decoration-thickness: 2px; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.points .icon { color: var(--forest); margin-top: 2px; }
.points strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--forest); line-height: 1.3; }
.points span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.6; }
.points.single { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.inline-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); }
.inline-cta p { font-weight: 600; color: var(--forest); max-width: 40rem; }
.law { margin-top: 28px; padding: 20px 24px; background: var(--white); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); max-width: 52rem; }
.law p { font-size: 1rem; line-height: 1.7; }
.law strong { color: var(--forest); }

/* ── Service index ─────────────────────────────────────────── */
.svc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: clamp(16px, 3vw, 48px); align-items: start; padding: clamp(24px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); }
.svc-row .icon { color: var(--forest); }
.svc-row h2 { font-weight: 800; font-size: clamp(1.4rem, 1rem + .9vw, 1.85rem); }
.svc-row h2 a { text-decoration: none; }
.svc-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 3px; }
.svc-row > div > p { margin-top: 8px; color: var(--muted); }
.svc-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc-row li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text); }
.svc-row li .icon { margin-top: 3px; }

/* ── Portrait gap (O mnie) ─────────────────────────────────── */
.portrait-gap { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--white); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.portrait-gap img { width: 64px; height: 64px; margin: 0 auto 14px; opacity: .9; }
.portrait-gap p { font-size: .9375rem; max-width: 18rem; }
.about-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.values li { padding: 22px 0; border-top: 1px solid var(--line); }
.values h3 { font-size: 1.3rem; font-weight: 700; }
.values p { margin-top: 8px; color: var(--muted); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--forest); border-top: 1px solid rgba(242, 247, 244, .14); color: var(--on-dark-muted); padding-top: clamp(48px, 5vw, 72px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.footer-brand p { margin-top: 16px; max-width: 22rem; font-size: .9375rem; line-height: 1.7; }
.footer-col h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--neon); }
.footer-bottom { margin-top: clamp(40px, 4vw, 56px); padding-block: 22px 28px; border-top: 1px solid rgba(242, 247, 244, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8125rem; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: var(--white); }

/* ── Cookie banner ─────────────────────────────────────────── */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin-inline: auto; background: var(--forest); color: var(--on-dark); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 20px 48px -16px rgba(4, 12, 9, .6); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.cookie-banner--hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.cookie-banner strong { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; }
.cookie-banner p { margin-top: 4px; font-size: .875rem; color: var(--on-dark-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-height: 40px; padding-inline: 14px; font-size: .875rem; }

/* ── Motion: one authored entrance for the hero ────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 1.6s var(--ease-out) both; }
  .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero .form-card { animation: rise .9s .12s var(--ease-out) both; }
  @keyframes hero-settle { from { transform: scale(1.045); filter: saturate(.85); } to { transform: none; filter: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 960px) {
  .hero-stage { min-height: 0; display: block; padding: 0; }
  .hero-media { position: relative; height: clamp(340px, 92vw, 520px); }
  .hero-media img { position: absolute; }
  .hero-stage::before { inset: 0 0 auto 0; height: clamp(340px, 92vw, 520px); background: linear-gradient(180deg, rgba(14, 28, 23, .22) 0%, rgba(14, 28, 23, .74) 38%, rgba(14, 28, 23, .96) 100%); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: calc(-1 * clamp(150px, 42vw, 220px)); padding-bottom: 32px; }
  .hero-copy { max-width: 36rem; }
  .form-card { max-width: 560px; }
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .trust-item + .trust-item { padding-left: 0; border-top: 1px solid var(--line); }
  .trust-item + .trust-item::before { display: none; }
  .trust-item { padding-block: 20px; }
  .about-grid, .example, .faq-grid, .contact-grid, .page-hero-grid, .about-page { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .hero-quotes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-quotes li + li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(242, 247, 244, .14); margin-top: 20px; padding-top: 20px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); }
  .svc-row > ul, .svc-row > .btn { grid-column: 2; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .facts div { grid-template-columns: 9rem 1fr; }
}
@media (max-width: 560px) {
  .chart .axis text { font-size: 22px; }
  .chart .axis .m-odd { display: none; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cookie-banner { grid-template-columns: minmax(0, 1fr); }
  .inline-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Tinted band ───────────────────────────────────────────── */
.band-tint { background: transparent; border-block: 1px solid var(--line); }
.band-tint .quote { box-shadow: inset 0 0 0 1px var(--line); }
.chart { box-shadow: inset 0 0 0 1px var(--line); }

/* ── Loss breakdown (bars) ─────────────────────────────────── */
.losses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.losses li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; }
.losses span { font-size: .9375rem; color: var(--text); }
.losses b { font-family: var(--font-head); font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; }
.losses i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: var(--frost-2); overflow: hidden; }
.losses i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--forest); border-radius: 4px; }
.losses li:first-child i::after { background: var(--neon); }
.results-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.results-grid .chart { height: 100%; }
.results-note { margin-top: 20px; font-size: .875rem; color: var(--muted); max-width: 60rem; }
@media (max-width: 960px) { .results-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Long-form layout: heading column + body ───────────────── */
.doc { gap: 0; }
.doc-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: 20px clamp(32px, 5vw, 80px); padding-block: clamp(36px, 3.6vw, 56px); border-top: 1px solid var(--line); }
.doc-section:first-child { border-top: 0; padding-top: 0; }
.doc-section h2 { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.doc-body > p { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.doc-body > p + p { margin-top: 14px; }
.doc-body a:not(.btn) { color: var(--forest); font-weight: 600; text-decoration-color: var(--neon); text-decoration-thickness: 2px; }
.doc-body .points { margin-top: 24px; }
.doc-body .points:first-child { margin-top: 0; }
.svc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cta-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-close p { margin-top: 10px; font-size: 1.125rem; max-width: 36rem; }
.cta-close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) {
  .doc-section { grid-template-columns: minmax(0, 1fr); }
  .doc-section h2 { position: static; }
  .svc-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ── About page ────────────────────────────────────────────── */
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--white); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.about-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(14, 28, 23, .7); color: var(--white); font-size: .75rem; }
.about-bio p { font-size: 1.0625rem; line-height: 1.75; max-width: 62ch; }
.about-bio p + p { margin-top: 14px; }
.about-bio .section-title { margin-bottom: 18px; }
.about-sub { margin-top: 32px; font-size: 1.25rem; font-weight: 700; }
.skills { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.skills li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.skills .icon { color: var(--forest); margin-top: 2px; }
.about-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.about-photo + .about-bio { padding-top: 8px; }

/* ── 404 ───────────────────────────────────────────────────── */
.notfound { padding-block: clamp(64px, 10vw, 140px); }
.notfound-inner { max-width: 40rem; }
.notfound-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: .9; color: var(--forest); letter-spacing: -.03em; }
.notfound h1 { margin-top: 12px; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 800; }
.notfound-inner > p:not(.notfound-code) { margin-top: 14px; font-size: 1.125rem; color: var(--muted); }
.notfound-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Legal ─────────────────────────────────────────────────── */
.page-hero-plain { padding-block: clamp(40px, 4.5vw, 72px); }
.legal-grid { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9375rem; }
.legal-toc p { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--forest); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--neon); }
.legal { max-width: 72ch; }
.legal section + section { margin-top: clamp(32px, 3vw, 44px); padding-top: clamp(32px, 3vw, 44px); border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.4rem, 1.1rem + .6vw, 1.7rem); font-weight: 800; margin-bottom: 14px; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.75; }
.legal p + p, .legal ul + p, .legal p + ul, .legal .table-wrap + p, .legal p + .table-wrap { margin-top: 14px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a:not(.btn) { color: var(--forest); font-weight: 600; text-decoration-color: var(--neon); text-decoration-thickness: 2px; }
.legal code { font-size: .875em; background: var(--frost); padding: 2px 6px; border-radius: 4px; }
.legal mark.todo { background: #FFF1C7; color: #6B4E00; padding: 1px 6px; border-radius: 4px; font-weight: 600; box-shadow: inset 0 0 0 1px #E9C46A; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: var(--white); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--frost-2); }
.legal th { font-family: var(--font-head); font-weight: 700; color: var(--forest); background: var(--frost); }
.legal tr:last-child td { border-bottom: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--forest); font-weight: 600; text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 2px; text-underline-offset: .2em; cursor: pointer; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .about-photo { aspect-ratio: 16 / 10; }
}

/* ── Cookie consent ────────────────────────────────────────── */
.btn-ghost { background: transparent; color: inherit; padding-inline: 12px; text-decoration: underline; text-decoration-color: rgba(123, 200, 66, .7); text-underline-offset: .25em; }
.btn-ghost:hover { text-decoration-color: currentColor; }
.cookie-banner a { color: var(--white); text-decoration-color: var(--neon); }
.on-dark .link-button { color: var(--on-dark-muted); font-weight: 400; text-decoration-color: rgba(123, 200, 66, .6); text-decoration-thickness: 1px; }
.on-dark .link-button:hover { color: var(--white); }
.cookie-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: var(--radius); padding: 0; color: var(--text); background: var(--white); box-shadow: 0 32px 64px -24px rgba(4, 12, 9, .6); }
.cookie-dialog::backdrop { background: rgba(14, 28, 23, .55); }
.cookie-dialog form { padding: 22px 24px 24px; }
.cookie-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-dialog h2 { font-size: 1.4rem; font-weight: 800; }
.cookie-dialog-lead { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.cookie-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--frost-2); margin-top: 12px; }
.cookie-option + .cookie-option { margin-top: 0; }
.cookie-option strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--forest); }
.cookie-option p { margin-top: 2px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .2s var(--ease-out); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(14, 28, 23, .25); transition: transform .2s var(--ease-out); }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.switch.is-locked input { cursor: not-allowed; }
.switch.is-locked span { opacity: .55; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--frost-2); }
@media (max-width: 560px) { .cookie-dialog-actions .btn { flex: 1 1 100%; } }

/* ── Structured content: cards and sequences ───────────────── */
.mini-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.mini-cards li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; background: var(--white); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.mini-cards h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.mini-cards p { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.mini-meta { display: block; font-size: .875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.4; }
.seq { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: seq; display: grid; }
.seq li { position: relative; counter-increment: seq; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.seq li::before { content: counter(seq); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--neon); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; position: relative; z-index: 1; }
.seq li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.seq li:last-child { padding-bottom: 0; }
.seq li:last-child::after { display: none; }
.seq li > div { padding-top: 6px; }
.seq h3 { font-size: 1.2rem; font-weight: 700; }
.seq .mini-meta { margin-top: 2px; }
.seq p { margin-top: 4px; color: var(--muted); line-height: 1.6; max-width: 60ch; }

.mini-cards[data-n="2"], .mini-cards[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-cards[data-n="3"], .mini-cards[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .mini-cards[data-n] { grid-template-columns: minmax(0, 1fr); } }


/* ── Round 2: typography, inner heroes, long-form layout ───── */
.nw { white-space: nowrap; }

.page-hero.has-photo { isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 28, 23, .95) 0%, rgba(14, 28, 23, .9) 34%, rgba(14, 28, 23, .6) 54%, rgba(14, 28, 23, .16) 74%, rgba(14, 28, 23, .06) 100%), linear-gradient(0deg, rgba(14, 28, 23, .32), rgba(14, 28, 23, 0) 45%); }
.page-hero-grid .form-card { margin-bottom: calc(-1 * var(--overlap)); position: relative; z-index: 2; }
.hero-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; max-width: 24rem; }
.hero-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(242, 247, 244, .2); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.hero-links a:hover { border-bottom-color: var(--neon); }
.hero-links a .icon { transition: transform .25s var(--ease-out); }
.hero-links a:hover .icon { transform: translateX(4px); }

.mini-cards h3 { font-size: 1.2rem; }
.mini-cards li { gap: 4px; }
.mini-cards p { margin-top: 6px; }

/* long-form service pages: contents on the left, text on the right */
.doc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 28px); }
.doc-toc p { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--forest); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 10px 0 0; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.doc-toc a { display: block; padding: 6px 0; font-size: .9375rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--forest); }
.doc-toc a[aria-current="true"] { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.doc-layout .doc { min-width: 0; }
.doc-layout .doc-section { display: block; padding-block: clamp(32px, 3vw, 48px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-layout .doc-section:first-child { border-top: 0; padding-top: 0; }
.doc-layout .doc-section h2 { position: static; margin-bottom: 18px; max-width: 28ch; }
.doc-layout .doc-body > p { max-width: 62ch; }

/* legal tables stack on small screens instead of clipping */
@media (max-width: 640px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { padding: 12px 16px; border-bottom: 1px solid var(--frost-2); }
  .legal tr:last-child { border-bottom: 0; }
  .legal td { padding: 4px 0; border: 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

@media (max-width: 960px) {
  .page-hero-grid .form-card { margin-bottom: 0; }
  .page-hero.has-photo { padding-top: 0; }
  .page-hero-media { position: relative; inset: auto; height: clamp(150px, 42vw, 230px); }
  .page-hero.has-photo::before { inset: 0 0 auto 0; height: clamp(150px, 42vw, 230px); background: linear-gradient(180deg, rgba(14, 28, 23, .05) 20%, rgba(14, 28, 23, .92) 100%); }
  .page-hero.has-photo > .container { padding-top: 28px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
}
@media (max-width: 600px) {
  .cta-close-actions { width: 100%; }
  .cta-close-actions .btn, .about-actions .btn, .notfound-actions .btn { width: 100%; }
}

.footer-bottom { padding-bottom: 14px; }

.btn-light { background: var(--frost); color: var(--forest); }
.btn-light:hover { background: var(--white); }
.cookie-actions .btn-ghost { align-self: center; }

/* ── KPI row inside the dark about band ───────────────────── */
.about-diagram + .trust-list { margin-top: clamp(24px, 2.6vw, 40px); padding-top: 8px; border-top: 1px solid rgba(242, 247, 244, .14); }
.band-dark .trust-item .icon { color: var(--neon); }
.band-dark .trust-title { color: var(--white); }
.band-dark .trust-sub { color: var(--on-dark-muted); }
.band-dark .trust-item + .trust-item::before { background: rgba(242, 247, 244, .14); }
@media (max-width: 960px) { .band-dark .trust-item + .trust-item { border-top-color: rgba(242, 247, 244, .14); } }

/* ── Process steps: driven by scroll position ─────────────── */
.steps.is-anim::before { background: linear-gradient(90deg, var(--forest) calc(var(--fill, 0) * 100%), var(--line) 0); }
.steps.is-anim li::before { background: var(--white); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); transform: scale(.86); transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.steps.is-anim li.is-on::before { background: var(--forest); color: var(--neon); box-shadow: none; transform: none; }
.steps.is-anim li > h3, .steps.is-anim li > p { opacity: .32; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.steps.is-anim li.is-on > h3, .steps.is-anim li.is-on > p { opacity: 1; transform: none; }
.steps.is-anim li.is-on > p { transition-delay: .08s; }

/* ── Floating contact button and popup form ───────────────── */
.fab { position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 45; padding: 0 20px 0 18px; box-shadow: 0 14px 30px -10px rgba(4, 12, 9, .55), 0 0 0 1px rgba(14, 28, 23, .14); }
.fab:hover .icon { transform: none; }
@media (max-width: 1000px) { body:has(#cookie-banner:not(.cookie-banner--hidden)) .fab { display: none; } }
.contact-dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; padding: 0; background: transparent; overflow: visible; color: var(--text); }
.contact-dialog::backdrop { background: rgba(14, 28, 23, .62); }
.contact-dialog .form-card { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 22px 24px 24px; box-shadow: 0 32px 64px -24px rgba(4, 12, 9, .7); }
.contact-dialog .form-card-title { padding-right: 40px; }
.contact-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--forest); cursor: pointer; }
.contact-dialog-close:hover { background: var(--frost); }
