/* Biuro Rachunkowe PODATEK - design tokens and styles.
   Direction and the numbers behind it: design/LOCK.md. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2?v=1") 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;
}
/* latin-ext carries ą ć ę ł ń ś ź ż - without it Polish headlines fall back mid-word. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2?v=1") 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;
}

:root {
  /* Colour roles. Ink is the dominant brand dark (text, nav, dark sections);
     Sky is the only accent: CTA fill and emphasis on dark. Never Sky text on white. */
  --ink: #13294a;        /* deepened from the 2012 header navy #2f4c74 */
  --ink-2: #2c4f7f;      /* mid brand blue from the logo, for depth on dark */
  --sky: #74c2f0;        /* logo swoosh, sampled from top.jpg */
  --sky-wash: #e3f1fb;   /* pale tint for soft highlight surfaces */
  --fog: #eef2f6;        /* placeholder surface, inputs' panel */
  --sea: #1c6aa3;        /* Puck bay blue: hero shade, dark-section depth */
  --sea-deep: #0f3d68;   /* deep water: end of the hero shade and the dark section */
  --mist: #e9f4fb;       /* light sea tint for bands (was neutral grey fog) */
  --line: #d9e0e8;       /* hairlines */
  --display: #0c1626;    /* large headlines on light */
  --text: #3f4752;       /* body */
  --muted: #6b7380;      /* helper text, 4.78:1 on white */
  --paper: #ffffff;
  --on-dark: #c9dcef;    /* body text on ink, 10.4:1 */

  /* Narrow-role colours: one use each, named so nothing else borrows them. */
  --sky-hover: #8ccdf3;
  --field-line: #b7c2cf;
  --check-line: #8d99a8;
  --error: #b4232c;
  --error-text: #8f1c23;
  --map-coast: #b9cde2;
  --map-water: #7fa3c7;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 100px;

  --r-card: 10px; --r-lg: 28px; --r-pill: 9999px;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --dur: 180ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.5 var(--font);
  letter-spacing: -0.007em;
  font-feature-settings: "calt";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--display); text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }
#napisz { scroll-margin-top: 96px; }

/* Postal codes and the like: never break at the hyphen ("84-" / "100"). */
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--sp-4); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); }
.skip:focus { top: var(--sp-4); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 28px; height: 28px; stroke-width: 1.75; }

/* ---------- type ---------- */
.h1 { font-weight: 800; font-size: clamp(36px, 5.6vw, 64px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: var(--sp-4); }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--text); max-width: 32em; }
.lead-sm { font-size: 19px; line-height: 1.5; max-width: 36em; margin-top: var(--sp-5); }
.muted { color: var(--muted); font-size: 16px; }
/* Short texts in cards and boxes: balanced lines, so a paragraph fills its box
   evenly instead of one long line and a stub (Chrome, Firefox and Safari all do it). */
.hero-card p, .lead-sm, .promise p, .reasons p, .steps p, .stats dd, .offer-card li,
.q-pull, .ledger-head .muted, .dark-cta p, .facts .sub, .form .muted, .who-detail { text-wrap: balance; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  border-radius: var(--r-pill); border: 0;
  font: 600 16px/1 var(--font); letter-spacing: -0.006em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sky); color: var(--ink); }
