/* =====================================================================
   Nurt Zdrowia — design system
   Warm minimalism for a premium physiotherapy practice.
   Palette / type / shape decisions recorded in /DESIGN.md.
   ===================================================================== */

/* ---- Self-hosted type (no external font requests / trackers) ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/worksans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/worksans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF;
}

/* ---- Tokens ---- */
:root {
  /* Sourced from assets/images/logo1.png: drop #50b0ff, wordmark/spine #212f35 */
  --ink: #212f35;
  --ink-soft: #4c5c64;
  --ink-faint: #7d8b92;
  --ink-deep: #141d22;
  --mist: #f5f9fc;
  --mist-deep: #e7f0f7;
  --paper: #ffffff;
  --stream-deep: #156bb8;
  --stream-deeper: #0e4f92;
  --stream-tint: #e6f3ff;
  --stream: #50b0ff;
  --danger: #a3372a;
  --danger-deep: #832a1f;
  --line: #d8e4ec;
  --line-strong: #c1d2e0;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 14px -4px rgba(33, 47, 53, 0.12);
  --shadow-md: 0 12px 28px -8px rgba(33, 47, 53, 0.16);
  --shadow-lg: 0 24px 48px -16px rgba(33, 47, 53, 0.22);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);

  color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { padding-left: 1.2em; }

