* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: 110px;

    display: flex;
    align-items: stretch;

    background: #ffffff;

    border-bottom: 4px solid #2f5cab;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================
   LOGO
========================================= */

.logo {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    padding: 0 30px;
}


.logo img {
    display: block;

    width: 300px;
    max-width: 100%;
    max-height: 80px;

    object-fit: contain;
}


/* =========================================
   MENU DESKTOP
========================================= */

.nav-buttons {
    display: flex;
    align-items: stretch;

    margin-left: auto;
}


.nav-button {
    position: relative;

    width: 180px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    border-left:
        1px solid rgba(47, 92, 171, 0.22);

    color: #2f5cab;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.5px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}


.nav-button:hover {
    z-index: 2;

    background: #2f5cab;

    color: #ffffff;

    box-shadow:
        0 0 20px rgba(47, 92, 171, 0.35),
        0 0 40px rgba(47, 92, 171, 0.18);
}


/* CZERWONA LINIA */

.nav-button::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: #e00000;

    transform: scaleX(0);

    transition: transform 0.3s ease;
}


.nav-button:hover::before {
    transform: scaleX(1);
}


/* =========================================
   HAMBURGER - DOMYŚLNIE UKRYTY
========================================= */

.menu-toggle {
    display: none;

    appearance: none;

    width: 58px;
    height: 58px;

    padding: 0 14px;

    background: #2f5cab;

    border: none;

    cursor: pointer;
}


.menu-toggle span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 6px 0;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================
   HOVER
========================= */

.nav-button:hover {
    background: #2f5cab;

    color: #ffffff;

    box-shadow:
        0 0 15px rgba(47, 92, 171, 0.45),
        0 0 35px rgba(47, 92, 171, 0.25);

    z-index: 2;
}


/* pokazanie czerwonego paska */

.nav-button:hover::before {
    transform: scaleX(1);
}


/* przejazd światła po przycisku */

.nav-button:hover::after {
    left: 220px;
}


/* tekst nad efektem światła */

.nav-button span {
    position: relative;
    z-index: 2;
}


/* main */


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    width: 100%;
    min-height: calc(100vh - 110px);

    display: flex;
    align-items: center;

    padding: 70px 7%;

    background: #ffffff;

    overflow: hidden;
}


.hero-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(520px, 1.1fr);

    gap: 60px;

    align-items: center;
}


/* =========================================
   LEWA STRONA
========================================= */

.hero-content {
    position: relative;
    z-index: 3;

    min-width: 0;
    max-width: 100%;
}


.hero h1 {
    width: 100%;
    max-width: 720px;

    margin-bottom: 32px;

    color: #202020;

    font-size: clamp(46px, 4.3vw, 72px);
    font-weight: 800;

    line-height: 1.03;

    letter-spacing: -3px;
}




.word-highlight {
    display: block;

    max-width: 100%;

    font-size: 0.88em;

    letter-spacing: -3px;
}



.blue-word {
    color: #2f5cab;
}


.red-word {
    color: #e00000;
}


/* =========================================
   OPIS
========================================= */

.hero-description {
    max-width: 760px;

    padding-left: 22px;

    border-left: 3px solid rgba(47, 92, 171, 0.22);
}


.hero-description p {
    margin-bottom: 12px;

    color: #555555;

    font-size: 18px;

    line-height: 1.75;
}


.hero-description p:last-child {
    margin-bottom: 0;
}


/* =========================================
   PRZYCISKI
========================================= */

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 38px;
}


.hero-btn {
    min-width: 195px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 30px;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.7px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.primary-btn {
    background: #2f5cab;

    color: #ffffff;

    border: 2px solid #2f5cab;
}


.primary-btn:hover {
    background: #244b91;

    border-color: #244b91;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(47, 92, 171, 0.28),
        0 0 25px rgba(47, 92, 171, 0.14);
}


.secondary-btn {
    background: #ffffff;

    color: #e00000;

    border: 2px solid #e00000;
}


.secondary-btn:hover {
    background: #e00000;

    color: #ffffff;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(224, 0, 0, 0.22);
}


/* =========================================
   GALERIA
========================================= */

.hero-gallery {
    position: relative;

    min-width: 0;
}


.hero-slider {
    position: relative;

    width: 100%;
    height: 590px;

    background: #152e58;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(20, 45, 90, 0.16);
}


/* =========================================
   TRACK
========================================= */

.hero-slider-track {
    width: 100%;
    height: 100%;

    display: flex;

    transition:
        transform 0.85s cubic-bezier(
            0.77,
            0,
            0.18,
            1
        );

    will-change: transform;
}


/* =========================================
   SLAJD
========================================= */

.hero-slide {
    position: relative;

    min-width: 100%;
    height: 100%;

    overflow: hidden;
}


.hero-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition: transform 6s ease;
}


/* DELIKATNY ZOOM */

.hero-slide.active img {
    transform: scale(1.055);
}


/* =========================================
   OVERLAY
========================================= */

.hero-gallery-overlay {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(15, 35, 70, 0.05) 35%,
            rgba(15, 35, 70, 0.52) 100%
        );

    z-index: 2;
}


/* =========================================
   LICZNIK
========================================= */

.hero-slide-counter {
    position: absolute;

    z-index: 5;

    top: 28px;
    left: 30px;

    min-width: 115px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 15px;

    background: rgba(255, 255, 255, 0.94);

    color: #2f5cab;

    font-size: 13px;
    font-weight: 900;

    backdrop-filter: blur(8px);
}


.counter-line {
    width: 22px;
    height: 2px;

    background: #e00000;
}


/* =========================================
   STRZAŁKI
========================================= */

.hero-slider-arrows {
    position: absolute;

    z-index: 5;

    right: 25px;
    bottom: 25px;

    display: flex;

    gap: 2px;
}


.hero-slider-arrow {
    appearance: none;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.94);

    border: none;

    color: #2f5cab;

    font-size: 23px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.hero-slider-arrow:hover {
    position: relative;
    z-index: 2;

    background: #2f5cab;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(47, 92, 171, 0.35);
}


/* =========================================
   KROPKI
========================================= */

.hero-slider-dots {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 18px;
}


