/* kreativSerwis — Design system */

/* ---------------------------------------------------------------------
   Fonts — self-hosted Archivo (variable, 400–800), latin + latin-ext
   for full Polish diacritic coverage. No external font requests.
   The split-flap motif is built as real CSS geometry, not a typeface,
   so no separate "technical" display face is needed.
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------- */
:root {
  /* Ground */
  --paper:        #ffffff;
  --paper-soft:   #f4f6f9;
  --paper-line:   #e3e7ee;

  /* Ink (true near-black — a confident void, not washed grey) */
  --ink-900: #090c12;
  --ink-800: #12161f;
  --ink-700: #1c212c;
  --ink-600: #333a48;
  --ink-500: #4c5566;
  --ink-400: #6b7385;
  --ink-300: #98a0b0;
  --ink-100: #dde1e8;

  /* Accent blue — technology / trust / dispatch */
  --blue-700: #0f3fac;
  --blue-600: #1750d6;
  --blue-500: #2f6bff;
  --blue-400: #6b93ff;
  --blue-50:  #eef3ff;
  --blue-glow: rgba(47, 107, 255, .55);

  --ok: #1a9e6a;
  --warn: #c8791a;

  --font-sans: 'Archivo', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(9, 12, 18, .06), 0 1px 1px rgba(9, 12, 18, .04);
  --shadow-md: 0 8px 24px rgba(9, 12, 18, .10), 0 2px 6px rgba(9, 12, 18, .06);
  --shadow-lg: 0 20px 60px rgba(9, 12, 18, .18), 0 6px 16px rgba(9, 12, 18, .10);

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, picture, svg { max-width: 100%; display: block; }
/* Icons default to 1em square so they scale with their text context
   automatically; components with a deliberately different icon size
   override this with a more specific selector below. */
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; text-decoration: none; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--blue-600); color: #fff; }
:root { caret-color: var(--blue-600); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-soft); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 8px; border: 3px solid var(--paper-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--paper-soft); }
.section--ink { background: var(--ink-900); color: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; }
.section--ink .section-head p { color: var(--ink-300); }

.eyebrow-none { display: none; } /* explicit: no kicker/eyebrow labels in this system */

.measure { max-width: 68ch; }

h1 { font-size: clamp(2.25rem, 5.4vw, 3.85rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

.text-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-500); }
.section--ink .text-lead { color: var(--ink-100); }

/* ---------------------------------------------------------------------
   Buttons — strong CTAs, tactile press rather than a soft fade
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease-out-expo), box-shadow .15s var(--ease-out-expo), background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -8px var(--blue-glow);
}
.btn--primary:hover { background: var(--blue-500); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 14px 30px -8px var(--blue-glow); }

.btn--ghost-dark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,.28);
}
.btn--ghost-dark:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }

.btn--outline {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-100);
}
.btn--outline:hover { border-color: var(--ink-600); }

.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}
.logo {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: .08em;
}
.logo em { font-style: normal; color: var(--blue-600); }

.brand-logo { display: inline-flex; align-items: center; gap: .45rem; flex: none; }
.brand-logo__mark { width: auto; height: 24px; display: block; }

/* White plate so the full-color mark stays legible on the dark
   footer/admin grounds — its darkest strokes are near-black and
   would otherwise disappear into var(--ink-900). */
.logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border-radius: var(--radius-sm);
  padding: .3rem .45rem; flex: none;
}
.logo-plate .brand-logo__mark { height: 26px; }

.nav-primary { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(.75rem, 1.6vw, 2rem); }
.nav-primary a { font-weight: 600; font-size: .97rem; color: var(--ink-600); position: relative; padding-block: .3rem; white-space: nowrap; }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--ink-900); }
.nav-primary a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue-600); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: .9rem; }
.phone-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; color: var(--ink-800);
}
.phone-chip svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }

.nav-toggle {
  display: none;
  background: none; border: none; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink-900);
  transition: transform .2s var(--ease-out-expo), opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(0) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Split-flap board component (signature device)
   --------------------------------------------------------------------- */
