/* ==========================================================================
   Arkusz stylów strony Auto Szyby Pleszew

   Spis treści:
     1. Paleta i zmienne (:root)
     2. Baza (typografia, kontener, etykiety)
     3. Przyciski
     4. Header i menu
     5. Hero (baner na górze strony)
     6. Sekcje strony głównej: oferta, producenci, VISEE, o nas, galeria, kontakt, opinie
     7. Blog
     8. Stopka i pływający przycisk "Zadzwoń"
     9. Responsywność (tablet: do 960 px, telefon: do 600 px)

   Kolory zmienia się w jednym miejscu – w zmiennych poniżej.
   ========================================================================== */

/* ==========================================================================
   1. Paleta z logo: grafit + limonkowa zieleń, akcent "szklany" błękit
   ========================================================================== */
:root {
    --lime-50: #f6fde6;
    --lime-100: #ebfac4;
    --lime-300: #c6f75a;
    --lime-400: #a8f000;   /* główna zieleń z logo */
    --lime-500: #8fdc00;
    --lime-600: #68c800;
    --lime-700: #3f7d00;   /* zieleń do tekstu na jasnym tle (kontrast AA) */

    --graphite-950: #17181c;
    --graphite-900: #1d2127;
    --graphite-800: #2a2f36;
    --graphite-700: #323942;
    --graphite-600: #454d57;
    --graphite-400: #8b9299;
    --graphite-300: #b8bec4;
    --graphite-200: #d9dcdf;
    --graphite-100: #eceef0;
    --graphite-50: #f5f6f7;

    --glass-200: #c4e4ee;
    --glass-400: #7fbfd2;
    --glass-600: #4f93a8;

    --bg: #ffffff;
    --text: var(--graphite-800);
    --text-muted: #5d636a;

    /* Zaokrąglenia, cienie i wysokość headera używane w wielu miejscach */
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(23, 24, 28, .06);
    --shadow: 0 12px 32px rgba(23, 24, 28, .12);
    --glow: 0 8px 22px rgba(168, 240, 0, .35);
    --header-h: 96px;

    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* ==========================================================================
   2. Baza
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;                 /* płynne przewijanie po kliknięciu w menu */
    scroll-padding-top: var(--header-h);     /* żeby przyklejony header nie zasłaniał nagłówka sekcji */
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--graphite-900);
    line-height: 1.15;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-style: italic; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--lime-700); }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lime-700);
    background: var(--lime-100);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--text-muted); }
/* Krótki nadtytuł jako zwykły tekst (bez "pigułki") – np. etykieta sekcji "Nowość" z panelu */
.kicker {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lime-700);
}
.text-accent { color: var(--lime-400); }

/* ==========================================================================
   3. Przyciski
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-cta {
    background: var(--lime-400);
    color: var(--graphite-950);
    box-shadow: var(--glow);
}
.btn-cta:hover {
    background: var(--lime-300);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(168, 240, 0, .45);
}

.btn-ghost {
    background: transparent;
    color: var(--graphite-800);
    border-color: var(--graphite-200);
}
.btn-ghost:hover { border-color: var(--lime-500); color: var(--lime-700); }

/* ==========================================================================
   4. Header (ciemny – pod logo)
   ========================================================================== */