.hero-slider-dot {
    appearance: none;

    width: 25px;
    height: 5px;

    padding: 0;

    background: #d7dce4;

    border: none;

    cursor: pointer;

    transition:
        width 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


.hero-slider-dot.active {
    width: 55px;

    background: #2f5cab;

    box-shadow:
        0 0 15px rgba(47, 92, 171, 0.25);
}


/* =========================================
   PODPIS
========================================= */

.hero-gallery-caption {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 14px;

    color: #777777;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


.gallery-caption-line {
    width: 35px;
    height: 3px;

    background: #e00000;
}


/* =========================================
   DEKORACJA TŁA
========================================= */

.hero-decoration {
    position: absolute;

    width: 650px;
    height: 900px;

    top: -150px;
    right: -350px;

    background:
        linear-gradient(
            135deg,
            rgba(47, 92, 171, 0.075),
            rgba(224, 0, 0, 0.02)
        );

    transform: skewX(-12deg);
}


/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1350px) {

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero h1 {
        max-width: 850px;
    }

    .hero-gallery {
        width: 100%;
        max-width: 1100px;
    }
}

@media (max-width: 700px) {

    .hero {
        padding: 70px 25px;
    }


    .hero-container {
        gap: 45px;
    }


    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);

        letter-spacing: -2px;
    }


    .hero-description p {
        font-size: 16px;
    }


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


    .hero-btn {
        width: 100%;
    }


    .hero-slider {
        height: 480px;
    }


    .hero-slide-counter {
        top: 18px;
        left: 18px;
    }


    .hero-slider-arrows {
        right: 18px;
        bottom: 18px;
    }


    .hero-slider-arrow {
        width: 50px;
        height: 50px;
    }


    .hero-slider-dot {
        width: 16px;
    }


    .hero-slider-dot.active {
        width: 38px;
    }

}
/* =========================================
   PŁYNNE PRZEWIJANIE
========================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================
   SEKCJA O FIRMIE
========================================= */

.about-section {
    position: relative;

    width: 100%;

    padding: 110px 7%;

    background: #f7f8fa;

    overflow: hidden;

    scroll-margin-top: 110px;
}


.about-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================
   NAGŁÓWEK SEKCJI
========================================= */

.about-header {
    display: flex;
    align-items: flex-end;
    gap: 25px;

    margin-bottom: 55px;
}


.about-number {
    color: rgba(47, 92, 171, 0.12);

    font-size: 100px;
    font-weight: 900;
    line-height: 0.8;

    letter-spacing: -7px;
}


.about-title-wrapper {
    position: relative;
}


.about-small-title {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.about-title-wrapper h2 {
    color: #202020;

    font-size: clamp(48px, 5vw, 75px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -3px;
}


.about-title-wrapper h2 span {
    color: #2f5cab;
}


/* CZERWONY ELEMENT POD NAGŁÓWKIEM */

.about-title-wrapper::after {
    content: "";

    display: block;

    width: 80px;
    height: 5px;

    margin-top: 18px;

    background: #e00000;
}


/* =========================================
   GŁÓWNA TREŚĆ
========================================= */

.about-content {
    display: grid;

    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.75fr);

    gap: 70px;

    align-items: stretch;

    margin-bottom: 110px;
}


/* TEKST */

.about-main-text {
    max-width: 950px;
}


.about-main-text p {
    margin-bottom: 22px;

    color: #555555;

    font-size: 18px;
    line-height: 1.8;
}


.about-main-text p:last-child {
    margin-bottom: 0;
}


.about-main-text strong {
    color: #2f5cab;

    font-weight: 800;
}


/* PIERWSZY AKAPIT */

.about-main-text .about-lead {
    color: #282828;

    font-size: 23px;
    font-weight: 500;

    line-height: 1.65;
}


/* =========================================
   DUŻY KAFEL 1996
========================================= */

.about-highlight {
    position: relative;

    min-height: 420px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px;

    background: #2f5cab;

    color: #ffffff;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(47, 92, 171, 0.18);
}


/* DEKORACYJNY ELEMENT W TLE */

.about-highlight::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -100px;
    top: -100px;

    border: 35px solid rgba(255, 255, 255, 0.07);

    transform: rotate(45deg);
}


.highlight-year {
    position: relative;
    z-index: 2;

    color: #ffffff;

    font-size: clamp(70px, 7vw, 110px);
    font-weight: 900;

    line-height: 1;

    letter-spacing: -6px;
}


.highlight-label {
    position: relative;
    z-index: 2;

    margin-top: 12px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 21px;
    font-weight: 700;

    line-height: 1.4;
}


.highlight-line {
    position: relative;
    z-index: 2;

    width: 70px;
    height: 5px;

    margin: 28px 0;

    background: #e00000;
}


.about-highlight p {
    position: relative;
    z-index: 2;

    max-width: 300px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   DLACZEGO MY
========================================= */

.why-us {
    margin-top: 20px;
}


.why-us-header {
    margin-bottom: 45px;
}


.why-small-title {
    display: block;

    margin-bottom: 7px;

    color: #777777;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.why-us-header h3 {
    color: #202020;

    font-size: clamp(40px, 4vw, 60px);
    font-weight: 800;

    letter-spacing: -2px;
}


.why-us-header h3 span {
    color: #e00000;
}


/* =========================================
   SIATKA KAFELKÓW
========================================= */

.why-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 2px;

    background: #d9dfe8;
}


/* PODSTAWOWY KAFEL */

