/* Fonty self-hosted (Oswald + Inter variable, latin + latin-ext) */
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   StalSpaw - Landing Page Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #109ade;
    --orange-dark: #0c7cb8;
    --orange-light: #3db8f5;
    --orange-glow: rgba(16, 154, 222, 0.3);
    /* Neutrale podbarwione hue marki (~205deg) — nie czysta szarość */
    --bg-dark: #0a0d10;
    --bg-alt: #0c1014;
    --bg-card: #12171c;
    --bg-card-hover: #171e24;
    --bg-footer: #070a0d;
    --text: #e5e5e5;
    --text-dim: #9ca3af;
    --text-muted: #6b7280;
    --border: #1f2830;
    --nav-height: 70px;
    /* Tokeny ruchu */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --dur-fast: 150ms;
    --dur-med: 250ms;
    --dur-reveal: 450ms;
    interpolate-size: allow-keywords;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    /* clip zamiast hidden — przycina wysunięte menu mobilne,
       ale nie robi z body kontenera przewijania */
    overflow-x: clip;
}

#sparkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1200;
}

/* Widoczny focus dla klawiatury — pojawia się natychmiast, bez animacji */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--orange);
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color var(--dur-med) var(--ease-out),
                border-color var(--dur-med) var(--ease-out),
                color var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
    border: 2px solid transparent;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    box-shadow: 0 0 30px var(--orange-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color var(--dur-med) var(--ease-out),
                padding var(--dur-med) var(--ease-out),
                border-color var(--dur-med) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 13, 16, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar.scrolled .logo-img {
    height: 38px;
}

.footer-brand .logo-img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-cta {
    background: var(--orange) !important;
    color: #000 !important;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--orange-light) !important;
}

/* Telefon w nawigacji — realna firma, realny numer */
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nav-phone svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text);
    transition: transform var(--dur-med) var(--ease-in-out),
                opacity var(--dur-med) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    max-width: 700px;
}

.hero-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--orange);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    color: #fff;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* --- Sections --- */
/* Zróżnicowany rytm pionowy — sekcje nie oddychają identycznie */
.section {
    padding: 96px 0;
}

.section.gallery,
.section.faq {
    padding: 112px 0;
}

.section.area {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 16px;
}

/* Krótka linia akcentowa pod nagłówkiem sekcji — zamiast kolorowego słowa */
.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange-glow);
}

.section-desc {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Wariant lewostronny — łamie symetrię strony */
.section-header--left {
    text-align: left;
}

.section-header--left h2::after {
    margin-left: 0;
    margin-right: 0;
}

.section-header--left .section-desc {
    margin: 0;
}

/* --- Services --- */
.services {
    background: var(--bg-dark);
}

/* Asymetryczna siatka: 4+2 / 2+2+2 / 6 — nie trzy równe kolumny */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    grid-column: span 2;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 32px;
    transition: transform var(--dur-med) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out),
                border-color var(--dur-med) var(--ease-out);
    overflow: hidden;
    z-index: 1;
}

.service-card--featured {
    grid-column: span 4;
    padding: 44px 40px;
}

.service-card--featured h3 {
    font-size: 1.6rem;
}

.service-card--featured p {
    max-width: 60ch;
}

/* Usługa awaryjna — inna intencja, inna forma: poziomy pasek z telefonem */
.service-card--emergency {
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-alt);
    padding: 32px 40px;
}

.service-card--emergency .service-body {
    flex: 1;
}

.service-card--emergency p {
    margin-bottom: 0;
}

.service-card--emergency .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Welding border animation */
.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: conic-gradient(
        from var(--weld-angle, 0deg),
        transparent 0%,
        transparent 60%,
        #0c7cb8 75%,
        #3db8f5 80%,
        #fff 82%,
        #3db8f5 84%,
        #0c7cb8 89%,
        transparent 95%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
    animation: none;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 6px;
    background: var(--bg-card);
    z-index: -1;
    transition: background 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover::before {
        opacity: 1;
        animation: weldRotate 8s linear infinite;
    }

    .service-card:hover::after {
        background: var(--bg-card-hover);
    }

    .service-card:hover {
        border-color: transparent;
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--orange-glow);
    }
}

@keyframes weldRotate {
    from { --weld-angle: 0deg; }
    to { --weld-angle: 360deg; }
}

@property --weld-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Ikona inline obok nagłówka — nie nad tekstem */
.service-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.service-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--orange);
}

.service-card--featured .service-icon {
    width: 38px;
    height: 38px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #fff;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    background: var(--bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-lg {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}

/* Podpis widoczny domyślnie — użytkownicy dotykowi też go widzą */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    transition: padding-bottom var(--dur-med) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .gallery-item:hover .gallery-caption {
        padding-bottom: 28px;
    }
}

