/* =================================================================
 * KOŁODZIEJ – Statyczny build CSS dla shared-hostingu SeoHost.
 *
 * Ten plik jest ręcznie skomponowanym odpowiednikiem Tailwinda v4 +
 * tokenów designu z oryginalnego src/styles.css. NIE wymaga buildu
 * po stronie hostingu – można go wrzucić i działa.
 *
 * Zachowuje 1:1: palety oklch, gradient hero, shadow-soft/glow,
 * komponenty .btn / .btn-primary / .btn-outline / .btn-accent /
 * .card-soft / .eyebrow / .container-x oraz układ headera i stopki.
 *
 * Jeśli kiedyś chcesz odzyskać pełen Tailwind CLI – uruchom skrypt
 * z sql/README.md (sekcja "Rebuild CSS").
 * ============================================================== */

/* ------------------ Tokeny designu (1:1 z src/styles.css) ------------------ */
:root {
    --radius: 0.75rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
    --radius-2xl: calc(var(--radius) + 8px);

    --navy-deep: oklch(0.22 0.06 250);
    --navy: oklch(0.32 0.08 250);
    --brand: oklch(0.62 0.18 245);
    --brand-glow: oklch(0.72 0.14 235);
    --accent-warm: oklch(0.72 0.17 55);

    --background: oklch(0.99 0.005 240);
    --foreground: oklch(0.22 0.04 250);
    --card: oklch(1 0 0);
    --card-foreground: var(--foreground);
    --primary: var(--navy);
    --primary-foreground: oklch(0.98 0.005 240);
    --secondary: oklch(0.96 0.01 240);
    --secondary-foreground: var(--navy-deep);
    --muted: oklch(0.96 0.01 240);
    --muted-foreground: oklch(0.5 0.03 250);
    --accent: oklch(0.94 0.03 245);
    --accent-foreground: var(--navy-deep);
    --destructive: oklch(0.6 0.22 25);
    --destructive-foreground: oklch(0.98 0 0);
    --border: oklch(0.9 0.015 240);
    --input: oklch(0.92 0.015 240);
    --ring: var(--brand);

    --gradient-hero: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--brand) 100%);
    --gradient-card: linear-gradient(180deg, oklch(1 0 0) 0%, oklch(0.97 0.01 240) 100%);
    --shadow-soft: 0 1px 2px oklch(0.22 0.04 250 / 0.06), 0 8px 24px oklch(0.22 0.04 250 / 0.08);
    --shadow-glow: 0 10px 40px -10px oklch(0.62 0.18 245 / 0.35);

    --font-display: "Roboto", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

/* ----------------------------- Reset / base ----------------------------- */
:root { color-scheme: light only; }
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: clamp(15px, 0.85vw, 18px); }
body {
    margin: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: var(--body-size, 1rem);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--navy-deep); margin: 0 0 .5em; }
h1 { font-size: var(--h1-size, clamp(2rem, 4vw, 3rem)); line-height: 1.1; }
h2 { font-size: var(--h2-size, clamp(1.5rem, 3vw, 2.25rem)); line-height: 1.15; }
h3 { font-size: var(--h3-size, 1.25rem); }
p  { margin: 0 0 1em; }

/* ----------------------------- Accessibility ----------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .partners-track { animation: none !important; }
}

:focus-visible {
    outline: 3px solid var(--brand, #4a7ddc);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip-link (a11y) */
.skip-link {
    position: absolute; top: -40px; left: 8px;
    background: var(--navy-deep); color: #fff;
    padding: .5rem .75rem; border-radius: .5rem;
    z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--brand); outline-offset: 2px; }