.btn-primary:hover { background: var(--sky-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--sky-wash); }
.btn-sm { min-height: 40px; padding: 0 var(--sp-4); font-size: 15px; white-space: nowrap; }
.btn-block { width: 100%; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--ink); }
.brand-logo { display: block; width: 132px; height: auto; flex: none; }
.brand-sub { font-size: 10px; line-height: 1.25; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: var(--sp-1); margin: 0 auto; padding: var(--sp-1); background: var(--fog); border-radius: var(--r-pill); }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); transition: background-color var(--dur) var(--ease); }
.nav-links a:hover { background: var(--paper); }
.nav-links a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-phone { white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; gap: var(--sp-2); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.nav-phone .ic { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--fog); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu { border-top: 1px solid var(--line); padding: var(--sp-2) var(--gutter) var(--sp-4); background: var(--paper); }
.menu a { display: block; padding: 14px 0; font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Between the full nav and the burger there is not room for the number too. */
@media (max-width: 1180px) and (min-width: 1021px) { .nav-phone span { display: none; } }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}
/* 320-400 px phones: the lockup, its label and two round buttons must fit in one row. */
@media (max-width: 400px) {
  .brand-logo { width: 108px; }
  .brand-sub { font-size: 9px; }
  .nav-in { gap: var(--sp-3); }
}
@media (max-width: 760px) { .nav-phone { display: none; } }
@media (max-width: 640px) {
  .nav-phone span, .nav-actions .btn { display: none; }
  .nav-in { height: 64px; }
}

/* ---------- hero ----------
   Feedback round 3 (10.10): the photo is bright, with white curtains on the right.
   A deep-blue panel fought it ("random blue"). Here the curtains simply continue
   into a pale-sky light, the slogan is ink on that light, and the lead is a small
   box bottom-right. Waves frame the photo: subtle on top, fuller at the bottom. */
/* Capped at 680: taller, and the 3:2 photo gets cropped by height, which pushes the
   women's faces under the slogan column. At <=680 it scales by width and all four stay clear. */
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - 72px), 680px); overflow: hidden;
  background: linear-gradient(90deg, #f3f6f8 0%, #f1f6fa 55%, var(--sky-wash) 100%); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
/* Measured, not guessed (office photo, 21.10): the right-most face (Krystian) ends at
   ~62% of the photo's width. The photo spans 68% of the hero and fades only after
   84%, so no face fades or meets the slogan column at 59vw (checked 1201-2560). */
.hero-bg { position: absolute; inset: 0 32% 0 0;
  -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, #000 84%, transparent 100%); }
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 22% 38%; }
.wave { position: absolute; left: 0; width: 100%; fill: var(--paper); pointer-events: none; }
.wave-top { top: -1px; height: 18px; }
.wave-bottom { bottom: -1px; height: 44px; }
/* Desktop: the text column starts at 59vw, right of the nearest face at every width
   from 1201 to 1920 (measured), and runs to the page edge. It is a size container,
   so the slogan's font size follows the column and fills it (round 5: "WAY bigger"). */
.hero-in { position: relative; min-height: inherit; max-width: none; display: flex; flex-direction: column; justify-content: center;
  padding: 56px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))) 96px 59vw; }
.hero-text { container-type: inline-size; display: flex; flex-direction: column; }
.display { font-weight: 900; letter-spacing: -0.045em; line-height: .9; color: var(--ink); }
.hero-title span { display: block; }
.hero-title { font-size: 17.4cqi; }
.hero-card { align-self: flex-start; margin-top: var(--sp-6); max-width: 360px; background: var(--paper); border-radius: 16px; padding: 16px 18px; box-shadow: 0 10px 32px rgba(12,22,38,.12); }
.hero-card p { font-size: 16px; line-height: 1.5; color: var(--text); }
.hero-down { position: absolute; left: 50%; bottom: 54px; translate: -50% 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.85); box-shadow: 0 4px 16px rgba(12,22,38,.12); transition: background-color var(--dur) var(--ease); }
.hero-down:hover { background: var(--paper); }
/* Below 1200 px side-by-side cannot keep the faces clear of the text: stacked. The photo on top, framed by the waves, then the text. */
@media (max-width: 1200px) {
  .hero { min-height: 0; background: var(--paper); }
  .hero-media { position: relative; inset: auto; z-index: 0; }
  .hero-bg { position: relative; inset: auto; display: block; -webkit-mask-image: none; mask-image: none; }
  /* A band as tall as the screen allows with the slogan still on the first screen
     (322 px = nav + slogan + padding), at most 2:1. The office photo needs the
     height: its faces run from Krystian's hair (~18% down) to the seated woman's
     chin (~76%), and a fixed 21:9 band cut her face off. */
  .hero-bg img { height: clamp(300px, calc(100svh - 322px), 50vw); object-position: 40% 50%; }
  .hero-in { max-width: var(--max); margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-7); min-height: 0; }
  .hero-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: var(--sp-6); align-items: end; container-type: normal; }
  /* Tablets: natural wrapping (2-3 lines) keeps the slogan on the first screen. */
  .hero-title { font-size: clamp(44px, 6.4vw, 72px); }
  .hero-title span { display: inline; }
  .hero-card { margin-top: 0; align-self: end; }   /* tablets keep it bottom-aligned beside the slogan */
  .hero-down { display: none; }
}
@media (max-width: 760px) {
  /* Phones: a big photo with the slogan rising onto its lower edge, so the whole
     slogan is on the first screen. The letters change colour where the photo ends:
     white over the photo (on a navy shade), navy on the page. js/main.js measures
     that edge into --split; without JS the split falls back to the middle. */
  .hero-bg img { height: auto; aspect-ratio: 960 / 1067; object-position: 50% 30%; }
  .hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, rgba(15,61,104,0), rgba(12,34,62,.78)); pointer-events: none; }
  .wave-top { height: 12px; }
  .wave-bottom { height: 28px; }
  .hero-in { padding-top: 0; padding-bottom: var(--sp-6); }
  .hero-text { display: block; }
  /* 16.3vw: the longest line ("o urzędach.") then spans ~98% of a phone's width. */
  .hero-title span { display: block; }
  .hero-title { position: relative; z-index: 2; font-size: clamp(40px, 16.3vw, 72px); margin-top: -2.1em;
    color: transparent; background: linear-gradient(180deg, var(--paper) 0, var(--paper) var(--split, 50%), var(--ink) var(--split, 50%));
    -webkit-background-clip: text; background-clip: text; }
  .hero-card { display: none; }
  .hero-down { display: grid; position: static; translate: none; margin: var(--sp-4) auto 0; }
}
/* Phones: the docked call bar already sits at the bottom; a scroll arrow as well
   is one control too many on a small first screen. */