.flap-panel {
  position: relative;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
  container-type: inline-size;
  container-name: flap;
}
.flap-panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14px 14px, rgba(255,255,255,.22) 1.5px, transparent 1.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, rgba(255,255,255,.22) 1.5px, transparent 1.6px),
    radial-gradient(circle at 14px calc(100% - 14px), rgba(255,255,255,.22) 1.5px, transparent 1.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgba(255,255,255,.22) 1.5px, transparent 1.6px);
  pointer-events: none;
}
.flap-panel__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: .65rem;
}
.flap-row { display: flex; flex-wrap: wrap; gap: .3em; perspective: 260px; }
.flap-cell {
  /* Sized against the flap-panel's own width (container query), not the
     viewport — otherwise a narrow sidebar panel gets the same huge cells
     as the full-width hero and wraps into an oversized, broken-looking stack. */
  --cell: clamp(1.5rem, 8cqi, 3.1rem);
  position: relative;
  width: var(--cell);
  height: calc(var(--cell) * 1.18);
  border-radius: 6px;
  background: linear-gradient(180deg, #232a38, #171c26);
  border: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: calc(var(--cell) * .62);
  color: var(--blue-400);
  text-shadow: 0 0 14px var(--blue-glow), 0 0 2px rgba(107,147,255,.8);
  overflow: hidden;
  flex: none;
}
.flap-cell::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.flap-cell--blank { background: transparent; border-color: transparent; box-shadow: none; }
.flap-cell--blank::after { display: none; }
.flap-cell--lg { --cell: clamp(2rem, 11cqi, 3.8rem); }

/* Flip-in: cells drop into place like a real split-flap tile turning
   over, staggered left-to-right. Runs once, gated on the panel's own
   scroll-reveal state so it never fires off-screen. */
@media (prefers-reduced-motion: no-preference) {
  .flap-panel.is-visible .flap-cell {
    animation: flapDrop .48s var(--ease-out-expo) both;
    animation-delay: calc(var(--i, 0) * 40ms + 90ms);
  }
  @keyframes flapDrop {
    from { transform: rotateX(-85deg); opacity: 0; }
    65%  { transform: rotateX(10deg); opacity: 1; }
    to   { transform: rotateX(0deg); opacity: 1; }
  }
}

.flap-cta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Status / dispatch rail — lit vs. ghost lamps */
.status-rail {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: .25rem;
}
.status-node {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  min-width: 92px;
  position: relative;
  padding-inline: .4rem;
}
.status-node::before {
  content: "";
  position: absolute;
  top: 8px; left: -50%; right: 50%;
  height: 2px;
  background: var(--ink-100);
}
.status-node:first-child::before { display: none; }
.status-node[data-lit="true"]::before { background: var(--blue-500); }
.status-lamp {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-100);
  z-index: 1;
}
.status-node[data-lit="true"] .status-lamp {
  background: var(--blue-600);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 5px var(--blue-50), 0 0 16px var(--blue-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .status-node[data-lit="true"] .status-lamp { animation: lampPulse 2.6s ease-in-out infinite; }
  @keyframes lampPulse {
    0%, 100% { box-shadow: 0 0 0 5px var(--blue-50), 0 0 16px var(--blue-glow); }
    50%      { box-shadow: 0 0 0 5px var(--blue-50), 0 0 24px var(--blue-glow); }
  }
}
.status-node span {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-400);
  text-align: center;
}
.status-node[data-lit="true"] span { color: var(--ink-900); }
.section--ink .status-node span { color: var(--ink-300); }
.section--ink .status-node[data-lit="true"] span { color: var(--paper); }
.section--ink .status-node::before { background: rgba(255,255,255,.14); }
.section--ink .status-lamp { background: var(--ink-800); border-color: rgba(255,255,255,.22); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { padding-block: clamp(2.75rem, 7vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__kicker-loc {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .88rem; color: var(--blue-600);
  background: var(--blue-50); border-radius: 999px; padding: .4rem .85rem;
  margin-bottom: 1.1rem;
}
.hero__kicker-loc svg { width: 15px; height: 15px; flex: none; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 strong { color: var(--blue-600); font-weight: 800; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-500); max-width: 52ch; margin-bottom: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; }
.hero__trust-item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ink-500); }
.hero__trust-item svg { width: 17px; height: 17px; color: var(--blue-600); flex: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr; } }

