/* BADI WWW — poprawki wygladu zatwierdzone 10.11.2026
   Globalny arkusz, bez zmian w galerii i w plikach zdjec. */
:root {
    --badi-text: #fff;
    --badi-gold: #f1c26c;
    --badi-cta-font: 1.2rem;
}

/* Nawigacja: teksty wielkosci napisu BADI oraz separator na wysokosc znaku B. */
.main_nav:has(.badi_header_brand) > a:not(.badi_header_brand) {
    font-size: clamp(1.12rem, 2.99vw, 2.07rem);
    line-height: 1.15;
    font-weight: 600;
}

.badi_header_word::before {
    height: 80%;
    width: 4px;
}

/* Stopka: ten sam znak i napis BADI co w naglowku. */
.footer_brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.footer_brand .badi_header_variant img {
    display: block;
    width: 4.1975rem;
    height: 4.1975rem;
    object-fit: contain;
}

.footer_wrapper {
    gap: 1.8rem;
}

footer nav {
    gap: 0.9rem 1.4rem;
}

footer nav a,
footer .footer_contact a,
footer .footer_contact strong {
    font-size: 1.3rem;
    line-height: 1.45;
}

.footer_contact {
    gap: 0.45rem;
}

.footer_socials {
    gap: 1rem 1.35rem;
}

/* Jednolita typografia przyciskow, w tym CTA w pierwszym ekranie. */
.hero_wrapper a,
.projects_actions a,
.projects_actions button,
.form button,
.category_filter,
.subcategory_filter,
.rating_link {
    font-size: var(--badi-cta-font);
    line-height: 1.35;
    font-weight: 700;
}

.hero_wrapper a,
.projects_actions a,
.projects_actions button {
    padding: 0.95rem 1.25rem;
}

/* Pozostale teksty sa biale; zlote naglowki, linki i przyciski pozostaja zlote. */
.projects > p {
    color: var(--badi-text);
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 64rem;
}

:is(
    .info .wrapper p,
    .offer_text_content p,
    .process_item p,
    .contact_intro,
    .privacy_short,
    .field_help,
    .reviews_empty,
    .review_content,
    .review_meta,
    .copyright,
    .category_description,
    .realizations_heading > span,
    .realization p,
    .realization span,
    .privacy_page p,
    .rating_summary p,
    .contact_section p,
    .projects > p,
    .form label span
) {
    color: var(--badi-text);
}

.form input::placeholder,
.form textarea::placeholder {
    color: #fff;
    opacity: 0.85;
}

/* Strzalki wszystkich karuzel w jednolitych, ciemnych okraglych przyciskach. */
:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-prev,
:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-next {
    position: absolute;
    top: 50%;
    width: 2.9rem;
    height: 2.9rem;
    margin-top: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.84);
    color: var(--badi-gold);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-prev {
    left: 0.75rem;
}

:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-next {
    right: 0.75rem;
}

:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-prev::after,
:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-next::after {
    font-size: 1.15rem;
    font-weight: 700;
}

:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-prev:hover,
:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-next:hover,
:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-prev:focus-visible,
:is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-next:focus-visible {
    background: rgba(18, 18, 18, 0.98);
    border-color: var(--badi-gold);
}

/* Biale marginesy sa czescia plikow zrodlowych. Kadrujemy TYLKO podglady;
   oryginalne zdjecia w lightboksie i galerii pelnoekranowej pozostaja bez zmian. */
.projects_swiper .swiper-slide {
    overflow: hidden;
    background-color: #181818;
}

.projects_swiper .swiper-slide img,
.offer_swiper .swiper-slide img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.34);
    transform-origin: center center;
}

.offer_swiper .swiper-slide button {
    overflow: hidden;
}