/* Browser surfaces carry the design too */
::selection { background: var(--stream-deep); color: var(--mist); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist-deep); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 20px; border: 3px solid var(--mist-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

:focus-visible {
  outline: 2.5px solid var(--stream-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Type ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p { max-width: 68ch; }
p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

.measure-wide { max-width: 70ch; }

strong { font-weight: 600; }

.eyebrow-none { display: none; } /* explicit: this design never uses kicker labels */

/* Tabular figures for prices */
.price-figure, time, .tabular { font-variant-numeric: tabular-nums; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
/* Page-intro header (h1 + lede, no other content): drop its own bottom padding
   and tighten whatever section follows it, so a page title isn't stranded in
   two stacked full-height empty bands before the real content starts. */
.section--lead { padding-bottom: 0; }
.section--lead + .section { padding-top: clamp(28px, 4vw, 56px); }
.section--mist-deep { background: var(--mist-deep); }
.section--dark { background: var(--ink-deep); color: var(--stream-tint); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head + .section-head { margin-top: 0; }
.section-head p { margin-top: 0.9rem; }

.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--stream-deep); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ---- Reveal-on-scroll (single authored motion) ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Cascading entrance for grid/list children (second authored moment) ----
   The section itself still does the plain fade+rise above; once it settles,
   its grid children "flow in" one after another — a small nod to "Nurt"
   (current/flow) rather than everything popping in as one flat block. */
.reveal .card-grid > *,
.reveal .news-grid > *,
.reveal .process-list > *,
.reveal .prep-grid > * {
  opacity: 0;
}
.reveal.is-visible .card-grid > *,
.reveal.is-visible .news-grid > *,
.reveal.is-visible .process-list > *,
.reveal.is-visible .prep-grid > * {
  animation: flow-settle 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal.is-visible .card-grid > *:nth-child(1), .reveal.is-visible .news-grid > *:nth-child(1),
.reveal.is-visible .process-list > *:nth-child(1), .reveal.is-visible .prep-grid > *:nth-child(1) { animation-delay: 0.05s; }
.reveal.is-visible .card-grid > *:nth-child(2), .reveal.is-visible .news-grid > *:nth-child(2),
.reveal.is-visible .process-list > *:nth-child(2), .reveal.is-visible .prep-grid > *:nth-child(2) { animation-delay: 0.14s; }
.reveal.is-visible .card-grid > *:nth-child(3), .reveal.is-visible .news-grid > *:nth-child(3),
.reveal.is-visible .process-list > *:nth-child(3), .reveal.is-visible .prep-grid > *:nth-child(3) { animation-delay: 0.23s; }
.reveal.is-visible .card-grid > *:nth-child(4), .reveal.is-visible .news-grid > *:nth-child(4),
.reveal.is-visible .process-list > *:nth-child(4), .reveal.is-visible .prep-grid > *:nth-child(4) { animation-delay: 0.32s; }

@keyframes flow-settle {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal .card-grid > *, .reveal .news-grid > *, .reveal .process-list > *, .reveal .prep-grid > * { opacity: 1; }
  .reveal.is-visible .card-grid > *, .reveal.is-visible .news-grid > *,
  .reveal.is-visible .process-list > *, .reveal.is-visible .prep-grid > * { animation: none; }
}

/* ---- Flow line — decorative animated current threading through step lists ---- */
.process-list { position: relative; }
.process-step { position: relative; z-index: 1; }
.flow-line {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 2.1rem;
  height: 40px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.flow-line svg { width: 100%; height: 100%; display: block; }
.flow-line path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: flow-current 16s linear infinite;
}
@keyframes flow-current { to { stroke-dashoffset: -320; } }
@media (min-width: 1000px) {
  .flow-line { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line path { animation: none; }
}

/* ---- Ambient drifting drops — dark sections only, echoes the logo's water drop ---- */
.section--dark { position: relative; overflow: hidden; }
.section--dark > .container { position: relative; z-index: 1; }
.drift-drops { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.drift-drops span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(80, 176, 255, 0.4), rgba(80, 176, 255, 0) 70%);
  filter: blur(1px);
  animation: drift 20s ease-in-out infinite;
}
.drift-drops span:nth-child(1) { width: 240px; height: 240px; left: 6%;  top: 10%; animation-duration: 19s; }
.drift-drops span:nth-child(2) { width: 170px; height: 170px; right: 10%; top: 45%; animation-duration: 23s; animation-delay: -6s; }
.drift-drops span:nth-child(3) { width: 140px; height: 140px; left: 42%; bottom: 6%; animation-duration: 21s; animation-delay: -11s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(22px, -16px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .drift-drops span { animation: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 48px;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn--primary {
  background: var(--stream-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--stream-deeper); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--stream-deep); color: var(--stream-deeper); background: var(--stream-tint); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.btn--danger:hover { background: var(--danger-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.88rem; min-height: 40px; }
.btn--block { width: 100%; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
/* The blur lives on a pseudo-element, not on .site-header itself: a `filter`/
   `backdrop-filter` on an element creates a new containing block for its
   `position: fixed` descendants (here, .mobile-nav), which would trap the
   full-screen mobile menu inside the header's own ~90px-tall box instead of
   the viewport. Keeping the filter off .site-header keeps .mobile-nav fixed
   to the real viewport, so it actually opens full-screen on mobile. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 249, 252, 0.92);
  backdrop-filter: blur(10px) saturate(1.1);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--stream-deep);
  color: var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand-tagline { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }

.main-nav { display: none; }
.main-nav ul { display: flex; flex-wrap: nowrap; gap: clamp(0.8rem, 1.7vw, 1.9rem); list-style: none; padding: 0; }
.main-nav a {
  font-size: clamp(0.82rem, 0.6vw + 0.6rem, 0.94rem); font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 0.4rem;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--stream-deep); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: none; align-items: center; gap: 0.85rem; }
.header-phone { display: none; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--stream-deeper); font-size: 0.95rem; white-space: nowrap; }
.header-phone svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid var(--line-strong);
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: 0; top: var(--header-h, 72px);
  background: var(--mist);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 90;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.mobile-nav ul a {
  display: block; padding: 1rem 0.75rem; margin-inline: -0.75rem; font-size: 1.25rem; font-family: var(--font-display); font-weight: 600;
  border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.mobile-nav ul a[aria-current="page"] { color: var(--stream-deeper); background: var(--stream-tint); }
.mobile-nav .cta-row { margin-top: 1.75rem; flex-direction: column; align-items: stretch; }

@media (min-width: 940px) {
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

@media (min-width: 1240px) {
  /* Only shown once nav + phone + CTA all comfortably fit the 1180px container. */
  .header-phone { display: flex; }
}

/* ---- Mobile bottom action bar ---- */
.mobile-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(33,47,53,0.22);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 0; font-weight: 600; font-size: 0.95rem;
}
.mobile-actionbar a svg { width: 1.15em; height: 1.15em; }
.mobile-actionbar .action-call { background: var(--stream-deep); color: #fff; }
.mobile-actionbar .action-contact { color: var(--ink); border-left: 1px solid var(--line); }
body { padding-bottom: 64px; }

@media (min-width: 940px) {
  .mobile-actionbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---- Image placeholders (no stock photography in this build — see DESIGN.md § Imagery) ---- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--mist-deep);
  border: 1.5px dashed var(--line-strong);
  color: var(--ink-faint);
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder svg { width: 2.1rem; height: 2.1rem; opacity: 0.55; flex-shrink: 0; }
.img-placeholder span { font-size: 0.82rem; line-height: 1.45; max-width: 24ch; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 100px);
  isolation: isolate;
  background:
    radial-gradient(780px 560px at 88% 4%, var(--stream-tint) 0%, rgba(230, 243, 255, 0) 68%),
    var(--mist);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy .lede { margin-bottom: 2rem; }

/* ---- Hero ambience: the logo's current + drop motif, echoed at hero scale ----
   Positioned against the two-column split, so (like .flow-line) it only
   renders once .hero-grid actually has two columns to sit between. ---- */
.hero-ambience { display: none; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-current { position: absolute; left: 48%; right: -12%; top: -18%; height: 150%; opacity: 0.4; }
.hero-current svg { width: 100%; height: 100%; display: block; }
.hero-current path {
  fill: none;
  stroke: var(--stream);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 9 13;
  animation: flow-current 30s linear infinite;
}
.hero-drops span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(80, 176, 255, 0.32), rgba(80, 176, 255, 0) 70%);
  filter: blur(2px);
  animation: drift 23s ease-in-out infinite;
}
.hero-drops span:nth-child(1) { width: 300px; height: 300px; right: 2%;  top: 2%;  animation-duration: 25s; }
.hero-drops span:nth-child(2) { width: 190px; height: 190px; right: 22%; top: 56%; animation-duration: 28s; animation-delay: -9s; }
.hero-drops span:nth-child(3) { width: 170px; height: 170px; right: 46%; bottom: -8%; animation-duration: 20s; animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) {
  .hero-current path { animation: none; }
  .hero-drops span { animation: none; }
}

.hero-media-wrap { position: relative; }
.hero-glow {
  position: absolute;
  inset: -14% -18%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(80, 176, 255, 0.4), rgba(80, 176, 255, 0) 72%);
  filter: blur(36px);
}
.hero-media {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(20,29,34,0) 45%, rgba(20,29,34,0.35));
}
.hero-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  background: rgba(255,253,250,0.94);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  max-width: 220px;
  line-height: 1.4;
}
.hero-badge strong { display: block; color: var(--stream-deeper); font-family: var(--font-display); font-size: 1.05rem; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-ambience { display: block; }
}

/* ---- Hero → next section wave seam ---- */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(36px, 6vw, 84px);
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }
.hero-wave path { fill: var(--mist-deep); }

/* ---- Trust strip ---- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  padding-top: 2.25rem; margin-top: 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.9rem;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-strip svg { width: 1.1em; height: 1.1em; color: var(--stream-deep); flex-shrink: 0; }

/* ---- Service cards (explicitly requested "karty") ---- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/11;
  margin-bottom: 1.25rem;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }
.service-card .btn { margin-top: 1.4rem; align-self: flex-start; }

/* ---- Alternating feature rows (service detail pages) ---- */
.feature-row {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.feature-row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row__list { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.feature-row__list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--mist-deep);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
}
.feature-row__list li svg { width: 1.2em; height: 1.2em; color: var(--stream-deep); flex-shrink: 0; margin-top: 0.15em; }

@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row--reverse .feature-row__media { order: 2; }
}

/* ---- Process steps (numbered — sequence carries real information) ---- */
.process-list {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.process-step { position: relative; padding-top: 0.25rem; }
.process-step__number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--stream-deep);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Prep checklist ---- */
.prep-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.prep-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.prep-card svg { width: 2rem; height: 2rem; color: var(--stream-deep); margin-bottom: 0.85rem; }
.prep-card h4 { margin-bottom: 0.4rem; }
.prep-card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---- About / bio ---- */
.bio-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.bio-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.bio-kicker { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stream-deep); margin-bottom: 0.6rem; }
.bio-credentials { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin: 1.5rem 0; }
.bio-credentials li { display: flex; gap: 0.65rem; font-size: 0.95rem; }
.bio-credentials li svg { width: 1.15em; height: 1.15em; color: var(--stream-deep); flex-shrink: 0; margin-top: 0.15em; }
.bio-note {
  background: var(--stream-tint);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--stream-deeper);
}

@media (min-width: 900px) {
  .bio-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---- Pricing table (a real table, not a card grid) ---- */
.price-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
table.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; padding: 1.25rem 1.5rem 0; font-size: 0.85rem; color: var(--ink-faint); }
.price-table th, .price-table td {
  padding: 1.05rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table thead th {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  background: var(--mist-deep);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--mist-deep); }
.price-table td.price-name { font-weight: 600; font-family: var(--font-display); font-size: 1.02rem; }
.price-table td.price-desc { color: var(--ink-soft); font-size: 0.9rem; }
.price-table td.price-amount { font-weight: 600; color: var(--stream-deeper); white-space: nowrap; text-align: right; font-size: 1.05rem; }
.price-table thead th.th-amount { text-align: right; }
.price-note { padding: 1.25rem 1.5rem; font-size: 0.9rem; color: var(--ink-soft); background: var(--mist-deep); }

@media (max-width: 620px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td, .price-table caption { display: block; width: 100%; }
  .price-table caption { padding: 1rem 1.25rem 0; }
  .price-table tbody tr { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .price-table td { padding: 0.15rem 0; border-bottom: none; }
  .price-table td.price-amount { text-align: left; margin-top: 0.4rem; }
}

/* ---- News / aktualności cards ---- */
.news-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card__media { aspect-ratio: 16/10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-card time { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.news-card h3 { font-size: 1.2rem; margin: 0.5rem 0 0.6rem; }
.news-card p { font-size: 0.93rem; color: var(--ink-soft); flex-grow: 1; }
.news-card .btn { margin-top: 1.25rem; align-self: flex-start; }

.post-header { max-width: 74ch; }
.post-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: 2rem 0; aspect-ratio: 16/8; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 70ch; }
.post-body h2 { margin-top: 2rem; margin-bottom: 0.85rem; font-size: 1.5rem; }
.post-body p, .post-body ul { margin-bottom: 1.1rem; color: var(--ink-soft); }
.post-body ul { padding-left: 1.4rem; }
.post-meta { display: flex; gap: 1rem; align-items: center; color: var(--ink-faint); font-size: 0.9rem; margin-top: 0.75rem; }

/* ---- FAQ accordion (native details, no JS framework) ---- */
.faq-list { max-width: 74ch; display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--stream-deep); font-family: var(--font-body); font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-item .faq-answer { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list svg { width: 1.35em; height: 1.35em; color: var(--stream-deep); flex-shrink: 0; margin-top: 0.1em; }
.contact-list a:hover { color: var(--stream-deeper); text-decoration: underline; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink-deep);
  color: #cfdbe2;
  padding-block: clamp(48px, 6vw, 80px) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 0.65rem; align-items: center; margin-bottom: 1rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.14); color: #fff; }
.footer-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.site-footer p { color: #a7b7c2; font-size: 0.92rem; }
.footer-heading { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.footer-links a { color: #b7c6d0; font-size: 0.93rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem; font-size: 0.85rem; color: #8ea0ab;
}
.footer-bottom a:hover { color: #fff; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 560px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--mist);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner p { font-size: 0.88rem; color: #ece5da; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; }

/* ---- Generic content pages (privacy/cookies) ---- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.4rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---- Simple forms (used in admin) ---- */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.25rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--stream-deep);
  box-shadow: 0 0 0 3px var(--stream-tint);
  outline: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field-hint { font-size: 0.82rem; color: var(--ink-faint); }
.field-error { font-size: 0.85rem; color: var(--danger-deep); }
.checkbox-field { display: flex; align-items: center; gap: 0.6rem; }
.checkbox-field input { width: 1.15rem; height: 1.15rem; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 1.5rem; }
.alert--success { background: var(--stream-tint); color: var(--stream-deeper); }
.alert--error { background: #fbe6de; color: var(--danger-deep); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.color-stream { color: var(--stream-deeper); }