.gallery-caption h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* --- About --- */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.about-experience {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--orange);
    color: #000;
    padding: 20px 28px;
    border-radius: 8px;
    text-align: center;
}

.exp-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-bottom: 36px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    font-size: 0.95rem;
}

.about-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 154, 222, 0.15);
    color: var(--orange);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    gap: 24px;
}

.contact-info .contact-card {
    flex: 1;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    transition: border-color 0.3s;
}

.contact-card:hover {
    border-color: var(--orange);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--orange);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.contact-card a,
.contact-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-card a:hover {
    color: var(--orange);
}

/* --- Sticky pasek telefoniczny (tylko mobile) ---
   Na wąskich ekranach numer z nawigacji chowa się za hamburgerem,
   więc to jedyny stale widoczny sposób na kontakt. */
.call-bar {
    display: none;
}

@media (max-width: 768px) {
    .call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--orange);
        color: #000;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
        transform: translateY(100%);
        transition: transform var(--dur-med) var(--ease-out),
                    background-color var(--dur-fast) var(--ease-out);
    }

    .call-bar.visible {
        transform: none;
    }

    .call-bar:active {
        background: var(--orange-light);
    }

    .call-bar:focus-visible {
        outline-color: #000;
        outline-offset: -5px;
    }

    .call-bar svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .call-bar strong {
        display: block;
        font-family: 'Oswald', sans-serif;
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        font-variant-numeric: tabular-nums;
    }

    .call-bar small {
        display: block;
        font-size: 0.72rem;
        opacity: 0.75;
    }

    /* stałe miejsce na pasek, żeby nigdy nie zasłonił stopki */
    body {
        padding-bottom: 76px;
    }
}

/* --- Footer: kolofon firmowy --- */
.footer {
    background: var(--bg-footer);
    padding: 56px 0 0;
    border-top: 1px solid var(--border);
}

.footer-colophon {
    max-width: 760px;
    padding-bottom: 40px;
}

.footer-colophon .logo {
    margin-bottom: 20px;
}