@media (max-width: 767px) {
    .footer_brand .badi_header_variant img {
        width: 3.22rem;
        height: 3.22rem;
    }

    .main_nav:has(.badi_header_brand) > a:not(.badi_header_brand) {
        font-size: clamp(1rem, 3.25vw, 1.3rem);
    }

    .projects > p {
        font-size: 1.13rem;
    }

    .hero_wrapper a,
    .projects_actions a,
    .projects_actions button,
    .form button,
    .category_filter,
    .subcategory_filter {
        font-size: 1.05rem;
    }

    footer nav a,
    footer .footer_contact a,
    footer .footer_contact strong {
        font-size: 1.16rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-prev,
    :is(.hero_swiper, .projects_swiper, .offer_swiper, .reviews_swiper, .realization_swiper) .swiper-button-next {
        transition: none;
    }
}

/* Opisy realizacji oparte na zweryfikowanych kartach materialowych. */
.realization_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.realization .realization_description {
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
}

.realization_text > span {
    margin-top: auto;
    padding-top: 0.7rem;
}


/* ==== Korekty 10.11.2026: desktop, mobile, hero i kategorie ==== */

/* Przesuń graficzne B o 20% bliżej separatora bez zmiany jego grubości. */
.main_nav .badi_header_variant,
.footer_brand .badi_header_variant {
    gap: 0.52rem;
}

/* Zdjęcia w hero jaśniejsze o około 15%; pod tekstem zostaje gradient. */
.hero_overlay {
    background:
        linear-gradient(90deg,
            rgba(8, 8, 8, .73) 0%,
            rgba(8, 8, 8, .57) 42%,
            rgba(8, 8, 8, .37) 72%,
            rgba(8, 8, 8, .43) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, .21), rgba(8, 8, 8, .21));
}

/* W pierwszej karuzeli nie ma strzałek; nadal działa autoplay i kropki. */
.hero_swiper .swiper-button-prev,
.hero_swiper .swiper-button-next {
    display: none !important;
}
.hero_swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: .55;
}
.hero_swiper .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}
.hero_lead,
.hero_area,
.realizations_heading > span {
    color: #fff;
}

/* Opinie i realizacje: strzałki na wysokości środka kart/zdjęć (z uwzględnieniem paginacji). */
.projects_swiper .swiper-button-prev,
.projects_swiper .swiper-button-next,
.reviews_swiper .swiper-button-prev,
.reviews_swiper .swiper-button-next {
    top: calc(50% - 1.4rem);
}

/* Mniejsze, spójne okrągłe przyciski na karuzelach opinii i realizacji. */
.projects_swiper .swiper-button-prev,
.projects_swiper .swiper-button-next,
.reviews_swiper .swiper-button-prev,
.reviews_swiper .swiper-button-next {
    width: 2.75rem;
    height: 2.75rem;
    border-color: rgba(241, 194, 108, .55);
}

/* Czytelny układ kategorii: osobno 'Wszystkie', a niżej cztery kolumny. */
.realizations_page .categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    max-width: 68rem;
    gap: .7rem;
    margin-inline: auto;
}
.realizations_page .category_all {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 12rem;
}
.realizations_page .category_filter:not(.category_all) {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 3.5rem;
    padding: .5rem .7rem;
    text-align: left;
}
.realizations_page .category_filter img {
    flex: 0 0 3rem;
    width: 3rem;
    height: 2.5rem;
    object-fit: cover;
}
.realizations_page .category_filter span,
.realizations_page .subcategory_filter span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.realizations_page .subcategories {
    max-width: 68rem;
    gap: .65rem;
}
.realizations_page .realizations_heading {
    margin-bottom: 2.5rem;
}

