/* ==========================================================================
   Samantik — design system
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Kolory: dwa motywy marki „Warsztat”
   - jasny (domyślny, :root)  — ciepły krem i piasek, bordo, głęboki żółty CTA
   - ciemny ([data-theme=dark]) — ciepły grafit, bordo, sygnałowy żółty
   Motyw ustawia skrypt w <head> (preferencje systemu lub wybór z localStorage).
   „Powierzchnie marki” (--c-dark*, --c-on-dark*) = header, hero, nagłówki podstron, stopka.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* stałe marki (identyczne w obu motywach) */
  --c-brand: #8c2331;            /* bordo */
  --c-brand-rgb: 140 35 49;
  --c-logo: var(--c-brand);

  /* treść */
  --c-bg: #faf6f0;
  --c-bg-alt: #fffdf9;
  --c-surface: #ffffff;
  --c-text: #231c19;             /* 15:1 na --c-bg */
  --c-muted: #5f554e;            /* 7:1 na --c-bg */
  --c-border: #e8dfd4;

  --c-primary: #8c2331;          /* linki, ikony — 9:1 na --c-bg */
  --c-primary-600: #701a27;
  --c-primary-050: #f7e9ea;
  --c-primary-100: #efd3d6;
  --c-primary-rgb: 140 35 49;
  --c-on-primary: #ffffff;

  --c-cta: #f2b705;              /* głęboki żółty — widoczny na jasnym tle */
  --c-cta-hover: #ffc629;
  --c-cta-rgb: 242 183 5;
  --c-on-cta: #1a1716;           /* 9:1 na --c-cta */

  /* powierzchnie marki */
  --c-dark: #f3ebe0;             /* piasek */
  --c-dark-2: #ebe0d2;
  --c-dark-rgb: 243 235 224;
  --c-on-dark: #231c19;
  --c-on-dark-muted: #5a4f47;    /* 6.6:1 na --c-dark */
  --c-primary-on-dark: #8c2331;  /* 8.7:1 na --c-dark */
  --c-line-on-dark: rgb(35 28 25 / .10);
  --c-line-on-dark-strong: rgb(35 28 25 / .28);
  --c-tint-on-dark: rgb(35 28 25 / .05);
  --c-hero-glow-1: rgb(140 35 49 / .16);
  --c-hero-glow-2: rgb(242 183 5 / .22);
  --c-hero-grid: rgb(35 28 25 / .05);

  /* stany */
  --c-error: #b3261e;            /* 6:1 na białym */
  --c-error-bg: #fdf1f0;
  --c-success: #127a4a;
  --c-success-bg: #e3f4ec;
  --c-star: #f5a524;

  --c-shadow-rgb: 70 45 30;
  --device-shadow: 0 30px 60px rgb(70 45 30 / .28), 0 10px 20px rgb(70 45 30 / .16);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --c-bg: #121010;
  --c-bg-alt: #1a1716;
  --c-surface: #221e1c;
  --c-text: #f3ede6;             /* 16:1 na --c-bg */
  --c-muted: #b5aaa0;            /* 7:1 na --c-surface */
  --c-border: #362f2b;

  --c-primary: #ffd166;          /* na ciemnym tle akcentem jest żółty */
  --c-primary-600: #ffdd8a;
  --c-primary-050: #2c2519;
  --c-primary-100: #3a3020;
  --c-primary-rgb: 255 209 102;
  --c-on-primary: #1a1716;

  --c-cta: #ffc629;              /* sygnałowy żółty */
  --c-cta-hover: #ffd35a;
  --c-cta-rgb: 255 198 41;
  --c-on-cta: #1a1716;           /* 12:1 na --c-cta */

  --c-dark: #1a1716;             /* ciepły grafit */
  --c-dark-2: #24201e;
  --c-dark-rgb: 26 23 22;
  --c-on-dark: #f6f1ea;
  --c-on-dark-muted: #c2b8ad;    /* 9:1 na --c-dark */
  --c-primary-on-dark: #ffd166;
  --c-line-on-dark: rgb(255 255 255 / .08);
  --c-line-on-dark-strong: rgb(255 255 255 / .28);
  --c-tint-on-dark: rgb(255 255 255 / .06);
  --c-hero-glow-1: rgb(140 35 49 / .55);
  --c-hero-glow-2: rgb(255 198 41 / .12);
  --c-hero-grid: rgb(255 255 255 / .035);

  --c-error: #ff8a80;            /* 7:1 na --c-surface */
  --c-error-bg: #3a1d1b;
  --c-success: #4cc38a;
  --c-success-bg: #1c3328;

  --c-shadow-rgb: 0 0 0;
  --device-shadow: 0 40px 80px rgb(0 0 0 / .5), 0 12px 24px rgb(0 0 0 / .3);
}