.why-card {
    min-height: 270px;

    padding: 38px;

    background: #ffffff;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


.why-card:hover {
    position: relative;
    z-index: 2;

    background: #2f5cab;

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(47, 92, 171, 0.28),
        0 0 30px rgba(47, 92, 171, 0.16);
}


/* LICZBA */

.why-number {
    display: block;

    margin-bottom: 25px;

    color: #2f5cab;

    font-size: 42px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -2px;

    transition: color 0.3s ease;
}


.why-card h4 {
    margin-bottom: 15px;

    color: #242424;

    font-size: 20px;
    font-weight: 800;

    transition: color 0.3s ease;
}


.why-card p {
    color: #666666;

    font-size: 15px;
    line-height: 1.7;

    transition: color 0.3s ease;
}


/* HOVER KAFELKÓW */

.why-card:hover .why-number,
.why-card:hover h4 {
    color: #ffffff;
}


.why-card:hover p {
    color: rgba(255, 255, 255, 0.82);
}


/* =========================================
   SZEROKIE KAFLE
========================================= */

.why-card-wide {
    grid-column: span 2;

    min-height: 190px;

    display: flex;
    align-items: flex-start;
    gap: 25px;
}


.why-icon {
    flex-shrink: 0;

    color: #e00000;

    font-size: 24px;

    transition: color 0.3s ease;
}


.why-card-wide:hover .why-icon {
    color: #ffffff;
}


/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1100px) {

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlight {
        min-height: 350px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .about-section {
        padding: 80px 25px;
    }

    .about-header {
        gap: 12px;
    }

    .about-number {
        font-size: 65px;
    }

    .about-content {
        gap: 40px;
        margin-bottom: 75px;
    }

    .about-main-text .about-lead {
        font-size: 20px;
    }

    .about-main-text p {
        font-size: 16px;
    }

    .about-highlight {
        padding: 35px;
    }

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

    .why-card-wide {
        grid-column: span 1;
    }
}

/* =========================================
   SEKCJA NASZE USŁUGI
========================================= */

.services-section {
    width: 100%;

    padding: 110px 7%;

    background: #ffffff;

    scroll-margin-top: 110px;
}


.services-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================
   NAGŁÓWEK
========================================= */

.services-header {
    display: flex;
    align-items: flex-end;
    gap: 25px;

    margin-bottom: 35px;
}


.services-number {
    color: rgba(47, 92, 171, 0.12);

    font-size: 100px;
    font-weight: 900;
    line-height: 0.8;

    letter-spacing: -7px;
}


.services-title-wrapper {
    position: relative;
}


.services-small-title {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.services-title-wrapper h2 {
    color: #202020;

    font-size: clamp(48px, 5vw, 75px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -3px;
}


.services-title-wrapper h2 span {
    color: #2f5cab;
}


.services-title-wrapper::after {
    content: "";

    display: block;

    width: 80px;
    height: 5px;

    margin-top: 18px;

    background: #e00000;
}


/* =========================================
   WPROWADZENIE
========================================= */

.services-intro {
    max-width: 850px;

    margin-bottom: 55px;
}


.services-intro p {
    color: #555555;

    font-size: 20px;
    line-height: 1.7;
}


/* =========================================
   SIATKA USŁUG
========================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 2px;

    background: #d9dfe8;
}


/* =========================================
   KAFEL USŁUGI
========================================= */

.service-card {
    position: relative;

    min-height: 360px;

    display: flex;
    flex-direction: column;

    padding: 40px;

    background: #f9fafb;

    color: inherit;
    text-decoration: none;

    overflow: hidden;

    transition:
        background 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* DELIKATNY KSZTAŁT W TLE */

.service-card::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -120px;
    right: -120px;

    border: 25px solid rgba(47, 92, 171, 0.05);

    transform: rotate(45deg);

    transition:
        border-color 0.35s ease,
        transform 0.5s ease;
}


/* =========================================
   NUMER
========================================= */

.service-card-number {
    position: relative;
    z-index: 2;

    display: block;

    margin-bottom: 60px;

    color: #e00000;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1px;

    transition: color 0.35s ease;
}


/* =========================================
   TEKST KAFELKA
========================================= */

.service-card-content {
    position: relative;
    z-index: 2;

    padding-right: 25px;
}


.service-card h3 {
    max-width: 370px;

    margin-bottom: 18px;

    color: #252525;

    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;

    transition: color 0.35s ease;
}


.service-card p {
    max-width: 400px;

    color: #666666;

    font-size: 15px;
    line-height: 1.7;

    transition: color 0.35s ease;
}


/* =========================================
   STRZAŁKA
========================================= */

.service-arrow {
    position: absolute;

    right: 30px;
    bottom: 30px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: 2px solid #2f5cab;

    color: #2f5cab;

    font-size: 25px;
    font-weight: 400;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* =========================================
   HOVER - CAŁY KAFEL SIĘ ŚWIECI
========================================= */

.service-card:hover {
    z-index: 3;

    background: #2f5cab;

    transform: translateY(-6px);

    box-shadow:
        0 15px 40px rgba(47, 92, 171, 0.32),
        0 0 35px rgba(47, 92, 171, 0.2);
}


.service-card:hover::before {
    border-color: rgba(255, 255, 255, 0.08);

    transform: rotate(60deg);
}


.service-card:hover .service-card-number {
    color: #ff3333;
}


.service-card:hover h3 {
    color: #ffffff;
}


.service-card:hover p {
    color: rgba(255, 255, 255, 0.82);
}


.service-card:hover .service-arrow {
    background: #e00000;

    border-color: #e00000;

    color: #ffffff;

    transform: translateX(5px);

    box-shadow:
        0 0 20px rgba(224, 0, 0, 0.3);
}


/* =========================================
   OSTATNI KAFEL
========================================= */

.service-card-last {
    grid-column: span 3;

    min-height: 260px;
}


.service-card-last .service-card-number {
    margin-bottom: 35px;
}


.service-card-last .service-card-content {
    max-width: 800px;
}


/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1100px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-last {
        grid-column: span 2;
    }

}


@media (max-width: 700px) {

    .services-section {
        padding: 80px 25px;
    }

    .services-header {
        gap: 12px;
    }

    .services-number {
        font-size: 65px;
    }

    .services-intro p {
        font-size: 17px;
    }

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

    .service-card {
        min-height: 330px;

        padding: 32px;
    }

    .service-card-last {
        grid-column: span 1;
    }

}
/* =========================================
   SEKCJA PARTNERZY
========================================= */

.partners-section {
    position: relative;

    width: 100%;

    padding: 110px 7%;

    background: #f7f8fa;

    overflow: hidden;

    scroll-margin-top: 110px;
}


.partners-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================
   NAGŁÓWEK
========================================= */

.partners-header {
    display: flex;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 35px;
}


.partners-number {
    color: rgba(47, 92, 171, 0.12);

    font-size: 100px;
    font-weight: 900;
    line-height: 0.8;

    letter-spacing: -7px;
}


.partners-title-wrapper {
    position: relative;
}


.partners-small-title {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.partners-title-wrapper h2 {
    color: #202020;

    font-size: clamp(48px, 5vw, 75px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -3px;
}


.partners-title-wrapper h2 span {
    color: #2f5cab;
}


.partners-title-wrapper::after {
    content: "";

    display: block;

    width: 80px;
    height: 5px;

    margin-top: 18px;

    background: #e00000;
}


/* =========================================
   OPIS
========================================= */

.partners-intro {
    max-width: 850px;

    margin-bottom: 55px;
}


.partners-intro p {
    color: #555555;

    font-size: 20px;
    line-height: 1.7;
}


/* =========================================
   GRID
========================================= */

.partners-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}


/* =========================================
   KAFEL PARTNERA
========================================= */

.partner-card {
    position: relative;

    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px;

    background: #ffffff;

    border: 1px solid #e3e6eb;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}


/* LINIA NA DOLE */

.partner-card::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #2f5cab 0%,
        #2f5cab 75%,
        #e00000 75%,
        #e00000 100%
    );

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}


/* =========================================
   LOGO
========================================= */

.partner-card img {
    display: block;

    width: 100%;
    max-width: 250px;
    max-height: 115px;

    object-fit: contain;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}



/* =========================================
   HOVER
========================================= */

.partner-card:hover {
    z-index: 3;

    transform: translateY(-7px);

    border-color: rgba(47, 92, 171, 0.25);

    box-shadow:
        0 18px 45px rgba(47, 92, 171, 0.18),
        0 0 30px rgba(47, 92, 171, 0.08);
}


.partner-card:hover::before {
    transform: scaleX(1);
}


.partner-card:hover img {
    transform: scale(1.07);
}


/* =========================================
   INDYWIDUALNE DOPASOWANIE LOGO
========================================= */

/* PGE */

.partner-card:nth-child(1) img {
    max-width: 230px;
    max-height: 130px;
}


/* TAURON */

.partner-card:nth-child(2) img {
    max-width: 400px;
    max-height: 155px;
}


/* NEXERA */

.partner-card:nth-child(3) img {
    max-width: 270px;
}


/* ZPUE */

.partner-card:nth-child(4) img {
    max-width: 190px;
    max-height: 140px;
}


/* JAKMET */

.partner-card:nth-child(5) img {
    max-width: 280px;
}


/* VOLTIM */

.partner-card:nth-child(6) img {
    max-width: 230px;
}


/* MEWAT */

.partner-card:nth-child(7) img {
    max-width: 230px;
}


/* KACZMAREK */

.partner-card:nth-child(8) img {
    max-width: 285px;
}


/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1100px) {

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .partners-section {
        padding: 80px 25px;
    }


    .partners-header {
        gap: 12px;
    }


    .partners-number {
        font-size: 65px;
    }


    .partners-intro p {
        font-size: 17px;
    }


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


    .partner-card {
        min-height: 190px;
    }

}
/* =========================================
   SEKCJA OBSZAR DZIAŁANIA
========================================= */

/* =========================================
   OBSZAR DZIAŁANIA
========================================= */

/* =========================================
   OBSZAR DZIAŁANIA
========================================= */

.area-section {
    position: relative;

    width: 100%;

    padding: 110px 7%;

    background: #ffffff;

    overflow: hidden;

    scroll-margin-top: 110px;
}


.area-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================
   NAGŁÓWEK
========================================= */

.area-header {
    display: flex;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 65px;
}


.area-number {
    color: rgba(47, 92, 171, 0.12);

    font-size: 100px;
    font-weight: 900;

    line-height: 0.8;

    letter-spacing: -7px;
}


.area-title-wrapper {
    position: relative;
}


.area-small-title {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.area-title-wrapper h2 {
    color: #202020;

    font-size: clamp(48px, 5vw, 75px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -3px;
}


.area-title-wrapper h2 span {
    color: #2f5cab;
}


.area-title-wrapper::after {
    content: "";

    display: block;

    width: 80px;
    height: 5px;

    margin-top: 18px;

    background: #e00000;
}


/* =========================================
   GŁÓWNY UKŁAD
========================================= */

.area-main {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(500px, 1.15fr);

    gap: 80px;

    align-items: center;

    margin-bottom: 55px;
}


/* =========================================
   LEWA STRONA
========================================= */

.area-content {
    max-width: 730px;
}


.area-lead {
    margin-bottom: 25px;

    color: #282828;

    font-size: 24px;
    font-weight: 500;

    line-height: 1.65;
}


.area-lead strong {
    color: #2f5cab;

    font-weight: 800;
}


.area-description {
    margin-bottom: 42px;

    color: #606060;

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================
   WYBRANY REGION
========================================= */

.active-region-box {
    position: relative;

    max-width: 570px;

    min-height: 180px;

    padding: 32px 35px;

    background: #f7f8fa;

    border-left: 5px solid #e00000;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.active-region-box::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    top: -95px;
    right: -95px;

    border: 20px solid rgba(47, 92, 171, 0.07);

    transform: rotate(45deg);
}


.active-region-box:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 40px rgba(47, 92, 171, 0.12);
}


.active-region-label {
    position: relative;
    z-index: 2;

    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.active-region-name {
    position: relative;
    z-index: 2;

    margin-bottom: 10px;

    color: #2f5cab;

    font-size: 34px;
    font-weight: 900;

    transition: opacity 0.18s ease;
}


.active-region-box p {
    position: relative;
    z-index: 2;

    max-width: 470px;

    color: #666666;

    font-size: 15px;

    line-height: 1.7;

    transition: opacity 0.18s ease;
}


/* =========================================
   PANEL MAPY
========================================= */

.poland-map-wrapper {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 45px 85px;

    background:
        linear-gradient(
            135deg,
            #f4f7fb 0%,
            #ffffff 70%
        );

    border: 1px solid #e1e6ed;

    overflow: hidden;

    box-shadow:
        0 20px 55px rgba(47, 92, 171, 0.08);
}


/* DUŻY NAPIS W TLE */

.map-background-text {
    position: absolute;

    top: 20px;
    left: 30px;

    color: rgba(47, 92, 171, 0.045);

    font-size: clamp(90px, 10vw, 160px);
    font-weight: 900;

    letter-spacing: -8px;

    line-height: 1;

    user-select: none;
}


/* =========================================
   MAPA POLSKI
========================================= */

.poland-map {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 590px;
}


.poland-map object {
    display: block;

    width: 100%;
    height: 480px;
}


/* =========================================
   LEGENDA
========================================= */

.map-legend {
    position: absolute;

    z-index: 3;

    left: 35px;
    bottom: 28px;

    display: flex;
    flex-wrap: wrap;

    gap: 22px;
}


.legend-item {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #656565;

    font-size: 12px;
    font-weight: 700;
}


.legend-color {
    display: block;

    width: 15px;
    height: 15px;
}


.legend-main {
    background: #2f5cab;

    box-shadow:
        0 0 12px rgba(47, 92, 171, 0.25);
}


.legend-neighbour {
    background: #dbe5f2;
}


/* =========================================
   KAFLE REGIONÓW
========================================= */

.regions-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 2px;

    background: #dfe3e9;
}


/* RESET BUTTONA */

.region-card {
    appearance: none;

    position: relative;

    min-height: 195px;

    display: flex;
    align-items: flex-start;

    gap: 25px;

    padding: 36px;

    background: #f9fafb;

    border: none;

    color: inherit;

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    transition:
        background 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* CZERWONA LINIA */

.region-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 5px;

    background: #e00000;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}


.region-number {
    flex-shrink: 0;

    color: #e00000;

    font-size: 15px;
    font-weight: 900;

    transition: color 0.35s ease;
}


.region-card h3 {
    margin-bottom: 10px;

    color: #252525;

    font-size: 25px;
    font-weight: 800;

    transition: color 0.35s ease;
}


.region-card p {
    color: #666666;

    font-size: 14px;

    line-height: 1.65;

    transition: color 0.35s ease;
}


/* =========================================
   AKTYWNY KAFEL / HOVER
========================================= */

.region-card:hover,
.region-card.active {
    z-index: 2;

    background: #2f5cab;

    transform: translateY(-6px);

    box-shadow:
        0 16px 38px rgba(47, 92, 171, 0.25),
        0 0 28px rgba(47, 92, 171, 0.12);
}


.region-card:hover::after,
.region-card.active::after {
    transform: scaleX(1);
}


.region-card:hover h3,
.region-card.active h3 {
    color: #ffffff;
}


.region-card:hover p,
.region-card.active p {
    color: rgba(255, 255, 255, 0.78);
}


.region-card:hover .region-number,
.region-card.active .region-number {
    color: #ff4141;
}


/* =========================================
   WOJEWÓDZTWA OŚCIENNE
========================================= */

.neighbouring-regions {
    position: relative;

    display: flex;
    align-items: center;

    gap: 30px;

    margin-top: 16px;

    padding: 36px 40px;

    background: #f7f8fa;

    border: 1px solid #e2e6ec;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.neighbouring-regions::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -130px;
    right: -100px;

    border: 25px solid rgba(47, 92, 171, 0.05);

    transform: rotate(45deg);
}


.neighbouring-regions:hover {
    transform: translateY(-4px);

    border-color: rgba(47, 92, 171, 0.25);

    box-shadow:
        0 15px 35px rgba(47, 92, 171, 0.1);
}


.neighbouring-plus {
    flex-shrink: 0;

    color: #e00000;

    font-size: 58px;
    font-weight: 300;

    line-height: 1;
}


.neighbouring-label {
    display: block;

    margin-bottom: 5px;

    color: #777777;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


.neighbouring-regions h3 {
    margin-bottom: 8px;

    color: #242424;

    font-size: 23px;
    font-weight: 800;
}


.neighbouring-regions p {
    max-width: 900px;

    color: #666666;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1100px) {

    .area-main {
        grid-template-columns: 1fr;

        gap: 50px;
    }


  

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

}


@media (max-width: 650px) {

    .area-section {
        padding: 80px 25px;
    }


    .area-header {
        gap: 12px;

        margin-bottom: 45px;
    }


    .area-number {
        font-size: 65px;
    }


    .area-lead {
        font-size: 20px;
    }


    .area-main {
        gap: 40px;
    }


   



    .map-background-text {
        font-size: 65px;

        letter-spacing: -4px;
    }


    .map-legend {
        left: 20px;
        bottom: 20px;

        flex-direction: column;

        gap: 8px;
    }


    .region-card {
        min-height: 175px;

        padding: 28px;
    }


    .neighbouring-regions {
        align-items: flex-start;

        padding: 28px;
    }

}
/* =========================================
   SEKCJA KONTAKT
========================================= */

.contact-section {
    position: relative;

    width: 100%;

    padding: 110px 7%;

    background: #f7f8fa;

    overflow: hidden;

    scroll-margin-top: 110px;
}


.contact-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}


/* =========================================
   NAGŁÓWEK
========================================= */

.contact-header {
    display: flex;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 65px;
}


.contact-number {
    color: rgba(47, 92, 171, 0.12);

    font-size: 100px;
    font-weight: 900;
    line-height: 0.8;

    letter-spacing: -7px;
}


.contact-title-wrapper {
    position: relative;
}


.contact-small-title {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.contact-title-wrapper h2 {
    color: #202020;

    font-size: clamp(48px, 5vw, 75px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -3px;
}


.contact-title-wrapper h2 span {
    color: #2f5cab;
}


.contact-title-wrapper::after {
    content: "";

    display: block;

    width: 80px;
    height: 5px;

    margin-top: 18px;

    background: #e00000;
}


/* =========================================
   GŁÓWNY UKŁAD
========================================= */

.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(330px, 0.75fr)
        minmax(0, 1.35fr);

    gap: 20px;

    align-items: stretch;
}


/* =========================================
   LEWY PANEL KONTAKTOWY
========================================= */

.contact-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    background: #2f5cab;

    color: #ffffff;

    overflow: hidden;

    box-shadow:
        0 20px 55px rgba(47, 92, 171, 0.18);
}


/* =========================================
   DANE FIRMY
========================================= */

.contact-company {
    position: relative;

    padding: 48px 42px 42px;

    background:
        linear-gradient(
            145deg,
            #2f5cab 0%,
            #284f96 100%
        );

    overflow: hidden;
}


.contact-company::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    top: -180px;
    right: -160px;

    border: 38px solid rgba(255, 255, 255, 0.055);

    transform: rotate(45deg);
}


.contact-info-label {
    position: relative;
    z-index: 2;

    display: block;

    margin-bottom: 15px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.contact-company h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 30px;

    color: #ffffff;

    font-size: clamp(32px, 3vw, 45px);
    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -1.5px;
}


/* =========================================
   ADRES I DANE REJESTROWE
========================================= */

.company-details {
    position: relative;
    z-index: 2;
}


.company-name {
    display: block;

    max-width: 100%;

    margin-bottom: 12px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.45;
}


.company-details address {
    margin: 0 0 25px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 15px;
    font-style: normal;

    line-height: 1.7;
}


.company-registers {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;
}


.company-registers div {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 10px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);
}


.company-registers span {
    flex-shrink: 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.company-registers strong {
    min-width: 0;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    text-align: right;

    overflow-wrap: anywhere;
}


/* =========================================
   DZIAŁY KONTAKTOWE
========================================= */

.contact-department {
    min-width: 0;

    display: grid;

    grid-template-columns: 38px minmax(0, 1fr);

    gap: 17px;

    padding: 25px 38px;

    background:
        rgba(255, 255, 255, 0.025);

    border-top:
        1px solid rgba(255, 255, 255, 0.13);

    transition:
        background 0.3s ease,
        padding-left 0.3s ease;
}


.contact-department:hover {
    background:
        rgba(255, 255, 255, 0.085);

    padding-left: 44px;
}


.department-number {
    padding-top: 3px;

    color: #ff4747;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1px;
}


.department-content {
    min-width: 0;
}


.department-content h4 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================
   TELEFON I EMAIL
========================================= */

.department-link {
    min-width: 0;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    width: fit-content;
    max-width: 100%;

    margin-top: 7px;

    color: rgba(255, 255, 255, 0.78);

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.department-link:hover {
    color: #ffffff;

    transform: translateX(4px);
}


.department-icon {
    flex-shrink: 0;

    width: 18px;

    color: #ff4b4b;

    font-size: 14px;

    text-align: center;
}


.department-link > span:last-child {
    min-width: 0;

    overflow-wrap: anywhere;
}


.department-link small {
    display: inline;

    margin-left: 5px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
    font-weight: 600;
}


/* =========================================
   GODZINY PRACY
========================================= */

.contact-hours {
    margin-top: auto;

    padding: 30px 38px;

    background: #244a8d;

    border-top: 5px solid #e00000;
}


.hours-label {
    display: block;

    margin-bottom: 14px;

    color: rgba(255, 255, 255, 0.52);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.hours-row > div {
    min-width: 0;
}


.hours-row > div strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;
}


.hours-row > div span {
    color: rgba(255, 255, 255, 0.6);

    font-size: 12px;
}


.hours-time {
    flex-shrink: 0;

    color: #ffffff;

    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.5px;
}
/* =========================================
   FORMULARZ
========================================= */

.contact-form-wrapper {
    padding: 55px;

    background: #ffffff;

    border: 1px solid #e1e6ed;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.06);
}


.contact-form-heading {
    max-width: 700px;

    margin-bottom: 40px;
}


.contact-form-heading > span {
    display: block;

    margin-bottom: 8px;

    color: #e00000;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.contact-form-heading h3 {
    margin-bottom: 13px;

    color: #222222;

    font-size: clamp(30px, 3vw, 45px);
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1.5px;
}


.contact-form-heading p {
    color: #666666;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   GRID FORMULARZA
========================================= */

.contact-form {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px 20px;
}


.form-group {
    position: relative;

    min-width: 0;
}


.form-group-full {
    grid-column: 1 / -1;
}


/* =========================================
   LABEL
========================================= */

.form-group label:not(.consent-wrapper) {
    display: block;

    margin-bottom: 9px;

    color: #333333;

    font-size: 13px;
    font-weight: 800;
}


.form-group label > span:not(.optional) {
    color: #e00000;
}


.optional {
    margin-left: 6px;

    color: #999999;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
}


/* =========================================
   INPUT / SELECT / TEXTAREA
========================================= */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;

    padding: 16px 17px;

    background: #f7f8fa;

    border: 2px solid transparent;

    border-radius: 0;

    outline: none;

    color: #252525;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.contact-form input {
    height: 56px;
}


.contact-form select {
    height: 56px;

    cursor: pointer;
}


.contact-form textarea {
    min-height: 180px;

    resize: vertical;

    line-height: 1.65;
}


.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0a0a0;
}


/* FOCUS */

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: #ffffff;

    border-color: #2f5cab;

    box-shadow:
        0 0 0 4px rgba(47, 92, 171, 0.08);
}


/* BŁĄD */

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    background: #fffafa;

    border-color: #e00000;

    box-shadow:
        0 0 0 4px rgba(224, 0, 0, 0.06);
}


.form-error {
    display: block;

    min-height: 18px;

    margin-top: 6px;

    color: #e00000;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================
   LICZNIK ZNAKÓW
========================================= */

.message-bottom {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}


.character-counter {
    flex-shrink: 0;

    margin-top: 6px;

    color: #9a9a9a;

    font-size: 11px;
}


/* =========================================
   CHECKBOX
========================================= */

.consent-wrapper {
    position: relative;

    display: flex;

    gap: 13px;

    align-items: flex-start;

    cursor: pointer;
}


.consent-wrapper input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.custom-checkbox {
    position: relative;

    flex-shrink: 0;

    width: 22px;
    height: 22px;

    margin-top: 2px;

    background: #f3f5f8;

    border: 2px solid #cdd3dc;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.custom-checkbox::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 10px;

    top: 2px;
    left: 6px;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    transform:
        rotate(45deg)
        scale(0);

    transition: transform 0.2s ease;
}


.consent-wrapper input:checked + .custom-checkbox {
    background: #2f5cab;

    border-color: #2f5cab;

    box-shadow:
        0 0 0 4px rgba(47, 92, 171, 0.08);
}


.consent-wrapper input:checked
+ .custom-checkbox::after {
    transform:
        rotate(45deg)
        scale(1);
}


.consent-text {
    color: #666666;

    font-size: 13px;

    line-height: 1.65;
}


.consent-text strong {
    color: #e00000;
}


/* =========================================
   STOPKA FORMULARZA
========================================= */

.form-footer {
    display: flex;
    align-items: center;

    gap: 25px;

    margin-top: 5px;
}


.form-footer p {
    color: #8a8a8a;

    font-size: 12px;
}


.form-footer p strong {
    color: #e00000;
}


/* =========================================
   PRZYCISK WYŚLIJ
========================================= */

.contact-submit {
    appearance: none;

    min-width: 240px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 0 22px 0 28px;

    background: #2f5cab;

    border: 2px solid #2f5cab;

    border-radius: 0;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.submit-arrow {
    font-size: 25px;

    transition: transform 0.3s ease;
}


.contact-submit:hover {
    background: #244b91;

    border-color: #244b91;

    transform: translateY(-4px);

    box-shadow:
        0 14px 35px rgba(47, 92, 171, 0.3),
        0 0 25px rgba(47, 92, 171, 0.12);
}


.contact-submit:hover .submit-arrow {
    transform: translateX(5px);
}


/* =========================================
   SUKCES
========================================= */

.form-success {
    display: none;

    align-items: center;

    gap: 18px;

    padding: 22px 25px;

    background: #f0faf4;

    border-left: 5px solid #229954;
}


.form-success.visible {
    display: flex;
}


.success-icon {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #229954;

    color: #ffffff;

    font-size: 20px;
    font-weight: 900;
}


.form-success strong {
    display: block;

    margin-bottom: 3px;

    color: #22643d;

    font-size: 15px;
}


.form-success p {
    color: #568269;

    font-size: 13px;
}


/* =========================================
   RESPONSYWNOŚĆ
========================================= */

@media (max-width: 1100px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }


    .contact-info {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
    }


    

    .contact-hours {
        margin-top: 0;
    }

}


@media (max-width: 700px) {

    .contact-section {
        padding: 80px 25px;
    }


    .contact-header {
        gap: 12px;

        margin-bottom: 45px;
    }


    .contact-number {
        font-size: 65px;
    }


    .contact-layout {
        gap: 15px;
    }


    .contact-info {
        display: flex;
    }



    

    .contact-form-wrapper {
        padding: 38px 25px;
    }


    .contact-form {
        grid-template-columns: 1fr;
    }


    .form-group-full {
        grid-column: auto;
    }


    .form-footer {
        flex-direction: column;

        align-items: flex-start;
    }


    .contact-submit {
        width: 100%;
    }

}
/* =========================================
   TABLET
========================================= */

@media (max-width: 1350px) {

    .nav-button {
        width: 145px;

        font-size: 13px;
    }


    .logo {
        padding: 0 20px;
    }


    .logo img {
        width: 250px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 950px) {

    .navbar {
        height: 85px;

        align-items: center;

        padding: 0 18px;
    }


    /* LOGO */

    .logo {
        height: 100%;

        padding: 0;
    }


    .logo img {
        width: 220px;
        max-height: 60px;
    }


    /* HAMBURGER */

    .menu-toggle {
        flex-shrink: 0;

        display: block;

        margin-left: auto;
    }


    /* MENU ROZWIJANE */

    .nav-buttons {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;

        margin: 0;

        background: #ffffff;

        border-top:
            1px solid rgba(47, 92, 171, 0.15);

        box-shadow:
            0 18px 35px rgba(0, 0, 0, 0.13);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-12px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }


    /* OTWARTE MENU */

    .nav-buttons.open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    /* PRZYCISKI */

    .nav-button {
        width: 100%;
        height: 70px;

        justify-content: flex-start;

        padding: 0 25px;

        border-left: none;

        border-bottom:
            1px solid rgba(47, 92, 171, 0.13);

        font-size: 14px;

        text-align: left;
    }


    .nav-button:last-child {
        border-bottom: none;
    }


    .nav-button:hover {
        background: #2f5cab;

        color: #ffffff;
    }


    /* CZERWONA LINIA Z LEWEJ */

    .nav-button::before {
        width: 5px;
        height: 100%;

        transform: scaleY(0);

        transform-origin: center;
    }


    .nav-button:hover::before {
        transform: scaleY(1);
    }


    /* ANIMACJA HAMBURGERA */

    .menu-toggle.active span:nth-child(1) {
        transform:
            translateY(9px)
            rotate(45deg);
    }


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


    .menu-toggle.active span:nth-child(3) {
        transform:
            translateY(-9px)
            rotate(-45deg);
    }

}
@media (max-width: 500px) {

    .navbar {
        height: 75px;

        padding: 0 12px;
    }


    .logo img {
        width: 180px;
        max-height: 52px;
    }


    .menu-toggle {
        width: 52px;
        height: 52px;
    }


    .nav-button {
        height: 65px;

        padding: 0 20px;

        font-size: 13px;
    }

}


.contact-submit:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


.form-success.error {
    background: #fff3f3;

    border-left-color: #e00000;
}


.form-success.error .success-icon {
    background: #e00000;
}


.form-success.error strong {
    color: #a30000;
}


.form-success.error p {
    color: #875555;
}


/* =========================================
   FINALNE POPRAWKI RESPONSYWNOŚCI
   HERO + SEKCJE + MAPA
========================================= */

/* Zabezpieczenie całej strony przed poziomym wychodzeniem poza ekran */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
object {
    max-width: 100%;
}


/* =========================================
   MOBILE DO 700 PX
========================================= */

@media (max-width: 700px) {

    /* -------------------------
       OGÓLNE KONTENERY
    ------------------------- */

    .hero,
    .about-section,
    .services-section,
    .partners-section,
    .area-section,
    .contact-section {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-container,
    .about-container,
    .services-container,
    .partners-container,
    .area-container,
    .contact-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /* -------------------------
       HERO - TEKST NA GŁÓWNEJ
    ------------------------- */

    .hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
        overflow-x: hidden;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 42px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        text-align: center;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 28px;

        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.06;
        letter-spacing: -1.8px;

        text-align: center;
        overflow: visible;
    }

    /*
       Najważniejsza poprawka długiego słowa
       "elektroenergetyczne".
       Ma osobny rozmiar zależny od szerokości ekranu.
    */
    .word-highlight {
        display: block;

        width: 100%;
        max-width: 100%;

        margin: 4px auto;

        font-size: clamp(22px, 7.15vw, 31px);
        line-height: 1.12;
        letter-spacing: -1.15px;

        white-space: nowrap;
        text-align: center;
    }

    .hero-description {
        width: 100%;
        max-width: 650px;

        margin: 0 auto;

        padding-left: 0;
        border-left: none;

        text-align: center;
    }

    .hero-description p {
        font-size: 16px;
        text-align: center;
    }

    .hero-buttons {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 12px;
    }

    .hero-btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-gallery {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-slider {
        width: 100%;
        max-width: 100%;
        height: clamp(340px, 110vw, 480px);
    }


    /* -------------------------
       NAGŁÓWKI SEKCJI
       Zapobiega ucinaniu długich tytułów.
    ------------------------- */

    .about-header,
    .services-header,
    .partners-header,
    .area-header,
    .contact-header {
        width: 100%;
        min-width: 0;

        align-items: flex-start;
        gap: 10px;
    }

    .about-number,
    .services-number,
    .partners-number,
    .area-number,
    .contact-number {
        flex-shrink: 0;
        font-size: 58px;
        letter-spacing: -4px;
    }

    .about-title-wrapper,
    .services-title-wrapper,
    .partners-title-wrapper,
    .area-title-wrapper,
    .contact-title-wrapper {
        min-width: 0;
        max-width: 100%;
    }

    .about-title-wrapper h2,
    .services-title-wrapper h2,
    .partners-title-wrapper h2,
    .area-title-wrapper h2,
    .contact-title-wrapper h2 {
        max-width: 100%;

        font-size: clamp(32px, 9.5vw, 46px);
        line-height: 1.05;
        letter-spacing: -1.8px;

        overflow-wrap: anywhere;
    }


    /* -------------------------
       OBSZAR DZIAŁANIA
    ------------------------- */

    .area-section {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .area-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        display: flex;
        flex-direction: column;

        gap: 40px;
    }

    .area-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .area-lead {
        font-size: 20px;
    }

    .area-description {
        font-size: 16px;
    }

    .active-region-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 26px 22px;
    }

    .active-region-name {
        font-size: clamp(28px, 8vw, 34px);
        overflow-wrap: anywhere;
    }


    /* -------------------------
       PANEL MAPY
    ------------------------- */

    .poland-map-wrapper {
        position: relative;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 0;
        height: auto;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        margin: 0 auto;

        padding: 28px 8px 105px;

        overflow: visible;

        box-sizing: border-box;
    }


    /* -------------------------
       SAMA MAPA
    ------------------------- */

    .poland-map {
        position: relative;
        z-index: 2;

        /*
           Zostawiamy bezpieczny margines po bokach,
           żeby mapa nie dotykała krawędzi ekranu.
        */
        width: min(calc(100% - 20px), 360px);
        max-width: 100%;
        min-width: 0;

        aspect-ratio: 497 / 463;

        margin: 0 auto;
        padding: 0;

        overflow: visible;
    }

    #polandMapObject,
    .poland-map object {
        display: block;

        width: 100% !important;
        max-width: 100% !important;

        height: 100% !important;
        max-height: none !important;

        margin: 0 auto;

        border: 0;

        object-fit: contain;
    }


    /* -------------------------
       NAPIS POLSKA W TLE
    ------------------------- */

    .map-background-text {
        top: 16px;
        left: 0;

        width: 100%;

        font-size: clamp(48px, 17vw, 70px);
        letter-spacing: -4px;

        text-align: center;
        pointer-events: none;
    }


    /* -------------------------
       LEGENDA MAPY
    ------------------------- */

    .map-legend {
        left: 16px;
        right: 16px;
        bottom: 18px;

        width: auto;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }


    /* -------------------------
       REGIONY
    ------------------------- */

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

    .region-card {
        min-width: 0;
        padding: 28px 22px;
    }

    .neighbouring-regions {
        min-width: 0;
        gap: 18px;
        padding: 28px 22px;
    }


    /* -------------------------
       KONTAKT - DODATKOWE ZABEZPIECZENIE
    ------------------------- */

    .contact-layout,
    .contact-info,
    .contact-form-wrapper,
    .contact-form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .contact-company {
        padding-left: 25px;
        padding-right: 25px;
    }

    .contact-department,
    .contact-hours {
        padding-left: 25px;
        padding-right: 25px;
    }

    .company-registers div,
    .hours-row {
        min-width: 0;
    }

}


/* =========================================
   BARDZO MAŁE TELEFONY
========================================= */

@media (max-width: 380px) {

    .hero,
    .about-section,
    .services-section,
    .partners-section,
    .area-section,
    .contact-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -1.5px;
    }

    .word-highlight {
        font-size: 21px;
        letter-spacing: -1px;
    }

    .poland-map {
        width: min(calc(100% - 16px), 320px);
    }

    .map-background-text {
        font-size: 48px;
    }

}


/* =========================================
   GALERIA REALIZACJI V2 — 29 ZDJĘĆ
========================================= */

.hero-slider {
    isolation: isolate;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.hero-slider.is-dragging {
    cursor: grabbing;
}

.hero-slide {
    background: #10274d;
}

.hero-slide::before {
    content: "";

    position: absolute;
    z-index: 0;

    inset: -36px;

    background-image: var(--hero-slide-bg);
    background-size: cover;
    background-position: center;

    filter: blur(28px);
    opacity: 0.55;

    transform: scale(1.14);
}

.hero-slide::after {
    content: "";

    position: absolute;
    z-index: 0;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 21, 43, 0.08),
            rgba(7, 21, 43, 0.24)
        );
}

.hero-slide img {
    position: relative;
    z-index: 1;

    object-fit: contain;

    transform: scale(1);
    transition:
        transform 6.5s ease,
        opacity 0.3s ease;
}

.hero-slide.active img {
    transform: scale(1.018);
}

.hero-slide:focus-visible {
    outline: 4px solid #ffffff;
    outline-offset: -7px;
}

.hero-gallery-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(15, 35, 70, 0.03) 35%,
            rgba(15, 35, 70, 0.28) 100%
        );
}

