/* =========================================================
   Auto-Robi - arkusz główny
   Jedna paleta w :root, w regułach wyłącznie zmienne CSS.
   ========================================================= */

:root {
    /* paleta z wizytówki: grafit + czerwień */
    --c-ink:          #16171a;
    --c-ink-soft:     #24262b;
    --c-ink-line:     #33363d;
    --c-bg:           #ffffff;
    --c-bg-alt:       #f4f5f7;
    --c-bg-tint:      #ebedf0;
    --c-text:         #1b1d21;
    --c-text-soft:    #52565e;
    --c-text-invert:  #f6f7f8;
    --c-text-invert-soft: #c7cad0;
    --c-accent:       #d81f26;
    --c-accent-dark:  #a5141a;
    --c-accent-soft:  #fdecec;
    --c-focus:        #0b63d6;
    --c-ok-bg:        #e7f6ec;
    --c-ok-text:      #14532d;
    --c-err-bg:       #fdecec;
    --c-err-text:     #8c1219;
    --c-border:       #d7dade;

    --radius:      10px;
    --radius-lg:   18px;
    --shadow:      0 1px 2px rgb(0 0 0 / 6%), 0 8px 24px rgb(0 0 0 / 8%);
    --wrap:        1180px;
    --wrap-narrow: 760px;
    --space:       clamp(3rem, 6vw, 5.5rem);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p  { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--c-accent); }

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

/* --- pomocnicze --- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.visually-hidden {
    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: .5rem; top: -100px;
    z-index: 999;
    background: var(--c-ink);
    color: var(--c-text-invert);
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: .5rem; color: var(--c-text-invert); }

.section { padding-block: var(--space); }
.section--text { padding-block: calc(var(--space) * .7); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-intro { color: var(--c-text-soft); font-size: 1.1rem; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: .75rem;
}

.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4em; }

/* --- przyciski --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { padding: .95rem 1.75rem; font-size: 1.05rem; }
.btn--primary { background: var(--c-accent); color: var(--c-text-invert); }
.btn--primary:hover { background: var(--c-accent-dark); color: var(--c-text-invert); }
.btn--ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
}
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-text); background: var(--c-bg-alt); }

/* --- nagłówek --- */
/* Nagłówek jasny - logo ma czarne kontury i czytelne jest tylko na jasnym tle. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-bg);
    color: var(--c-text);
    border-bottom: 3px solid var(--c-accent);
    box-shadow: 0 1px 12px rgb(0 0 0 / 8%);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 92px;
    padding-block: .5rem;
}
.logo { display: inline-flex; margin-right: auto; }
/* wysokość stała, szerokość z proporcji pliku (logo 1,25:1) */
.logo img { height: 72px; width: auto; object-fit: contain; }

.main-nav ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0; padding: 0;
}
.main-nav a {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 700;
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.main-nav a:hover { color: var(--c-accent-dark); border-bottom-color: var(--c-accent); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }

.btn--phone {
    background: var(--c-accent);
    color: var(--c-text-invert);
    text-decoration: none;
    padding: .65rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 800;
    white-space: nowrap;
}
.btn--phone:hover { background: var(--c-accent-dark); color: var(--c-text-invert); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 2px solid var(--c-border);
    color: var(--c-text);
    border-radius: var(--radius);
    padding: .55rem .85rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.nav-toggle__bars { display: inline-grid; gap: 4px; }
.nav-toggle__bars span {
    display: block;
    width: 20px; height: 2px;
    background: var(--c-text);
}

/* --- hero --- */
.hero {
    background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-soft) 100%);
    color: var(--c-text-invert);
    /* dolny zapas pod kafelki, które wchodzą na sekcję */
    padding-block: clamp(3rem, 7vw, 6rem) clamp(6rem, 11vw, 9rem);
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero h1 { color: var(--c-text-invert); }
.hero-sub {
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--c-accent);
    margin: -.35rem 0 1rem;
    line-height: 1.25;
}
.hero-lead { color: var(--c-text-invert-soft); font-size: 1.15rem; max-width: 56ch; }
.hero-lead strong { color: var(--c-text-invert); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .btn--ghost { color: var(--c-text-invert); border-color: var(--c-ink-line); }
.hero .btn--ghost:hover { background: var(--c-ink-soft); color: var(--c-text-invert); border-color: var(--c-text-invert-soft); }

.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, var(--c-accent) 0 42%, transparent 42%),
        var(--c-ink-soft);
    border: 1px solid var(--c-ink-line);
    display: grid;
    place-items: center;
    color: var(--c-text-invert);
    font-weight: 900;
    letter-spacing: .22em;
    font-size: clamp(1rem, 2.4vw, 1.6rem);
}