@media (max-width: 400px) { .hero-down { display: none; } }

.team-photo-sec { padding-bottom: var(--sp-8); }
.team-photo { position: relative; margin: 0; }
/* object-position is repeated as mask-position on .spot - change both together. */
.team-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); background: var(--fog); }
/* First names under the photo (feedback 15.10). With JS (.team-live) a name or a head
   on the photo spotlights that person: the rest of the photo dims, the other names
   fade, and the line on the right shows role and phone. Opacity-only transitions. */
.team-frame { position: relative; }
.spots { display: none; position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; pointer-events: none; }
.team-live .spots { display: block; }
/* A navy layer per person, masked by that person's silhouette (clear where they are).
   mask-size/position repeat the photo's object-fit: cover / object-position, so the
   cut-out stays on the person at every crop (16:7 desktop, 4:3 phone). */
.spot { position: absolute; inset: 0; background: rgba(12, 22, 38, .55); opacity: 0; transition: opacity 200ms var(--ease);
  -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: 50% 30%; mask-position: 50% 30%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.spot.is-on { opacity: 1; }
.team-frame.on-person { cursor: pointer; }
.team-cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); }
.team-cap .names { display: flex; flex-wrap: wrap; gap: 0 .9em; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.names button { font: inherit; letter-spacing: inherit; color: var(--ink); background: none; border: 0; padding: 6px 0; margin: 0; white-space: nowrap; cursor: default; transition: opacity 200ms var(--ease); }
.team-live .names button { cursor: pointer; }
.names button::before { content: ""; display: inline-block; width: .26em; height: .26em; border-radius: 50%; background: var(--sky); vertical-align: middle; margin: 0 .3em .08em 0; }
.has-active .names button:not(.is-on) { opacity: .3; }
.names button.is-on::before { background: var(--ink); }
.who-detail { margin-left: auto; font-size: 16px; color: var(--muted); text-align: right; }
.who-detail b { color: var(--ink); font-weight: 700; }
.who-detail a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
/* Name · role · phone; the dot is inline-block so the link's underline skips it. */
.who-detail [data-detail]:not([data-detail=""]) > * + *::before { content: "·"; display: inline-block; margin: 0 .5em; color: var(--muted); font-weight: 400; }
.hint { display: none; }
@media (hover: hover) { .team-live .hint-hover { display: inline; } }
@media (hover: none) { .team-live .hint-touch { display: inline; } }
@media (prefers-reduced-motion: reduce) { .spot, .names button { transition: none; } }
@media (max-width: 640px) {
  .team-img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .spots { border-radius: 20px; }
  .team-cap { margin-top: var(--sp-3); }
  /* All four names on one line across the photo's width (was 3 + 1): the size
     follows the screen so "Eliza Krystian Natalia Klaudia" fits even at 320 px. */
  .team-cap .names { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 .4em; font-size: clamp(14px, 4.4vw, 26px); }
  .names button { padding: 8px 0; }
  /* Two lines reserved, so tapping a name never pushes the page below. */
  .who-detail { margin-left: 0; text-align: left; min-height: 3em; }
}

/* ---------- promises ---------- */
.promises { padding: var(--sp-6) 0 var(--sp-7); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.promise .ic-lg { color: var(--sea); margin-bottom: var(--sp-5); }
.promise h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: var(--sp-2); }
.promise p { font-size: 16px; color: var(--muted); }
@media (max-width: 800px) { .grid-3 { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } .promises { padding: var(--sp-5) 0 var(--sp-7); } }

/* ---------- bands & sections ---------- */
.band { background: var(--mist); padding: var(--sp-9) 0; }
.section { padding: var(--sp-9) 0; }
.sec-head { margin-bottom: var(--sp-7); }
@media (max-width: 640px) { .band, .section { padding: var(--sp-8) 0; } .sec-head { margin-bottom: var(--sp-6); } }

/* ---------- deadlines ledger (tabular figures, hairline rows) ---------- */
.ledger-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; }
.ledger-head .muted { margin-top: var(--sp-4); }
.band-ledger { padding-bottom: var(--sp-8); }
.only-narrow { display: none; }
.ledger { background: var(--paper); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); }
/* The text and the "za 5 dni" pill are centred on the bold date (feedback 15.10):
   the date's line box is made exactly one text line (27px), everything is top-aligned,
   so a wrapped text keeps its FIRST line on the date and the weekday stays under it. */