.hero-slider-progress {
    position: relative;

    width: 100%;
    height: 6px;

    margin-top: 18px;

    overflow: hidden;

    background: #d9dfe8;
}

.hero-slider-progress span {
    display: block;

    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2f5cab 0%,
            #2f5cab 84%,
            #e00000 84%,
            #e00000 100%
        );

    transition: width 0.45s ease;
}

.hero-gallery-hint {
    margin-top: 10px;

    color: #8a8a8a;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.hero-gallery-caption {
    min-height: 18px;
}

.hero-slider-arrow:focus-visible,
.wolpol-lightbox button:focus-visible {
    outline: 3px solid #e00000;
    outline-offset: 3px;
}


/* =========================================
   PEŁNY EKRAN / LIGHTBOX
========================================= */

body.wolpol-lightbox-open {
    overflow: hidden;
}

.wolpol-lightbox {
    position: fixed;
    z-index: 10000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    background: rgba(5, 14, 29, 0.94);
    backdrop-filter: blur(12px);

    opacity: 0;

    transition: opacity 0.22s ease;
}

.wolpol-lightbox[hidden] {
    display: none;
}

.wolpol-lightbox.open {
    opacity: 1;
}

.wolpol-lightbox-dialog {
    position: relative;

    width: min(1480px, 100%);
    height: min(90vh, 980px);

    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;

    align-items: center;

    gap: 22px;
}