/* --- USP: kafelki nachodzą na dolną krawędź hero --- */
.usp {
    --usp-overlap: 5rem;
    /* górna część sekcji jest przezroczysta, więc kafelki "leżą" na ciemnym hero */
    background: linear-gradient(
        to bottom,
        transparent 0 var(--usp-overlap),
        var(--c-bg-alt) var(--usp-overlap)
    );
    padding-block: 0 clamp(2.5rem, 4vw, 3.5rem);
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--usp-overlap));
}
.usp-grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.usp-item {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 28px rgb(0 0 0 / 14%);
}
.usp-icon { width: 32px; height: 32px; fill: var(--c-accent); margin-bottom: .75rem; }
.usp-title { font-size: 1.1rem; margin-bottom: .35rem; }
.usp-item p { margin: 0; color: var(--c-text-soft); font-size: .97rem; }

/* --- karty usług --- */
.card-grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: var(--c-bg);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* czerwony pasek wjeżdżający od lewej przy najechaniu */
.card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    border-color: var(--c-ink-line);
    box-shadow: 0 14px 32px rgb(0 0 0 / 14%);
}
.card:hover::before,
.card:focus-within::before { transform: scaleX(1); }
.card:hover .card-title { color: var(--c-accent-dark); }
.card-title { transition: color .25s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-img { transition: transform .45s ease; }

@media (prefers-reduced-motion: reduce) {
    .card, .card::before, .card-img, .card-title { transition: none; }
    .card:hover { transform: none; }
    .card:hover .card-img { transform: none; }
}
.card-img {
    border-radius: var(--radius);
    margin-bottom: 1rem;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.card-title { margin-bottom: .25rem; }
.card-text { color: var(--c-text-soft); }
.card-text > :last-child { margin-bottom: 0; }

/* --- kroki --- */
.process { background: var(--c-bg-alt); }
.steps {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    background: var(--c-bg);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    border-top: 4px solid var(--c-accent);
}
.step-num {
    display: inline-grid;
    place-items: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: var(--c-ink);
    color: var(--c-text-invert);
    font-weight: 800;
    margin-bottom: .75rem;
}
.step-title { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--c-text-soft); font-size: .97rem; }

/* --- obszar działania --- */
.area-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.area-list li {
    background: var(--c-bg-tint);
    border-radius: 100px;
    padding: .45rem 1.1rem;
    font-weight: 600;
    font-size: .95rem;
}

/* --- FAQ --- */
.faq { background: var(--c-bg-alt); }
.faq-list { display: grid; gap: .75rem; }
.faq-item {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1.1rem 1.25rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-weight: 800;
    color: var(--c-accent);
    font-size: 1.4rem;
    line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--c-text-soft); }

/* --- mapa --- */
.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-bg-alt);
    line-height: 0;
}
.map-frame iframe { width: 100%; height: clamp(280px, 45vw, 450px); border: 0; display: block; }
.map-actions { margin-top: 1.25rem; }

/* --- pas CTA --- */
.cta-band {
    background: var(--c-accent);
    color: var(--c-text-invert);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}
.cta-band h2 { color: var(--c-text-invert); margin-bottom: .35rem; }
.cta-text { color: var(--c-text-invert); opacity: .92; }
.cta-text > :last-child { margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.cta-band .btn--primary { background: var(--c-ink); color: var(--c-text-invert); }
.cta-band .btn--primary:hover { background: var(--c-ink-soft); }
.cta-band .btn--ghost { color: var(--c-text-invert); border-color: var(--c-text-invert); }
.cta-band .btn--ghost:hover { background: var(--c-accent-dark); color: var(--c-text-invert); }

/* --- nagłówek podstrony + okruszki --- */
.breadcrumb { padding-top: 1.25rem; font-size: .9rem; }
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0; padding: 0;
    color: var(--c-text-soft);
}
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--c-border); }

.page-head { padding-block: clamp(2rem, 4vw, 3.5rem) 1rem; }
.page-lead { font-size: 1.15rem; color: var(--c-text-soft); max-width: 62ch; }