.ledger li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: start; column-gap: var(--sp-4); padding: var(--sp-5); border-top: 1px solid var(--line); }
.ledger time { display: contents; }
.ledger .d { grid-area: 1 / 1; }
.ledger .w { grid-area: 2 / 1; }
.ledger .what { grid-area: 1 / 2 / 3 / 3; line-height: 27px; }
.ledger .left { grid-area: 1 / 3; margin-top: -3px; }
.ledger li:first-child { border-top: 0; }
.ledger .d { font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 27px; }
.ledger .w { font-size: 13px; line-height: 1.3; color: var(--muted); margin-top: 4px; align-self: start; }
.ledger .what { color: var(--display); font-weight: 500; }
.ledger .left { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--sky-wash); padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .left.is-soon { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .ledger-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .ledger li { grid-template-columns: 64px minmax(0, 1fr); padding: var(--sp-4); }
  .ledger .d { font-size: 22px; }
  /* Phones: two rows - date with the text, then the weekday with the pill, centred. */
  .ledger li { row-gap: var(--sp-2); }
  .ledger .what { grid-area: 1 / 2; }
  .ledger .w { align-self: center; margin-top: 0; }
  .ledger .left { grid-area: 2 / 2; justify-self: start; margin-top: 0; }
}

/* ---------- about: numbers and reasons ---------- */
.stats { margin: 0 0 var(--sp-8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); padding: var(--sp-6) 0; border-block: 1px solid var(--line); }
.stats dt { font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dd { margin: var(--sp-2) 0 0; font-size: 16px; color: var(--muted); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6); }
.reasons li::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--sky); margin-bottom: var(--sp-4); }
.reasons h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: var(--sp-2); }
.reasons p { font-size: 16px; }
@media (max-width: 1020px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5) 0; margin-bottom: var(--sp-7); }
  /* Number above its caption: side by side left the caption ~120 px, narrower
     than a glued phrase like "w tym samym zespole" (overflowed at 320 px). */
  .stats dt { font-size: 36px; }
  .stats dd { margin-top: var(--sp-1); }
  .reasons { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}