/* ----------------------------- Utility layer ----------------------------- */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.text-center { text-align: center; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.transition { transition: all .2s ease; }
.hidden { display: none !important; }

/* ----------------------------- Container ----------------------------- */
.container-x { margin-inline: auto; width: 100%; max-width: 100rem; padding-inline: 1rem; }
@media (min-width: 640px) { .container-x { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-x { padding-inline: 2rem; } }

/* ----------------------------- Komponenty (1:1) ----------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.25rem; border-radius: var(--radius-lg);
    font-size: var(--btn-size, .875rem); font-weight: 600;
    transition: transform .2s ease, filter .2s ease, background .2s ease, color .2s ease;
    text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--gradient-hero); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--accent-warm); color: var(--navy-deep); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--navy-deep); }
.btn-ghost:hover { background: var(--secondary); }

.card-soft {
    background: var(--gradient-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.eyebrow {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .15em;
    color: var(--brand);
}

.hero-gradient { background: var(--gradient-hero); color: #fff; }
.hero-gradient h1, .hero-gradient h2, .hero-gradient h3 { color: #fff; }

/* ----------------------------- SiteHeader ----------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.site-header__brand { display: flex; align-items: center; gap: .75rem; }
.site-header__logo  { height: 3rem; width: auto; border-radius: 50%; }
.site-header__brand-text { display: none; flex-direction: column; line-height: 1.2; }
.site-header__brand-text strong { font-size: 1rem; color: var(--foreground); }
.site-header__brand-text small  { font-size: 11px; color: var(--muted-foreground); line-height: 1.3; }
.site-header__brand-text small + small { margin-top: 1px; }
@media (min-width: 640px) { .site-header__brand-text { display: flex; } }

.site-header__nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 768px) { .site-header__nav { display: flex; } }
.site-header__link {
    padding: .5rem 1rem; border-radius: var(--radius-md);
    font-size: .875rem; font-weight: 600;
    color: color-mix(in oklab, var(--foreground) 80%, transparent);
    transition: color .2s, background .2s;
}
.site-header__link:hover { color: var(--brand); background: var(--secondary); }
.site-header__link.is-active { color: var(--brand); background: var(--secondary); }

.site-header__burger { padding: .5rem; color: var(--navy-deep); }
.site-header__burger svg { width: 28px; height: 28px; }
@media (min-width: 768px) { .site-header__burger { display: none; } }

.site-header__mobile { display: block; border-top: 1px solid var(--border); background: #fff; padding: .75rem 0; }
.site-header__mobile[hidden] { display: none; }
@media (min-width: 768px) { .site-header__mobile { display: none; } }
.site-header__mobile-link {
    display: block; padding: .75rem 1rem; border-radius: var(--radius-md);
    font-weight: 600; color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
.site-header__mobile-link:hover { background: var(--secondary); }

/* ----------------------------- SiteFooter ----------------------------- */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); background: var(--navy-deep); color: #fff; }
.site-footer__grid {
    display: grid; gap: 2rem 1.5rem; padding: 2.5rem 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 0.8fr 1fr; padding-inline: 0; }
}
.site-footer__brand { grid-column: span 1; }
.site-footer__brand-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.site-footer__logo { height: 3rem; width: auto; border-radius: 50%; }
.site-footer__brand-row strong { font-size: 1.125rem; }
.site-footer__brand-tag { font-size: .75rem; color: rgba(255, 255, 255, .7); }
.site-footer__about { max-width: 28rem; font-size: .8125rem; color: rgba(255, 255, 255, .8); line-height: 1.5; }