/* --- kontakt --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.contact-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    background: var(--c-bg);
}
.contact-card h3 { font-size: 1.05rem; }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .85rem; }
.contact-label {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-soft);
}
.contact-strong { font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.contact-address { font-style: normal; color: var(--c-text-soft); margin-bottom: 1rem; }
.contact-note { color: var(--c-text-soft); font-size: .92rem; margin: 0; }
.link-arrow { font-weight: 700; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { text-align: left; padding: .35rem 0; font-weight: 500; }
.hours-table td { text-align: right; color: var(--c-text-soft); }

/* --- formularz --- */
.form-section { background: var(--c-bg-alt); }
.form {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.field input, .field textarea {
    width: 100%;
    font: inherit;
    padding: .7rem .85rem;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    color: var(--c-text);
}
.field input:focus, .field textarea:focus { border-color: var(--c-ink); }
.field textarea { resize: vertical; min-height: 8rem; }
.req { color: var(--c-accent); }
.hint { font-size: .9rem; color: var(--c-text-soft); margin: .4rem 0 0; }

.field--check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    padding: 1rem;
}
.field--check input { width: 1.35rem; height: 1.35rem; margin-top: .15rem; accent-color: var(--c-accent); }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--c-text-soft); margin: 0; }

.rodo-box {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin: 1.25rem 0;
    font-size: .9rem;
    color: var(--c-text-soft);
}
.rodo-box summary { cursor: pointer; font-weight: 700; color: var(--c-text); }
.rodo-box .prose { margin-top: .75rem; }
.form-required-note { font-size: .88rem; color: var(--c-text-soft); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid transparent;
}
.alert--ok { background: var(--c-ok-bg); color: var(--c-ok-text); border-left-color: var(--c-ok-text); }
.alert--error { background: var(--c-err-bg); color: var(--c-err-text); border-left-color: var(--c-accent); }
.alert ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.alert > :last-child { margin-bottom: 0; }

/* --- stopka --- */
.site-footer {
    background: var(--c-ink);
    color: var(--c-text-invert-soft);
    padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.footer-brand { color: var(--c-text-invert); font-weight: 800; font-size: 1.05rem; margin-bottom: .5rem; }
.footer-note { font-size: .95rem; }
.footer-head {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-text-invert);
    margin-bottom: .85rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer-list a { color: var(--c-text-invert); text-decoration: none; }
.footer-list a:hover { color: var(--c-text-invert); text-decoration: underline; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-addr { display: block; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--c-ink-line);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.footer-legal a { color: var(--c-text-invert-soft); }

/* --- przycisk telefonu na mobile --- */
.fab-call { display: none; }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
}

@media (max-width: 620px) {
    /* przy jednej kolumnie kafelków mniejsza zakładka wygląda naturalniej */
    .usp { --usp-overlap: 2.5rem; }
}

@media (max-width: 800px) {
    .nav-toggle { display: inline-flex; }
    .btn--phone__num { display: none; }
    .logo img { height: 56px; }
    .header-inner { min-height: 72px; }

    .main-nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--c-bg);
        border-bottom: 3px solid var(--c-accent);
        box-shadow: 0 12px 24px rgb(0 0 0 / 12%);
        padding: 1rem 1.25rem 1.5rem;
    }
    .site-header { position: sticky; }
    .header-inner { position: relative; flex-wrap: wrap; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: .25rem; }
    .main-nav a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--c-border); }

    .field-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .fab-call {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        position: fixed;
        right: 1rem; bottom: 1rem;
        z-index: 60;
        background: var(--c-accent);
        color: var(--c-text-invert);
        text-decoration: none;
        font-weight: 800;
        padding: .9rem 1.35rem;
        border-radius: 100px;
        box-shadow: var(--shadow);
    }
    body { padding-bottom: 4.5rem; }
}

/* --- wysoki kontrast / preferencje systemu --- */
@media (prefers-contrast: more) {
    :root { --c-text-soft: var(--c-text); --c-border: var(--c-ink); }
}

@media print {
    .site-header, .fab-call, .cta-band, .form-section { display: none; }
    body { color: var(--c-ink); }
}

/* --- wyróżniony kafelek USP (czerwony) --- */
.usp-item--accent {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-text-invert);
}
.usp-item--accent .usp-icon { fill: var(--c-text-invert); }
.usp-item--accent .usp-title { color: var(--c-text-invert); }
.usp-item--accent p { color: var(--c-text-invert); opacity: .95; }

/* --- weryfikacja antyspamowa w formularzu --- */
.turnstile-field { min-height: 65px; }
.turnstile-field .cf-turnstile { display: flex; }

/* --- podpis wykonawcy w stopce --- */
.footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1.25rem 0 0;
    font-size: .85rem;
    color: var(--c-text-invert-soft);
}
.footer-credits img {
    height: 20px;
    width: auto;
    display: block;
    opacity: .85;
    transition: opacity .2s ease;
}
.footer-credits a:hover img,
.footer-credits a:focus-visible img { opacity: 1; }

/* --- przyciski pod mapą --- */
.map-actions--row { display: flex; flex-wrap: wrap; gap: .75rem; }