/* Zabezpieczenie przed rozszerzaniem szerokości przez Swiper i teksty. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}
main,
.hero,
.projects,
.offer_text,
.rating,
.process,
.contact_section,
.realizations_page,
.gallery,
.contact_layout,
.form,
.form_grid,
.footer_wrapper,
.footer_contact,
.offer_text_image,
.offer_text_content {
    min-width: 0;
}
.hero_swiper,
.projects_swiper,
.offer_swiper,
.reviews_swiper {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.projects_swiper,
.offer_swiper,
.reviews_swiper {
    overflow: hidden;
}
.projects_swiper .swiper-slide,
.offer_swiper .swiper-slide,
.reviews_swiper .swiper-slide {
    min-width: 0;
}
.review_card,
.review_content,
.review_meta,
.review_google_link,
.form,
.form_grid,
.contact_layout,
.footer_wrapper,
.footer_contact {
    overflow-wrap: anywhere;
}
.reviews_swiper .swiper-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem;
}
.reviews_swiper .swiper-pagination-bullet {
    margin: .1rem;
    flex: 0 0 auto;
}
.hero_wrapper a,
.projects_actions a,
.projects_actions button {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ==== Responsywność, mobile QA i poprawki wizualne (320px, 360px, 390px, 430px, 768px, 1024px) ==== */