.tile-graphic {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-line);
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-line);
}

.brand-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 25 / 8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
@media (max-width: 640px) { .brand-banner { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------------
   Service manifest list (replaces the generic icon-card grid)
   --------------------------------------------------------------------- */
.manifest {
  border-top: 1px solid var(--paper-line);
}
.manifest__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--paper-line);
  text-decoration: none;
  transition: background-color .15s ease, padding-inline .15s var(--ease-out-expo);
}
a.manifest__row:hover { background: var(--paper-soft); padding-inline: .75rem; margin-inline: -.75rem; border-radius: var(--radius-sm); }
.manifest__lamp {
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50);
  flex: none;
}
.manifest__body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .15rem; }
.manifest__body p { color: var(--ink-500); font-size: .93rem; }
.manifest__arrow { color: var(--ink-300); flex: none; transition: transform .15s var(--ease-out-expo), color .15s ease; }
a.manifest__row:hover .manifest__arrow { transform: translateX(4px); color: var(--blue-600); }

.manifest--dense { columns: 1; }
@media (min-width: 760px) {
  .manifest--dense { column-count: 2; column-gap: 2.5rem; }
  .manifest--dense .manifest__row { break-inside: avoid; }
}

/* ---------------------------------------------------------------------
   Process rail (Jak działamy) — numbered, sequence carries information
   --------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .process { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .process { grid-template-columns: repeat(2, 1fr); } }
.process__step { display: flex; flex-direction: column; gap: .75rem; }
.process__step h3 { font-size: .98rem; }
.process__step p { font-size: .87rem; color: var(--ink-500); }

/* ---------------------------------------------------------------------
   Why-us list
   --------------------------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }
.reasons__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-inline-end: 2rem;
}
.reasons__item:nth-child(odd) { border-inline-end: 1px solid rgba(255,255,255,.12); padding-inline-start: 0; }
@media (min-width: 761px) { .reasons__item:nth-child(odd) { padding-inline-end: 2rem; } }
.reasons__item h3 { color: var(--paper); font-size: 1.02rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .6rem; }
.reasons__item h3 svg { width: 19px; height: 19px; color: var(--blue-400); flex: none; }
.reasons__item p { color: var(--ink-300); font-size: .93rem; }

/* ---------------------------------------------------------------------
   Testimonials — clearly labeled placeholders (no fabricated reviews)
   --------------------------------------------------------------------- */