/* ---------- dark section ---------- */
.dark { background: linear-gradient(165deg, var(--ink) 0%, var(--sea-deep) 100%); color: var(--on-dark); padding: var(--sp-9) 0; }
.dark .h1 { color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); counter-reset: s; }
.steps .n { display: block; font-size: 56px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--sky); font-variant-numeric: tabular-nums; margin-bottom: var(--sp-5); }
.steps h3 { color: var(--paper); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: var(--sp-2); }
.steps p { font-size: 16px; }
.dark-cta { margin-top: var(--sp-8); padding: var(--sp-6); background: var(--ink-2); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.dark-cta p { color: var(--paper); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; max-width: 24em; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } .steps .n { font-size: 40px; margin-bottom: var(--sp-3); } .dark { padding: var(--sp-8) 0; } .dark-cta { padding: var(--sp-5); } }

/* ---------- services ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-7); align-items: start; }
.sticky { position: sticky; top: 112px; }
.sticky .link { display: inline-block; margin-top: var(--sp-5); }
.sticky .lead-sm + .lead-sm { margin-top: var(--sp-3); }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.offer-card { background: var(--mist); border-radius: var(--r-lg); padding: var(--sp-6); }
.offer-card h3 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--sp-4); }
.offer-card li { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--display); }
.offer-card li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-top: .55em; }
/* The owner's state accounting certificate (Mania, 29.10): proof, so it sits under the
   accounting list as a quiet footnote rather than another service bullet. */
.cert { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cert .ic { color: var(--ink-2); margin-top: 1px; }
/* Third offer (grant applications) spans both columns: a heading and one sentence. */
.offer-wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: var(--sp-2) var(--sp-6); flex-wrap: wrap; }
.offer-wide h3 { margin-bottom: 0; }
.offer-wide p { flex: 1 1 22em; font-size: 16px; color: var(--display); text-wrap: balance; }
/* Tablets: the 4fr column is too narrow for the heading, so the split goes back to 5/7
   and the two cards stack in the right column instead of squeezing side by side. */
@media (max-width: 1200px) and (min-width: 861px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .offer { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } .sticky { position: static; } }
@media (max-width: 560px) { .offer { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); } .offer-card { padding: var(--sp-5); } }

/* ---------- quotes ---------- */
/* One row that scrolls sideways at every width (a 2x2 grid of five cards left a
   hole and read as a wall). The list is full-bleed: its padding puts the first card
   on the column edge and lets the rest run out under the right margin, which is
   the "there is more" signal. --edge is that column edge; 100% is the section width.
   The extra block padding is room for the hover lift and shadow, which a scroller
   would otherwise clip, and the negative margins give it back. */
.quotes { --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex; gap: var(--sp-5); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: var(--sp-5) var(--edge) var(--sp-7); margin: calc(-1 * var(--sp-5)) 0 calc(-1 * var(--sp-7)); }
.quotes::-webkit-scrollbar { display: none; }
.quotes:focus-visible { outline-offset: -3px; }
.quotes > li { flex: 0 0 min(380px, 84%); scroll-snap-align: start; }
.quotes li { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; }
.quotes li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 14px 34px rgba(12,22,38,.12); opacity: 0; transition: opacity 200ms var(--ease); pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* `translate`, not `transform`: the scroll-reveal sets transform:none with higher
     specificity and silently cancelled the lift. Separate property, no fight. */
  .quotes li { transition: translate 200ms var(--ease), opacity 260ms var(--ease), transform 260ms var(--ease); }
  .quotes li:hover { translate: 0 -4px; }
  .quotes li:hover::after { opacity: 1; }
}
.quotes blockquote { margin: 0; flex: 1; }
.q-mark { width: 28px; height: 28px; margin-bottom: var(--sp-4); fill: var(--sky-wash); stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; flex: none; }
/* Card face: one sentence of the review at quote size. The whole review (65-150
   words) opens in place; it is body size and `pretty`, since balance gives up past
   ~6 lines. Without JS (.q-live unset) only the whole review shows. */