.wolpol-lightbox figure {
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0;
}

.wolpol-lightbox figure img {
    display: block;

    width: 100%;
    height: calc(100% - 60px);

    object-fit: contain;

    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.45));
}

.wolpol-lightbox figcaption {
    min-width: 118px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 14px;
    padding: 0 15px;

    background: rgba(255, 255, 255, 0.95);

    color: #2f5cab;

    font-size: 13px;
    font-weight: 900;
}

.wolpol-lightbox-arrow,
.wolpol-lightbox-close {
    appearance: none;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: rgba(255, 255, 255, 0.95);

    color: #2f5cab;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.wolpol-lightbox-arrow {
    width: 64px;
    height: 64px;

    font-size: 28px;
}

.wolpol-lightbox-arrow:hover,
.wolpol-lightbox-close:hover {
    background: #2f5cab;
    color: #ffffff;
    transform: translateY(-3px);
}

.wolpol-lightbox-close {
    position: absolute;
    z-index: 2;

    top: 0;
    right: 0;

    width: 54px;
    height: 54px;

    font-size: 34px;
    font-weight: 300;
}


/* =========================================
   GALERIA V2 — MOBILE
========================================= */

@media (max-width: 700px) {

    .hero-slider {
        height: clamp(390px, 125vw, 560px);
    }

    .hero-slider-progress {
        height: 5px;
        margin-top: 14px;
    }

    .hero-gallery-hint {
        font-size: 9px;
        text-align: center;
    }

    .hero-gallery-caption {
        justify-content: center;
        text-align: center;
    }

    .wolpol-lightbox {
        padding: 14px;
    }

    .wolpol-lightbox-dialog {
        width: 100%;
        height: 94vh;

        grid-template-columns: 52px minmax(0, 1fr) 52px;

        gap: 6px;
    }

    .wolpol-lightbox-arrow {
        width: 48px;
        height: 54px;

        font-size: 23px;
    }

    .wolpol-lightbox-close {
        top: 4px;
        right: 4px;

        width: 46px;
        height: 46px;

        font-size: 30px;
    }

    .wolpol-lightbox figure img {
        height: calc(100% - 54px);
    }

    .wolpol-lightbox figcaption {
        height: 42px;
        margin-top: 10px;
    }

}

@media (max-width: 420px) {

    .hero-slide-counter {
        min-width: 102px;
        height: 44px;

        padding: 0 12px;
    }

    .hero-slider-arrows {
        gap: 5px;
    }

    .hero-slider-arrow {
        width: 47px;
        height: 47px;
    }

    .wolpol-lightbox-dialog {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .wolpol-lightbox-arrow {
        width: 40px;
        height: 48px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hero-slider-track,
    .hero-slide img,
    .hero-slider-progress span,
    .wolpol-lightbox {
        transition-duration: 0.01ms !important;
    }

}