/* Header przykleja się do góry ekranu przy przewijaniu (position: sticky) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(29, 33, 39, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: box-shadow .2s, background .2s;
}
.site-header.is-scrolled {
    background: rgba(23, 24, 28, .97);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 80px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav ul a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: var(--graphite-200);
    transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--lime-400); background: rgba(255, 255, 255, .05); }
.main-nav ul a.is-active { color: var(--lime-400); background: rgba(168, 240, 0, .1); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   5. Hero (grafitowe tło jak w logo)
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 104px;
    color: var(--graphite-300);
    background:
        /* limonkowa poświata z lewej (lustrzane odbicie poświaty z sekcji Kontakt) */
        radial-gradient(circle at 8% 15%, rgba(168, 240, 0, .14) 0, transparent 40%),
        radial-gradient(ellipse at 50% 0%, #434b55 0, transparent 60%),
        linear-gradient(180deg, var(--graphite-800), var(--graphite-950));
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lime-600), var(--lime-400), transparent);
}
.hero h1 { color: #fff; }
.hero .lead { color: var(--graphite-300); }
.hero .eyebrow { background: rgba(168, 240, 0, .12); color: var(--lime-400); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { color: var(--lime-400); border-color: var(--lime-400); }

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 40px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: var(--font-head);
    font-weight: 800;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--lime-400);
}
.hero-stats span { font-size: .9rem; color: var(--graphite-400); }
.footer-bottom p { line-height: 1.5; }

/* Zdjęcie siedziby w banerze – samo zdjęcie, bez ozdobników, z podpisem z adresem */
.hero-visual {
    position: relative;
    margin: 0;
    height: 440px;
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.hero-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(23, 24, 28, .85);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    border-left: 3px solid var(--lime-400);
}

/* ==========================================================================
   6. Sekcje strony głównej
   ========================================================================== */
.section { padding: 96px 0; }
.section-tint { background: var(--graphite-50); }

.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head p { color: var(--text-muted); }

/* Oferta: 4 główne usługi ze zdjęciami z realizacji */
.section-head-left { margin-left: 0; text-align: left; }
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
/* Kafelek usługi z limonkową ramką (kolor z logo); po najechaniu ramka się rozjaśnia i lekko świeci */
.service {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--lime-400);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.service:hover {
    border-color: var(--lime-300);
    box-shadow: 0 0 0 4px rgba(168, 240, 0, .18), var(--shadow-sm);
}
.service img {
    width: 100%;
    height: auto;          /* bez tego atrybut height="..." z HTML-a nadpisuje proporcje 4:3 */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.service-body { padding: 20px 22px 24px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--text-muted); margin: 0; }

/* "Wykonujemy też" – jasny panel: tytuł po lewej, równa siatka pozostałych usług po prawej */
.also {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 20px 32px;
    margin-top: 28px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--graphite-50);
    border: 1px solid var(--graphite-100);
}
.also h3 { margin: 0; font-size: 1.1rem; }
.also ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* 6 pozycji: 3 kolumny = dwa równe rzędy (tablet: 2 kolumny, telefon: 1) */
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 24px;
}
.also li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
    color: var(--graphite-800);
    line-height: 1.4;
}
/* Limonkowe kółko z ptaszkiem przed każdą pozycją */
.also li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lime-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Producenci szyb */
.brands {
    margin-top: 56px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--graphite-900);
    text-align: center;
}
.brands-title {
    color: var(--graphite-300);
    font-size: .95rem;
    margin: 0 0 18px;
}
.brands-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}
.brands-list li {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(168, 240, 0, .35);
    background: rgba(168, 240, 0, .06);
}