.site-footer__title { color: #fff; margin: 0 0 .5rem; font-size: .9375rem; font-weight: 600; }
.site-footer__list { display: flex; flex-direction: column; gap: .375rem; font-size: .8125rem; color: rgba(255, 255, 255, .88); }
.site-footer__list a { color: inherit; transition: color .15s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__list .ico { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; margin-right: .5rem; }
.site-footer__list li { display: flex; align-items: center; }
.site-footer__list--links li { display: block; }
.site-footer__nip { color: rgba(255, 255, 255, .72); font-size: .75rem; padding-top: .25rem; }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom .container-x { padding: 1rem 1rem; text-align: center; font-size: .75rem; color: rgba(255, 255, 255, .6); }

/* ----------------------------- Flash messages ----------------------------- */
.flash { padding: .75rem 0; font-size: .875rem; font-weight: 500; }
.flash--success { background: oklch(0.94 0.08 150); color: oklch(0.3 0.12 150); }
.flash--error   { background: oklch(0.94 0.08 25);  color: oklch(0.3 0.12 25);  }
.flash--info    { background: oklch(0.94 0.04 240); color: oklch(0.3 0.08 240); }
.flash--warning { background: oklch(0.94 0.10 80);  color: oklch(0.3 0.14 80);  }

/* ----------------------------- Formularze (bazowe) ----------------------------- */
.form-field { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1rem; }
.form-field label { font-size: .875rem; font-weight: 600; color: var(--navy-deep); }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    padding: .625rem .875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: #fff;
    font: inherit;
    color: var(--foreground);
    transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: 0;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-error { color: var(--destructive); font-size: .8125rem; }

/* ----------------------------- Sekcje pomocnicze ----------------------------- */
.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--hero  { padding: 6rem 0; }
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1em; }
.prose h2 { margin-top: 2em; }

/* Helper: schowaj wizualnie, zostaw dla screen readerów */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =================================================================
 * UZUPEŁNIENIE UTILITY CLASSES — brakujące klasy Tailwind-like
 * Dodane podczas audytu QA (2026-06-12)
 * ============================================================== */

/* --- Spacing: margin --- */
.mb-1  { margin-bottom: .25rem; }
.mb-2  { margin-bottom: .5rem;  }
.mb-3  { margin-bottom: .75rem; }
.mb-4  { margin-bottom: 1rem;   }
.mb-6  { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-1\.5 { margin-bottom: .375rem; }
.mt-1  { margin-top: .25rem;  }
.mt-2  { margin-top: .5rem;   }
.mt-3  { margin-top: .75rem;  }
.mt-4  { margin-top: 1rem;    }
.mt-6  { margin-top: 1.5rem;  }
.mt-10 { margin-top: 2.5rem;  }
.mx-auto { margin-inline: auto; }

/* --- Spacing: padding --- */
.p-4    { padding: 1rem;          }
.pt-1   { padding-top: .25rem;   }
.pt-10  { padding-top: 2.5rem;   }
.pb-16  { padding-bottom: 4rem;  }
.px-2   { padding-inline: .5rem; }
.px-3   { padding-inline: .75rem; }
.py-1   { padding-block: .25rem;  }
.py-2\.5 { padding-block: .625rem; }
.py-12  { padding-block: 3rem;   }
.py-14  { padding-block: 3.5rem; }
.py-16  { padding-block: 4rem;   }

/* --- Gap --- */
.gap-6  { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }

/* --- Width / Height --- */
.w-9    { width:  2.25rem; }
.w-11   { width:  2.75rem; }
.w-12   { width:  3rem;    }
.w-14   { width:  3.5rem;  }
.w-40   { width:  10rem;   }
.w-full { width:  100%;    }
.h-9    { height: 2.25rem; }
.h-11   { height: 2.75rem; }
.h-12   { height: 3rem;    }
.h-14   { height: 3.5rem;  }
.h-40   { height: 10rem;   }
.h-44   { height: 11rem;   }
.h-full { height: 100%;    }

/* --- Max-width --- */
.max-w-2xl { max-width: 42rem;  }
.max-w-3xl { max-width: 48rem;  }
.max-w-lg  { max-width: 32rem;  }

/* --- Typography --- */
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;  line-height: 2rem;    }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem;  }
.text-white { color: #fff; }
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: .025em; }
.font-medium   { font-weight: 500; }

/* Responsive typography */
@media (min-width: 1024px) {
  .lg\:text-4xl { font-size: 2.25rem;  line-height: 2.5rem;  }
  .lg\:text-5xl { font-size: 3rem;     line-height: 1;        }
}

/* --- Display / Layout --- */
.block        { display: block;        }
.inline-flex  { display: inline-flex;  }
.flex-wrap    { flex-wrap: wrap;       }
.items-end    { align-items: flex-end; }
.place-items-center { place-items: center; }
.space-y-4 > * + * { margin-top: 1rem; }