.q-pull { display: none; font-size: clamp(19px, 0.8vw + 12px, 22px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; color: var(--display); }
.q-full p { font-size: 16px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.q-full strong { font-weight: 600; color: var(--display); background: linear-gradient(transparent 58%, var(--sky-wash) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.q-live .q-pull { display: block; }
.q-live .q-full { display: none; }
.q-live .is-open .q-pull { display: none; }
.q-live .is-open .q-full { display: block; }
.q-more { display: inline-flex; align-items: center; gap: var(--sp-1); align-self: flex-start; margin-top: var(--sp-4); min-height: 40px; padding: 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.q-more[hidden] { display: none; }   /* display:inline-flex above beats the UA [hidden] rule */
.q-more .ic { width: 18px; height: 18px; transition: rotate 200ms var(--ease); }
.is-open .q-more .ic { rotate: 180deg; }
.who { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); display: flex; flex-direction: column; }
.who b { color: var(--ink); }
/* Closed cards share the row's height; once one opens, the others keep their own
   height instead of stretching into empty cards next to it. */
.quotes:has(.is-open) { align-items: start; }
@media (max-width: 900px) { .quotes li { padding: var(--sp-5); } }
/* Arrows beside the heading for mouse users; phones swipe, and the peeking next
   card says so. Shown by JS, which also greys out the arrow at either end. */
.q-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); }
.q-nav { display: flex; gap: var(--sp-2); flex: none; }
.q-nav[hidden] { display: none; }
.q-nav button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color 150ms var(--ease), opacity 150ms var(--ease); }
.q-nav button:hover:not(:disabled) { border-color: var(--ink); }
.q-nav button:disabled { opacity: .35; cursor: default; }
.q-nav [data-dir="-1"] .ic { rotate: 180deg; }
@media (max-width: 760px) { .q-nav, .q-nav[hidden] { display: none; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); align-items: start; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.facts li { display: flex; gap: var(--sp-3); }
.facts .ic { color: var(--ink); margin-top: 2px; }
.facts .wide { grid-column: 1 / -1; }
.facts div { display: flex; flex-direction: column; }
.facts .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts .v { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.facts a.v:hover { text-decoration: underline; text-underline-offset: 3px; }
.facts .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.map { position: relative; margin: 0; }
.btn-map { position: absolute; right: var(--sp-4); bottom: var(--sp-4); background: var(--paper); color: var(--ink); box-shadow: 0 6px 20px rgba(12,22,38,.14); }
.btn-map:hover { background: var(--sky-wash); }
.map > svg { width: 100%; height: auto; border-radius: var(--r-lg); }
.map .sea { fill: var(--sky-wash); }
.map .land { fill: var(--paper); stroke: var(--map-coast); stroke-width: 1.5; stroke-linejoin: round; }
.map .water { font: italic 500 14px var(--font); fill: var(--map-water); letter-spacing: .02em; }
.map .town circle { fill: var(--ink-2); }
.map .town text { font: 500 14px var(--font); fill: var(--text); }
.map .office circle { fill: var(--ink); }
.map .office .halo { fill: var(--sky); opacity: .35; transform-origin: 211px 204.7px; }
.map .office text { font: 800 17px var(--font); fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .map .office .halo { animation: halo 2.6s var(--ease) infinite; }
}
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

.form { background: var(--fog); border-radius: var(--r-lg); padding: var(--sp-6); position: sticky; top: 104px; }
.form h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.form .muted { margin: var(--sp-1) 0 var(--sp-5); }
.field { display: block; margin-bottom: var(--sp-4); }
.field span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--display);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--r-card);
  padding: 12px 16px; transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky-wash); }
.field [aria-invalid="true"] { border-color: var(--error); }
.consent { display: flex; gap: var(--sp-3); align-items: center; font-size: 14px; color: var(--text); margin: var(--sp-2) 0 var(--sp-5); cursor: pointer; }
.consent input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--check-line); border-radius: 6px; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.consent input::after { content: ""; width: 11px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform var(--dur) var(--ease); }
.consent input:checked { background: var(--sky); border-color: var(--sky); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent input[aria-invalid="true"] { border-color: var(--error); }
.form-msg { margin-top: var(--sp-4); font-size: 15px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-card); background: var(--paper); color: var(--ink); }
.form-msg.is-error { color: var(--error-text); }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } .form { position: static; } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .form { padding: var(--sp-5); } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: var(--sp-8) 0 var(--sp-7); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center; }
.brand-inv { color: var(--paper); }
.brand-inv .brand-sub { color: var(--on-dark); }
.brand-inv .brand-logo { --lg-word: var(--paper); }
.foot-slogan { margin-top: var(--sp-3); font-size: 17px; font-weight: 600; color: var(--paper); }
.reg { margin: 0; display: grid; grid-template-columns: auto auto; gap: var(--sp-3) var(--sp-6); font-size: 15px; }
.reg dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.reg dd { margin: 2px 0 0; color: var(--paper); font-variant-numeric: tabular-nums; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(201,220,239,.2); padding-top: var(--sp-5); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.by-nice { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); text-decoration: none; opacity: .8; transition: opacity var(--dur) var(--ease); }
.by-nice:hover { opacity: 1; }
.by-nice img { display: block; width: 44px; height: auto; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); } .reg { grid-template-columns: minmax(0, 1fr) 1fr; } }