.footer-nap {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.footer-nap strong {
    color: var(--text-dim);
}

.footer-nap a {
    color: var(--text-dim);
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-nap a:hover {
    color: var(--orange);
}

.footer-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}

.footer-services a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-services a:hover {
    color: var(--orange);
}

.footer-services .sep {
    color: var(--text-muted);
    opacity: 0.4;
    user-select: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-credit {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-credit-logo {
    height: 18px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s;
    vertical-align: middle;
    filter: invert(1);
}

.footer-credit-logo:hover {
    opacity: 1;
}

/* --- Service card link --- */
.service-link {
    display: inline-block;
    margin-top: 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
}

.service-link:hover {
    color: var(--orange-light);
}

/* --- Service Area Section --- */
.area {
    background: var(--bg-dark);
}

.area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.area-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: 8px;
    padding: 32px 40px;
}

/* --- Schemat zasięgu dojazdu (rysunek techniczny) --- */
.area-map {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 24px 20px;
}

.area-map svg {
    width: 100%;
    height: auto;
}

.map-decor {
    fill: none;
    stroke: var(--text-muted);
    stroke-opacity: 0.35;
    stroke-width: 1;
}

.map-compass {
    fill: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
}

.map-ring {
    fill: none;
    stroke: var(--orange);
    stroke-opacity: 0.4;
    stroke-width: 1.2;
    stroke-dasharray: 5 7;
}

.map-ring-label {
    fill: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.map-links line {
    stroke: var(--orange);
    stroke-opacity: 0.28;
    stroke-width: 1;
}

.map-dot {
    fill: var(--bg-dark);
    stroke: var(--orange);
    stroke-width: 2;
}

.map-town {
    fill: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.map-home-dot {
    fill: var(--orange);
}

.map-home-halo {
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.5;
    stroke-opacity: 0.45;
    animation: mapBeacon 3s var(--ease-in-out) infinite;
}

@keyframes mapBeacon {
    0%, 100% { stroke-opacity: 0.45; }
    50%      { stroke-opacity: 0.12; }
}

.map-city {
    fill: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.map-caption {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.area-box p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.9;
}

.area-box strong {
    color: var(--text);
}

/* --- FAQ --- */
.faq {
    background: var(--bg-alt);
}

.faq-list {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.faq-item[open],
.faq-item:hover {
    border-color: var(--orange);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--orange);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item > p {
    padding: 0 24px 20px;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item a {
    color: var(--orange);
}

/* Płynne rozwijanie details (progressive enhancement — bez wsparcia otwiera się natychmiast) */
.faq-item::details-content {
    opacity: 0;
    height: 0;
    overflow: clip;
    transition: height var(--dur-med) var(--ease-out),
                opacity var(--dur-med) var(--ease-out),
                content-visibility var(--dur-med) allow-discrete;
}

.faq-item[open]::details-content {
    opacity: 1;
    height: auto;
}

/* --- Subpages --- */
.subpage-hero {
    padding: 160px 0 64px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border);
}

.subpage-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: #fff;
    margin: 16px 0 24px;
}

.subpage-lead {
    max-width: 820px;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.subpage-lead strong {
    color: var(--text);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-dim);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb span {
    margin: 0 4px;
}

.subpage-content > .container > section {
    max-width: 820px;
    margin: 0 auto 64px;
}

.subpage-content > .container > section:last-child {
    margin-bottom: 0;
}

.subpage-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 24px;
}

.subpage-content h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 14px;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange-glow);
}

.subpage-cta h2::after {
    display: none;
}

.subpage-content p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 16px;
}

.subpage-content p strong {
    color: var(--text);
}

.subpage-content p a {
    color: var(--orange);
}

.subpage-content p a:hover {
    color: var(--orange-light);
}

.steps-list {
    list-style: none;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: baseline;
    gap: 16px;
    color: var(--text-dim);
    line-height: 1.7;
}

.steps-list li::before {
    content: counter(steps);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 154, 222, 0.15);
    color: var(--orange);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.steps-list li strong {
    color: var(--text);
}

.subpage-cta {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 48px 32px;
}

.subpage-cta h2 {
    margin-bottom: 12px;
}

.subpage-cta p {
    margin-bottom: 28px;
}

/* --- Reveal Animations ---
   Keyframes zamiast transition: wejście nie koliduje z transition hoverów,
   a stagger (--stagger ustawiany w main.js) znika po pierwszym odtworzeniu. */
.reveal {
    opacity: 0;
}

.reveal.revealed {
    animation: fadeUp var(--dur-reveal) var(--ease-out) both;
    animation-delay: var(--stagger, 0s);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* --- „Spawanie" linii akcentowej ---
   Linia kładzie się od lewej jak spoina, gdy nagłówek wejdzie w kadr.
   Stan startowy tylko przy działającym JS — bez niego linia zostaje pełna. */
@media (scripting: enabled) {
    .section-header h2::after,
    .subpage-content h2::after {
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 320ms var(--ease-out);
    }

    .section-header h2.welded::after,
    .subpage-content h2.welded::after {
        transform: scaleX(1);
    }
}

/* --- Hero: ruch sterowany scrollem, bez JS (progresywne ulepszenie) --- */
@supports (animation-timeline: scroll()) {
    .hero-bg img {
        animation: heroDrift linear both;
        animation-timeline: scroll(root);
        animation-range: 0 100vh;
    }

    .hero-scroll {
        animation: heroIndicatorFade linear both;
        animation-timeline: scroll(root);
        animation-range: 0 30vh;
    }
}

@keyframes heroDrift {
    to {
        transform: translateY(8%) scale(1.06);
    }
}

@keyframes heroIndicatorFade {
    to {
        opacity: 0;
    }
}

/* --- Reduced motion: mniej i łagodniej, nie zero --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section-header h2::after,
    .subpage-content h2::after {
        transform: none;
        transition: none;
    }

    .hero-bg img,
    .hero-scroll {
        animation: none;
    }

    .call-bar {
        transition: none;
    }

    .map-home-halo {
        animation: none;
    }

    .reveal.revealed {
        animation: fadeOnly 150ms ease-out both;
        animation-delay: 0s;
    }

    @keyframes fadeOnly {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .scroll-arrow {
        animation: none;
    }

    .service-card:hover::before {
        animation: none;
        opacity: 0;
    }

    .service-card:hover,
    .gallery-item:hover img,
    .btn:active {
        transform: none;
    }

    .faq-item::details-content {
        transition: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .service-card,
    .service-card--featured {
        grid-column: span 3;
    }

    .service-card--emergency {
        grid-column: span 6;
    }

    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .section {
        padding: 72px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .area-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* SVG skaluje się przez viewBox, więc etykiety muszą urosnąć w jednostkach rysunku */
    .map-town { font-size: 21px; }
    .map-city { font-size: 26px; }
    .map-ring-label { font-size: 15px; }
    .map-compass { font-size: 18px; }

    .gallery-item-lg {
        grid-row: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        height: 300px;
    }

    .subpage-hero {
        padding: 120px 0 48px;
    }

    .area-box {
        padding: 24px;
    }
}

/* Karty usług trzymają dwie kolumny aż do wąskich telefonów —
   na tablecie w pionie (768px) jedna kolumna marnowałaby szerokość */
@media (max-width: 600px) {
    .service-card,
    .service-card--featured,
    .service-card--emergency {
        grid-column: span 6;
    }

    .service-card--emergency {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 28px 24px;
    }

    .contact-info {
        flex-direction: column;
    }
}

/* Cytat właściciela w sekcji O nas */
.about-quote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--orange);
}

.about-quote p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 8px;
}

.about-quote cite {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-muted);
}