/* --- Positioning --- */
.relative  { position: relative; }
.absolute  { position: absolute; }
.inset-0   { inset: 0; }
.bottom-2  { bottom: .5rem; }
.right-2   { right:  .5rem; }

/* --- Overflow / Object --- */
.overflow-hidden { overflow: hidden; }
.object-cover    { object-fit: cover; }
.aspect-square   { aspect-ratio: 1 / 1; }

/* --- Misc --- */
.rounded-full  { border-radius: 9999px; }
.shrink-0      { flex-shrink: 0; }
.select-none   { user-select: none; }
.opacity-0     { opacity: 0; }
.resize-y      { resize: vertical; }
.cursor-pointer { cursor: pointer; }
.bg-white      { background-color: #fff; }
.border        { border-width: 1px; border-style: solid; border-color: var(--border); }
.outline-none  { outline: none; }
.group         {}  /* marker class — dzieci używają .group-hover: */

/* --- Hover/focus utilities --- */
.hover\:-translate-y-1:hover { transform: translateY(-.25rem); }
.hover\:opacity-80:hover     { opacity: .8;   }
.hover\:scale-105:hover      { transform: scale(1.05); }
.group:hover .group-hover\:scale-105   { transform: scale(1.05); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.focus\:ring-2:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--ring, var(--brand));
}
.ring-2 { box-shadow: 0 0 0 2px var(--ring, var(--brand)); }

/* --- Responsive grid --- */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sm\:w-auto      { width: auto; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-\[1fr_1\.5fr\] { grid-template-columns: 1fr 1.5fr; }
}

/* --- Prose-like (strony informacyjne) --- */
.prose-like { line-height: 1.7; }
.prose-like h1 { margin-bottom: 1rem; }
.prose-like h2 { margin-top: 2.25rem; margin-bottom: .75rem; font-size: 1.375rem; }
.prose-like p  { margin-bottom: 1em; }
.prose-like ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1em; }
.prose-like li { margin-bottom: .35em; }
.prose-like a  { color: var(--brand); text-decoration: underline; }
.prose-like strong { font-weight: 700; }

/* --- Stars (opinie) --- */
.stars { display: flex; gap: .2rem; align-items: center; }
.star-icon { cursor: pointer; transition: transform .15s; }
.star-icon:hover { transform: scale(1.1); }

/* --- Home tiles (kafelki strona główna) --- */
.home-tiles { }
.tiles-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-soft);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.tile strong { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.tile span   { font-size: .8125rem; opacity: .85; }

/* --- Lightbox (realizacje) --- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-xl);
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff; width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__counter {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .875rem; background: rgba(0,0,0,.4);
  padding: .3rem .8rem; border-radius: 9999px;
}

/* --- Grid column utilities --- */
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* =================================================================
 * STRONA GŁÓWNA – sekcje specjalne
 * ============================================================== */

/* Hero grid */
.home-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 900px) {
    .home-hero-grid { grid-template-columns: 1fr 1fr; }
}
.home-hero-text h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* Hero feature cards */
.home-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
@media (max-width: 479px) {
    .home-hero-features { grid-template-columns: 1fr; }
}
.hero-feature-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-lg);
    padding: .75rem 1rem;
    font-size: .875rem;
    color: #fff;
    font-weight: 500;
}
.hero-feature-card svg { flex-shrink: 0; color: var(--accent-warm); width: var(--checkmark-size, 18px); height: var(--checkmark-size, 18px); }

/* Dwa filary */
.home-pillar-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: var(--radius-xl);
    display: grid; place-items: center;
    color: #fff;
    background: var(--gradient-hero);
}
.home-pillar-icon svg { stroke-width: 2.5; }
.home-pillar-list {
    display: flex; flex-wrap: wrap; gap: .4rem;
    list-style: none; padding: 0; margin: 0;
}
.home-pillar-list li {
    background: var(--secondary);
    color: var(--navy-deep);
    border-radius: 9999px;
    padding: .2rem .75rem;
    font-size: .8125rem;
    font-weight: 500;
}
.home-pillar-card { display: flex; flex-direction: column; }