/* O nas */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.media-frame {
    position: relative;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.35) 30% 38%, transparent 38% 44%, rgba(255,255,255,.2) 44% 47%, transparent 47%),
        linear-gradient(160deg, var(--glass-200), var(--glass-600));
    border: 8px solid var(--graphite-900);
    box-shadow: var(--shadow);
}
.media-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 8px);  /* zaokraglenie dopasowane do ramki 8 px */
}
.media-badge {
    position: absolute;
    z-index: 1;
    right: -18px;
    bottom: 28px;
    background: var(--graphite-900);
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.media-badge strong {
    font-family: var(--font-head);
    font-weight: 800;
    font-style: italic;
    font-size: 1.9rem;
    color: var(--lime-400);
    line-height: 1;
}
.media-badge span { font-size: .85rem; color: var(--graphite-300); }

.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}
.checklist li {
    position: relative;
    padding-left: 34px;
    font-weight: 500;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lime-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Sekcja "Nowość" (pióra wycieraczek VISEE) – zdjęcie albo grafika zastępcza z napisem */
.visee-photo {
    aspect-ratio: 4 / 3.2;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    background:
        linear-gradient(160deg, transparent 0 46%, var(--lime-400) 46% 49%, transparent 49%),
        linear-gradient(160deg, var(--graphite-700), var(--graphite-950));
    box-shadow: var(--shadow);
}
.visee-photo span {
    font-family: var(--font-head);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: .08em;
    color: #fff;
}
.visee-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Gdy jest zdjęcie: pionowa ramka (zdjęcia stojaka/produktu są zwykle pionowe), bez tła zastępczego */
.visee-photo-img {
    display: block;
    position: relative;
    overflow: hidden;            /* przycina zdjęcie do zaokrąglonej ramki */
    aspect-ratio: 4 / 5;
    max-height: 620px;
    background: none;
    border: 8px solid var(--graphite-900);
}
/* Zdjęcie przypięte do ramki: wypełnia ją całą (object-fit: cover), nigdy nie wystaje */
.visee-photo-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
#nowosc .split-text .btn { margin-top: 28px; }

/* Galeria */
/* Siatka 4 kolumn; kafelki mają różne rozmiary (z pola "ksztalt" w core/gallery.py).
   grid-auto-flow: dense dopycha mniejsze kafelki w wolne miejsca, żeby nie zostawały dziury. */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 16px;
}
.gallery-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery-item-wide,
.gallery-item-szerokie { grid-column: span 2; }   /* szeroki kafelek: 2 kolumny */
.gallery-item-pionowe { grid-row: span 2; }       /* wysoki kafelek na zdjęcia pionowe: 2 rzędy */
.gallery-item[hidden] { display: none; }           /* zdjęcia schowane pod "Pokaż więcej" */
/* Zdjęcia kafelka leżą jedno na drugim; widać to z klasą is-active (przełącza main.js) */
.gallery-slides { position: absolute; inset: 0; }
.gallery-link {
    position: absolute;
    inset: 0;
    display: block;
    cursor: zoom-in;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.gallery-link.is-active { opacity: 1; visibility: visible; }

/* Strzałki i licznik na kafelkach z kilkoma zdjęciami */
.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border: 0;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--graphite-950);
    background: rgba(168, 240, 0, .92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform .2s, background .2s;
}
.gallery-nav:hover { background: var(--lime-300); transform: scale(1.08); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    background: rgba(23, 24, 28, .8);
}
.gallery-item figcaption { z-index: 2; border-radius: 14px; }
.gallery-step { display: block; font-weight: 400; font-size: .78rem; color: var(--graphite-300); }
.gallery-step[hidden] { display: none; }
.gallery-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); }
.lightbox-nav[hidden] { display: none; }
.gallery-ph,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gallery-ph {
    background:
        linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.35) 30% 37%, transparent 37% 42%, rgba(255,255,255,.18) 42% 45%, transparent 45%),
        linear-gradient(150deg, var(--glass-200), var(--glass-600));
}
.gallery-item:nth-child(2n) .gallery-ph {
    background:
        linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.12) 30% 37%, transparent 37%),
        linear-gradient(150deg, var(--graphite-600), var(--graphite-950));
}
.gallery-item:hover .gallery-ph,
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    pointer-events: none;  /* kliknięcie w podpis też otwiera powiększenie */
    max-width: calc(100% - 24px);
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--graphite-900);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border-left: 3px solid var(--lime-400);
}

.gallery-more { text-align: center; margin-top: 28px; }