/* ---------- mobile call bar (thumb reach) ----------
   Feedback round 4: a floating pill covered whatever text scrolled under it.
   Docked full width, with the page padded by its height, nothing ever hides
   behind it - and it stays on screen all the time, as asked. */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 56px; padding: 0 var(--sp-4) env(safe-area-inset-bottom);
    background: var(--ink); color: var(--paper); font-weight: 700; font-size: 17px; text-decoration: none;
    box-shadow: 0 -6px 24px rgba(12,22,38,.18);
  }
  .call-bar span { font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums; }
  .call-bar .ic { color: var(--sky); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Shown only on the grota.cloud preview host (set by js/main.js), never on the client's domain. */
.mock-flag { position: fixed; left: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); z-index: 30; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--ink); padding: 6px 12px; border-radius: var(--r-pill); box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(12,22,38,.12); }

/* The map SVG scales down ~45% on a phone; text set in viewBox units would land
   near 7px, so labels are enlarged in user units to stay readable. */
@media (max-width: 560px) {
  .map .town text { font-size: 24px; }
  .map .office text { font-size: 28px; }
  .map .water { font-size: 22px; }
  .map .town circle { r: 6; }
  /* Krokowa and Rumia collide with bigger neighbours at this size and are not the point of the map. */
  .map .minor { display: none; }
}

/* Phones: a fixed label would sit on top of body text. */
@media (max-width: 760px) { .mock-flag { display: none; } }

/* ---------- motion ----------
   Everything here applies only under html.motion, which the inline <head>
   script sets when the visitor has not asked for reduced motion. Without it
   (no JS, reduced motion, crawlers) every element is simply visible.
   Durations 180-260ms, staggers 40ms. Only transform/opacity animate. */
.motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 260ms var(--ease) var(--d, 0ms), transform 260ms var(--ease) var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); transition-delay: calc(var(--n, 0) * 40ms); }
.motion [data-stagger].is-in > * { opacity: 1; transform: none; }


.motion .map .town { opacity: 0; transition: opacity 240ms var(--ease); }
.motion .map.is-in .town { opacity: 1; }

/* ---------- legal page ---------- */
.legal { padding: var(--sp-8) 0 var(--sp-9); }
.legal-in { max-width: 760px; }
.legal h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin: var(--sp-7) 0 var(--sp-3); }
.legal p + p { margin-top: var(--sp-3); }
.legal a { color: var(--ink); font-weight: 600; }
.nf-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.legal .nf-actions .btn { font-weight: 600; }
.legal-date { margin-top: var(--sp-7); }
/* Stacked layouts put the slogan bottom-left, so the preview flag moves right. */
@media (max-width: 1200px) and (min-width: 761px) { .mock-flag { left: auto; right: var(--sp-4); } }

/* ---------- phones: tighter review row and a compact footer ---------- */
@media (max-width: 760px) {
  .quotes { gap: var(--sp-3); }

  .footer { padding: var(--sp-6) 0 var(--sp-5); }
  .foot { gap: var(--sp-4); }
  .foot-brand { display: flex; align-items: center; justify-content: space-between; }
  .foot-slogan { display: none; }
  .reg { display: block; font-size: 13px; line-height: 1.6; color: var(--on-dark); }
  .reg div { display: inline; }
  .reg div + div::before { content: " · "; color: var(--on-dark); }
  .reg dt { display: none; }
  .reg div:nth-child(n+3) dt { display: inline; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--on-dark); }
  .reg div:nth-child(n+3) dt::after { content: " "; }
  .reg dd { display: inline; margin: 0; }
  .copy { padding-top: var(--sp-4); font-size: 13px; gap: var(--sp-3); }
}