/* Clean pillar card – duży tytuł, bez opisu */
.home-pillar-card--clean {
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
}
.home-pillar-card--clean .home-pillar-icon {
    width: 4.5rem;
    height: 4.5rem;
}
.home-pillar-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy-deep);
    margin: 1rem 0 1.5rem;
    letter-spacing: -0.02em;
}

/* Pillar cards – clickable, ruch tylko na hover */
.home-pillar-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}
.home-pillar-link:hover,
.home-pillar-link:focus-visible {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 28px rgba(26, 35, 64, 0.12);
}
.home-pillar-link h3 { color: var(--navy-deep); }
.home-pillar-link .btn {
    pointer-events: none;
}

/* Pulsujący przycisk */
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 35, 64, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(26, 35, 64, 0); }
}
.btn-pulse {
    animation: btnPulse 3s ease-in-out infinite;
}

/* Statystyki */
.home-stats-section {
    background: var(--gradient-hero);
    padding: 4rem 0;
    margin-top: 0;
}
.home-stats-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    text-align: center;
}
.home-stat__num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.home-stat__label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,.95);
    margin-top: .35rem;
}
.home-stat__desc {
    font-size: .8125rem;
    color: rgba(255,255,255,.6);
    margin-top: .25rem;
}

/* CTA sekcja */
.home-cta-section {
    background: var(--gradient-hero);
    padding: 5rem 0;
    margin-top: 0;
}

/* =================================================================
 * KARTY USŁUG – interaktywne kafelki z hover-scale
 * ============================================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 767px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .service-card {
        padding: 1.75rem 1.25rem;
    }
    .service-card:hover,
    .service-card.is-touched {
        transform: scale(1.03);
    }
    .service-grid:hover .service-card:not(:hover),
    .service-grid.has-touch .service-card:not(.is-touched) {
        opacity: 0.75;
        -webkit-filter: blur(0.5px);
        filter: blur(0.5px);
        transform: scale(0.99);
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                opacity 0.35s ease,
                filter 0.35s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-hero);
}

/* Hover: aktywny kafelek wysuwa się do przodu */
.service-card:hover,
.service-card.is-touched {
    transform: scale(1.05);
    z-index: 20;
    box-shadow: 0 12px 32px rgba(26, 35, 64, 0.15);
}

/* Reszta kafelków cofa się z mleczną zasłoną */
.service-grid:hover .service-card:not(:hover),
.service-grid.has-touch .service-card:not(.is-touched) {
    opacity: 0.7;
    -webkit-filter: blur(0.5px);
    filter: blur(0.5px);
    transform: scale(0.98);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #fff;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
}
.service-card__icon svg {
    width: var(--icon-size, 2.75rem);
    height: var(--icon-size, 2.75rem);
    stroke-width: 2.5;
}

.service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0 0 .75rem;
    line-height: 1.3;
}

.service-card__desc {
    font-size: .85rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

/* Klimatyzacja – wyróżniony środkowy kafelek */
.service-card--featured {
    box-shadow: 0 8px 32px oklch(0.22 0.06 250 / 0.14);
}
.service-card--featured::before {
    height: 5px;
}
.service-card--featured .service-card__icon {
    width: 4.5rem;
    height: 4.5rem;
}
.service-card--featured .service-card__title {
    font-size: 1.25rem;
}

/* Kafelki wielokolumnowe (col_span) */
.service-card--span-2 { grid-column: span 2; }
.service-card--span-3 { grid-column: span 3; }
.service-card--span-2 .service-card__desc,
.service-card--span-3 .service-card__desc {
    max-width: 600px; margin-left: auto; margin-right: auto;
}
@media (max-width: 767px) {
    .service-card--span-2,
    .service-card--span-3 { grid-column: span 1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .service-card--span-3 { grid-column: span 2; }
}

/* Sekcja usług – tło */
.service-section {
    padding: 4.5rem 0;
}
.service-section--alt {
    background: oklch(0.97 0.005 240);
}

/* =================================================================
 * REALIZACJE – filtry + karty projektów
 * ============================================================== */

/* Filtry kategorii */
.realiz-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}
.realiz-filter {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border);
    color: var(--foreground);
    background: #fff;
    transition: all .2s ease;
}
.realiz-filter:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.realiz-filter--active {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff;
}
.realiz-filter--active:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Grid realizacji */
.realiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 767px) {
    .realiz-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .realiz-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Karta realizacji */
.realiz-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
}
.realiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 35, 64, 0.14);
}