/* Okno powiększenia zdjęcia (lightbox). Element <dialog> sam obsługuje Esc i blokuje resztę strony. */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.lightbox::backdrop { background: rgba(10, 11, 14, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1400px, 92vw); text-align: center; }
.lightbox img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lightbox figcaption { margin-top: 14px; color: #fff; font-weight: 600; }
.lightbox-close,
.lightbox-nav {
    position: fixed;
    border: 0;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 2rem;
    line-height: 1;
    color: var(--graphite-950);
    background: var(--lime-400);
    cursor: pointer;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.section-dark {
    background:
        radial-gradient(circle at 90% 10%, rgba(168, 240, 0, .14) 0, transparent 40%),
        var(--graphite-900);
    color: var(--graphite-200);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { background: rgba(168, 240, 0, .12); color: var(--lime-400); }

/* Dwie kolumny: po lewej tekst + dane kontaktowe (pod sobą), po prawej formularz */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-text p { color: var(--graphite-300); margin-bottom: 28px; }

/* Dane kontaktowe w siatce 2 × 2, żeby lewa kolumna nie była dużo wyższa od formularza */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-list li {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.contact-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--lime-400);
    margin-bottom: 2px;
}
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--lime-400); }
.contact-alt { font-size: .85rem; color: var(--graphite-400); margin-top: 2px; }
.contact-list .contact-alt a { font-weight: 400; color: var(--graphite-300); }
.contact-list a, .contact-alt { overflow-wrap: anywhere; }  /* długie adresy e-mail łamią się zamiast wychodzić poza kafelek */

/* Formularz kontaktowy – ciemny, półprzezroczysty jak kafelki z danymi obok, z limonkowym paskiem */
.contact-form-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-top: 4px solid var(--lime-400);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-form-card h3 { font-size: 1.5rem; margin-bottom: 4px; color: #fff; }
.contact-form-intro { color: var(--graphite-300); margin-bottom: 22px; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--graphite-200); }
.form-field .req { color: var(--lime-400); }
.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    color: #fff;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--graphite-400); }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, .09);
    border-color: var(--lime-400);
    box-shadow: 0 0 0 3px rgba(168, 240, 0, .2);
}
/* Kolory błędów rozjaśnione, żeby były czytelne na ciemnym tle */
.form-field.has-error input,
.form-field.has-error textarea { border-color: #ff6b6b; background: rgba(255, 107, 107, .08); }
.field-error { color: #ff8a8a; font-size: .85rem; }
.form-error { color: #ff8a8a; font-weight: 600; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--graphite-300); cursor: pointer; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime-400); flex-shrink: 0; }
.form-consent.has-error span { color: #ff8a8a; }
.form-consent a { color: var(--lime-400); }
.form-submit { width: 100%; margin-top: 4px; }
.form-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(168, 240, 0, .12);
    color: var(--lime-300);
    font-weight: 600;
    border-left: 4px solid var(--lime-400);
}
/* Pułapka na boty: pole wypchnięte poza ekran (nie display:none – część botów to sprawdza) */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Opinie */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.review {
    margin: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--lime-400);
}
.review p { color: var(--graphite-700); }
.review footer { font-weight: 600; color: var(--graphite-900); }
.stars { color: var(--graphite-200); letter-spacing: 2px; margin-bottom: 10px; }
.stars .on { color: var(--lime-600); }
.stars-lg { font-size: 1.5rem; margin: 0; line-height: 1; }
.review { display: flex; flex-direction: column; }
.review p { flex: 1; }
.review footer { display: flex; align-items: center; gap: 10px; }
.review footer img { width: 32px; height: 32px; border-radius: 50%; }
.review footer a { color: var(--graphite-900); text-decoration: none; }
.review footer a:hover { color: var(--lime-700); }
.review footer small { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; }

/* Podsumowanie oceny Google */
.rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    background: var(--graphite-50);
    border: 1px solid var(--graphite-100);
}
.rating-score { display: flex; align-items: center; gap: 16px; }
.rating-score strong {
    font-family: var(--font-head);
    font-weight: 800;
    font-style: italic;
    font-size: 3rem;
    line-height: 1;
    color: var(--graphite-900);
}
.rating-count { display: block; margin-top: 6px; color: var(--text-muted); font-size: .95rem; }
.rating-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   7. Blog (podstrona)
   ========================================================================== */
.page-hero {
    padding: 72px 0 48px;
    color: var(--graphite-300);
    background:
        radial-gradient(ellipse at 50% 0%, #434b55 0, transparent 60%),
        linear-gradient(180deg, var(--graphite-800), var(--graphite-950));
}
.page-hero h1 { color: #fff; }
.page-hero .lead { max-width: 640px; color: var(--graphite-300); }
.page-hero .eyebrow { background: rgba(168, 240, 0, .12); color: var(--lime-400); }
.page-blog .section { padding-top: 56px; }
/* Strona 404 */
.not-found { padding: 96px 0 110px; }
.not-found .not-found-call { color: #fff; border-color: rgba(255, 255, 255, .25); }
.redirect-note { margin-top: 28px; color: var(--graphite-400); font-size: .95rem; }
.redirect-note strong { color: var(--lime-400); }
.redirect-stop {
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--graphite-300);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.redirect-stop:hover { color: var(--lime-400); }

.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post-card {
    background: #fff;
    border: 1px solid var(--graphite-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime-400); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.35) 30% 37%, transparent 37%),
        linear-gradient(150deg, var(--glass-200), var(--glass-600));
}
.post-card:nth-child(2n) .post-thumb {
    background:
        linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.12) 30% 37%, transparent 37%),
        linear-gradient(150deg, var(--graphite-600), var(--graphite-950));
}
.post-body { padding: 22px 24px 26px; }
.post-body time { font-size: .85rem; color: var(--text-muted); }
.post-body h2 { font-size: 1.2rem; margin: 6px 0 10px; }
.post-body p { color: var(--text-muted); }
.post-more {
    font-size: .85rem;
    font-weight: 700;
    color: var(--lime-700);
}