.testi-strip { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(340px, 82vw);
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.testi-card__stars { color: var(--blue-600); font-size: .85rem; letter-spacing: .15em; margin-bottom: .75rem; }
.testi-card p.quote { font-size: .98rem; color: var(--ink-600); font-style: italic; margin-bottom: 1rem; }
.testi-card__who { font-size: .85rem; font-weight: 700; color: var(--ink-400); }

/* ---------------------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.15rem;
  cursor: pointer;
  font-weight: 700; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--ink-800); border-radius: 2px;
}
.faq-item summary .plus::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-item summary .plus::after { width: 2px; height: 14px; top: 4px; left: 10px; transition: transform .18s var(--ease-out-expo); }
.faq-item[open] summary .plus::after { transform: rotate(90deg); }
.faq-item p { padding-bottom: 1.25rem; color: var(--ink-500); max-width: 68ch; }

/* ---------------------------------------------------------------------
   Final CTA band
   --------------------------------------------------------------------- */
.cta-band {
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { color: var(--ink-300); }
.cta-band__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-400); padding-block: 1rem; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb span[aria-hidden] { color: var(--ink-300); }

/* ---------------------------------------------------------------------
   Cards used sparingly for genuinely equal, comparable items
   (service detail meta, blog post preview) — not the default scaffold.
   --------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; }
.post-card__image {
  aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden; background: var(--paper-soft);
  margin-bottom: 1rem; border: 1px solid var(--paper-line);
  display: flex; align-items: center; justify-content: center;
}
.post-card__image svg { width: 34px; height: 34px; color: var(--ink-300); }
.post-card__meta { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-600); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-600); }
.post-card p { color: var(--ink-500); font-size: .93rem; }
.post-card__date { color: var(--ink-300); font-size: .8rem; margin-top: .75rem; }

.tag-pill {
  display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700;
  background: var(--blue-50); color: var(--blue-700); padding: .3rem .65rem; border-radius: 999px;
  text-decoration: none;
}
.tag-pill:hover { background: var(--blue-600); color: #fff; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------------------------------------------------------------------
   Article typography (blog single, legal pages)
   --------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-block: 2rem .75rem; font-size: 1.45rem; }
.prose h3 { margin-block: 1.5rem .6rem; font-size: 1.15rem; }
.prose p { margin-bottom: 1.15rem; color: var(--ink-700); }
.prose ul, .prose ol { margin-bottom: 1.15rem; padding-left: 1.4rem; color: var(--ink-700); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--blue-600); text-decoration: underline; text-decoration-color: var(--blue-400); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--ink-900); }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink-700); }
.field .hint { font-size: .78rem; color: var(--ink-400); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-50);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d33; }
.field-error { font-size: .8rem; color: #c0202b; font-weight: 600; }
.checkbox-field { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1.4rem; }
.checkbox-field input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--blue-600); flex: none; }
.checkbox-field label { font-size: .87rem; color: var(--ink-600); }
.checkbox-field a { color: var(--blue-600); text-decoration: underline; text-decoration-color: var(--blue-400); }
.checkbox-field a:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------------
   Booking map picker (/umow-online) — Leaflet + OpenStreetMap, no key
   --------------------------------------------------------------------- */
.booking-map {
  /* Leaflet's internal panes/controls use z-index up to ~1000; without its
     own stacking context here, that leaks out and paints over the sticky
     site header (z-index: 40) while scrolling. position + z-index:0
     contains it to this box. */
  position: relative;
  z-index: 0;
  height: 300px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--paper-line);
  overflow: hidden;
  background: var(--paper-soft);
}
.leaflet-tooltip { font-family: var(--font-sans); font-size: .82rem; }

.address-suggestions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: .3rem;
  background: var(--paper);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.address-suggestions__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .7rem .95rem;
  border: none;
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--ink-700);
  font-size: .9rem;
  cursor: pointer;
}
.address-suggestions__item:last-child { border-bottom: none; }
.address-suggestions__item:hover, .address-suggestions__item:focus-visible { background: var(--paper-soft); color: var(--ink-900); }

.alert { border-radius: var(--radius-sm); padding: 1rem 1.15rem; font-size: .93rem; font-weight: 600; margin-bottom: 1.5rem; }
.alert--success { background: #e9f8f0; color: #106b45; border: 1px solid #bfe9d3; }
.alert--error { background: #fdecec; color: #9a1420; border: 1px solid #f6c5c8; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.1rem; }
.footer-grid ul li { margin-bottom: .6rem; }
.footer-grid a { color: var(--ink-300); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand .brand-logo { margin-bottom: .85rem; }
.footer-brand .logo { color: var(--paper); }
.footer-brand p { font-size: .9rem; color: var(--ink-400); max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--ink-400);
}
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-400); }
.footer-bottom a:hover { color: var(--paper); }

/* ---------------------------------------------------------------------
   Sticky mobile call CTA
   --------------------------------------------------------------------- */
.mobile-call-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(9,12,18,.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-call-cta a {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .9rem; border-radius: var(--radius-sm);
  background: var(--blue-600); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px -8px var(--blue-glow);
}
.mobile-call-cta svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .mobile-call-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------------------------------------------------------------------
   Cookie consent banner — small, bottom-left, shown once until decided
   --------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  max-width: 360px;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.cookie-banner p { font-size: .88rem; color: var(--ink-100); margin-bottom: 1rem; }
.cookie-banner a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--blue-400); }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn--outline { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.28); }
.cookie-banner .btn--outline:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }

@media (max-width: 720px) {
  .cookie-banner { left: .75rem; right: .75rem; bottom: calc(76px + .75rem); max-width: none; }
}