/* Obrazek */
.realiz-card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--secondary);
}
.realiz-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.realiz-card:hover .realiz-card__img img {
    transform: scale(1.05);
}

/* Placeholder gdy brak zdjęcia */
.realiz-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted-foreground);
    opacity: .4;
}

/* Treść karty */
.realiz-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.realiz-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0 0 .35rem;
    line-height: 1.3;
}
.realiz-card__desc {
    font-size: .8125rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
}

/* =================================================================
 * ZAMÓW USŁUGĘ – kafelki kategorii, mikrofon, kalendarz
 * ============================================================== */

/* Kafelki kategorii */
.order-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .order-cat-grid { grid-template-columns: 1fr; }
}
.order-cat-tile {
    cursor: pointer;
}
.order-cat-tile input {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.order-cat-tile input:focus-visible + .order-cat-tile__inner {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}
.order-cat-tile__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 2rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    background: #fff;
    transition: all .25s ease;
    text-align: center;
}
.order-cat-tile__inner:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 16px rgba(26,35,64,.1);
}
.order-cat-tile input:checked + .order-cat-tile__inner {
    border-color: var(--navy-deep);
    background: var(--secondary);
    box-shadow: 0 4px 20px rgba(26,35,64,.15);
}
.order-cat-tile__icon {
    width: 4rem; height: 4rem;
    border-radius: var(--radius-xl);
    background: var(--gradient-hero);
    color: #fff;
    display: grid; place-items: center;
}
.order-cat-tile__label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-deep);
}

/* Mikrofon toggle */
.order-voice-btn {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 44px; height: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    flex-shrink: 0;
}
.order-voice-btn:hover { border-color: var(--navy); }
.order-voice-btn--active {
    background: #fee2e2;
    border-color: #f87171;
    animation: voicePulse 1.5s ease-in-out infinite;
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.4); }
    50% { box-shadow: 0 0 0 8px rgba(248,113,113,0); }
}

/* Kalendarz */
.order-calendar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    max-width: 100%;
}
.order-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.order-calendar__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-deep);
}
.order-calendar__nav {
    min-width: 44px; min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: grid; place-items: center;
    transition: background .15s;
}
.order-calendar__nav:hover { background: var(--secondary); }
.order-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: .5rem;
}
.order-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.order-cal-empty {
    aspect-ratio: 1;
}
.order-cal-day {
    aspect-ratio: 1;
    border: none;
    border-radius: var(--radius-md);
    background: var(--secondary);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    color: var(--foreground);
    transition: all .15s;
    display: grid; place-items: center;
}
.order-cal-day:hover:not(:disabled) {
    background: var(--navy);
    color: #fff;
}
.order-cal-day--selected {
    background: var(--navy-deep) !important;
    color: #fff !important;
    font-weight: 700;
}
.order-cal-day--past {
    opacity: .3;
    cursor: default;
}
.order-cal-day--busy {
    background: #fef3c7;
    color: #92400e;
}
.order-cal-day--full {
    background: #fee2e2;
    color: #991b1b;
    opacity: .5;
    cursor: default;
}
.order-calendar__legend {
    display: flex;
    gap: 1.25rem;
    margin-top: .75rem;
    font-size: .75rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}