/* Cała karta wpisu jest klikalna: link w tytule ma pseudo-element rozciągnięty na kartę */
.post-card { position: relative; }
.post-link { color: inherit; text-decoration: none; }
.post-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.post-card:hover .post-link { color: var(--lime-700); }
.post-card:focus-within { border-color: var(--lime-400); box-shadow: var(--shadow); }
.blog-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* Numery stron na liście wpisów */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.pagination-info { color: var(--text-muted); font-size: .95rem; }

/* --- Pojedynczy wpis ------------------------------------------------------ */
.post-container { max-width: 820px; }   /* węższa kolumna = wygodniejsze czytanie długiego tekstu */
.post-hero { padding: 48px 0 44px; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 10px; }
.post-back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--graphite-300);
    text-decoration: none;
    font-weight: 500;
}
.post-back:hover { color: var(--lime-400); }
.post-date { display: block; color: var(--lime-400); font-weight: 600; font-size: .95rem; }
.post-draft {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 196, 0, .15);
    border-left: 4px solid #ffc400;
    color: #ffe08a;
    font-size: .9rem;
}
.page-post .post-article { padding-top: 48px; }
.post-cover { margin: 0 0 36px; }
.post-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Treść wpisu (typografia artykułu) */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--graphite-800); }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.prose ul { padding-left: 0; margin: 0 0 1.4em; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: .7em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime-500);
}
.prose strong { color: var(--graphite-900); }
.prose a { color: var(--lime-700); font-weight: 600; }

/* Ramka "Zadzwoń" pod wpisem */
.post-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--graphite-900);
    border-left: 4px solid var(--lime-400);
}
.post-cta strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.post-cta span { color: var(--graphite-300); }
.post-others .section-head { margin-bottom: 32px; }

/* ==========================================================================
   8. Stopka
   ========================================================================== */