:root {
  /* Typografia */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Odstępy / kształty */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 1180px;
  --gutter: 1.25rem;

  --shadow-sm: 0 1px 2px rgb(var(--c-shadow-rgb) / .06), 0 2px 8px rgb(var(--c-shadow-rgb) / .05);
  --shadow: 0 4px 12px rgb(var(--c-shadow-rgb) / .07), 0 12px 32px rgb(var(--c-shadow-rgb) / .07);
  --shadow-lg: 0 10px 24px rgb(var(--c-shadow-rgb) / .10), 0 24px 56px rgb(var(--c-shadow-rgb) / .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .25s var(--ease);

  --header-h: 76px;
  --header-h-compact: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  transition: background-color .3s ease, color .3s ease;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-primary); text-underline-offset: 3px; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); line-height: 1.07; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
p { overflow-wrap: break-word; }

:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; 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: 1rem; top: -100px; z-index: 200;
  background: var(--c-cta); color: var(--c-on-cta); padding: .75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--tint { background: var(--c-primary-050); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-muted); font-size: var(--fs-lead); margin-top: 1rem; }
.section--dark .section-head p { color: var(--c-on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--c-primary-on-dark); }

.lead { font-size: var(--fs-lead); color: var(--c-muted); line-height: 1.6; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t), border-color var(--t), color var(--t);
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; transition: transform var(--t); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-cta { --btn-bg: var(--c-cta); --btn-fg: var(--c-on-cta); }
.btn-cta:hover { --btn-bg: var(--c-cta-hover); box-shadow: 0 8px 24px rgb(var(--c-cta-rgb) / .35); }

.btn-primary:hover { --btn-bg: var(--c-primary-600); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); --btn-fg: var(--c-primary); box-shadow: none; }

.btn-ghost-light {
  --btn-bg: transparent; --btn-fg: var(--c-on-dark);
  border-color: var(--c-line-on-dark-strong);
}
.btn-ghost-light:hover { border-color: var(--c-on-dark); --btn-bg: var(--c-tint-on-dark); box-shadow: none; }

.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: .85; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }
@media (max-width: 479px) { .btn-row > .btn { width: 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Karty ---------- */
.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--c-muted); }

.icon-badge {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--c-primary-050);
  color: var(--c-primary);
  margin-bottom: 1.25rem;
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.icon-badge svg { width: 28px; height: 28px; }
.card:hover .icon-badge { background: var(--c-primary); color: var(--c-on-primary); transform: rotate(-6deg); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(var(--c-dark-rgb) / .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--c-on-dark);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), background-color var(--t);
}
.site-header.is-compact {
  background: rgb(var(--c-dark-rgb) / .97);
  border-bottom-color: var(--c-line-on-dark);
  box-shadow: 0 8px 24px rgb(var(--c-shadow-rgb) / .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
  transition: height var(--t);
}
.site-header.is-compact .header-inner { height: var(--header-h-compact); }

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--c-on-dark); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  transition: width var(--t), height var(--t);
}
.site-header.is-compact .logo-mark { width: 30px; height: 30px; }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--c-line-on-dark-strong); border-radius: 12px;
  color: var(--c-on-dark); cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.nav-toggle:hover, .theme-toggle:hover { background: var(--c-tint-on-dark); border-color: var(--c-on-dark-muted); }
.nav-toggle-box { position: relative; width: 20px; height: 14px; }
.nav-toggle-box span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--t), opacity var(--t), top var(--t);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 6px; }
.nav-toggle-box span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.site-nav {
  /* absolute, bo backdrop-filter w headerze tworzy nowy kontekst dla position:fixed */
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - var(--nav-top, var(--header-h)));
  height: calc(100dvh - var(--nav-top, var(--header-h)));
  background: var(--c-dark);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t), transform var(--t), visibility 0s linear .25s;
}
.nav-open .site-nav {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t), transform var(--t), visibility 0s;
}
.nav-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--c-line-on-dark);
  color: var(--c-on-dark); text-decoration: none;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 500;
  transition: color var(--t);
}
.nav-list a:hover { color: var(--c-primary-on-dark); }
.nav-list a[aria-current="page"] { color: var(--c-primary-on-dark); }
body.nav-lock { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; height: auto; padding: 0; background: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 1.75rem;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-list { flex-direction: row; gap: .25rem; }
  .nav-list a {
    position: relative;
    padding: .5rem .8rem; border: 0;
    font-family: var(--font-body); font-size: .9375rem; font-weight: 500;
    color: var(--c-on-dark-muted);
  }
  .nav-list a::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
    background: var(--c-primary-on-dark); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform var(--t);
  }
  .nav-list a:hover { color: var(--c-on-dark); }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { color: var(--c-on-dark); }
}