/* Wyrównanie podstawy kart opinii i elementów kontaktu */
.review_card {
    display: flex;
    flex-direction: column;
}
.review_meta {
    margin-top: auto;
    padding-top: 1rem;
}
.footer_contact a[href^="tel:"],
address a[href^="tel:"] {
    white-space: nowrap;
}
.form input,
.form select,
.form textarea {
    font-size: 1rem; /* Zapobiega automatycznemu powiększaniu w iOS Safari */
    max-width: 100%;
}
.form input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    left: auto;
}
.offer_swiper .swiper-slide,
.offer_swiper .swiper-slide button {
    display: block;
    width: 100%;
    overflow: hidden;
}
.image_lightbox_close,
.realization_close,
.image_lightbox_prev,
.image_lightbox_next {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

/* Tablet i mały desktop (1024 px) */
@media (min-width: 1024px) {
    .process_item h3 {
        min-height: 4.4rem;
    }
}

@media (max-width: 1023px) {
    .realizations_page .categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet (640 px - 1023 px, w tym 768 px) */
@media (min-width: 640px) and (max-width: 1023px) {
    /* Wyśrodkowanie 5. kroku procesu w siatce 2-kolumnowej */
    .process_item:last-child {
        grid-column: 1 / -1;
        max-width: 24rem;
        margin-inline: auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Przestrzeń na pełny adres e-mail bez łamania w sekcji kontaktowej */
    .contact_layout {
        grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
        gap: 2.5rem;
    }
}

/* Ekrany mobilne i tablety w pionie (<= 767 px) */
@media (max-width: 767px) {
    /* Dwurzędowy, wyważony nagłówek mobilny ze strefami dotyku */
    .main_nav:has(.badi_header_brand) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 0.75rem;
        column-gap: 0.6rem;
    }
    .main_nav .badi_header_brand {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }
    .main_nav:has(.badi_header_brand) > a:not(.badi_header_brand) {
        justify-self: center;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        font-size: clamp(1rem, 3.4vw, 1.25rem);
    }
    :is(.main_nav, .footer_brand) .badi_header_variant img {
        width: 3.22rem;
        height: 3.22rem;
    }

    /* Płynna typografia nagłówków dostosowana do wąskich ekranów */
    .hero,
    .hero_content {
        min-height: auto;
    }
    .hero_content {
        width: min(100% - 2rem, 75rem);
        padding: 3.5rem 0 4rem;
    }
    .hero h1 {
        font-size: clamp(1.75rem, 6.5vw, 2.55rem);
        line-height: 1.22;
    }
    .hero_lead {
        font-size: 1.12rem;
        margin-top: 0.85rem;
    }
    .hero_area {
        font-size: 0.96rem;
        margin-top: 0.6rem;
    }
    .projects > h2,
    .info > h2,
    .rating > h2,
    .process > h2,
    .contact_section > h2,
    .privacy_page h1 {
        font-size: clamp(1.65rem, 5.5vw, 2.25rem);
    }
    .realizations_heading h1 {
        font-size: clamp(1.85rem, 7vw, 2.75rem);
    }

    /* Uporządkowane odstępy sekcji na telefonie */
    .info,
    .offer_text,
    .rating,
    .process,
    .contact_section {
        padding-block: 3.5rem;
    }
    .projects {
        padding-block: 3.5rem;
    }
    footer {
        margin-top: 3.5rem;
        padding-block: 2rem;
    }

    /* Podkategorie na podstronie realizacji */
    .realizations_page .subcategories {
        justify-content: center;
    }
    .realizations_page .subcategory_filter {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        word-break: break-word;
    }
    .realizations_page :is(.category_filter, .subcategory_filter) img {
        flex: 0 0 2.5rem;
        width: 2.5rem;
        height: 2.25rem;
        object-fit: cover;
    }

    /* Karuzele i pełne szerokości kontenerów */
    .projects_swiper,
    .offer_swiper,
    .reviews_swiper {
        width: 100%;
    }
    .reviews_swiper {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .footer_wrapper {
        width: 100%;
    }
    .footer_wrapper nav {
        max-width: 100%;
        padding-inline: .25rem;
    }

    /* Dostępność i bezpieczne marginesy dla galerii pełnoekranowych na telefonach */
    .image_lightbox.open {
        padding: max(3.5rem, calc(env(safe-area-inset-top) + 2.5rem)) 0.75rem max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
    }
    .image_lightbox img {
        max-height: calc(100dvh - 7rem);
    }
    .realization_swiper.open .swiper-slide {
        padding: max(3.5rem, calc(env(safe-area-inset-top) + 2.5rem)) 0.75rem max(3.5rem, calc(env(safe-area-inset-bottom) + 2.5rem));
    }
}

/* Tablety w układzie pionowym i phablety (577 px - 767 px) dla kategorii */
@media (min-width: 577px) and (max-width: 767px) {
    .realizations_page .categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    .realizations_page .category_filter {
        font-size: 0.94rem;
    }
    .realizations_page .category_all {
        min-width: 0;
        width: 100%;
    }
}

/* Smartfony (<= 640 px: w tym 320, 360, 390, 430 px) */
@media (max-width: 640px) {
    /* Jednolite, pełnowymiarowe przyciski CTA ułatwiające klikanie kciukiem */
    .hero_wrapper,
    .projects_actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 24rem;
        margin-inline: auto;
        gap: 0.75rem;
    }
    .hero_wrapper a,
    .projects_actions a,
    .projects_actions button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .form button {
        width: 100%;
        text-align: center;
    }
}

/* Smartfony dla kategorii (<= 576 px: 320, 360, 390, 430 px) */
@media (max-width: 576px) {
    /* 1 kolumna eliminuje łamanie długich polskich słów w kategoriach */
    .realizations_page .categories {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .realizations_page .category_filter:not(.category_all) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        min-height: 3.5rem;
        padding: 0.6rem 0.85rem;
        font-size: 0.98rem;
    }
    .realizations_page .category_all {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
        min-width: 0;
        width: 100%;
    }
}

/* Wąskie telefony (<= 480 px: w tym 320, 360, 390, 430 px) */
@media (max-width: 480px) {
    .reviews_swiper {
        padding-left: 2.15rem;
        padding-right: 2.15rem;
    }
    .review_card {
        padding: 1.15rem 0.95rem;
    }
    .review_stars {
        font-size: 1.35rem;
    }
    .projects_swiper .swiper-slide img {
        height: 15rem;
    }
    .projects_swiper .swiper-button-prev,
    .projects_swiper .swiper-button-next {
        top: 7.5rem;
    }
}

/* Bardzo małe ekrany (<= 360 px, np. 320 px) */
@media (max-width: 360px) {
    :is(.main_nav, .footer_brand) .badi_header_variant img {
        width: 2.75rem;
        height: 2.75rem;
    }
    .badi_header_variant {
        font-size: 1.18rem;
    }
    .hero_content {
        padding-inline: 0.25rem;
    }
    .realizations_page .category_filter {
        padding: 0.5rem 0.7rem;
        font-size: 0.92rem;
    }
}
