:root {
    --bg-dark: #0a111b;
    --bg-light: #f8f9fa;
    --yellow: #f8c146;
    --text-dark: #212529;
    --text-light: #ffffff;
    --gray: #6c757d;
    --gray2: #e2e2e2;
    --border-color: #e9ecef;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #e0e5ec;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* Główny kontener symulujący widok całej strony */
.app-container {
    max-width: 1000px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.text-yellow {
    color: var(--yellow) !important;
}

/* ================= HEADER ================= */
.top-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= HERO SECTION ================= */
.hero-section {
    color: var(--text-light);
    padding: 60px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #d1d5db;
}

.btn-primary {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    transition: transform 0.2s;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* przyciski hero z panelu: klasa z "primary" -> .btn-primary, pozostałe -> .btn-secondary */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-secondary {
    display: inline-block;
    color: var(--text-light);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 13px 28px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.btn-secondary i {
    margin-right: 8px;
}

.btn-secondary:hover {
    transform: scale(1.05);
    border-color: var(--yellow);
    color: var(--yellow);
}

/* wyrównanie hero z panelu (site_hero_align) */
.hero-align-center .hero-content {
    text-align: center;
}

.hero-align-center .hero-buttons,
.hero-align-center .hero-features {
    justify-content: center;
}

.hero-align-center .hero-features {
    gap: 20px 50px;
    align-items: center;
}

.hero-align-right .hero-content {
    text-align: right;
}

.hero-align-right .hero-buttons {
    justify-content: flex-end;
}

.hero-features {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.feature-item i {
    font-size: 32px;
}

/* ================= SERVICES ================= */
.services-section {
    padding: 40px 30px;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}
.section-title a{
    color: #000000;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--yellow);
    margin: 10px auto 0 auto;
}

.content-section{
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    margin: 10px 20px; 
    color: #000000;
    background-color: var(--yellow);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0px 20px;
}

/* 2 karty w rzędzie; nieparzysta ostatnia karta jest wyśrodkowana */
.services-list > * {
    flex: 0 1 calc((100% - 15px) / 2);
    min-width: 0;
}

.service-card, .service-card-disabled{
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
}
.service-card{
    cursor: pointer;
}
.service-card-disabled{
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.service-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.service-card .service-icon, .service-card-disabled .service-icon{
    width: 60px;
    height: 60px;
    color: #000000;
    background-color: var(--yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--bg-dark);
    margin-right: 20px;
    flex-shrink: 0;
}
.service-card-disabled .service-icon{
    color: var(--gray);
    background-color: var(--gray2);
}
.service-card .service-text, .service-card-disabled .service-text {
    flex-grow: 1;
}
.service-card .service-text, .service-card .service-text a {
    color: var(--text-dark);
}
.service-card-disabled .service-text, .service-card-disabled .service-text a {
    color: var(--gray);
}
.service-card .service-text h3, .service-card-disabled .service-text h3  {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray2);
    margin-bottom: 5px;
}

.service-card .service-text p {
    font-size: 13px;
    color: var(--gray);
}
.service-card-disabled .service-text p {
    font-size: 13px;
    color: var(--gray2);
}

.service-arrow {
    color: var(--bg-dark);
    font-size: 18px;
}

/* ================= SERVICE AREA ================= */
.service-area-section {
    padding: 20px;
    background-color: #ffffff;
}

.service-area-card {
    background-color: var(--bg-dark);
    border-radius: 20px;
    padding: 24px;
    color: var(--text-light);
}

.card-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 24px;
}

.text-column {
    flex: 1 1 300px;
}

.header-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.icon-pin {
    font-size: 32px;
}

.header-titles h2, .header-titles h2 a {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    text-decoration: none;
    color: #e0e0e0;
}

.header-titles .subtitle, .header-titles .subtitle a {
    font-size: 14px;
    color: #e0e0e0;
    text-decoration: none;
}

.list-section {
    margin-bottom: 20px;
}

.list-section h3, .list-section h3 a {
    color: var(--yellow);
    font-size: 14px;
    font-weight: 700;
    margin: 12px 0px 5px 0px;
    text-decoration: none;
}

.list-section h4, .list-section h4 a {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    margin: 12px 0px 5px 0px;
    text-decoration: none;
}

.list-section p{
    display: flex;
    font-size: 13px;
    color: #d1d5db;
    text-decoration: none;
    flex-wrap: wrap;
}

.list-section p a {
    background: #dddddd;
    border-radius: 4px;
    font-size: 13px;
    color: #000000;
    padding: 4px;
    margin: 2px 3px;
    text-decoration: none;
    text-wrap: nowrap;
}

.divider {
    border: 0;
    height: 1px;
    background-color: #2a3441;
    margin: 20px 0;
}

.map-column {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    width: 100%;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Pasek z kontaktem w sekcji obszaru */
.contact-bar {
    background-color: var(--yellow);
    border-radius: 15px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-phone-bar {
    font-size: 28px;
    color: var(--bg-dark);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-title {
    color: var(--bg-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-subtitle {
    color: #2d3748;
    font-size: 13px;
}

.contact-number-pill {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 24px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    white-space: nowrap;
}

/* ================= FOOTER FEATURES ================= */
.bottom-features {
    display: flex;
    justify-content: space-between;
    padding: 30px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.bottom-feature i {
    font-size: 24px;
    color: var(--bg-dark);
    width: 24px; /* ta sama szerokość ikon (najszersza ma 24px), żeby teksty w kolejnych liniach zaczynały się równo */
    flex-shrink: 0;
    text-align: center;
}

.bottom-feature span {
    color: var(--gray);
    font-size: 13px;
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
    .services-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .services-list > * {
        flex-basis: auto;
    }
    .service-card {
        display: flex;
        align-items: center;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 15px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
        transition: box-shadow 0.2s;
        cursor: pointer;
    }
    .top-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    /* cechy pod hero: obok siebie tyle, ile się zmieści, rozciągnięte na całą szerokość rzędu */
    .hero-features,
    .hero-align-center .hero-features {
        gap: 20px;
    }

    .hero-features .feature-item {
        flex: 1 1 auto;
    }

    .hero-align-center .hero-features .feature-item {
        justify-content: center;
    }

    /* cechy w stopce: obok siebie tyle, ile się zmieści, rozciągnięte na całą szerokość rzędu
       (mniejsze odstępy, żeby na telefonie ~390px zmieściły się dwie obok siebie) */
    .bottom-features {
        column-gap: 16px;
    }

    .bottom-feature {
        flex: 1 1 auto;
        gap: 10px;
    }
    
    .contact-bar {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}
/* ================= PODSTRONY / MAPA / STOPKA ================= */
.top-header a {
    color: inherit;
    text-decoration: none;
}

.logo img {
    display: block;
    max-height: 50px;
}

.hero-section-sub {
    min-height: 340px;
    justify-content: center;
}

.hero-section-map {
    min-height: 300px;
    justify-content: center;
    background: linear-gradient(to right, rgba(10, 17, 27, 1) 40%, rgba(10, 17, 27, 0.6) 100%), url('/assets/images/m.png') right 30px center / auto 85% no-repeat, var(--bg-dark);
}

.hero-section-map .hero-content h1 {
    font-size: 34px;
}

.hero-section-map .hero-content p {
    margin-bottom: 0;
}

.breadcrumb-section {
    padding-bottom: 0;
}

.breadcrumb-section + .services-section {
    padding-top: 10px;
}

.section-title.breadcrumb {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.section-title a {
    text-decoration: none;
}

.section-title a:hover {
    color: var(--gray);
}

.service-card .service-text a {
    text-decoration: none;
}

.service-card.active {
    border-color: var(--yellow);
    background-color: #fffbeb;
}

.service-card .service-icon img {
    max-width: 60%;
    max-height: 60%;
}

.content-section p + p {
    margin-top: 10px;
}

.content-section a {
    color: var(--bg-dark);
    font-weight: 700;
}

.content-section-wi {
    display: flex;
    align-items: center;
    gap: 20px;
}

.content-section-wi .content-text {
    flex: 1 1 60%;
}

.content-section-wi img {
    flex: 0 0 40%;
    width: 40%;
    height: auto;
    border-radius: 10px;
}

.content-section-rev {
    flex-direction: row-reverse;
}

.header-titles h2 a:hover,
.list-section h3 a:hover,
.list-section h4 a:hover {
    text-decoration: underline;
}

.contact-number-pill {
    text-decoration: none;
}

.footer-bottom {
    background-color: var(--bg-dark);
    color: #d1d5db;
    font-size: 13px;
    text-align: center;
    padding: 20px 30px;
}

.footer-bottom p + p,
.footer-bottom ul + p {
    margin-top: 6px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--yellow);
    text-decoration: none;
}

@media (max-width: 768px) {
    .content-section-wi,
    .content-section-rev {
        flex-direction: column;
    }

    .content-section-wi img {
        width: 100%;
    }

    .hero-section-map {
        background: linear-gradient(rgba(10, 17, 27, 0.85), rgba(10, 17, 27, 0.85)), url('/assets/images/m.png') center / contain no-repeat, var(--bg-dark);
    }

    .hero-section-map .hero-content h1 {
        font-size: 28px;
    }
}

/* ================= MENU W GÓRNYM PASKU ================= */
.top-header {
    position: relative;
    z-index: 20;
    gap: 20px;
}

.main-nav {
    flex: 1 1 auto;
}

/* telefon w menu mobilnym - na komputerze jest w belce */
.nav-phone {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.nav-arrow {
    font-size: 10px;
}

.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 230px;
    padding: 8px 0;
    background-color: var(--bg-dark);
    border-top: 2px solid var(--yellow);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 30;
}

/* ostatnie pozycje menu otwierają podmenu do prawej krawędzi, żeby nie wyszło poza stronę */
.nav-list > .nav-item:nth-last-child(-n+2) > .submenu {
    left: auto;
    right: -16px;
}

.has-dropdown:hover > .submenu,
.has-dropdown:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 8px 18px;
    color: #d1d5db;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.submenu a:hover,
.submenu a.active {
    color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.04);
}

.submenu-level-2 {
    list-style: none;
}

.submenu-level-2 a {
    padding-left: 34px;
    font-size: 13px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 20px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .top-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 15px;
    }

    .top-header .logo {
        order: 1;
        flex: 1 1 auto;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .top-header .header-phone {
        order: 3;
        width: 100%;
        justify-content: center;
        font-size: 20px;
    }

    .main-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-basis: 100%;
    }

    .top-header.nav-open .main-nav {
        display: block;
    }

    /* telefon z belki przechodzi do menu mobilnego (gdy jest menu; bez menu zostaje w belce) */
    .main-nav ~ .header-phone {
        display: none;
    }

    .nav-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 0 6px;
        font-size: 20px;
        font-weight: 700;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    /* na telefonie podmenu jest zawsze rozwinięte pod swoją pozycją */
    .submenu,
    .nav-list > .nav-item:nth-last-child(-n+2) > .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 0 0 6px 14px;
        background: transparent;
        border-top: none;
        box-shadow: none;
    }
}

.footer-bottom .footer-company {
    color: var(--text-light);
    font-weight: 700;
}

/* ================= BELKA USTAWIANA W PANELU (Root styles) =================
   .hb-on na .app-container (gdy w panelu ustawiono wygląd belki): belka leży na hero, więc pod
   przezroczystą widać zdjęcie, a hero dostaje u góry dodatkowy odstęp równy wysokości belki
   (--hb-push, dokładną wartość ustawia skrypt w stopce). Przy pełnym kolorze wygląda jak dotąd.
   data-hb-top = wygląd na starcie, data-hb-scroll = po przewinięciu (belka przypięta do góry ekranu).
   Otwarte menu mobilne (.nav-open) zostaje na pełnym tle z .top-header. */
.app-container.hb-on {
    position: relative;
    --hb-push: 90px;
}

.hb-on > .top-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.hb-on > .top-header + .hero-section {
    padding-top: calc(60px + var(--hb-push));
    min-height: calc(500px + var(--hb-push));
}

.hb-on > .top-header + .hero-section-sub {
    min-height: calc(340px + var(--hb-push));
}

.hb-on > .top-header + .hero-section-map {
    min-height: calc(300px + var(--hb-push));
}

.hb-on > .top-header[data-hb-top="semi"]:not(.scrolled):not(.nav-open) {
    background-color: color-mix(in srgb, var(--bg-dark) var(--hb-a-top, 70%), transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hb-on > .top-header[data-hb-top="transparent"]:not(.scrolled):not(.nav-open) {
    background-color: transparent;
}

.hb-on > .top-header.scrolled[data-hb-scroll] {
    position: fixed;
    left: 50%;
    max-width: 1000px;
    transform: translateX(-50%);
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hb-on > .top-header.scrolled[data-hb-scroll="semi"]:not(.nav-open) {
    background-color: color-mix(in srgb, var(--bg-dark) var(--hb-a-scroll, 85%), transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hb-on > .top-header.scrolled[data-hb-scroll="transparent"]:not(.nav-open) {
    background-color: transparent;
    box-shadow: none;
}