/* ---------- Hero (strona główna) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, var(--c-hero-glow-1), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, var(--c-hero-glow-2), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--c-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-hero-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--c-primary-on-dark); }
.hero .lead { color: var(--c-on-dark-muted); max-width: 36rem; margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  margin-top: 2.5rem; padding: 0; list-style: none;
  font-size: var(--fs-small); color: var(--c-on-dark-muted);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust .icon { width: 18px; height: 18px; color: var(--c-primary-on-dark); }

/* ==========================================================================
   Hero: karuzela urządzeń z przykładowymi stronami klientów
   Scena ma stały rozmiar 460×600 px i jest skalowana (zoom) na wąskich ekranach.
   Kolory „klientów” (--cl-*) są niezależne od palety Samantik.
   ========================================================================== */
.hero-visual { position: relative; width: 100%; max-width: 460px; justify-self: center; }
.stage { position: relative; width: 460px; height: 600px; margin-inline: auto; zoom: var(--stage-zoom, 1); }
@media (max-width: 519px) { .stage { --stage-zoom: .86; } }
@media (max-width: 439px) { .stage { --stage-zoom: .74; } }
@media (max-width: 379px) { .stage { --stage-zoom: .66; } }

.slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: translateX(28px) scale(.97);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s, visibility 0s;
}
.slide.is-leaving { transform: translateX(-28px) scale(.97); }

/* Sterowanie karuzelą */
.carousel-ui { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .75rem; }
.carousel-caption { min-width: 11rem; font-size: var(--fs-small); color: var(--c-on-dark-muted); text-align: right; }
.carousel-dots { display: flex; gap: 2px; list-style: none; padding: 0; }
.carousel-dots button {
  display: grid; place-items: center; width: 28px; height: 28px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.carousel-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px;
  background: var(--c-line-on-dark-strong);
  transition: width var(--t), background-color var(--t);
}
.carousel-dots button:hover::before { background: var(--c-on-dark-muted); }
.carousel-dots button[aria-current="true"]::before { width: 22px; background: var(--c-cta); }
.carousel-pause {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--c-line-on-dark-strong);
  background: transparent; color: var(--c-on-dark); cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.carousel-pause:hover { background: var(--c-tint-on-dark); border-color: var(--c-on-dark-muted); }
.carousel-pause svg { width: 14px; height: 14px; fill: currentColor; }
.carousel-pause .i-play { display: none; }
.carousel-pause[aria-pressed="true"] .i-play { display: block; }
.carousel-pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 439px) { .carousel-caption { min-width: 0; } }