.order-calendar__legend span {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.order-cal-dot {
    width: 10px; height: 10px;
    border-radius: 3px;
    display: inline-block;
}
.order-cal-dot--free { background: var(--secondary); }
.order-cal-dot--busy { background: #fef3c7; }
.order-cal-dot--full { background: #fee2e2; }

/* Info o dostępności głosowej */
.order-a11y-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--foreground);
}
.order-a11y-info__icon {
    flex-shrink: 0;
    width: 2.5rem; height: 2.5rem;
    background: var(--gradient-hero);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
}

/* Mikrofon przy polach input */
.voice-input-wrap {
    position: relative;
}
.voice-field-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 2px;
    width: 28px; height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: grid; place-items: center;
    color: var(--muted-foreground);
    transition: all .2s;
}
.voice-field-btn:hover { border-color: var(--navy); color: var(--navy); }
.voice-field-btn.order-voice-btn--active {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* ---- Cookie banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy-deep, #1e2a4a);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.25);
    transform: translateY(100%);
    transition: transform .4s ease;
}
.cookie-banner.is-visible {
    transform: translateY(0);
}
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1 1 0;
    min-width: 260px;
    font-size: .875rem;
    line-height: 1.5;
}
.cookie-banner__text a {
    color: var(--brand-glow, #8bb8ff);
    text-decoration: underline;
}
.cookie-banner__btn {
    flex-shrink: 0;
    background: var(--brand, #4a7ddc);
    color: #fff;
    border: none;
    padding: .6rem 1.6rem;
    border-radius: var(--radius-md, 6px);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.cookie-banner__btn:hover {
    background: var(--brand-glow, #6ba0f0);
}

/* ---- Partners carousel ---- */
.partners-section {
    background: var(--secondary, #f5f6fa);
    padding: 3.5rem 0;
    overflow: hidden;
}
.partners-track-wrap {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.partners-static {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.partners-pause-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.partners-pause-btn:hover { background: #fff; }
.partners-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: partners-scroll 30s linear infinite;
}
.partners-track:hover {
    animation-play-state: paused;
}
@keyframes partners-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-card {
    flex-shrink: 0;
    width: 240px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-xl, 12px);
    padding: 1.25rem;
    text-align: center;
    transition: box-shadow .2s;
}
.partner-card:hover {
    box-shadow: var(--shadow-soft);
}
.partner-card__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto .75rem;
    border-radius: var(--radius-md, 6px);
    background: var(--navy-deep, #1e2a4a);
    padding: 6px;
}
.partner-card__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
.partner-card__name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy-deep, #1e2a4a);
    margin-bottom: .25rem;
}
.partner-card__branch {
    font-size: .78rem;
    color: var(--muted-foreground, #6b7280);
    margin-bottom: .5rem;
}
.partner-card__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .75rem;
    color: var(--muted-foreground, #6b7280);
    margin-bottom: .5rem;
}
.partner-card__link {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand, #4a7ddc);
    margin-top: .25rem;
}
.partner-card__link:hover {
    text-decoration: underline;
}

/* ---- Order form radio cards ---- */
.order-radio-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .85rem;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: .88rem;
}
.order-radio-card:hover {
    border-color: var(--brand, #4a7ddc);
    background: oklch(0.97 0.01 245);
}
.order-radio-card input[type="radio"] {
    accent-color: var(--brand, #4a7ddc);
}
.order-radio-card:has(input:checked) {
    border-color: var(--brand, #4a7ddc);
    background: oklch(0.95 0.03 245);
}

/* ---- Trusted clients grid ---- */
.trusted-section {
    padding: 3.5rem 0;
}
.trusted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
}
@media (min-width: 768px) {
    .trusted-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
.trusted-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    padding: .75rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    background: #cdd5e4;
    filter: grayscale(30%) opacity(.8);
    transition: filter .3s, box-shadow .3s, border-color .3s;
    text-decoration: none;
}
.trusted-item:hover {
    filter: grayscale(0%) opacity(1);
    box-shadow: var(--shadow-soft);
    border-color: var(--navy, #2a3f6f);
}
.trusted-item__logo {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
}
.trusted-item__name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--navy-deep, #1e2a4a);
    text-align: center;
    line-height: 1.2;
}

/* ---- Floating WhatsApp / Signal buttons ---- */
.floating-channels {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.floating-btn--wa { background: #25d366; }
.floating-btn--signal { background: #3a76f0; }

/* ---- Content protection (tylko zdjęcia) ---- */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}
a img, .lightbox img { pointer-events: auto; }