.site-footer {
    background: var(--graphite-950);
    color: var(--graphite-300);
    padding: 64px 0 0;
}
/* 4 kolumny: marka (szersza) | nawigacja | kontakt | obserwuj */
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.logo.logo-footer img { height: 96px; }
.footer-note { color: var(--graphite-300); margin-top: 18px; max-width: 320px; line-height: 1.7; }
.site-footer h3 { font-size: 1rem; color: #fff; margin: 6px 0 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-list a { color: var(--graphite-300); text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--lime-400); }
.footer-contact li { line-height: 1.6; }
.footer-hours { color: var(--graphite-400); font-size: .9rem; }

/* Okrągłe ikony mediów społecznościowych */
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--graphite-200);
    transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--graphite-950); background: var(--lime-400); border-color: var(--lime-400); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }

/* Dolny pasek: prawa autorskie | polityka prywatności (środek) | autor */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: .9rem;
    color: var(--graphite-300);
}
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { text-align: right; }
.footer-bottom a { color: var(--graphite-300); text-decoration: none; }
.footer-bottom a:hover { color: var(--lime-400); }
/* Najniższa linia: dane firmy, wyśrodkowane */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 18px;
    padding-bottom: 22px;
    text-align: center;
    font-size: .82rem;
    color: var(--graphite-400);
}
.footer-legal p { margin: 0; }

/* ==========================================================================
   8. Pływający przycisk "zadzwoń" – tylko mobile (włączany w media query poniżej)
   ========================================================================== */
.call-fab {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--lime-400);
    box-shadow: 0 10px 24px rgba(168, 240, 0, .45), 0 4px 12px rgba(0, 0, 0, .3);
    place-items: center;
}
.call-fab svg { width: 26px; height: 26px; fill: var(--graphite-950); }

/* ==========================================================================
   9. Responsywność
   ========================================================================== */
@media (max-width: 1120px) {
    .main-nav { gap: 14px; }
    .main-nav ul a { padding: 8px 8px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .also { grid-template-columns: 1fr; padding: 22px; }
    .also ul { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet i mniejsze: menu chowa się pod przyciskiem "hamburger" i wysuwa z góry,
   układy dwukolumnowe przechodzą w jedną kolumnę, pojawia się pływający przycisk "Zadzwoń" */
@media (max-width: 960px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        background: var(--graphite-950);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav ul a { padding: 12px 14px; font-size: 1.05rem; }
    .main-nav .btn-cta { width: 100%; padding: 14px; }

    .hero { padding: 56px 0 72px; }
    .hero-inner,
    .split,
    .contact { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 320px; }
    .media-badge { right: 16px; }

    .reviews,
    .posts { grid-template-columns: 1fr 1fr; }
    #nowosc .split-media { order: -1; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-inner > :first-child { grid-column: 1 / -1; }
    /* Dolny pasek w jednej kolumnie, wszystko wyśrodkowane */
    .footer-bottom { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom p:last-child { text-align: center; }

    .call-fab { display: grid; }
}

/* Telefon: wszystko w jednej kolumnie, mniejsze odstępy, przyciski na całą szerokość */
@media (max-width: 600px) {
    :root { --header-h: 72px; }
    .container { padding: 0 16px; }
    .logo img { height: 58px; }
    .section { padding: 64px 0; }
    .services,
    .reviews,
    .posts { grid-template-columns: 1fr; }
    .brands { padding: 22px 16px; }
    .rating-summary { padding: 20px 16px; }
    .post-cta { padding: 20px 18px; }
    .also ul { grid-template-columns: 1fr; }
    .post-cta .btn { width: 100%; }
    .prose { font-size: 1rem; }
    .contact-list,
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 24px 18px; }
    .rating-actions, .rating-actions .btn { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 22px; }
    .hero-visual { height: 240px; }
    .lightbox-nav { top: auto; bottom: 18px; transform: none; }
}

/* Dla osób, które w systemie wyłączyły animacje – bez płynnego przewijania i przejść */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