/* ---------- Ramki urządzeń ---------- */
.phone {
  position: relative;
  width: 268px; aspect-ratio: 9 / 18.5;
  padding: 9px; border-radius: 46px;
  background: linear-gradient(145deg, #3a3b40, #121316 40%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), var(--device-shadow);
  transform: rotate(-3deg);
}
.phone--tilt-r { transform: rotate(3deg); }
.phone::before { /* dynamic island */
  content: ""; position: absolute; z-index: 3; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 20px; background: #0a0a0b;
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 38px;
  background: #fff; color: var(--cl-ink);
  font-family: var(--font-body); font-size: 11px; line-height: 1.4; letter-spacing: 0;
}

.laptop { width: 430px; margin-top: -30px; }
.laptop-lid {
  padding: 12px 12px 14px; border-radius: 16px 16px 4px 4px;
  background: linear-gradient(160deg, #2f3035, #111215);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), var(--device-shadow);
}
.laptop-screen {
  aspect-ratio: 16 / 10.4; overflow: hidden; border-radius: 4px;
  background: #fff; color: var(--cl-ink);
  font-family: var(--font-body); font-size: 8.5px; line-height: 1.35; letter-spacing: 0;
}
.laptop-base {
  position: relative; width: 470px; height: 14px; margin-left: -20px;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#cfd2d8, #8d9098);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .45);
}
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 70px; height: 5px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #9ea1a8; }

.tablet {
  margin-top: 30px;
  position: relative; width: 300px; aspect-ratio: 3 / 4.1;
  padding: 13px; border-radius: 30px;
  background: linear-gradient(145deg, #3a3b40, #121316 45%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), var(--device-shadow);
  transform: rotate(2.5deg);
}
.tablet-screen {
  height: 100%; overflow: hidden; border-radius: 18px;
  font-family: var(--font-body); font-size: 10px; line-height: 1.4; letter-spacing: 0;
}

/* ---------- Wspólne elementy mini-stron ---------- */
.ms-status { display: flex; justify-content: space-between; padding: 14px 24px 0; height: 44px; font-weight: 600; font-size: 11px; }
.ms-status i { display: inline-block; width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.ms-status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.ms-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px 10px; }
.ms-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; letter-spacing: -.01em; line-height: 1.1; }
.ms-logo b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--cl-accent); color: var(--cl-on-accent, #fff); flex-shrink: 0; }
.ms-logo b svg { width: 13px; height: 13px; }
.ms-logo small { display: block; font-weight: 500; font-size: 9px; color: var(--cl-muted, #6b6f78); }
.ms-burger { width: 16px; height: 10px; border-block: 2px solid currentColor; position: relative; }
.ms-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; }
.ms-h { font-family: var(--font-head); font-size: 17px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 6px; }
.ms-rating { display: flex; align-items: center; gap: 5px; color: var(--cl-muted, #4b4f58); font-size: 10px; margin-bottom: 10px; }
.ms-rating b { color: #f5a524; letter-spacing: 1px; font-size: 11px; }
.ms-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; border-radius: 10px; margin-bottom: 6px;
  background: var(--cl-accent); color: var(--cl-on-accent, #fff); font-weight: 700; font-size: 11.5px;
}
.ms-btn svg { width: 13px; height: 13px; }
.ms-btn--ghost { background: transparent; color: inherit; border: 1.5px solid var(--cl-line, #dcdee3); font-weight: 600; }
.ms-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.ms-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--cl-soft, #f3f4f6); font-weight: 500; }
.ms-list em { font-style: normal; font-weight: 700; color: var(--cl-accent); white-space: nowrap; }

/* 1. Warsztat (telefon) */
.site-sto { --cl-accent: #d62d20; --cl-ink: #17181b; }
.sto-photo {
  position: relative; height: 128px; margin: 0 10px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255, 190, 120, .35), transparent 60%), linear-gradient(160deg, #3b3f47 0%, #1b1d22 70%);
}
.sto-photo svg { position: absolute; right: -8px; bottom: 8px; width: 170px; height: auto; color: rgba(255, 255, 255, .88); }
.ms-chip {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #17181b;
  font-size: 9.5px; font-weight: 600;
}
.ms-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1fa968; }
.sto-body { padding: 12px 16px 0; }
.sto-body .ms-list { margin-top: 10px; }
.sto-callbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 12px; border-radius: 14px;
  background: var(--cl-ink); color: #fff; font-size: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.sto-callbar strong { display: block; font-size: 11.5px; }
.sto-callbar span:last-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #1fa968; }
.sto-callbar svg { width: 15px; height: 15px; }

/* 2. Autoszkoła (laptop) */
.site-osk { --cl-accent: #15924d; --cl-ink: #13261b; --cl-soft: #eef7f1; --cl-muted: #5a6b61; height: 100%; display: flex; flex-direction: column; }
.browser-bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: #eceef1; border-bottom: 1px solid #dfe2e6; }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c5c9cf; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 180px; padding: 2px 8px; border-radius: 99px; background: #fff; color: #6b6f78; font-size: 7.5px; }
.osk-nav { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; border-bottom: 1px solid #edf0ee; }
.osk-nav .ms-logo { font-size: 10px; }
.osk-nav .ms-logo b { width: 18px; height: 18px; border-radius: 5px; }
.osk-nav .ms-logo b svg { width: 11px; height: 11px; }
.osk-links { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.osk-links span:last-child { padding: 4px 9px; border-radius: 6px; background: var(--cl-accent); color: #fff; font-weight: 700; }
.osk-main { flex: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 12px; padding: 12px 14px; }
.osk-tag { display: inline-block; padding: 2px 7px; border-radius: 99px; background: var(--cl-soft); color: var(--cl-accent); font-weight: 700; font-size: 7.5px; margin-bottom: 6px; }
.osk-main .ms-h { font-size: 16px; margin-bottom: 5px; }
.osk-main p { color: var(--cl-muted); margin-bottom: 8px; }
.osk-main .ms-btn { height: 24px; font-size: 9px; border-radius: 6px; width: 110px; margin-bottom: 10px; }
.osk-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.osk-prices div { padding: 6px; border-radius: 6px; border: 1px solid #e3e9e5; }
.osk-prices small { display: block; color: var(--cl-muted); font-size: 7.5px; }
.osk-prices strong { font-size: 10.5px; }
.osk-schedule { padding: 9px; border-radius: 8px; background: var(--cl-soft); }
.osk-schedule h5 { font-size: 10px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.osk-schedule h5 span { font-weight: 500; color: var(--cl-muted); font-size: 7.5px; }
.osk-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; background: #fff; margin-bottom: 4px; }
.osk-row:last-child { margin-bottom: 0; }
.osk-date { text-align: center; line-height: 1.05; font-weight: 800; font-size: 11px; color: var(--cl-accent); }
.osk-date small { display: block; font-size: 6.5px; font-weight: 600; text-transform: uppercase; color: var(--cl-muted); }
.osk-row em { font-style: normal; font-weight: 700; font-size: 7.5px; padding: 2px 5px; border-radius: 4px; background: #e2f4e9; color: var(--cl-accent); }
.osk-row em.few { background: #fff1dc; color: #a15c00; }
.osk-row em.full { background: #eef0ef; color: #7b857f; }
.osk-row span small { display: block; color: var(--cl-muted); font-size: 7.5px; }

/* 3. Detailing (tablet) */
.site-det { --cl-accent: #d6b25e; --cl-on-accent: #111; --cl-ink: #f3efe6; --cl-muted: #a9a399; --cl-soft: #1b1b1e; --cl-line: #34343a; height: 100%; background: #0e0e10; color: var(--cl-ink); padding-top: 4px; }
.site-det .ms-logo { letter-spacing: .06em; }
.det-hero { padding: 4px 16px 0; }
.det-hero .ms-h { font-size: 19px; margin-bottom: 4px; }
.det-hero p { color: var(--cl-muted); margin-bottom: 8px; }
.det-compare { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 92px; margin: 0 14px 10px; border-radius: 12px; overflow: hidden; }
.det-compare > div { position: relative; display: grid; place-items: center; }
.det-before { background: repeating-linear-gradient(135deg, #4a4944 0 6px, #45443f 6px 12px); color: #a8a498; }
.det-after { background: linear-gradient(135deg, #1b1d22 0%, #3a3f49 45%, #1b1d22 55%, #2b2f37 100%); color: #e9e4d6; }
.det-compare svg { width: 26px; height: 26px; opacity: .8; }
.det-compare b {
  position: absolute; top: 8px; padding: 2px 7px; border-radius: 4px;
  font-size: 8px; letter-spacing: .1em; background: rgba(0, 0, 0, .55); color: #fff;
}
.det-before b { left: 8px; }
.det-after b { right: 8px; background: var(--cl-accent); color: #111; }
.det-compare::after { /* uchwyt suwaka przed/po */
  content: "‹ ›"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #111; font-weight: 800; font-size: 11px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.det-compare::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px); }
.det-body { padding: 0 16px; }
.det-body .ms-list { margin-bottom: 8px; gap: 5px; }
.det-body .ms-list li { padding: 6px 10px; background: var(--cl-soft); border: 1px solid var(--cl-line); }
.det-note { text-align: center; color: var(--cl-muted); font-size: 9px; margin-top: 2px; }

/* 4. Beauty (telefon) */
.site-bty { --cl-accent: #b8326a; --cl-ink: #2a1520; --cl-soft: #fbeef3; --cl-muted: #7d6570; --cl-line: #efd6e0; background: #fffafc; height: 100%; }
.bty-body { padding: 4px 16px 0; }
.bty-body .ms-h { font-size: 16px; margin-bottom: 10px; }
.bty-label { display: block; font-weight: 700; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--cl-muted); margin: 0 0 5px; }
.bty-select {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; margin-bottom: 10px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--cl-line); font-weight: 600;
}
.bty-select small { display: block; font-weight: 500; color: var(--cl-muted); font-size: 9.5px; }
.bty-select em { font-style: normal; color: var(--cl-accent); font-weight: 800; }
.bty-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.bty-days span, .bty-times span {
  text-align: center; padding: 5px 0; border-radius: 9px; background: #fff; border: 1.5px solid var(--cl-line); font-weight: 600;
}
.bty-days span { line-height: 1.15; font-size: 13px; }
.bty-days small { display: block; font-size: 8.5px; font-weight: 500; color: var(--cl-muted); }
.bty-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
.bty-days .on, .bty-times .on { background: var(--cl-accent); border-color: var(--cl-accent); color: #fff; }
.bty-days .on small { color: rgba(255, 255, 255, .85); }
.bty-times .off { color: #c4b2ba; text-decoration: line-through; background: transparent; }
.bty-input { padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; border: 1.5px solid var(--cl-line); background: #fff; color: #a8949d; }
.bty-sms { text-align: center; font-size: 9.5px; color: var(--cl-muted); }

/* ---------- Pływające karty (powiadomienie + opinia) ---------- */
.hero-float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  max-width: 250px;
  background: var(--c-surface); color: var(--c-text);
  border-radius: 16px; padding: .7rem .9rem;
  box-shadow: var(--shadow-lg);
  font-size: .8125rem; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
  opacity: 0; translate: 0 12px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.slide.is-active .hero-float { opacity: 1; translate: 0 0; transition-delay: .7s; }
.slide.is-active .hero-float--review { transition-delay: 1s; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: .9375rem; }
.hero-float small { display: block; color: var(--c-muted); font-size: .75rem; }
.hero-float .icon-dot {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--c-success-bg); color: var(--c-success);
}
.hero-float .icon-dot .icon { width: 19px; height: 19px; }
.hero-float--lead { left: 0; top: 20%; }
.hero-float--review { right: 0; bottom: 7%; flex-direction: column; align-items: flex-start; gap: .35rem; animation-delay: -3s; }
.hero-float--review .stars svg { width: 14px; height: 14px; }
.hero-float--review q { font-weight: 500; quotes: "„" "”"; }
/* Telefon i tablet po prawej, karty po lewej — żeby nie zasłaniały treści mini-strony */
.slide--phone, .slide--tablet { justify-items: end; padding-right: 10px; }
.slide--phone .hero-float { max-width: 230px; }
.slide--phone .hero-float--lead { top: 17%; }
.slide--phone .hero-float--review { right: auto; left: 0; bottom: 8%; }
.slide--beauty .hero-float--lead { top: 43%; }
.slide--beauty .hero-float--review { bottom: 3%; }
.slide--laptop .hero-float--lead { top: 7%; }
.slide--laptop .hero-float--review { bottom: 9%; }
.slide--tablet .hero-float--lead { top: 1%; }
.slide--tablet .hero-float--review { bottom: 1%; right: auto; left: 0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

/* Hero podstron */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-dark); color: var(--c-on-dark);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.5rem); max-width: 20ch; }
.page-hero .lead { color: var(--c-on-dark-muted); max-width: 42rem; margin-top: 1.25rem; }

/* ---------- Proces / timeline ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2.25rem; }
.step:last-child { padding-bottom: 0; }
.step::before { /* linia pionowa */
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px;
  background: linear-gradient(var(--c-primary), rgb(var(--c-primary-rgb) / .15));
}
.step:last-child::before { display: none; }
.step-num {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-surface); border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  position: relative; z-index: 1;
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.step:hover .step-num { background: var(--c-primary); color: var(--c-on-primary); transform: scale(1.06); }
.step h3 { margin: .7rem 0 .4rem; }
.step p { color: var(--c-muted); }
.step-meta { display: inline-block; margin-top: .6rem; font-size: var(--fs-small); font-weight: 600; color: var(--c-primary); }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .step { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .step::before { left: 56px; right: -2rem; top: 27px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--c-primary), rgb(var(--c-primary-rgb) / .15)); }
  .step h3 { margin-top: 1.5rem; }
}

/* ---------- Pakiety ---------- */
.pricing { display: grid; gap: 1.5rem; align-items: stretch; max-width: 960px; margin-inline: auto; }
@media (min-width: 768px) { .pricing { grid-template-columns: 1fr 1fr; align-items: center; } }
.plan { display: flex; flex-direction: column; padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.plan-name { font-family: var(--font-head); font-size: .875rem; letter-spacing: .14em; font-weight: 700; color: var(--c-primary); }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: .75rem 0 .25rem; }
.plan-price strong { font-family: var(--font-head); font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; color: var(--c-text); }
.plan-price span { color: var(--c-muted); font-weight: 500; }
.plan-desc { color: var(--c-muted); margin-bottom: 1.5rem; }
.plan-features { list-style: none; padding: 0; display: grid; gap: .75rem; margin-bottom: 2rem; flex-grow: 1; }
.plan-features li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; color: var(--c-text); }
.plan-features .icon { width: 22px; height: 22px; color: var(--c-primary); stroke-width: 2.25; margin-top: 1px; }
.plan-features li.muted { color: var(--c-muted); }
.plan--featured {
  border: 2px solid var(--c-primary);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .plan--featured { padding-block: 3rem; transform: scale(1.03); }
  .plan--featured:hover { transform: scale(1.03) translateY(-6px); }
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-cta); color: var(--c-on-cta);
  font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .06em;
  padding: .35rem 1rem; border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgb(var(--c-cta-rgb) / .35);
  white-space: nowrap;
}

/* Skrócone pakiety na stronie głównej */
.plan-teaser { display: flex; flex-direction: column; gap: .5rem; }
.plan-teaser .plan-price { margin: .25rem 0; }
.plan-teaser ul { list-style: none; padding: 0; display: grid; gap: .5rem; margin: 1rem 0 1.5rem; color: var(--c-muted); }
.plan-teaser li { display: flex; gap: .6rem; align-items: center; }
.plan-teaser li .icon { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; }
.plan-teaser .link-arrow { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .875rem; }
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: box-shadow var(--t), border-color var(--t);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.is-open { border-color: var(--c-primary); box-shadow: var(--shadow); }
.faq-q { margin: 0; font-size: 1.0625rem; }
.faq-q button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none; border: 0; border-radius: var(--radius);
  text-align: left; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: inherit; line-height: 1.4;
}
.faq-q .icon { flex-shrink: 0; color: var(--c-primary); transition: transform var(--t); }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .3s; }
.faq-item.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { padding: 0 1.5rem 1.35rem; color: var(--c-muted); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: .5rem 1.1rem;
  border: 1px solid var(--c-border); border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-text);
  font-weight: 500; font-size: .9375rem; cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.filter-btn .count { font-size: .8125rem; opacity: .75; }

.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project-shot {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgb(var(--c-brand-rgb) / .92), rgb(26 23 22 / .96)),
    var(--c-dark);
  color: #f6f1ea;
  overflow: hidden;
}
.project-shot::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project-shot span {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  transition: transform var(--t);
}
.project-shot .icon { width: 18px; height: 18px; }
.project:hover .project-shot span { transform: scale(1.05); }
.project-body { padding: 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.project-body h3 { margin: 0 0 .25rem; }
.project-cat {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-small); color: var(--c-muted);
}
.project-cat .icon { width: 16px; height: 16px; color: var(--c-primary); }
.project-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-primary-050); color: var(--c-primary);
}
.project-icon .icon { width: 22px; height: 22px; }
.empty-state { text-align: center; color: var(--c-muted); padding: 3rem 1rem; }

/* ---------- Opinie ---------- */
.review { display: flex; flex-direction: column; gap: 1.25rem; }
.stars { display: flex; gap: 3px; color: var(--c-star); }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
.review blockquote { margin: 0; flex-grow: 1; }
.review blockquote p { color: var(--c-text); font-size: 1.0625rem; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: .9rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); }
.review-author strong { display: block; font-family: var(--font-head); }
.review-author span { font-size: var(--fs-small); color: var(--c-muted); }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-050), var(--c-primary-100));
  color: var(--c-primary);
  overflow: hidden;
}
.avatar svg { width: 60%; height: 60%; }
.quote-mark { width: 36px; height: 36px; color: var(--c-primary); opacity: .25; }

/* ---------- Zespół ---------- */
.team { max-width: 820px; margin-inline: auto; }
.member { text-align: center; }
.member .avatar { width: 128px; height: 128px; margin: 0 auto 1.25rem; }
.member-role { color: var(--c-primary) !important; font-weight: 600; font-size: var(--fs-small); margin-bottom: .75rem; }

/* ---------- Split / O nas ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split p + p { margin-top: 1rem; }
.split .lead + p { margin-top: 1.25rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.5rem; transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); color: var(--c-primary); line-height: 1.1; }
.stat span { color: var(--c-muted); font-size: var(--fs-small); }

.checklist { list-style: none; padding: 0; display: grid; gap: .9rem; margin-top: 1.5rem; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; }
.checklist .icon { color: var(--c-primary); stroke-width: 2.25; margin-top: 1px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-brand) 0%, #2a1216 100%);
  color: #f6f1ea;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; border-radius: 50%;
  right: -160px; top: -220px; background: radial-gradient(circle, rgb(var(--c-cta-rgb) / .28), transparent 65%);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #e6d9cf; max-width: 36rem; margin: 1rem auto 2rem; font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Kontakt / formularz ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 3rem; } }
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.form-card:hover, .contact-aside:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--c-border); }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .req { color: var(--c-error); }
.field .opt { color: var(--c-muted); font-weight: 400; font-size: var(--fs-small); }
.input {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.input::placeholder { color: #8c8078; }
.input:hover { border-color: var(--c-muted); }
.input:focus { outline: none; border-color: var(--c-primary); background: var(--c-surface); box-shadow: 0 0 0 4px rgb(var(--c-primary-rgb) / .15); }
textarea.input { min-height: 140px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a8f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field.has-error .input { border-color: var(--c-error); background: var(--c-error-bg); }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(192, 38, 45, .15); }
.field-error {
  display: flex; align-items: center; gap: .35rem;
  color: var(--c-error); font-size: var(--fs-small); font-weight: 500; min-height: 0;
}
.field-error:empty { display: none; }
.field-error::before {
  content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%; background: var(--c-error); color: var(--c-surface); font-size: 11px; font-weight: 700;
}
.form-foot { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.form-note { font-size: var(--fs-small); color: var(--c-muted); }
.form-alert {
  margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px;
  background: var(--c-error-bg); color: var(--c-error); border: 1px solid var(--c-error);
  font-size: var(--fs-small); font-weight: 500;
}
.form-alert a { color: inherit; font-weight: 700; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success:focus { outline: none; }
.success-icon {
  display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 1.5rem;
  border-radius: 50%; background: #e3f4ec; color: var(--c-success);
  animation: pop .45s var(--ease);
}
.success-icon .icon { width: 40px; height: 40px; stroke-width: 2.25; }
.form-success h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem); margin-bottom: .75rem; }
.form-success p { color: var(--c-muted); font-size: var(--fs-lead); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.contact-aside { display: grid; gap: 1.75rem; }
.contact-aside h2 { font-size: 1.375rem; }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; }
.contact-line .project-icon { width: 44px; height: 44px; }
.contact-line small { display: block; color: var(--c-muted); font-size: var(--fs-small); }
.contact-line a, .contact-line strong { font-weight: 600; font-family: var(--font-head); word-break: break-word; }
.response-note {
  display: flex; gap: .75rem; align-items: center;
  padding: 1rem 1.25rem; border-radius: 12px;
  background: var(--c-primary-050); color: var(--c-primary-600); font-weight: 500;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #1fa968; flex-shrink: 0; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- Social ---------- */
.social { display: flex; gap: .6rem; list-style: none; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--c-border); color: var(--c-text);
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); transform: translateY(-3px); }
.social .icon { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; } }
.footer-brand p { margin-top: 1rem; max-width: 30ch; }
.site-footer h2 {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-on-dark); margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--c-on-dark-muted); text-decoration: none; transition: color var(--t); }
.site-footer a:hover { color: var(--c-on-dark); }
.footer-links a { display: inline-block; padding-block: .15rem; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--c-on-dark) !important; margin-bottom: 1.25rem; }
.footer-mail .icon { width: 18px; height: 18px; }
.site-footer .social a { border-color: var(--c-line-on-dark-strong); color: var(--c-on-dark); }
.site-footer .social a:hover { background: var(--c-primary); border-color: var(--c-primary); }
.footer-bottom {
  display: flex; flex-direction: column; gap: .5rem;
  padding-block: 1.5rem; border-top: 1px solid var(--c-line-on-dark);
  font-size: var(--fs-small);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Animacje przy scrollu ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Przełącznik motywu (jasny / ciemny) ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; margin-left: auto;
  background: transparent; border: 1px solid var(--c-line-on-dark-strong); border-radius: 12px;
  color: var(--c-on-dark); cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.theme-toggle .icon { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.theme-toggle:hover .icon { transform: rotate(-20deg); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (min-width: 1024px) {
  .site-nav { order: 1; margin-left: auto; }
  .theme-toggle { order: 2; margin-left: 0; width: 42px; height: 42px; }
}