/* Narrow phones: the mark alone carries the brand so the header keeps
   the phone chip, CTA and menu toggle on one line without squeezing. */
@media (max-width: 600px) {
  .brand-logo .logo { display: none; }
}

/* ---------------------------------------------------------------------
   Responsive nav
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    /* height is set explicitly (not via inset's bottom:0) because the
       header's backdrop-filter makes it the containing block for this
       fixed element, so bottom:0 would resolve against the header's own
       74px box instead of the viewport and collapse the open panel. */
    position: fixed; top: 74px; left: 0; right: 0; z-index: 39;
    height: calc(100vh - 74px);
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
    gap: .25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s var(--ease-out-expo), visibility .18s;
    overflow-y: auto;
  }
  .nav-primary.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-primary a { width: 100%; padding-block: .9rem; font-size: 1.05rem; border-bottom: 1px solid var(--paper-line); }
  .phone-chip span { display: none; }
}

/* ---------------------------------------------------------------------
   Entrance motion — one authored moment, applied once per section
   --------------------------------------------------------------------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }

  /* Each child carries its own .reveal + --stagger-i, so a small group
     cascades in one after another instead of arriving as one block. */
  .stagger > .reveal { transition-delay: calc(var(--stagger-i, 0) * 90ms); }
}

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
.visually-hidden {
  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: -999px; top: 0; z-index: 100;
  background: var(--blue-600); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }

.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.split-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) {
  .split-2-1 { grid-template-columns: 1fr; }
  .split-1-1 { grid-template-columns: 1fr; }
}
.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-list li { display: flex; gap: .55rem; font-size: .94rem; color: var(--ink-600); }
.check-list li svg { color: var(--blue-600); flex: none; margin-top: .15rem; }

/* ---------------------------------------------------------------------
   PC configurator (/konfigurator-pc)
   --------------------------------------------------------------------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.preset-card {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.4rem; background: var(--paper);
  border: 1px solid var(--paper-line); border-radius: var(--radius-md);
}
.preset-card__audience { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-600); }
.preset-card h3 { font-size: 1.05rem; }
.preset-card p { font-size: .88rem; color: var(--ink-500); flex: 1; }
.preset-card__price { font-size: .84rem; font-weight: 600; color: var(--ink-400); }

.config-step { margin-bottom: 2.5rem; }
.config-step__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.config-step__head svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; }
.config-step__head h3 { font-size: 1.05rem; margin: 0; }
.config-step__optional { font-size: .76rem; font-weight: 700; color: var(--ink-400); margin-left: auto; }

.config-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .85rem; }
.config-option {
  position: relative;
  display: flex; flex-direction: column; gap: .3rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.config-option:hover { border-color: var(--ink-300); }
.config-option.is-selected { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); }
.config-option.is-disabled { opacity: .42; cursor: not-allowed; }
.config-option.is-disabled:hover { border-color: var(--paper-line); }
.config-option--empty { justify-content: center; align-items: flex-start; color: var(--ink-500); }
.config-option__name { font-weight: 700; font-size: .93rem; color: var(--ink-800); }
.config-option__meta { font-size: .8rem; color: var(--ink-400); }
.config-option__note { font-size: .78rem; font-weight: 600; color: var(--warn); }
.config-option__price { font-size: .92rem; font-weight: 700; color: var(--blue-600); margin-top: .2rem; }

.config-notice {
  display: none;
  border-radius: var(--radius-sm);
  padding: .85rem 1.05rem;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: #fff6e8;
  color: #8a5a10;
  border: 1px solid #f0d6a6;
}
.config-notice.is-visible { display: block; }

.config-summary-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.config-summary-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .85rem; color: var(--paper); }
.config-summary-row span:first-child { color: var(--ink-300); flex: none; }
.config-summary-row span:last-child { text-align: right; }
.config-summary-row--empty { color: var(--ink-300); font-style: italic; }
.config-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: .9rem; margin-top: .4rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.config-summary-total strong { font-size: 1.5rem; color: #fff; }
.config-summary-warning { font-size: .78rem; color: #ffcf8a; margin-top: .8rem; }
