/* ====== Czcionka Biryani z własnego serwera (licencja SIL OFL 1.1) ======
   Wcześniej ładowana z Google Fonts — teraz strona przy wejściu nie łączy się z Google.
   Te same grubości co dotąd (400 i 600); 700 i 800 dokłada tylko laboratorium.html. */
@font-face {
    font-family: "Biryani";
    src: url("assets/fonts/biryani-400.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Biryani";
    src: url("assets/fonts/biryani-600.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ====== Reset i basics ====== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --work-mobile-nav-height: 84px;
}

body.page-legal {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

body.page-work {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 82%, #f5f5f5 100%);
}

body.page-transition {
    opacity: 1;
    transition: opacity 400ms ease;
}

body.page-transition.page-transition--initial {
    opacity: 0;
}

body.page-transition.page-transition--fading-out {
    opacity: 0;
}

body.page-transition.page-transition--ready {
    opacity: 1;
}


.background-frame {
    --frame-gradient-left: 0px;
    --frame-gradient-width: min(18vw, 220px);
    position: absolute;
    top: 0;
    right: 0;

    bottom: var(--welcome-strip-overlap);

    z-index: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    pointer-events: none;
    width: auto;
}

.background-frame__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.background-frame__gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--frame-gradient-width);
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
    min-width: 80px;
}

:root {
    --nav-w-closed: clamp(56px, 5vw, 88px); /* szerokość szyny ikon na starcie */
    --label-gap: 40px; /* odstęp ikona → etykieta */
    --icon-w: clamp(26px, 3vw, 36px);
    --brand: #199848;
    --sygnet-size-closed: clamp(44px, 4.8vw, 72px);
    --pale-green: #eaf7f0;
    --tagline-right-gap: 20px;
    --content-left-offset: 60px;
    --welcome-tagline-top-offset: 360px; /* ręczna odległość paska od górnej krawędzi (px) */
    --welcome-service-icon-size: clamp(40px, 2.4vw + 36px, 80px);
    --welcome-service-gap: clamp(12px, 0.4vw + 10px, 20px);
    --welcome-strip-overlap: -2px;
    --welcome-banner-bottom-gap: 40px;
    --welcome-banner-top-offset: 40px;
    --welcome-service-column-min: clamp(150px, 13vw, 210px);
    --welcome-service-icon-overhang: clamp(28px, 0.9vw + 26px, 42px);
    --interactive-shine-duration: 1s;
    --service-auto-shine-interval: 5s;
    --menu-toggle-shine-interval: 3s;

}

/* ====== Stabilna prawa linia (animuje left razem z panelem) ====== */
.nav-edge {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 2px;
    left: 0; /* JS ustawia dokładny X */
    background: var(--brand);
    pointer-events: none;
    z-index: 198;
    transition: left .35s cubic-bezier(.22,.61,.36,1);
}

.page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 150;
}

.page-overlay--visible {
    opacity: 1;
    pointer-events: auto;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M9 9L23 23M23 9L9 23' stroke='%23000000' stroke-width='6' stroke-linecap='round' opacity='0.35'/%3E%3Cpath d='M9 9L23 23M23 9L9 23' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer;
}

/* ====== Strona praca ====== */
body.page-work {
    --work-mobile-nav-height: 84px;
}

.work-page, .funding-page, .contact-page {
    margin-left: var(--nav-w-closed);
    width: calc(100vw - var(--nav-w-closed));
    box-sizing: border-box;
    padding-inline: clamp(20px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 64px);
    position: relative;
    z-index: 1;
    font-family: "Biryani", system-ui, sans-serif;
}

.page-efrr {
    background: rgba(255, 255, 255, 0.92);
    min-height: 100vh;
}

.page-kontakt {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f5f5f5 100%);
    min-height: 100vh;
    padding-top: 0;
}

.work-hero, .funding-hero, .contact-hero {
    display: flex;
    justify-content: center;
}

.contact-hero {
    width: 100%;
    background: #ffffff;
}

.work-hero__inner, .funding-hero__inner, .contact-hero__inner {
    width: min(90vw, 1100px);
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 22px);
    align-items: flex-start;
}

.contact-page .contact-hero__inner {
    padding: 0 clamp(24px, 4vw, 48px) clamp(20px, 3.5vw, 36px);
}

.contact-page .contact-hero__title {
    display: inline-block;
    text-align: left;
    font-size: clamp(24px, 2.4vw, 32px);
}

.contact-page .contact-hero__divider {
    width: auto;
    align-self: flex-start;
}

.work-hero__title, .funding-hero__title, .contact-hero__title {
    width: 100%;
    text-align: center;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: clamp(28px, 3vw, 40px);
    margin: 0;
}

.work-hero__divider, .funding-hero__divider, .contact-hero__divider {
    height: 4px;
    width: 100%;
    background: var(--brand);
    border-radius: 999px;
}

.work-hero__divider--bottom {
    margin-top: clamp(4px, 1vw, 10px);
    margin-bottom: 0;
}

.contact-section {
    width: 100%;
    display: grid;
    gap: clamp(24px, 3vw, 38px);
}

/* Kontakt: dane i przyciski szybkiego kontaktu obok ilustracji. Sekcja z zieloną linią
   i mapa pod nią sięgają od paska menu do prawej krawędzi okna — ujemne marginesy
   równe wcięciu strony (--contact-gutter, na telefonach nadpisywane niżej). */
.contact-page {
    --contact-gutter: clamp(20px, 4vw, 42px);
    --contact-stack-gap: clamp(32px, 4vw, 64px);
    padding-inline: var(--contact-gutter);
    gap: var(--contact-stack-gap);
}

.contact-section--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: auto;
    margin-inline: calc(-1 * var(--contact-gutter));
    padding-left: var(--contact-gutter);
    border-bottom: 4px solid var(--brand);
}

.contact-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: visible;
}

.contact-card--image {
    padding: 0;
    overflow: hidden;
}

.contact-card--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 16%, rgba(255, 255, 255, 0.25) 34%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0) 64%);
    pointer-events: none;
}

.contact-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-card__title {
    margin: 0 0 14px;
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f0f0f;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 3px solid var(--brand);
}

.contact-form {
    display: grid;
    gap: clamp(12px, 2vw, 18px);
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form__field--other[hidden] {
    display: none !important;
}

.contact-form__label {
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #0c3e20;
}

.contact-form input,
.contact-form select {
    /* szerokość z kontenera, nie z najdłuższej opcji listy — inaczej pole wyboru
       wypychało formularz poza ekran na małych telefonach (360 px) */
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(12, 62, 32, 0.2);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(25, 152, 72, 0.18);
}

.contact-form__submit {
    margin-top: 4px;
    align-self: flex-start;
    background: var(--brand);
    color: #f5f9f6;
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
    background: #147c3c;
    box-shadow: 0 10px 26px rgba(20, 124, 60, 0.32);
    transform: translateY(-1px);
}

.contact-form__submit:focus-visible {
    outline: 3px solid rgba(20, 124, 60, 0.4);
    outline-offset: 2px;
}

.contact-card--info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(18px, 2.4vw, 26px);
    padding: clamp(24px, 3vw, 40px) clamp(14px, 3vw, 32px);
}

.contact-card--info .contact-card__title {
    margin: 0;
}

.contact-map-section {
    width: auto;
    margin-inline: calc(-1 * var(--contact-gutter));
    /* bez odstępu między zieloną linią a mapą (znosi odstęp między sekcjami strony) */
    margin-top: calc(-1 * var(--contact-stack-gap));
}

.contact-map {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: #eef3ef;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info {
    display: grid;
    gap: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.contact-info__line {
    margin: 0;
}

.contact-info__link {
    color: var(--brand);
    font-weight: 700;
}

@media (max-width: 980px) {
    /* telefon/tablet: dane i przyciski, pod nimi ilustracja na całą szerokość, linia, mapa */
    .contact-section--main {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vw, 28px);
        padding-left: 0;
    }

    .contact-section--main .contact-card--info {
        padding: 0 var(--contact-gutter);
    }
}

.work-hero__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: clamp(16px, 1.1vw + 14px, 20px);
    line-height: 1.6;
    max-width: 100%;
}

.work-hero__slogan {
    margin: 0;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.08em;
    font-size: clamp(16px, 1vw + 14px, 22px);
}

.work-positions {
    width: 100%;
}

.work-positions--stacked {
    margin-top: clamp(12px, 2vw, 24px);
}

.funding-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}

.funding-section + .funding-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px dashed var(--brand);
}

.funding-section__title {
    margin: 0;
    font-size: clamp(20px, 1vw + 18px, 28px);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
    width: min(90vw, 1500px);
    margin-inline: auto;
}

.funding-section__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(70%, 320px);
    height: 3px;
    background: var(--brand);
    border-radius: 999px;
}

.funding-section__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 52px);
    width: min(90vw, 1500px);
    align-items: start;
    margin-inline: auto;
}

.funding-section__details {
    display: grid;
    gap: 12px;
    text-align: left;
}

.funding-section__media {
    width: 100%;
}

.funding-section__meta {
    margin-top: clamp(14px, 2vw, 20px);
    display: grid;
    gap: 10px;
    text-align: left;
}

.funding-section__accordion {
    width: min(90vw, 1500px);
    margin: clamp(10px, 2vw, 18px) auto 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.funding-section__accordion-title {
    margin: 0;
    padding: clamp(14px, 2vw, 18px) clamp(18px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.funding-section__accordion-title::-webkit-details-marker {
    display: none;
}

.funding-section__accordion-title::marker {
    content: "";
}

.funding-section__accordion[open] .funding-section__accordion-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.funding-section__accordion-content {
    padding: 0 clamp(18px, 3vw, 26px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 320ms ease, opacity 280ms ease, transform 280ms ease;
}

.funding-section__accordion[open] .funding-section__accordion-content {
    padding: clamp(14px, 2vw, 18px) clamp(18px, 3vw, 26px);
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

.funding-section__accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
    transition: transform 240ms ease, background 240ms ease;
}

.funding-section__accordion-icon::before,
.funding-section__accordion-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: currentColor;
    transition: transform 240ms ease;
    border-radius: 999px;
}

.funding-section__accordion-icon::before {
    transform: translate(-2px, 1px) rotate(45deg);
}

.funding-section__accordion-icon::after {
    transform: translate(2px, 1px) rotate(-45deg);
}

.funding-section__accordion:hover .funding-section__accordion-icon,
.funding-section__accordion:focus-within .funding-section__accordion-icon {
    background: rgba(25, 152, 72, 0.06);
    color: #0f0f0f;
}

.funding-section__accordion[open] .funding-section__accordion-icon::before {
    transform: translate(-2px, -1px) rotate(-45deg);
}

.funding-section__accordion[open] .funding-section__accordion-icon::after {
    transform: translate(2px, -1px) rotate(45deg);
}

.funding-section:last-of-type {
    margin-bottom: 50px;
}

.work-positions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 38px);
    width: min(100%, 1800px);
    max-width: 1800px;
    margin: 0 auto;
    justify-items: center;
}

.work-positions__grid--single {
    grid-template-columns: 1fr;
    width: min(100%, 1100px);
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.work-card--funding {
    align-items: stretch;
}

.work-card__title {
    margin: 0;
    font-size: clamp(18px, 1vw + 16px, 26px);
    font-weight: 800;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 12px;
}

.work-card__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(70%, 320px);
    height: 3px;
    background: var(--brand);
    border-radius: 999px;
}

.work-card__image-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
    background: linear-gradient(145deg, rgba(25, 152, 72, 0.14), rgba(25, 152, 72, 0.05));
    perspective: 1200px;
    transform-style: preserve-3d;
    isolation: isolate;
}

.work-card__image-wrapper::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    transform: scale(0.65) rotate(8deg);
    transition: opacity .7s ease, transform .7s ease;
    mix-blend-mode: screen;
    pointer-events: none;
}

.work-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .75s cubic-bezier(.22,.61,.36,1), filter .75s ease;
}

.work-card__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(25, 152, 72, 0.6), rgba(12, 70, 35, 0.9));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 32px);
    text-align: center;
    opacity: 0;
    transform: rotateX(-80deg) translateY(40%);
    transform-origin: bottom center;
    transition: opacity .6s ease, transform .6s ease;
    backdrop-filter: blur(2px);
}

.work-card__overlay-content {
    display: grid;
    gap: 12px;
    max-width: 520px;
}

.work-card__badge {
    margin: 0;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 14px;
    color: #c0ffd7;
}

.work-card__lead {
    margin: 0;
    font-weight: 800;
    font-size: clamp(18px, 1vw + 16px, 24px);
}

.work-card__description {
    margin: 0;
    line-height: 1.6;
    font-size: clamp(14px, 0.7vw + 13px, 18px);
}

.work-card__description-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
    text-align: left;
}

.work-card:hover .work-card__image {
    transform: scale(1.08) rotate(-1.4deg);
    filter: brightness(0.7) saturate(1.1);
}

.work-card:hover .work-card__overlay {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
}

.work-card:hover .work-card__image-wrapper::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.work-card--funding .work-card__image-wrapper {
    width: 100%;
    max-width: none;
}

.work-ending {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: clamp(12px, 2vw, 24px);
}

.work-ending__divider {
    width: min(520px, 90%);
    height: 4px;
    background: var(--brand);
    border-radius: 999px;
}

.work-ending__slogan {
    margin: 0;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    font-size: clamp(16px, 1vw + 15px, 24px);
}

/* ====== Mobilne menu (zakładka Praca) ====== */
.work-mobile-nav {
    display: none;
    position: sticky;
    top: 0;
    z-index: 2400;
    background: #ffffff;
    box-shadow: 0 10px 26px -24px rgba(0, 0, 0, 0.4);
}

.work-mobile-nav__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px clamp(14px, 4vw, 24px);
}

.work-mobile-nav__burger {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 200ms ease;
}

.work-mobile-nav__burger:focus-visible,
.work-mobile-nav__flag:focus-visible {
    outline: 2px solid rgba(25, 152, 72, 0.55);
    outline-offset: 4px;
}

.work-mobile-nav__burger-line {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #0f2f1b;
    transition: transform 220ms ease, opacity 180ms ease;
    transform-origin: left center;
}

.work-mobile-nav__burger-line:nth-child(2) {
    margin-block: 4px;
}

.work-mobile-nav--drawer-open .work-mobile-nav__burger-line:nth-child(1) {
    transform: translate(2px, 9px) rotate(40deg) scaleX(0.82);
}

.work-mobile-nav--drawer-open .work-mobile-nav__burger-line:nth-child(2) {
    opacity: 0;
}

.work-mobile-nav--drawer-open .work-mobile-nav__burger-line:nth-child(3) {
    transform: translate(9px, -5px) rotate(-42deg) scaleX(0.5);
}

.work-mobile-nav__logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 56px;
    border-radius: 18px;
    background: transparent;
    border: none;
    transition: transform 200ms ease, opacity 200ms ease;
}

.work-mobile-nav__logo img {
    display: block;
    width: 40px;
    height: auto;
}

.work-mobile-nav__logo:hover {
    transform: translateY(-2px);
}

.work-mobile-nav__languages {
    position: relative;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.work-mobile-nav__lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 180ms ease;
}

.work-mobile-nav__lang-toggle:hover {
    transform: translateY(-2px);
}

.work-mobile-nav__lang-current {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.work-mobile-nav__lang-chevron {
    position: relative;
    width: 12px;
    height: 12px;
    display: inline-flex;
    border-left: 2px solid #0f2f1b;
    border-bottom: 2px solid #0f2f1b;
    transform: rotate(-45deg);
    transition: transform 200ms ease;
}

.work-mobile-nav__languages[data-state="open"] .work-mobile-nav__lang-chevron {
    transform: rotate(135deg);
}

.work-mobile-nav__lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 160px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(9, 86, 36, 0.12);
    box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 8px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 200ms ease;
    visibility: hidden;
    z-index: 10;
}

.work-mobile-nav__languages[data-state="open"] .work-mobile-nav__lang-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.work-mobile-nav__flag {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.work-mobile-nav__flag:hover {
    transform: translateY(-2px);
}

.work-mobile-nav__flag.is-active {
    box-shadow: 0 0 0 2px rgba(25, 152, 72, 0.35);
}

.work-mobile-nav__drawer {
    position: absolute;
    inset: calc(100% - 4px) 0 auto 0;
    background: linear-gradient(180deg, rgba(234, 247, 240, 0.98) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(234, 247, 240, 0.95) 100%);
    border-bottom: 2px solid rgba(25, 152, 72, 0.25);
    box-shadow: 0 22px 64px -28px rgba(0, 0, 0, 0.45);
    transform-origin: top;
    transform: translateY(-8px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: transform 280ms ease, opacity 240ms ease, max-height 320ms ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.work-mobile-nav--drawer-open .work-mobile-nav__drawer {
    transform: translateY(0);
    opacity: 1;
    /* 100vh na mobile to duzy viewport (pasek adresu schowany) — szuflada
       siegalaby pod krawedz ekranu i jej dol bylby nieosiagalny.
       100svh liczy sie wzgledem realnie widocznego obszaru. */
    max-height: calc(100vh - var(--work-mobile-nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@supports (height: 100svh) {
    .work-mobile-nav--drawer-open .work-mobile-nav__drawer {
        max-height: calc(100svh - var(--work-mobile-nav-height));
    }
}
.work-mobile-nav--drawer-open .work-mobile-nav__logo {
    opacity: 0;
}

.work-mobile-nav__drawer-inner {
    padding: clamp(18px, 5vw, 30px) clamp(16px, 4.5vw, 30px) clamp(22px, 6vw, 36px);
    display: grid;
    gap: clamp(14px, 2vw, 22px);
}

.work-mobile-nav__drawer-heading {
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: start;
}

.work-mobile-nav__drawer-logo {
    height: 32px;
    width: auto;
    display: block;
}

.work-mobile-nav__subtitle {
    margin: 0;
    font-weight: 700;
    color: #0f2f1b;
}

.work-mobile-nav__links {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
}

.work-mobile-nav__group {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(9, 86, 36, 0.12);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.work-mobile-nav__group-title {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f2f1b;
}

.work-mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.work-mobile-nav__list--columns {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.work-mobile-nav__list a {
    display: inline-flex;
    padding: 10px 12px;
    background: rgba(25, 152, 72, 0.08);
    border-radius: 10px;
    color: #0a3f47;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 200ms ease;
    box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.35);
}

.work-mobile-nav__list a:hover,
.work-mobile-nav__list a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.45);
    outline: none;
}

.work-mobile-nav__list a.is-active {
    box-shadow: 0 0 0 2px rgba(25, 152, 72, 0.35), 0 16px 32px -22px rgba(0, 0, 0, 0.2);
    background: rgba(25, 152, 72, 0.15);
}

.work-mobile-nav__quick-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(120deg, #199848, #0a3f47);
    color: #f4fff8;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 18px 42px -26px rgba(9, 86, 36, 0.8);
    transition: transform 200ms ease, box-shadow 220ms ease;
}

.work-mobile-nav__quick-contact:hover,
.work-mobile-nav__quick-contact:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px -26px rgba(9, 86, 36, 0.9);
    outline: none;
}

.work-mobile-nav__group--languages .work-mobile-nav__flags {
    flex-wrap: wrap;
}

body.work-mobile-drawer-open {
    overflow: hidden;
}

/* przy otwartej szufladzie pływająca pigułka nachodziłaby na jej własny
   przycisk kontaktu */
body.work-mobile-drawer-open .quick-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1080px) {
    .home-services__grid {
        grid-template-columns: 1fr;
    }

    .has-mobile-nav {
        --nav-w-closed: 0px;
        --content-left-offset: clamp(24px, 5vw, 36px);
    }

    .has-mobile-nav .work-mobile-nav {
        display: block;
    }

    .has-mobile-nav .side-nav,
    .has-mobile-nav .labels-rail,
    .has-mobile-nav .nav-edge,
    .has-mobile-nav .reveal-clip {
        display: none;
    }

    .quick-contact {
        display: none;
    }

    .has-mobile-nav .content,
    .has-mobile-nav .content--quality .quality-hero,
    .has-mobile-nav .work-page,
    .has-mobile-nav .funding-page,
    .has-mobile-nav .contact-page {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .has-mobile-nav .content {
        padding: calc(var(--work-mobile-nav-height) + 8px) clamp(16px, 4vw, 26px) clamp(22px, 5vw, 34px);
    }

    .has-mobile-nav .work-page,
    .has-mobile-nav .funding-page,
    .has-mobile-nav .contact-page {
        padding: calc(var(--work-mobile-nav-height) + 8px) clamp(16px, 4vw, 26px) clamp(22px, 5vw, 34px);
    }

    .has-mobile-nav .site-footer {
        margin-left: 0;
        width: 100%;
    }

    .has-mobile-nav .site-footer__bottom-bar {
        margin-left: 0;
    }

    /* Mobilna sekcja hero (ilustracja + pionowy pasek ikon) jest zdefiniowana
       w jednym miejscu na końcu pliku: "MOBILNA SEKCJA HERO". */

    .work-positions__grid {
        grid-template-columns: 1fr;
    }

    .funding-section__content {
        grid-template-columns: 1fr;
    }

    .work-card__image-wrapper {
        width: 100%;
    }

    .work-hero__inner {
        text-align: center;
        align-items: center;
        padding: clamp(18px, 4vw, 28px);
    }

    .work-hero__text {
        text-align: left;
    }

    .work-card__title::after {
        width: min(240px, 80%);
    }
}

@media (max-width: 640px) {
    .has-mobile-nav .content,
    .has-mobile-nav .work-page,
    .has-mobile-nav .funding-page,
    .has-mobile-nav .contact-page {
        padding: calc(var(--work-mobile-nav-height) + 6px) clamp(14px, 4.5vw, 22px) clamp(20px, 6vw, 30px);
        margin-left: 0;
        width: 100%;
    }

    .work-card__image-wrapper {
        min-height: 260px;
    }

    .work-card__overlay {
        padding: clamp(16px, 6vw, 24px);
    }
}

@media (max-width: 720px) {
    .work-card__overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient(180deg, rgba(12, 70, 35, 0.8) 0%, rgba(12, 70, 35, 0.92) 100%);
        backdrop-filter: blur(1px);
    }

    .work-card__overlay-content {
        gap: 10px;
    }

    .work-mobile-nav__list--columns {
        grid-template-columns: 1fr;
    }

    /* Oba pływające przyciski leżą w jednej linii: wspólny odstęp od dołu
       i wspólna wysokość, więc ich środki są na tym samym poziomie. */
    body.has-mobile-nav {
        --floating-action-bottom: 20px;
        --floating-action-inset: 18px;
        --floating-action-size: 50px;
    }

    .has-mobile-nav .quick-contact {
        top: auto;
        bottom: var(--floating-action-bottom);
        right: auto;
        left: var(--floating-action-inset);
        height: var(--floating-action-size);
        padding-top: 0;
        padding-bottom: 0;
    }

    .has-mobile-nav .scroll-to-top {
        right: var(--floating-action-inset);
        bottom: var(--floating-action-bottom);
        width: var(--floating-action-size);
        height: var(--floating-action-size);
    }
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .quick-contact {
    z-index: 100;
}

@keyframes interactive-shine {
    0% {
        transform: translateX(-130%) skewX(-20deg);
        opacity: 0;
    }
    45% {
        opacity: .55;
    }
    100% {
        transform: translateX(130%) skewX(-20deg);
        opacity: 0;
    }
}

@keyframes interactive-shine-loop {
    0% {
        transform: translateX(-130%) skewX(-20deg);
        opacity: 0;
    }
    6% {
        opacity: .55;
    }
    16% {
        transform: translateX(130%) skewX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateX(-130%) skewX(-20deg);
        opacity: 0;
    }
}

/* ====== SZYBKI KONTAKT ====== */
.quick-contact {
    --quick-bg: #199848;
    --quick-text: hsla(147, 47%, 95%, 1);
    --quick-shadow: rgba(25, 152, 72, .45);
    --quick-page-bg: #ffffff;

    position: fixed;
    top: 40px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--quick-bg);
    color: var(--quick-text);
    text-decoration: none;
    font-family: "Biryani", system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: var(--quick-shadow) 2px 2px 22px;
    cursor: pointer;
    overflow: hidden;
    z-index: 3000;
    transition: box-shadow .3s ease;
}

.quick-contact:focus-visible {
    outline: 3px solid rgba(9, 86, 36, .6);
    outline-offset: 4px;
}

.quick-contact::before {
    content: '';
    pointer-events: none;
    opacity: .6;
    background:
        radial-gradient(circle at 20% 35%, transparent 0, transparent 2px, var(--quick-text) 3px, var(--quick-text) 4px, transparent 4px),
        radial-gradient(circle at 75% 44%, transparent 0, transparent 2px, var(--quick-text) 3px, var(--quick-text) 4px, transparent 4px),
        radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, var(--quick-text) 5px, var(--quick-text) 6px, transparent 6px);
    width: 100%;
    height: 300%;
    top: 0;
    left: 0;
    position: absolute;
    animation: quick-contact-bubbles 5s linear infinite both;
}

.quick-contact::after {
    display: block;
    position: absolute;
    white-space: nowrap;
    padding: 40px 40px;
    pointer-events: none;
    font-family: inherit;
    font-weight: 400;
    top: -30px;
    left: -24px;
    color: rgba(255, 255, 255, .32);
}

.quick-contact__label {
    position: relative;
    z-index: 1;
}

.quick-contact__side {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

.quick-contact__side--right {
    left: 66%;
}

.quick-contact__side--left {
    right: 66%;
}

.quick-contact__side--right::after {
    content: attr(data-text);
    display: block;
    position: absolute;
    white-space: nowrap;
    padding: 40px 40px;
    pointer-events: none;
    font-family: inherit;
    top: -30px;
    left: calc(-66% - 20px);
    background-color: var(--quick-page-bg);
    color: transparent;
    transition: transform .4s ease-out;
    transform: translate(0, -90%) rotate(0deg);
}

.quick-contact:hover {
    box-shadow: rgba(25, 152, 72, .55) 2px 2px 26px;
}

.quick-contact:hover .quick-contact__side--right::after {
    transform: translate(0, -47%) rotate(0deg);
}

.quick-contact .quick-contact__side--right:hover::after {
    transform: translate(0, -50%) rotate(-7deg);
}

.quick-contact .quick-contact__side--left:hover ~ .quick-contact__side--right::after {
    transform: translate(0, -50%) rotate(7deg);
}

@keyframes quick-contact-bubbles {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -66.666%, 0);
    }
}

.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(25, 152, 72, 0.38);
    cursor: pointer;
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, box-shadow 220ms ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    box-shadow: 0 18px 36px rgba(25, 152, 72, 0.48);
}

.scroll-to-top:focus-visible {
    outline: 3px solid rgba(9, 86, 36, 0.55);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .quick-contact::before {
        animation: none;
    }

    .quick-contact__side--right::after {
        transition: none;
    }

    .scroll-to-top {
        transition: none;
    }

    .menu-toggle::after,
    .welcome-banner__service-icon-holder::after,
    .menu-toggle:hover::after,
    .menu-toggle:focus-visible::after,
    .welcome-banner__service-button:hover .welcome-banner__service-icon-holder::after,
    .welcome-banner__service-button:focus-visible .welcome-banner__service-icon-holder::after,
    .welcome-banner__service--link:hover .welcome-banner__service-icon-holder::after,
    .welcome-banner__service--link:focus-visible .welcome-banner__service-icon-holder::after {
        animation: none !important;
        animation-play-state: paused !important;
        opacity: 0;
    }
}

/* ====== Panel ====== */
.side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--nav-w-closed);
    height: 100vh;
    background: #ffffff;
    border-right: 2px solid var(--brand);
    z-index: 200;
    transition: width .35s cubic-bezier(.22,.61,.36,1);
    overflow: visible;
}

.side-nav::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--nav-w-closed);
    right: 0;
    background-image: url('assets/icons/tlo_menu.webp');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: left center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 0;
}

.side-nav.open::before {
    opacity: .05;
}

/* ====== Otwieracz ====== */
.menu-toggle {
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
    border: 0;
    padding: 12px;
    background: transparent;
    cursor: pointer;
    z-index: 2000;
    overflow: hidden;
    isolation: isolate;
}

.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(18% 12%, 100% 50%, 18% 88%, 0% 50%);
    mask-image: url('assets/icons/otwieracz_menu.png');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    mask-mode: alpha;
    -webkit-mask-image: url('assets/icons/otwieracz_menu.png');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-mode: alpha;
}

.menu-toggle::before {
    background: #ffffff;
    z-index: 1;
}

.menu-toggle::after {
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.7) 45%, transparent 85%);
    transform: translateX(-130%) skewX(-20deg);
    opacity: 0;
    z-index: 3;
    animation: interactive-shine-loop var(--menu-toggle-shine-interval) ease infinite;
    animation-play-state: running;
}

.menu-toggle:hover::after,
.menu-toggle:focus-visible::after {
    animation: interactive-shine var(--interactive-shine-duration) ease;
    animation-play-state: running;
}

.menu-toggle img {
    display: block;
    height: 80px;
    width: auto;
    transition: transform .25s ease;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.side-nav.open .menu-toggle img {
    transform: scaleX(-1);
}

.side-nav.open .menu-toggle::after {
    animation-play-state: paused;
    opacity: 0;
}

.side-nav.open .menu-toggle:hover::after,
.side-nav.open .menu-toggle:focus-visible::after {
    animation-play-state: running;
}

/* ====== Szyna ikon ====== */
.icon-rail {
    width: var(--nav-w-closed);
    height: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2001;
}

.icons-stack {
    width: 100%;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    flex: 1;
}

.icon-link {
    display: inline-flex;
}

.icon-link--sygnet {
    justify-content: center;
}

    /* Sygnet — znika po otwarciu */
    .icons-stack .sygnet {
        width: min(var(--sygnet-size-closed), calc(var(--nav-w-closed) - 12px)) !important;
        height: auto;
        transition: opacity .2s ease;
    }

.side-nav.open .sygnet {
    opacity: 0;
    visibility: hidden;
}

/* Lista ikon pod sygnentem — 65vh */
.menu-icons {
    margin-top: 15px;
    height: 65vh;
    display: grid;
    grid-template-rows: repeat(9, 1fr);
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 4000;
}

.menu-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.side-nav:not(.open) .menu-icon-link[data-tooltip]::after,
.side-nav:not(.open) .menu-icon-link[data-tooltip]::before {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.side-nav:not(.open) .menu-icon-link[data-tooltip]::after {
    content: attr(data-tooltip);
    top: 50%;
    left: calc(100% + 16px);
    transform: translateY(-50%) translateX(6px);
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 2147483647;
}

.side-nav:not(.open) .menu-icon-link[data-tooltip]::before {
    content: '';
    top: 50%;
    left: calc(100% + 8px);
    transform: translateY(-50%) translateX(6px);
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent rgba(17, 17, 17, 0.92) transparent transparent;
    z-index: 2147483646;
}

.side-nav:not(.open) .menu-icon-link[data-tooltip]:hover::after,
.side-nav:not(.open) .menu-icon-link[data-tooltip]:focus-visible::after,
.side-nav:not(.open) .menu-icon-link[data-tooltip]:hover::before,
.side-nav:not(.open) .menu-icon-link[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.menu-icon-link .icon {
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    display: block;
    width: var(--icon-w);
    height: auto;
    color: #222;
    user-select: none;
}

.language-switcher {
    margin-top: auto;
    padding: 24px 0 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.language-switcher__flags {
    width: 100%;
    max-width: clamp(62px, 6vw, 86px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.language-switcher__button {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, border-color .2s ease;
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible {
    transform: translateY(-2px);
}

.language-switcher__button:focus-visible {
    outline: 2px solid rgba(25, 152, 72, 0.45);
    outline-offset: 2px;
}

.language-switcher__button--active {
    background: transparent;
    border-color: var(--brand);
}

.language-switcher__eu-flag {
    display: block;
    width: auto;
    height: clamp(28px, 4vw, 42px);
    max-width: calc(var(--nav-w-closed) - 12px);
    margin: 0 auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-left: clamp(6px, 2vw, 12px);
    padding-right: clamp(6px, 2vw, 12px);
    object-fit: contain;
}

/* ====== Etykiety ====== */
.labels-rail {
    position: absolute;
    left: calc(0.5 * var(--nav-w-closed) + (var(--icon-w) / 2) + var(--label-gap));
    top: 0;
    height: 100%;
    padding-right: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 2;
}

.side-nav.expanded .labels-rail {
    opacity: 1;
    visibility: visible;
}

.side-nav.expanded .labels-rail::before {
    opacity: .8;
}

.labels-stack {
    padding-top: 40px;
}

.logo-full {
    display: inline-flex;
    align-items: center;
    height: 54px;
    margin-bottom: 14px;
    text-decoration: none;
}

.logo-full__image {
    display: block;
    height: 100%;
    width: auto;
}

.labels-list {
    position: relative;
    margin-top: 20px;
    width: 100%;
    min-height: 65vh;
}

.labels-list > .label,
.labels-list > .label-with-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
}

.label-with-toggle {
    display: inline-flex;
    align-items: center;
}

.label-with-toggle > .label {
    display: flex;
    align-items: center;
    height: 100%;
}

.label-with-toggle > .label--oferta,
.label-with-toggle > .label--projekty {
    display: flex;
    align-items: center;
    height: 100%;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: "Biryani", system-ui, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1;
    white-space: nowrap;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: default;
}

a.label {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.label-with-toggle > .label--oferta,
.label-with-toggle > .label--projekty {
    margin-left: 10px;
    padding: 0;
}

.label-with-toggle > .label--oferta .chev,
.label-with-toggle > .label--projekty .chev {
    margin-left: 0;
}

    .label.has-submenu {
        cursor: pointer;
    }

.label--oferta .chev,
.label--projekty .chev {
    --chev-shift: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
    transition: transform .25s ease;
    transform-origin: center;
    pointer-events: none;
}

.label--oferta .chev-arrow,
.label--projekty .chev-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(25, 152, 72, .6);
    border-right: 2px solid rgba(25, 152, 72, .6);
    border-radius: 1px;
    opacity: 0;
    transform: translateX(0) rotate(45deg);
}

.side-nav.expanded .label--oferta .chev-arrow,
.side-nav.expanded .label--projekty .chev-arrow {
    animation: chev-arrow-pulse 1.6s ease-in-out infinite;
}

.side-nav.expanded .label--oferta .chev-arrow:nth-child(2),
.side-nav.expanded .label--projekty .chev-arrow:nth-child(2) {
    animation-delay: .28s;
}

.label--oferta.open .chev,
.label--projekty.open .chev {
    transform: rotate(180deg);
    --chev-shift: -6px;
}

@keyframes chev-arrow-pulse {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(45deg);
    }
    30% {
        opacity: .85;
        transform: translateX(0) rotate(45deg);
    }
    60% {
        opacity: 0;
        transform: translateX(var(--chev-shift)) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translateX(var(--chev-shift)) rotate(45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-nav::before {
        transition: none;
    }

    .side-nav.expanded .label--oferta .chev-arrow {
        animation: none;
        opacity: .5;
    }
}

/* ====== Clip-wrapper, który odsłania panel 2 podczas rozsuwania ====== */
.reveal-clip {
    position: absolute;
    inset: 0;
    overflow: hidden; /* klucz do „odsłaniania” rynny 2 */
    pointer-events: none; /* nic nie łapie klików */
    z-index: 1;
}

/* ====== Submenu (zielony panel etapu 2) ====== */
/* Geometrię (left+width) nadaje JS, żeby nie nachodziło na rynnę 1 */
.submenu-rail {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(234, 247, 240, 0.85);
    overflow: hidden;
    border-left: 2px solid var(--brand);
    padding: 0 20px; /* 20 + 20 = 40px */
    display: none;
    pointer-events: auto; /* same linki mają działać */
}

.submenu-rail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/icons/tlo_menu.webp');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: calc(-1 * var(--submenu-overlay-offset, 0px)) center;
    opacity: .05;
    pointer-events: none;
    z-index: 0;
}

.side-nav.expanded .submenu-rail {
    display: block;
}

.submenu-rail[hidden] {
    display: none !important;
}

.submenu {
    position: relative; /* top z JS (wyrównanie do „Oferta”) */
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Biryani", system-ui, sans-serif;
    font-size: 15px;
    white-space: nowrap;
}

    .submenu a {
        color: #0b3b20;
        text-decoration: none;
        padding: 6px 8px;
        border-radius: 4px;
        display: block;
    }

        .submenu a:hover {
            background: rgba(25,152,72,.15);
        }

/* ====== Treść ====== */
.content {
    margin-left: var(--nav-w-closed);
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    --content-section-gap: 50px;
    transition: margin-left .35s cubic-bezier(.22,.61,.36,1);
    position: relative;
    z-index: 0;
}

.content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: top center;
    background-size: auto;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.content--installations {
    --content-section-gap: 0px;
    padding-bottom: 0;
}

.content--installations .installations-overview {
    scroll-margin-top: clamp(80px, 12vh, 160px);
}


.welcome-hero {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: clamp(540px, 80vh, 860px);
    padding-right: 0;
}

.welcome-hero__heading {
    position: relative;
    z-index: 1;
    margin-left: var(--content-left-offset, 60px);
    max-width: min(520px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(90px, 12vh, 180px) 0;
    min-height: clamp(360px, 60vh, 520px);
}


.content--quality .quality-hero {
    position: relative;
    padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0;
    margin-left: var(--nav-w-closed);
    width: calc(100vw - var(--nav-w-closed));
    background: #ffffff;
}

.content--quality .quality-hero::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--nav-w-closed));
    bottom: 0;
    width: 100vw;
    height: 2px;
    background: var(--brand);
}

.content--quality .references-prefooter__column--content {
    align-items: flex-start;
}

.content--quality .references-prefooter__inner {
    grid-template-columns: 0.4fr 0.6fr;
}

.content--quality .references-prefooter__divider {
    width: 100%;
}

.content--quality .references-prefooter__heading-group .references-prefooter__divider {
    padding-bottom: 10px;
}

.quality-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.quality-certificates {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 28px);
    margin-top: var(--content-section-gap);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #f5f5f5 100%);
    padding: 0 clamp(16px, 4vw, 28px) clamp(32px, 6vw, 64px);
}

.quality-certificates__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}

.quality-certificates__title {
    margin: 0;
    font-family: "Biryani", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: #0a3f47;
}

.quality-certificates__subtitle {
    margin: 0;
    color: #38575f;
}

.quality-certificates__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 24px);
}

.quality-certificates__card {
    background: #fff;
    border: 1px solid rgba(10, 63, 71, 0.08);
    border-radius: 16px;
    padding: 8px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    width: 152px;
}

.quality-certificates__card:hover,
.quality-certificates__card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(25, 152, 72, 0.35);
    box-shadow: 0 16px 40px rgba(25, 152, 72, 0.15);
    outline: none;
}

.quality-certificates__thumb {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.welcome-hero__title {
    margin: 0;
    font-family: "Biryani", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    line-height: 1.1;
    color: #0a3f47;
    text-transform: uppercase;
}

.welcome-hero__title--compact {
    font-size: clamp(2rem, 3vw + 0.5rem, 3.25rem);
}

.welcome-banner-group {
    --welcome-offset: var(--content-left-offset, 60px);
    --welcome-banner-width: min(440px, 100%);
    --service-strip-padding: max(clamp(20px, 3vw, 28px), calc(var(--welcome-service-icon-size) / 2 - 12.5px));
    --service-strip-bar-height: 25px;
    --service-strip-bar-top: calc(50% - var(--service-strip-bar-height) / 2);
    --service-strip-total-height: calc(var(--welcome-service-icon-size) + 2 * var(--service-strip-padding));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: var(--welcome-banner-width);
    margin-left: var(--welcome-offset);
    position: relative;
    top: var(--welcome-banner-top-offset, 0px);
    padding-bottom: calc(var(--service-strip-total-height) + var(--welcome-banner-bottom-gap, 40px));
    z-index: 1;
}

.welcome-banner {
    --icon-size: 60px;
    --row-gap: calc(18px * 1.15);
    --icon-text-gap: calc(24px * 1.15);
    --welcome-banner-padding: calc(15px * 1.15);
    --welcome-banner-bottom-gap: var(--welcome-banner-padding);
    --welcome-banner-icon-overhang: -70%;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    font-family: "Biryani", system-ui, sans-serif;
    border: 2px solid var(--brand);
    min-height: var(--welcome-banner-fixed-min-height, auto);
    height: var(--welcome-banner-fixed-min-height, auto);
    max-height: var(--welcome-banner-fixed-min-height, none);
    transition: background-color var(--service-transition-duration, .4s) ease;
    z-index: 1;
}

.welcome-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 152, 72, 0.08), rgba(255, 255, 255, 0));
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.welcome-banner--service {
    background: rgba(255, 255, 255, 0.9);
}

.welcome-banner--animating::before {
    animation: welcome-banner-tone var(--service-transition-duration, .6s) ease-in-out forwards;
}

@keyframes welcome-banner-tone {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0.4;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

.welcome-banner__cta-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: clamp(18px, 3vw, 40px);
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.welcome-banner__tagline {
    --service-strip-bar-height: 25px;
    --service-strip-padding: max( clamp(20px, 3vw, 28px), calc(var(--welcome-service-icon-size) / 2 - var(--service-strip-bar-height) / 2) );
    --service-strip-bar-top: calc( var(--service-strip-padding) + var(--welcome-service-icon-size) / 2 - var(--service-strip-bar-height) / 2 - var(--welcome-service-icon-overhang, 0px) );
    position: relative;
    /* USTAW WŁAŚCIWĄ ZMIENNĄ, z której korzysta transform: */
    --tagline-shift: 30px;
    left: 0;
    right: 0;
    /* nie używamy już marginesu do podjazdu */
    margin-top: 0;
    /* możesz zostawić 0, zamiast odwołania do zmiennej */
    margin-bottom: 0;
    margin-left: calc((var(--nav-w-closed) + var(--content-left-offset, 60px)) * -1);
    width: 100vw;
    max-width: 100vw;
    padding-left: calc(var(--nav-w-closed) + var(--content-left-offset, 60px));
    font-family: "Biryani", system-ui, sans-serif;
    z-index: 2;
    /* to już działa, bo ma właściwą zmienną */
    transform: translateY(calc(var(--tagline-shift, 0px)));
}

.welcome-banner__tagline--large-icons {
    --welcome-service-icon-size: clamp(52px, calc(3.12vw + 46.8px), 104px);
    --tagline-shift: 50px;
}

.welcome-banner__tagline--installations {
    --welcome-service-icon-size: clamp(52px, calc(3.12vw + 46.8px), 104px);
    --tagline-shift: 50px;
}


.welcome-banner__service-strip {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "services"
        "tagline";
    align-items: center;
    column-gap: clamp(16px, 2.4vw, 36px);
    padding: 0 0 var(--service-strip-padding);
    row-gap: clamp(8px, 1.2vw, 14px);
    width: calc(100vw - var(--nav-w-closed));
    margin: 0 auto;
    margin-top: calc(var(--welcome-service-icon-size) / -2);
}

.welcome-banner__service-strip::before {
    content: "";
    position: absolute;
    left: calc((var(--nav-w-closed) + var(--content-left-offset, 60px)) * -1);
    right: 0;
    top: calc(var(--welcome-service-icon-size) / 2 - var(--service-strip-bar-height) / 2);
    height: var(--service-strip-bar-height);
    background: var(--brand);
    pointer-events: none;
    z-index: 0;
}

.welcome-banner__tagline-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111;
    padding: 0 clamp(24px, 3vw, 44px) 0 clamp(28px, 3.5vw, 52px);
    margin: 30px 0 4px;
    min-height: var(--service-strip-bar-height);
    line-height: var(--service-strip-bar-height);
    white-space: nowrap;
    grid-area: tagline;
    justify-self: center;
}

.welcome-banner__services {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 1.8vw, 20px);
    width: 100%;
    font-size: clamp(12px, 0.4vw + 10px, 15px);
    letter-spacing: normal;
    text-transform: none;
    padding: 0 clamp(12px, 2vw, 18px);
    scroll-snap-type: x mandatory;
    grid-area: services;
}

.home-services {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    padding: clamp(18px, 4vw, 52px) clamp(22px, 6vw, 72px) clamp(56px, 7vw, 110px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-services__inner {
    width: min(100%, 1440px);
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3vw, 32px);
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 32px);
    row-gap: clamp(28px, 4vw, 48px);
}

.home-services__card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: clamp(12px, 2vw, 18px);
    text-align: center;
}

.home-services__title {
    margin: 0;
    text-align: center;
    font-size: clamp(18px, 1vw + 16px, 26px);
    letter-spacing: 0.05em;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f0f0f;
    position: relative;
    padding-bottom: 12px;
    line-height: 1.35;
    min-height: calc(2 * 1.35em);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-services__image-wrapper {
    min-height: clamp(240px, 22vw, 360px);
}

.home-services__overlay {
    background: radial-gradient(circle at 20% 20%, rgba(25, 152, 72, 0.72), rgba(12, 70, 35, 0.94));
}

.home-services__overlay-content {
    max-width: 560px;
}

.home-services__description {
    margin: 0;
    line-height: 1.6;
    font-size: clamp(14px, 0.7vw + 13px, 18px);
}

.home-services__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 16px 30px rgba(25, 152, 72, 0.24);
    justify-self: center;
}

.home-services__cta:hover,
.home-services__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(25, 152, 72, 0.32);
}

.home-services__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(70%, 320px);
    height: 3px;
    background: var(--brand);
    border-radius: 999px;
}

.installations-section {
    margin: 0;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.installations-section--footer-background {
    position: relative;
    overflow: hidden;
}

.installations-section--footer-background::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
}

.installations-section--footer-background .installations-section__inner {
    position: relative;
    z-index: 1;
}

.installations-section__inner {
    display: flex;
    align-items: center;
    gap: clamp(28px, 5vw, 88px);
    max-width: 1200px;
    width: 100%;
}

.installations-section__image {
    flex: 0 0 52%;
    max-width: 52%;
}

.installations-section__image img {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid var(--brand);
}

.installations-section__content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 28px);
    color: #111;
    font-family: "Biryani", system-ui, sans-serif;
}

.installations-section__title {
    margin: 0;
    font-size: clamp(20px, 1vw + 18px, 28px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: normal;
    line-height: 1.25;
    max-width: 32ch;
}

.installations-section__description {
    margin: 0;
    font-size: clamp(16px, 0.6vw + 14px, 19px);
    line-height: 1.6;
}

.installations-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 14px 28px 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.installations-section__cta:hover,
.installations-section__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(25, 152, 72, 0.2);
}

.welcome-banner__service {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 1vw, 18px);
    color: #111;
    text-align: center;
    flex: 1 1 var(--welcome-service-column-min);
    min-width: min(var(--welcome-service-column-min), 100%);
    max-width: min(var(--welcome-service-column-min), 100%);
}

.welcome-banner__service-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    position: relative;
}

.welcome-banner__service-button:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.9);
    outline-offset: 4px;
}

.welcome-banner__service-icon-holder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--welcome-service-icon-size);
    height: var(--welcome-service-icon-size);
    transition: transform var(--service-transition-duration, .45s) ease-in-out;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 0;
}

.welcome-banner__service-icon-holder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.65) 45%, transparent 85%);
    transform: translateX(-130%) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: interactive-shine-loop var(--service-auto-shine-interval) ease infinite;
}

.welcome-banner__service-button:hover .welcome-banner__service-icon-holder::after,
.welcome-banner__service-button:focus-visible .welcome-banner__service-icon-holder::after,
.welcome-banner__service--link:hover .welcome-banner__service-icon-holder::after,
.welcome-banner__service--link:focus-visible .welcome-banner__service-icon-holder::after {
    animation: interactive-shine var(--interactive-shine-duration) ease;
}

.welcome-banner__service-icon {
    width: var(--welcome-service-icon-size);
    height: var(--welcome-service-icon-size);
    object-fit: contain;
    display: block;
}

.welcome-banner__service-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
    color: #111;
    margin-top: 0;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    min-height: calc(1.35em * 2.1);
    text-align: center;
}

.welcome-banner__service-label--compact {
    font-size: clamp(0.72rem, 0.8vw, 0.95rem);
}

.welcome-banner__service--link {
    text-decoration: none;
    color: inherit;
}

.welcome-banner__service--active .welcome-banner__service-icon-holder {
    transform: scale(1.2);
}

.welcome-banner__service--active .welcome-banner__service-icon-holder::after {
    animation: none;
    opacity: 0;
}

.welcome-banner__service--link:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.9);
    outline-offset: 4px;
}

.welcome-banner__header {
    background: var(--brand);
    color: #fff;
    padding: 14px 20px;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.welcome-banner__title {
    margin: 0;
    font-size: clamp(20px, 2vw + 12px, 28px);
    letter-spacing: .02em;
    font-weight: 600;
}

.welcome-banner__body {
    padding: var(--welcome-banner-padding);
    padding-bottom: var(--welcome-banner-bottom-gap);
    color: #1f1f1f;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    overflow: visible; /* ← pozwól wystawać ponad body */
    scrollbar-gutter: stable;
}


.welcome-banner__intro {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.6;
    max-width: none;
}

.welcome-banner__details {
    padding: 0;
}

.welcome-banner__list {
    list-style: none;
    margin: 0;
    padding: calc(6px * 1.15) 0;
    display: flex;
    flex-direction: column;
    gap: var(--row-gap);
    font-size: 17px;
    line-height: 1.4;
}

.welcome-banner__item {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    min-height: var(--icon-size);
    padding-right: 0;
    padding-left: calc(var(--icon-size) / 2 + var(--icon-text-gap));
}

.welcome-banner__link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: var(--icon-size);
    color: inherit;
    text-decoration: none;
    padding-right: 8px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.welcome-banner__link:hover .welcome-banner__text,
.welcome-banner__link:focus-visible .welcome-banner__text {
    text-decoration: underline;
}

.welcome-banner__link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

.welcome-banner__item--steps {
    align-items: center;
}

.welcome-banner__icon {
    width: var(--icon-size);
    height: var(--icon-size);
    display: block;
    flex: 0 0 var(--icon-size);
    color: var(--brand);
}

.welcome-banner__icon,
.welcome-banner__item--steps .welcome-banner__step {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.welcome-banner__icon {
    left: 0;
    transform: translate(var(--welcome-banner-icon-overhang, -70%), -50%);
}

.welcome-banner__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size);
    height: var(--icon-size);
    border-radius: 50%;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    flex: 0 0 var(--icon-size);
    background: #fff;
}

.welcome-banner__text {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
}

.welcome-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-family: "Biryani", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--service-transition-duration, .4s) ease, background-color .25s ease;
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
    align-self: center;
}


.welcome-banner__cta--visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-banner__cta:hover {
    opacity: .85;
}

.welcome-banner__cta:focus-visible {
    outline: 2px solid rgba(9, 86, 36, 0.8);
    outline-offset: 4px;
}


.history-footer-section,
.references-prefooter {
    margin-left: var(--nav-w-closed);
    width: calc(100vw - var(--nav-w-closed));
    padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 64px) 0;
    background: #ffffff;
    font-family: "Biryani", system-ui, sans-serif;
}

.history-footer-section__inner,
.references-prefooter__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 64px);
    align-items: stretch;
}

.history-footer-section__column,
.references-prefooter__column {
    display: flex;
    flex-direction: column;
}

.history-footer-section__column--video {
    justify-content: center;
}

.history-footer-section__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.18);
}

.history-footer-section__video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.history-footer-section__column--content,
.references-prefooter__column--content {
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding-right: 0;
}

.references-prefooter {
    padding-bottom: 0;
    padding-right: 150px;
}

.references-prefooter__column--image {
    justify-content: flex-start;
    align-items: stretch;
}

.references-prefooter__image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.references-prefooter__heading-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2px, 0.6vw, 6px);
}

.references-prefooter__heading {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.references-prefooter__divider {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    border-radius: 999px;
    margin: 0;
}

.references-prefooter__divider::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--brand);
    border-radius: inherit;
}

.references-prefooter__heading-group .references-prefooter__divider {
    padding-bottom: 20px;
}

.references-prefooter__column--content > .references-prefooter__divider {
    padding-top: 25px;
    margin-top: clamp(14px, 2.5vw, 22px);
}

.references-prefooter__description {
    margin: 0;
    font-size: clamp(12px, 0.98vw, 15.3px);
    line-height: 1.6;
}

.references-prefooter__description + .references-prefooter__description {
    margin-top: clamp(8px, 2vw, 16px);
}

.references-prefooter__divider + .references-prefooter__motto {
    margin-top: clamp(14px, 2.5vw, 22px);
}

.references-prefooter__motto {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    color: var(--brand);
}

.references-prefooter__cta {
    margin: clamp(10px, 2vw, 18px) 0 clamp(18px, 3vw, 28px);
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
}

.references-prefooter__logos {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 36px);
    align-items: center;
    padding-bottom: 30px;
}

.references-prefooter__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.references-prefooter__logo {
    display: block;
    max-width: 160px;
    height: auto;
    transition: transform 180ms ease;
}

.references-prefooter__logo-link:hover .references-prefooter__logo,
.references-prefooter__logo-link:focus-visible .references-prefooter__logo {
    transform: scale(1.03);
}

.references-prefooter__logo-link:focus-visible {
    outline: 2px solid rgba(9, 86, 36, 0.8);
    outline-offset: 4px;
}

.references-prefooter {
    padding-bottom: 0;
}

.references-prefooter__column--content {
    padding-right: 50px;
}

.references-prefooter__column--image {
    justify-content: flex-start;
    align-items: stretch;
}

.references-prefooter__image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.references-prefooter__heading-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2px, 0.6vw, 6px);
}

.references-prefooter__heading {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.references-prefooter__divider {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    border-radius: 999px;
    margin: 0;
}

.references-prefooter__divider::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--brand);
    border-radius: inherit;
}

.references-prefooter__heading-group .references-prefooter__divider {
    padding-bottom: 20px;
}

.references-prefooter__column--content > .references-prefooter__divider {
    padding-top: 20px;
    margin-top: clamp(14px, 2.5vw, 22px);
}

.references-prefooter__description {
    margin: 0;
    font-size: clamp(12px, 0.98vw, 15.3px);
    line-height: 1.6;
}

.references-prefooter__description + .references-prefooter__description {
    margin-top: clamp(8px, 2vw, 16px);
}

.references-prefooter__divider + .references-prefooter__motto {
    margin-top: clamp(14px, 2.5vw, 22px);
}

.references-prefooter__motto {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    color: var(--brand);
}

.references-prefooter__cta {
    margin: clamp(10px, 2vw, 18px) 0 clamp(18px, 3vw, 28px);
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
}

.references-prefooter__logos {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 36px);
    align-items: center;
    padding-bottom: 30px;
}

.references-prefooter__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.references-prefooter__logo {
    display: block;
    max-width: 160px;
    height: auto;
    transition: transform 180ms ease;
}

.references-prefooter__logo-link:hover .references-prefooter__logo,
.references-prefooter__logo-link:focus-visible .references-prefooter__logo {
    transform: scale(1.03);
}

.references-prefooter__logo-link:focus-visible {
    outline: 2px solid rgba(9, 86, 36, 0.8);
    outline-offset: 4px;
}

.history-footer-section__text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 16px);
    padding-right: 50px;
}

.history-footer-section__image-wrapper {
    margin-top: auto;
    padding-top: clamp(26px, 4vw, 52px);
    width: 100%;
}

.history-footer-section__heading {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 28px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.history-footer-section__highlight {
    color: var(--brand);
}

.history-footer-section__description {
    margin: 0;
    font-size: clamp(12px, 0.98vw, 15.3px);
    line-height: 1.6;
}

.history-footer-section__closing {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
}

.history-footer-section__image {
    display: block;
    margin: 0;
    width: min(100%, 780px);
    height: auto;
}

@media (max-width: 960px) {
    .history-footer-section__inner,
    .references-prefooter__inner {
        grid-template-columns: 1fr;
    }

    .history-footer-section__column--content {
        align-items: flex-start;
    }

    .history-footer-section__image {
        width: min(100%, 676px);
    }

    .references-prefooter__column--image {
        align-items: flex-start;
    }

}

@media (max-width: 640px) {
    .history-footer-section,
    .references-prefooter {
        padding-left: clamp(20px, 6vw, 32px);
        padding-right: clamp(20px, 6vw, 32px);
    }

    .references-prefooter {
        padding-left: clamp(20px, 6vw, 32px);
        padding-right: clamp(20px, 6vw, 32px);
    }

    .history-footer-section__heading {
        letter-spacing: 0.08em;
    }

    .references-prefooter__heading {
        letter-spacing: 0.08em;
    }
}

.site-footer {
    margin-top: 0;
    margin-left: var(--nav-w-closed);
    width: calc(100vw - var(--nav-w-closed));
    background: #f5f5f5;
    color: #111;
    font-family: "Biryani", system-ui, sans-serif;
    position: relative;
    overflow: visible;
}

.content--installations + .site-footer {
    margin-top: 0;
}

.content--installations > .installations-overview:last-of-type {
    padding-bottom: 70px;
}

.site-footer__inner {
    padding: clamp(28px, 4.5vw, 60px) clamp(28px, 5vw, 64px) 0;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 40px);
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__column-title {
    margin: 0;
    font-size: clamp(15px, 0.5vw + 13px, 18px);
    font-weight: 700;
}

.site-footer__column:first-child {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.site-footer__column:nth-child(2),
.site-footer__column:nth-child(3) {
    border-left: 2px solid var(--brand);
    padding-left: 15px;
    padding-right: 15px;
}

.site-footer__column--illustration {
    --footer-illustration-overhang-px: 0px;
    position: relative;
    align-items: flex-end;
    justify-content: flex-end;
}

.site-footer__illustration-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.site-footer__logo {
    max-width: 180px;
    height: auto;
}

.site-footer__address {
    font-style: normal;
    margin: 0;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__link {
    color: inherit;
    text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}


.site-footer__illustration {
    position: relative;
    width: clamp(220px, 28vw, 420px);
    max-width: 100%;
    height: auto;
    transform: translateY(calc(-1 * var(--footer-illustration-overhang-px)));
    bottom: calc(-1 * var(--footer-illustration-overhang-px));
}

.site-footer__city-badge {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    margin-top: 12px;
    margin-bottom: 20px;
}

.site-footer__bottom-bar {
    margin-top: 0;
    background: var(--brand);
    color: #fff;
}

.site-footer__bottom-bar-inner {
    margin: 0;
    padding: 8px clamp(32px, 6vw, 72px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.site-footer__credits {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.site-footer__bottom-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.site-footer__bottom-link:hover,
.site-footer__bottom-link:focus-visible {
    text-decoration: underline;
}

.welcome-banner--animating .welcome-banner__header,
.welcome-banner--animating .welcome-banner__body,
.welcome-banner--animating .welcome-banner__cta-container {
    animation: welcome-banner-content var(--service-transition-duration, .6s) ease-in-out forwards;
}

@media (max-width: 1600px) and (min-width: 1081px) {
    .welcome-banner__services {
        --welcome-service-icon-size: clamp(44px, 4vw, 64px);
        --welcome-service-icon-overhang: 0px;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        gap: clamp(12px, 1.4vw, 18px);
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .welcome-banner__service {
        flex: 0 0 clamp(130px, 11vw, 190px);
        min-width: auto;
        max-width: none;
        scroll-snap-align: start;
    }
}

@media (max-width: 1200px) {
    body:not(.has-mobile-nav) .welcome-banner-group {
        width: min(100%, 1180px);
        margin-left: var(--content-left-offset, 60px);
        gap: clamp(18px, 4vw, 26px);
    }

    body:not(.has-mobile-nav) .welcome-banner__tagline {
        position: static;
        margin: clamp(10px, 2vw, 18px) 0 0 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: none;
        transform: none;
    }

    body:not(.has-mobile-nav) .welcome-banner__service-strip {
        grid-template-columns: 1fr;
        padding: 0;
        row-gap: clamp(10px, 2.4vw, 18px);
    }

    body:not(.has-mobile-nav) .welcome-banner__service-strip::before {
        left: 0;
    }

    body:not(.has-mobile-nav) .welcome-banner__tagline-text {
        justify-content: center;
        width: 100%;
        padding: 0 clamp(12px, 3vw, 26px);
    }

    body:not(.has-mobile-nav) .welcome-banner__services {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        overflow-x: auto;
        gap: clamp(12px, 1.8vw, 20px);
        padding: 0 clamp(10px, 1.8vw, 16px);
        scroll-snap-type: x mandatory;
    }

    body:not(.has-mobile-nav) .welcome-banner__service {
        flex: 1 1 0;
        min-width: clamp(110px, 9vw, 160px);
        max-width: none;
        scroll-snap-align: start;
    }
}

@keyframes welcome-banner-content {
    0% {
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    70% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .content {
        padding-left: clamp(24px, 6vw, 40px);
        --content-left-offset: clamp(24px, 6vw, 40px);
    }

    .welcome-hero__heading {
        margin-left: clamp(20px, 6vw, 32px);
        padding: clamp(56px, 18vw, 100px) 0;
        max-width: 90vw;
        min-height: clamp(280px, 64vh, 400px);
    }

    .welcome-hero__title {
        font-size: clamp(1.9rem, 8vw, 2.9rem);
    }

    .welcome-banner-group {
        --welcome-offset: clamp(24px, 6vw, 40px);
        --welcome-banner-width: 100%;
        width: 100%;
        margin-left: var(--welcome-offset);
    }

    .welcome-banner {
        --icon-size: 48px;
    }

    .welcome-banner__service-strip {
        grid-template-columns: 1fr;
        row-gap: clamp(16px, 4vw, 28px);
    }

    .welcome-banner__services {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        gap: clamp(10px, 2.6vw, 16px);
    }

    .welcome-banner__tagline {
        --welcome-service-icon-size: clamp(36px, 8vw, 56px);
        --welcome-service-column-min: clamp(120px, 48vw, 200px);
        --welcome-service-icon-overhang: clamp(22px, 9vw, 32px);
    }

    .welcome-banner__tagline-text {
        font-size: 13px;
        letter-spacing: 0.12em;
        justify-content: center;
        padding: 0 clamp(20px, 7vw, 40px);
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__column--illustration {
        align-items: center;
        justify-content: center;
    }

    .site-footer__illustration {
        width: clamp(240px, 60vw, 380px);
    }

    .site-footer__bottom-bar-inner {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 960px) {
    .welcome-banner__services {
        width: 100%;
        margin-left: 0;
    }

    .welcome-banner__services {
        gap: clamp(10px, 1.4vw, 16px);
    }

    .welcome-hero__heading {
        margin-left: clamp(24px, 6vw, 40px);
        padding: clamp(70px, 18vw, 140px) 0;
        max-width: min(460px, 88vw);
        min-height: clamp(320px, 64vh, 460px);
    }

    .welcome-hero__title {
        font-size: clamp(2.1rem, 5vw + 1rem, 3.5rem);
    }

    .installations-section {
        margin: 0;
        padding: 0;
    }

    .installations-section__inner {
        flex-direction: column;
        gap: clamp(24px, 6vw, 48px);
    }

    .installations-section__image {
        width: 100%;
    }

    .installations-section__cta {
        align-self: stretch;
        justify-content: center;
    }

.site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

.installations-overview {
    position: relative;
    padding: 32px clamp(1.5rem, 4vw, 4rem) clamp(5rem, 8vw, 6rem);
    color: #0c1f24;
    background: linear-gradient(180deg, #ffffff 0%, #ebfff2 100%);
    font-family: "Biryani", system-ui, sans-serif;
}

.installations-overview--footer-blend {
    background: linear-gradient(180deg, #ffffff 0%, #ebfff2 55%, #f5f5f5 100%);
}

.installations-overview--sezas {
    margin-top: -1px;
    background: linear-gradient(180deg, #ebfff2 0%, #b2c7ba 100%);
}

.installations-overview--wrs {
    margin-top: -1px;
    background: linear-gradient(180deg, #b2c7ba 0%, #cbded2 100%);
}

.installations-overview--devices {
    margin-top: -1px;
    background: linear-gradient(180deg, #cbded2 0%, #f5f5f5 100%);
}

.installations-overview__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.installations-overview__header {
    text-align: center;
    display: grid;
    gap: 1rem;
}

.installations-overview__eyebrow {
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand);
}

.installations-overview__title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    color: #0a3f47;
}

.installations-overview__intro {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1d373c;
}

.installations-overview__content {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.installations-overview__content--single {
    grid-template-columns: minmax(0, 1fr);
}

.installations-overview__column {
    background-color: rgba(255, 255, 255, 0.82);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 24px 60px -35px rgba(8, 46, 41, 0.4);
    border: 1px solid rgba(12, 124, 134, 0.15);
    display: grid;
    gap: 1.5rem;
}

.installations-overview__column-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--brand);
}

.installations-overview__list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
    color: #0a3f47;
    font-weight: 600;
    list-style: disc;
}

.installations-overview__list--detailed {
    font-weight: 500;
    color: #1d373c;
}

.installations-overview__list--detailed li {
    line-height: 1.6;
}

.installations-overview__subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #0a3f47;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.installations-overview__subsection {
    display: grid;
    gap: 0.75rem;
}

.installations-overview__badge {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

.installations-overview__badge img {
    width: 80%;
    max-width: none;
    height: auto;
    border: 6px solid var(--brand);
}

.installations-overview__materials {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a3f47;
}

.installations-gallery {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 24px 60px -35px rgba(8, 46, 41, 0.4);
    border: 1px solid rgba(12, 124, 134, 0.15);
}

.installations-gallery__title {
    margin: 0 0 2rem;
    font-size: 1.5rem;
    color: var(--brand);
    text-align: center;
}

.installations-gallery__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.installations-gallery__thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 48px -30px rgba(8, 46, 41, 0.5);
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.installations-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 124, 134, 0.1), rgba(12, 124, 134, 0.35));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.installations-gallery__thumb:hover,
.installations-gallery__thumb:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -32px rgba(8, 46, 41, 0.55);
}

.installations-gallery__thumb:hover::after,
.installations-gallery__thumb:focus-visible::after {
    opacity: 1;
}

.installations-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.installations-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

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

.installations-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 19, 0.75);
    backdrop-filter: blur(6px);
}

.installations-lightbox__figure {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 1100px);
    width: 100%;
    background: #fff;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 1rem;
    box-shadow: 0 40px 90px -45px rgba(6, 28, 24, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.installations-lightbox__image {
    width: 100%;
    max-height: min(70vh, 640px);
    object-fit: contain;
    border-radius: 0.75rem;
}

.installations-lightbox__controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.installations-lightbox__control {
    background: #fff;
    border: 2px solid var(--brand);
    color: var(--brand);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    box-shadow: 0 12px 30px -18px rgba(8, 46, 41, 0.45);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.installations-lightbox__control:hover,
.installations-lightbox__control:focus-visible {
    transform: scale(1.06);
    background: var(--brand);
    color: #fff;
}

.installations-lightbox__control--prev,
.installations-lightbox__control--next {
    position: static;
    transform: none;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
}

.installations-lightbox__control--close {
    position: absolute;
    inset-block-start: clamp(1rem, 2vw, 1.5rem);
    inset-inline-end: clamp(1rem, 2vw, 1.5rem);
    z-index: 2;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 960px) {
    .installations-overview__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .installations-section__title {
        white-space: normal;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-left: 0;
        width: 100%;
    }

    .site-footer__column--illustration {
        --footer-illustration-overhang-px: 0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-nav, .labels-rail, .content, .menu-toggle img, .nav-edge {
        transition: none !important;
    }

    .welcome-banner__service-icon-holder,
    .welcome-banner__cta {
        transition: none !important;
    }

    .welcome-banner--animating .welcome-banner__header,
    .welcome-banner--animating .welcome-banner__body,
    .welcome-banner--animating .welcome-banner__cta-container {
        animation: none !important;
    }
}

/* ====== Przykładowe realizacje ====== */
.content--realizations {
    --content-section-gap: 0px;
    padding-bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #ebfff2 34%, #f5f5f5 100%);
}

.content--realizations .references-prefooter {
    padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0;
}

.content--realizations .references-prefooter__column--content {
    align-items: center;
}

.realizations-intro {
    position: relative;
    padding: clamp(16px, 3vw, 28px) clamp(20px, 3.2vw, 32px) clamp(20px, 3.5vw, 36px);
    background: #ffffff;
}

/* nagłówek i ikony kategorii wyśrodkowane w białym polu między paskiem menu a ilustracją:
   lewe wcięcie sekcji jest mniejsze niż odstęp do ilustracji, więc lewy padding wyrównuje
   różnicę (zamiast wspólnych 50 px z prawej z .references-prefooter__column--content) */
.realizations-intro__content {
    align-items: center;
    gap: clamp(18px, 3vw, 28px);
    padding-left: calc(clamp(24px, 5vw, 64px) - clamp(16px, 3vw, 32px));
    padding-right: 0;
}

.realizations-intro__heading-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    gap: clamp(4px, 0.7vw, 8px);
    text-transform: uppercase;
    color: #0a3f47;
    text-align: center;
}

.realizations-intro__heading {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: 0.12em;
}

.realizations-intro__divider {
    position: relative;
    display: block;
    height: 0;
    border-radius: 999px;
    align-self: stretch;
}

.realizations-intro__divider::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--brand);
    border-radius: inherit;
}

/* Kategorie realizacji: zwarty rząd czterech ikon z podpisami pod spodem (wcześniej
   kolumna ikon po 100 px zajmowała ok. 460 px wysokości) */
.realizations-intro__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 1.8vw, 24px);
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
}

.realizations-intro__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: #0a3f47;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 160ms ease;
}

.realizations-intro__link:hover,
.realizations-intro__link:focus-visible {
    color: var(--brand);
}

.realizations-intro__link:focus-visible {
    outline: 2px solid rgba(9, 86, 36, 0.7);
    outline-offset: 6px;
}

.realizations-intro__icon {
    height: clamp(52px, 4.4vw, 68px);
    width: auto;
    display: block;
    transition: transform 160ms ease;
}

.realizations-intro__link:hover .realizations-intro__icon,
.realizations-intro__link:focus-visible .realizations-intro__icon {
    transform: translateY(-2px);
}

.realizations-intro__label {
    font-size: clamp(11px, 0.9vw, 13px);
    line-height: 1.35;
    text-align: center;
}

.realizations-intro__image-column {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.realizations-intro__image {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
}

.realizations-intro__bottom-divider {
    position: absolute;
    left: calc(-1 * var(--nav-w-closed));
    right: 0;
    bottom: 0;
    display: block;
    height: 3px;
    background-color: var(--brand);
    border-radius: 0;
}

.realizations-section {
    scroll-margin-top: clamp(80px, 12vh, 160px);
    margin-top: -1px;
}

.realizations-section__card {
    gap: clamp(1.2rem, 3vw, 2.1rem);
}

.realizations-section__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: clamp(0.5rem, 1.5vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0a3f47;
}

.realizations-section__focus {
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.realizations-gallery {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 0.75rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: 0 24px 60px -35px rgba(8, 46, 41, 0.4);
    border: 1px solid rgba(12, 124, 134, 0.15);
}

.realizations-gallery__grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.realizations-gallery__item {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 48px -30px rgba(8, 46, 41, 0.5);
    background: #ffffff;
}

.realizations-gallery__thumb {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.realizations-gallery__thumb:focus-visible {
    outline: 3px solid rgba(9, 86, 36, 0.55);
    outline-offset: 4px;
}

.realizations-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 960px) {
    .realizations-intro__content {
        padding-left: 0;
    }

    .realizations-intro__label {
        letter-spacing: 0.12em;
    }
}

@media (max-width: 560px) {
    .realizations-intro__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }
}

@media (max-width: 720px) {
    .realizations-intro {
        padding-left: clamp(24px, 6vw, 40px);
        padding-right: clamp(24px, 6vw, 40px);
    }

    .realizations-gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

.content--realizations .installations-overview {
    background: transparent;
}

.content--realizations .installations-overview + .installations-overview {
    margin-top: clamp(-2px, -0.3vw, -1px);
}

/* ====== Strony prawne ====== */
.legal-page {
    color: #1b1b1b;
    background: transparent;
}

.content--quality.legal-page {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.legal-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    background: linear-gradient(135deg, rgba(25, 152, 72, 0.08), rgba(25, 152, 72, 0.02));
    border-radius: 18px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    margin-bottom: clamp(24px, 5vw, 48px);
}

.legal-hero__content {
    display: grid;
    gap: 12px;
}

.legal-hero__eyebrow {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #199848;
    margin: 0;
}

.legal-hero__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    color: #0f2f1b;
}

.legal-hero__lead {
    margin: 0;
    max-width: 46ch;
    font-size: 17px;
    line-height: 1.6;
    color: #2f2f2f;
}

.legal-hero__media {
    justify-self: end;
    width: min(520px, 100%);
}

.legal-hero__image-frame {
    background: #fff;
    border-radius: 14px;
    padding: clamp(10px, 2vw, 16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.legal-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.legal-content {
    max-width: 1080px;
    margin: clamp(32px, 6vw, 64px) auto clamp(56px, 8vw, 104px);
    padding: 0 clamp(16px, 4vw, 24px);
}

.legal-content__card {
    display: grid;
    gap: 18px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.legal-content__intro {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.legal-content h2 {
    margin: 12px 0 8px;
    font-size: 20px;
    color: #0f2f1b;
}

.legal-content p {
    margin: 0;
    line-height: 1.7;
    color: #2f2f2f;
}

.legal-content ul {
    margin: 0 0 8px 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
    color: #2f2f2f;
}

.legal-content li {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .legal-content {
        margin-top: clamp(24px, 5vw, 40px);
    }
}

/* =====================================================================
   LABORATORIUM — komponenty podstrony (scoped: body.lab-theme)
   ===================================================================== */

body.lab-theme {
    --lab-ink: #0a3f47;
    --lab-ink-soft: #1d373c;
    --lab-muted: #52706a;
    --lab-line: rgba(12, 124, 134, 0.16);
    --lab-card: rgba(255, 255, 255, 0.9);
    --lab-shadow: 0 24px 60px -35px rgba(8, 46, 41, 0.4);
    --lab-shadow-lift: 0 34px 80px -38px rgba(8, 46, 41, 0.55);
    --lab-radius: 1rem;
    --lab-accent: #7fd6a0;
    --lab-grad: linear-gradient(90deg, var(--brand) 0%, #46b97c 55%, #7fd6a0 100%);
}

/* --- łańcuch teł kolejnych sekcji --------------------------------- */
body.lab-theme .installations-overview--lab-1 {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}
body.lab-theme .installations-overview--lab-2 {
    margin-top: -1px;
    background: linear-gradient(180deg, #f3fbf6 0%, #e7f6ee 100%);
}
body.lab-theme .installations-overview--lab-3 {
    margin-top: -1px;
    background: linear-gradient(180deg, #e7f6ee 0%, #d5ece2 100%);
}
body.lab-theme .installations-overview--lab-4 {
    margin-top: -1px;
    background: linear-gradient(180deg, #d5ece2 0%, #c4e0d5 100%);
}
body.lab-theme .installations-overview--lab-5 {
    margin-top: -1px;
    background: linear-gradient(180deg, #c4e0d5 0%, #b2d4c8 100%);
}
body.lab-theme .installations-overview--lab-6 {
    margin-top: -1px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

/* delikatna poświata w tle sekcji jasnych */
body.lab-theme .installations-overview {
    position: relative;
    overflow: hidden;
}

body.lab-theme .installations-overview::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(25, 152, 72, 0.07), transparent 72%);
    pointer-events: none;
}

body.lab-theme .installations-overview__inner {
    /* position:relative bez z-index — pseudoelement ::before (poświata) maluje się
       wcześniej w porządku DOM, a brak stacking contextu zachowuje mix-blend-mode
       ilustracji względem tła sekcji */
    position: relative;
}

/* --- typografia nagłówków sekcji ---------------------------------- */
body.lab-theme .installations-overview__title {
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

body.lab-theme .installations-overview__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
}

body.lab-theme .installations-overview__eyebrow::before,
body.lab-theme .installations-overview__eyebrow::after {
    content: "";
    height: 2px;
    width: 44px;
    border-radius: 2px;
    flex: 0 0 auto;
}

body.lab-theme .installations-overview__eyebrow::before {
    background: linear-gradient(90deg, transparent, var(--brand));
}

body.lab-theme .installations-overview__eyebrow::after {
    background: linear-gradient(90deg, var(--brand), transparent);
}

/* =====================================================================
   Pasek liczb — ciemny panel otwierający
   ===================================================================== */
.lab-metrics {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
    background: #ffffff;
    font-family: "Biryani", system-ui, sans-serif;
}

.lab-metrics__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: calc(var(--lab-radius) + 4px);
    overflow: hidden;
    background:
        radial-gradient(640px 260px at 8% 0%, rgba(127, 214, 160, 0.16), transparent 65%),
        radial-gradient(520px 300px at 95% 110%, rgba(25, 152, 72, 0.28), transparent 70%),
        linear-gradient(120deg, #0a3f47 0%, #0b4a48 55%, #10593f 100%);
    box-shadow: 0 36px 80px -40px rgba(8, 46, 41, 0.75);
}

.lab-metric {
    padding: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1.3rem, 2vw, 2rem);
    display: grid;
    gap: 0.45rem;
    align-content: start;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-metric:first-child {
    border-left: none;
}

.lab-metric__value {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--lab-accent);
    font-variant-numeric: tabular-nums;
}

.lab-metric__label {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 600;
}

.lab-metric__note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(234, 244, 240, 0.62);
}

/* =====================================================================
   Karty obszarów procesowych
   ===================================================================== */
.lab-domains {
    display: grid;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.lab-domain {
    position: relative;
    overflow: hidden;
    background: var(--lab-card);
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    padding: clamp(1.6rem, 2.4vw, 2.1rem);
    box-shadow: var(--lab-shadow);
    display: grid;
    gap: 1rem;
    align-content: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-domain::before {
    content: attr(data-num);
    position: absolute;
    top: 0.2rem;
    right: 1.1rem;
    font-size: 5.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(10, 63, 71, 0.06);
    pointer-events: none;
}

.lab-domain::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lab-grad);
}

.lab-domain:hover {
    transform: translateY(-5px);
    box-shadow: var(--lab-shadow-lift);
}

.lab-domain__title {
    margin: 0;
    padding-right: 3.4rem;
    font-size: 1.22rem;
    line-height: 1.3;
    color: var(--lab-ink);
    font-weight: 700;
}

.lab-domain__lead {
    margin: 0;
    line-height: 1.62;
    color: var(--lab-ink-soft);
}

.lab-domain__group {
    display: grid;
    gap: 0.5rem;
}

.lab-domain__group-title {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
}

.lab-domain__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
    color: var(--lab-ink-soft);
    line-height: 1.55;
    font-size: 0.95rem;
}

.lab-domain__list li {
    position: relative;
    padding-left: 1.15rem;
}

.lab-domain__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.65;
}

.lab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lab-tags li {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--lab-ink);
    background: rgba(25, 152, 72, 0.09);
    border: 1px solid rgba(25, 152, 72, 0.22);
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
}

/* =====================================================================
   Blok: ilustracja + treść
   ===================================================================== */
.lab-split {
    display: grid;
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.lab-split--reverse .lab-split__media {
    order: 2;
}

.lab-split__media {
    margin: 0;
}

.lab-split__media img {
    display: block;
    width: 100%;
    height: auto;
}

.lab-split__media--plain {
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.lab-split__media--plain::before {
    content: "";
    position: absolute;
    inset: 6% -2% -4% -2%;
    border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
    background: radial-gradient(closest-side, rgba(25, 152, 72, 0.13), rgba(25, 152, 72, 0.05) 62%, transparent 78%);
    pointer-events: none;
}

.lab-split__media--plain img {
    position: relative;
    mix-blend-mode: multiply;
}

.lab-split__body {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.lab-split__body h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.1vw, 1.8rem);
    color: var(--lab-ink);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.lab-split__kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
}

.lab-split__body p {
    margin: 0;
    line-height: 1.68;
    color: var(--lab-ink-soft);
}

.lab-figure {
    margin: 0;
}

/* =====================================================================
   Oś metodyki (timeline)
   ===================================================================== */
.lab-timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 880px;
    position: relative;
    display: grid;
    gap: clamp(1.1rem, 2vw, 1.6rem);
}

.lab-timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, rgba(25, 152, 72, 0.35) 60%, rgba(25, 152, 72, 0.08) 100%);
}

.lab-timeline__item {
    position: relative;
    padding-left: 84px;
}

.lab-timeline__marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--brand);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--brand);
    box-shadow: 0 10px 24px -14px rgba(8, 46, 41, 0.55);
}

.lab-timeline__content {
    background: var(--lab-card);
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    padding: 1.35rem 1.6rem;
    box-shadow: var(--lab-shadow);
    display: grid;
    gap: 0.4rem;
}

.lab-timeline__title {
    margin: 0;
    font-size: 1.08rem;
    color: var(--lab-ink);
    font-weight: 700;
    line-height: 1.35;
}

.lab-timeline__text {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.62;
    color: var(--lab-ink-soft);
}

/* =====================================================================
   Karty wyposażenia
   ===================================================================== */
.lab-equipment {
    display: grid;
    gap: clamp(1rem, 1.8vw, 1.4rem);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lab-equip {
    background: var(--lab-card);
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--lab-shadow);
    display: grid;
    gap: 0.6rem;
    align-content: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-equip:hover {
    transform: translateY(-4px);
    box-shadow: var(--lab-shadow-lift);
}

.lab-equip__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(25, 152, 72, 0.14), rgba(127, 214, 160, 0.22));
    display: grid;
    place-items: center;
    color: var(--brand);
}

.lab-equip__icon svg {
    width: 24px;
    height: 24px;
}

.lab-equip__name {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--lab-ink);
}

.lab-equip__desc {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--lab-ink-soft);
}

.lab-equip__meta {
    margin: 0;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(12, 124, 134, 0.25);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--lab-muted);
    font-weight: 600;
}

/* =====================================================================
   Karty gwarancji
   ===================================================================== */
.lab-promises {
    display: grid;
    gap: clamp(1rem, 1.8vw, 1.4rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lab-promise {
    background: var(--lab-card);
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--lab-shadow);
    display: grid;
    gap: 0.65rem;
    align-content: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-promise:hover {
    transform: translateY(-4px);
    box-shadow: var(--lab-shadow-lift);
}

.lab-promise__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #46b97c);
    box-shadow: 0 10px 22px -12px rgba(25, 152, 72, 0.8);
}

.lab-promise__icon svg {
    width: 18px;
    height: 18px;
}

.lab-promise__title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--lab-ink);
    font-weight: 700;
    line-height: 1.35;
}

.lab-promise__text {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--lab-ink-soft);
}

/* --- branże -------------------------------------------------------- */
.lab-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lab-sectors li {
    background: #ffffff;
    border: 1px solid var(--lab-line);
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lab-ink);
    box-shadow: 0 12px 28px -22px rgba(8, 46, 41, 0.6);
}

/* =====================================================================
   Baner pełnej szerokości (blueprint)
   ===================================================================== */
.lab-banner {
    margin: 0;
    position: relative;
}

.lab-banner img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

/* =====================================================================
   Sekcja ciemna — współpraca naukowa i partnerzy
   ===================================================================== */
.lab-dark {
    position: relative;
    margin-top: -1px;
    padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem) clamp(4.5rem, 7vw, 6rem);
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 1.6px),
        radial-gradient(1100px 480px at 12% 0%, rgba(25, 152, 72, 0.28), transparent 62%),
        radial-gradient(900px 460px at 90% 100%, rgba(16, 89, 63, 0.55), transparent 66%),
        linear-gradient(180deg, #0a3f47 0%, #072a30 100%);
    background-size: 26px 26px, auto, auto, auto;
    color: #eaf4f0;
    font-family: "Biryani", system-ui, sans-serif;
    scroll-margin-top: clamp(80px, 12vh, 160px);
}

.lab-dark::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 52px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,34 C220,64 440,4 720,18 C1000,32 1220,60 1440,22 L1440,0 L0,0 Z' fill='%23b2d4c8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    pointer-events: none;
}

.lab-dark__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: clamp(2.75rem, 4.5vw, 4rem);
}

.lab-dark__header {
    text-align: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.lab-dark__eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--lab-accent);
    font-size: 0.8rem;
}

.lab-dark__eyebrow::before,
.lab-dark__eyebrow::after {
    content: "";
    height: 2px;
    width: 44px;
    border-radius: 2px;
    flex: 0 0 auto;
}

.lab-dark__eyebrow::before {
    background: linear-gradient(90deg, transparent, var(--lab-accent));
}

.lab-dark__eyebrow::after {
    background: linear-gradient(90deg, var(--lab-accent), transparent);
}

.lab-dark__title {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.12;
    max-width: 880px;
}

.lab-dark__intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.68;
    color: rgba(234, 244, 240, 0.86);
}

.lab-dark__note {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(234, 244, 240, 0.72);
}

.lab-dark__block {
    display: grid;
    gap: 1.5rem;
}

.lab-dark__block-title {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--lab-accent);
    text-align: center;
}

.lab-logos {
    display: grid;
    gap: clamp(0.9rem, 1.6vw, 1.25rem);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lab-logo {
    background: #ffffff;
    border-radius: var(--lab-radius);
    padding: 1.25rem 1.2rem;
    min-height: 128px;
    display: grid;
    place-items: center;
    align-content: center;
    box-shadow: 0 18px 44px -28px rgba(0, 0, 0, 0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.85);
}

.lab-logo img {
    display: block;
    max-width: 100%;
    max-height: 66px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lab-logo--emblem img {
    max-height: 58px;
}

.lab-logo__caption {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b8a80;
    text-align: center;
}

a.lab-logo {
    text-decoration: none;
}

/* --- cytaty -------------------------------------------------------- */
.lab-quotes {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.lab-quote {
    position: relative;
    margin: 0;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(127, 214, 160, 0.26);
    border-radius: var(--lab-radius);
    padding: clamp(2rem, 3.4vw, 2.9rem) clamp(1.75rem, 3vw, 2.6rem) clamp(1.75rem, 3vw, 2.4rem);
    display: grid;
    gap: 1.2rem;
    backdrop-filter: blur(4px);
}

.lab-quote:only-child {
    max-width: 860px;
    margin-inline: auto;
    width: 100%;
}

.lab-quote::before {
    content: "„";
    position: absolute;
    top: -0.4rem;
    left: 1.2rem;
    font-size: 6rem;
    line-height: 1;
    color: rgba(127, 214, 160, 0.3);
    font-family: Georgia, "Times New Roman", serif;
    pointer-events: none;
}

.lab-quote__text {
    margin: 0;
    position: relative;
    font-size: clamp(1.12rem, 1.8vw, 1.42rem);
    line-height: 1.58;
    color: #ffffff;
    font-style: italic;
    font-weight: 400;
}

.lab-quote__cite {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(234, 244, 240, 0.8);
}

.lab-quote__cite::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--lab-accent);
    flex: 0 0 auto;
}

.lab-quote__cite-body {
    display: grid;
    gap: 0.1rem;
}

.lab-quote__cite strong {
    color: var(--lab-accent);
    font-weight: 700;
}

/* --- projekty B+R --------------------------------------------------- */
.lab-rd {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lab-rd__card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(127, 214, 160, 0.2);
    border-radius: var(--lab-radius);
    padding: 1.7rem 1.8rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

a.lab-rd__card:hover,
a.lab-rd__card:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(127, 214, 160, 0.55);
    transform: translateY(-4px);
}

.lab-rd__tag {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--lab-accent);
}

.lab-rd__title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 700;
}

.lab-rd__text {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.62;
    color: rgba(234, 244, 240, 0.82);
}

.lab-rd__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--lab-accent);
}

.lab-rd__more::after {
    content: "→";
    transition: transform 0.3s ease;
}

a.lab-rd__card:hover .lab-rd__more::after,
a.lab-rd__card:focus-visible .lab-rd__more::after {
    transform: translateX(5px);
}

/* --- ilustracja w sekcji ciemnej ------------------------------------ */
.lab-dark__figure {
    margin: 0;
    border-radius: var(--lab-radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.85);
}

.lab-dark__figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* =====================================================================
   Mozaika galerii
   ===================================================================== */
.lab-mosaic {
    display: grid;
    gap: clamp(0.85rem, 1.4vw, 1.1rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 16vw, 215px);
}

.lab-mosaic--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 20vw, 260px);
}

.lab-mosaic .installations-gallery__thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    background: #0a3f47;
    border-radius: var(--lab-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 22px 52px -32px rgba(8, 46, 41, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-mosaic .installations-gallery__thumb:hover,
.lab-mosaic .installations-gallery__thumb:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--lab-shadow-lift);
}

.lab-mosaic .installations-gallery__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lab-mosaic .installations-gallery__thumb:hover img,
.lab-mosaic .installations-gallery__thumb:focus-visible img {
    transform: scale(1.05);
}

.lab-mosaic__item--lead {
    grid-column: span 2;
    grid-row: span 2;
}

.lab-mosaic__item--wide {
    grid-column: span 2;
}

.lab-mosaic__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.1rem 0.85rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 38, 44, 0.78) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.lab-mosaic .installations-gallery__thumb:hover .lab-mosaic__caption,
.lab-mosaic .installations-gallery__thumb:focus-visible .lab-mosaic__caption {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================================
   Pasek CTA
   ===================================================================== */
.lab-cta {
    margin-top: -1px;
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(3.5rem, 6vw, 5rem);
    background: #f5f5f5;
    font-family: "Biryani", system-ui, sans-serif;
}

.lab-cta__inner {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: calc(var(--lab-radius) + 6px);
    background:
        radial-gradient(700px 320px at 10% 0%, rgba(127, 214, 160, 0.16), transparent 62%),
        radial-gradient(600px 340px at 100% 100%, rgba(25, 152, 72, 0.3), transparent 68%),
        linear-gradient(120deg, #0a3f47 0%, #0b4a48 55%, #10593f 100%);
    box-shadow: 0 40px 90px -44px rgba(8, 46, 41, 0.8);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(2.25rem, 4.5vw, 3.75rem);
}

.lab-cta__content {
    display: grid;
    gap: 1.15rem;
    justify-items: start;
    text-align: left;
}

.lab-cta__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--lab-accent);
}

.lab-cta__title {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.lab-cta__text {
    margin: 0;
    max-width: 560px;
    line-height: 1.68;
    color: rgba(234, 244, 240, 0.86);
}

.lab-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.35rem;
}

.lab-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.lab-cta__button--primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 18px 40px -18px rgba(25, 152, 72, 0.9);
}

.lab-cta__button--primary:hover,
.lab-cta__button--primary:focus-visible {
    transform: translateY(-2px);
    background: #1fae55;
}

.lab-cta__button--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
}

.lab-cta__button--ghost:hover,
.lab-cta__button--ghost:focus-visible {
    transform: translateY(-2px);
    border-color: #ffffff;
}

.lab-cta__figure {
    margin: 0;
    align-self: stretch;
    display: grid;
}

.lab-cta__figure img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: auto;
    border-radius: var(--lab-radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* =====================================================================
   Animacje wejścia (aktywne tylko przy działającym JS)
   ===================================================================== */
.lab-js .lab-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lab-js .lab-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .lab-js .lab-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .lab-domain,
    .lab-equip,
    .lab-promise,
    .lab-logo,
    .lab-rd__card,
    .lab-cta__button,
    .lab-mosaic .installations-gallery__thumb,
    .lab-mosaic .installations-gallery__thumb img {
        transition: none !important;
    }

    .lab-domain:hover,
    .lab-equip:hover,
    .lab-promise:hover,
    .lab-logo:hover,
    a.lab-rd__card:hover,
    .lab-cta__button:hover,
    .lab-mosaic .installations-gallery__thumb:hover {
        transform: none !important;
    }
}

/* =====================================================================
   Responsywność
   ===================================================================== */
@media (max-width: 1024px) {
    .lab-metrics__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-metric {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lab-metric:nth-child(-n+2) {
        border-top: none;
    }

    .lab-metric:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .lab-split,
    .lab-split--reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-split--reverse .lab-split__media {
        order: 0;
    }

    .lab-domains,
    .lab-equipment,
    .lab-promises,
    .lab-rd,
    .lab-quotes {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-timeline::before {
        left: 21px;
    }

    .lab-timeline__marker {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }

    .lab-timeline__item {
        padding-left: 62px;
    }

    .lab-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(140px, 28vw, 200px);
    }

    .lab-mosaic--triple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-mosaic--triple .installations-gallery__thumb:last-child {
        grid-column: span 2;
    }

    .lab-cta__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-cta__figure img {
        max-width: 300px;
    }

    .lab-mosaic__caption {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 520px) {
    .lab-metrics__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-metric {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lab-metric:first-child {
        border-top: none;
    }

    .lab-logos {
        grid-template-columns: minmax(0, 1fr);
    }

    body.lab-theme .installations-overview__title,
    body.lab-theme .lab-dark__title {
        font-size: 1.65rem;
        line-height: 1.22;
    }

    body.lab-theme .installations-overview__intro,
    body.lab-theme .lab-dark__intro {
        font-size: 1rem;
    }

    .lab-cta__title {
        font-size: 1.4rem;
    }

    .lab-mosaic {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 200px;
    }

    .lab-mosaic__item--lead,
    .lab-mosaic__item--wide,
    .lab-mosaic--triple .installations-gallery__thumb:last-child {
        grid-column: auto;
        grid-row: auto;
    }
}

/* =====================================================================
   MOBILNA SEKCJA HERO — podstrony z ilustracją postaci
   (index, instalacje, zbiorniki, laboratorium, powłoki, rurociągi —
   we wszystkich wersjach językowych; reguły spięte z [data-service],
   więc podstrony bez hero pozostają nietknięte)

   Układ przeniesiony ze sprawdzonej wcześniejszej wersji serwisu:
   pierwszy ekran = ilustracja na pełną wysokość + pionowa kolumna ikon,
   banner tytułowy ukryty.
   ===================================================================== */
@media (max-width: 1080px) {
    body.has-mobile-nav[data-service] .welcome-hero {
        width: 100vw;
        margin-top: calc(-1 * (var(--work-mobile-nav-height) + 8px));
        margin-left: calc(-1 * clamp(16px, 4vw, 26px));
        margin-right: calc(-1 * clamp(16px, 4vw, 26px));
        /* hero zaczyna się POD przyklejonym paskiem menu, więc pełny ekran
           to wysokość widoku pomniejszona o ten pasek — inaczej dolna część
           ilustracji wypada poza kadr. */
        min-height: calc(100vh - var(--work-mobile-nav-height));
        padding: 0;
        align-items: stretch;
    }

    @supports (min-height: 100svh) {
        body.has-mobile-nav[data-service] .welcome-hero {
            min-height: calc(100svh - var(--work-mobile-nav-height));
        }
    }

    /* Kadrowanie realizujemy wyłącznie w CSS — obraz NIE jest podmieniany,
       dzięki czemu animacja klatek (podmiana src z JS) działa też na mobile.
       Górny pas tła obniża postać, żeby głowa nie chowała się pod paskiem menu,
       a przy okazji zmniejsza skalę kadru (mniej agresywne zbliżenie twarzy). */
    body.has-mobile-nav[data-service] .background-frame {
        inset: 0;
        width: 100%;
        height: 100%;
        align-items: flex-end;      /* ilustracja przy dolnej krawędzi, tło u góry */
        justify-content: center;
        background: var(--hero-mobile-bg, #ffffff);
    }

    /* Wysokość wiązana z szerokością ekranu utrzymuje stałą szerokość wycinka
       (~440 px źródła) niezależnie od modelu telefonu: postać ma wszędzie tę
       samą wielkość, a nie zbliżenie na twarz. Na wyższych ekranach nadmiar
       przycina się do dostępnej wysokości. */
    body.has-mobile-nav[data-service] .background-frame__image {
        width: 100%;
        height: min(174vw, 100%);
        object-fit: cover;
        object-position: var(--hero-mobile-pos, 50%) center;
    }

    body.has-mobile-nav[data-service] .background-frame__gradient {
        display: none;
    }

    /* Pozycja kadru i kolor dopełnienia — wyliczone z faktycznego położenia
       postaci na każdej ilustracji. */
    body.has-mobile-nav[data-service="welcome"]      { --hero-mobile-pos: 80%; --hero-mobile-bg: #fcfbfe; }
    body.has-mobile-nav[data-service="instalacje"]   { --hero-mobile-pos: 62%; --hero-mobile-bg: #faf8f4; }
    body.has-mobile-nav[data-service="zbiorniki"]    { --hero-mobile-pos: 66%; --hero-mobile-bg: #fbf9f4; }
    body.has-mobile-nav[data-service="laboratorium"] { --hero-mobile-pos: 44%; --hero-mobile-bg: #f5f5f5; }
    body.has-mobile-nav[data-service="powloki"]      { --hero-mobile-pos: 52%; --hero-mobile-bg: #efeade; }
    body.has-mobile-nav[data-service="rurociagi"]    { --hero-mobile-pos: 53%; --hero-mobile-bg: #f7f9f8; }

    /* banner z tytułem znika — pierwszy ekran to ilustracja + pasek ikon */
    body.has-mobile-nav[data-service] .welcome-banner-group {
        display: none;
    }

    body.has-mobile-nav[data-service] .welcome-banner__tagline {
        --welcome-service-icon-size: clamp(44px, 14vw, 64px);
        position: absolute;
        top: var(--work-mobile-nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--work-mobile-nav-height));
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    @supports (height: 100svh) {
        body.has-mobile-nav[data-service] .welcome-banner__tagline {
            height: calc(100svh - var(--work-mobile-nav-height));
        }
    }

    body.has-mobile-nav[data-service] .welcome-banner__service-strip {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
        row-gap: clamp(12px, 2.5vw, 18px);
        padding: 0 clamp(14px, 5vw, 26px) clamp(18px, 6vw, 28px);
        padding-left: 10px;
    }

    body.has-mobile-nav[data-service] .welcome-banner__service-strip::before {
        display: none;
    }

    body.has-mobile-nav[data-service] .welcome-banner__tagline-text {
        display: none;
    }

    body.has-mobile-nav[data-service] .welcome-banner__services {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: clamp(12px, 2.5vw, 18px);
        flex: 0 0 auto;
        overflow: visible;
        padding-bottom: 0;
        justify-content: flex-start;
    }

    body.has-mobile-nav[data-service] .welcome-banner__service {
        width: auto;
        min-width: 0;
        max-width: 100%;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
    }

    body.has-mobile-nav[data-service] .welcome-banner__service-icon-holder {
        margin-top: 0;
    }

    body.has-mobile-nav[data-service] .welcome-banner__service-label {
        display: none;
    }
}

/* =====================================================================
   Wygaszanie pływających przycisków nad stopką
   (na mobile przyciski nachodziłyby na treść stopki)
   ===================================================================== */
.quick-contact,
.scroll-to-top {
    transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease,
                box-shadow 220ms ease;
}

/* Desktop: nad stopką znika tylko strzałka „do góry" — szybki kontakt zostaje */
body.floating-actions-hidden .scroll-to-top.is-visible {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.94);
    pointer-events: none;
}

/* Mobile: przyciski leżą na dole ekranu i nachodziłyby na stopkę — znikają oba */
@media (max-width: 720px) {
    body.floating-actions-hidden .quick-contact {
        opacity: 0;
        visibility: hidden;
        transform: translateY(14px) scale(0.94);
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-contact,
    .scroll-to-top {
        transition: opacity 1ms linear, visibility 1ms linear;
    }

    body.floating-actions-hidden .quick-contact,
    body.floating-actions-hidden .scroll-to-top.is-visible {
        transform: none;
    }
}

/* =====================================================================
   Uzupełnienia motywu lab — komponenty wspólne dla podstron
   ===================================================================== */
/* Pierwsza sekcja na stronach bez hero — odsunięcie od górnej krawędzi */
.lab-page-head {
    padding-top: clamp(96px, 13vh, 150px) !important;
}

/* Karty-linki na jasnym tle */
a.lab-domain {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lab-domain__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.15rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand);
}

.lab-domain__more::after {
    content: "\2192";
    transition: transform 0.25s ease;
}

a.lab-domain:hover .lab-domain__more::after,
.lab-domain:hover .lab-domain__more::after {
    transform: translateX(5px);
}

/* Logotypy w kartach na jasnym tle (np. referencje) */
.lab-domain__logo {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .lab-page-head {
        padding-top: 44px !important;
    }
}

/* Kontakt — mniejszy odstęp nagłówka od góry ekranu */
.contact-page .lab-page-head {
    padding-top: clamp(36px, 5vh, 56px) !important;
}

/* Certyfikaty (Jakość) — układ 4 + 3 zamiast 6 + 1 */
.installations-overview .quality-certificates__grid {
    max-width: 796px;
    margin: 0 auto;
}

.installations-overview .quality-certificates__card {
    width: 172px;
}

@media (max-width: 820px) {
    .installations-overview .quality-certificates__grid {
        max-width: 420px;
    }
    .installations-overview .quality-certificates__card {
        width: 152px;
    }
}

/* Wyblakła postać bohatera w tle kart oferty */
.lab-domain__bg {
    position: absolute;
    right: -6%;
    bottom: -4%;
    height: 88%;
    width: auto;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 95%);
            mask-image: linear-gradient(to left, #000 45%, transparent 95%);
}

.lab-domain > *:not(.lab-domain__bg) {
    position: relative;
    z-index: 1;
}

/* =====================================================================
   Strona główna — spójność z motywem lab + naprawa wersji mobilnej
   ===================================================================== */
body.lab-theme .home-services__title {
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--lab-ink, #0a3f47);
    font-weight: 700;
}

.home-offer-banner .lab-split__media img {
    border-radius: var(--lab-radius, 1rem);
}

.home-offer-banner .lab-cta__actions {
    margin-top: 1.2rem;
}

@media (max-width: 1080px) {
    .home-services__grid {
        grid-template-columns: 1fr;
    }

    .home-services__title {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .home-services__card .work-card__image-wrapper {
        min-height: 0;
    }

    .home-services__card .work-card__image {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .home-services__card .work-card__overlay {
        position: static;
        opacity: 1;
        transform: none;
        background: none;
        backdrop-filter: none;
        color: #1d373c;
        padding: 12px 4px 0;
    }

    .home-services__card .work-card__overlay-content {
        max-width: none;
    }

    .home-services__description {
        font-size: 15px;
    }
}

/* =====================================================================
   Praca / Projekty współfinansowane — dopracowanie szczegółów (desktop + mobile)
   ===================================================================== */
.work-hero__inner,
.funding-hero__inner {
    align-items: center;
    text-align: center;
}

.work-hero .installations-overview__title,
.funding-hero .installations-overview__title {
    width: 100%;
    text-align: center;
}

.work-hero .installations-overview__eyebrow,
.funding-hero .installations-overview__eyebrow {
    margin-inline: auto;
}

.work-hero__divider,
.funding-hero__divider {
    width: min(320px, 70%);
    margin-inline: auto;
}

.work-hero__text {
    max-width: 760px;
    margin-inline: auto;
}

.funding-section__title {
    color: var(--lab-ink, #0a3f47);
    letter-spacing: 0.01em;
}

.funding-section__accordion {
    border-color: rgba(25, 152, 72, 0.25);
    background: rgba(255, 255, 255, 0.85);
}

.funding-section__accordion-title {
    color: var(--lab-ink, #0a3f47);
}

.funding-section__accordion-title:hover {
    color: var(--brand);
}

/* Karty pracy i projektów na mobile — treść w naturalnym przepływie,
   obraz jako tło karty (koniec z wylewającym się tekstem) */
@media (max-width: 720px) {
    .work-positions .work-card__image-wrapper,
    .funding-section .work-card__image-wrapper {
        min-height: 0;
    }

    .work-positions .work-card__image,
    .funding-section .work-card__image {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
    }

    .work-positions .work-card__overlay,
    .funding-section .work-card__overlay {
        position: relative;
        inset: auto;
        min-height: 240px;
    }
}

/* Laboratorium: blok „Opinie partnerów” tymczasowo ukryty (atrybut hidden) —
   reguła potrzebna, bo .lab-dark__block ma display: grid, które nadpisuje [hidden] */
.lab-dark__block[hidden] {
    display: none;
}

/* Flagi języków jako grafika SVG zamiast emoji — Chrome, Edge i Brave na Windows
   nie mają glifów flag i zamiast nich pokazywały same litery („PL”, „GB”…) */
.flag-icon {
    display: inline-block;
    width: 1.125em;
    height: 0.75em;
    flex: none;
    border-radius: 2px;
    background: center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
    vertical-align: middle;
    pointer-events: none;
}

.flag-icon--pl {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23fff' d='M0 0h3v1H0z'/%3E%3Cpath fill='%23dc143c' d='M0 1h3v1H0z'/%3E%3C/svg%3E");
}

.flag-icon--en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3CclipPath id='t'%3E%3Cpath d='M30 20h30v20zv20h-30zh-30v-20zv-20h30z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0h60v40H0z'/%3E%3Cpath stroke='%23fff' stroke-width='8' d='M0 0l60 40m0-40L0 40'/%3E%3Cpath stroke='%23c8102e' stroke-width='5.33' clip-path='url(%23t)' d='M0 0l60 40m0-40L0 40'/%3E%3Cpath stroke='%23fff' stroke-width='13.33' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='8' d='M30 0v40M0 20h60'/%3E%3C/svg%3E");
}

.flag-icon--de {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M0 0h9v2H0z'/%3E%3Cpath fill='%23d00' d='M0 2h9v2H0z'/%3E%3Cpath fill='%23ffce00' d='M0 4h9v2H0z'/%3E%3C/svg%3E");
}

.flag-icon--ua {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%230057b7' d='M0 0h3v1H0z'/%3E%3Cpath fill='%23ffd700' d='M0 1h3v1H0z'/%3E%3C/svg%3E");
}

/* .references-prefooter to pas projektowany poza <main> (margines = szerokość paska ikon,
   szerokość = 100vw − pasek). Na stronach Realizacje i Polityka prywatności stoi wewnątrz
   main.content, który ma już ten margines — przesunięcie liczyło się podwójnie i prawa
   część sekcji (z ilustracją) była ucinana na krawędzi ekranu. */
main.content > .references-prefooter {
    margin-left: 0;
    width: auto;
}

/* Wersja niemiecka na telefonach i tabletach: długie złożenia („Wasserrückgewinnungs-
   technologie”, „BESCHICHTUNGSAPPLIKATEURE”…) nie mieściły się w kolumnie i rozpychały
   sekcje poza ekran — dzielimy je z przeniesieniem, a gdy przeglądarka nie zna podziału
   wyrazu, łamiemy go w dowolnym miejscu */
@media (max-width: 1080px) {
    html[lang="de"] main :is(h1, h2, h3, h4, p, li, dt, dd, figcaption, blockquote, summary) {
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 12 5 5; /* dzielimy tylko długie złożenia, nie „ei-ner” */
        overflow-wrap: anywhere;
    }
}

/* Kontakt: formularz czeka na podłączenie wysyłki (atrybut hidden) — reguła potrzebna, bo
   .contact-form ma display: grid, które nadpisuje [hidden]. */
.contact-form[hidden] {
    display: none;
}

/* Przyciski szybkiego kontaktu pod danymi: e-mail, telefon, trasa w Mapach Google */
.contact-direct__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-self: stretch;
}

.contact-direct__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 10px;
    background: var(--brand);
    color: #f5f9f6;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.contact-direct__button::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    background: center / contain no-repeat;
}

.contact-direct__button--mail::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f9f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.contact-direct__button--phone,
.contact-direct__button--route {
    background: transparent;
    color: var(--brand);
    box-shadow: inset 0 0 0 2px var(--brand);
}

.contact-direct__button--route::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23199848' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E");
}

.contact-direct__button--phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23199848' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.contact-direct__button:hover,
.contact-direct__button:focus-visible {
    background: #147c3c;
    color: #f5f9f6;
    box-shadow: 0 10px 26px rgba(20, 124, 60, 0.32);
    transform: translateY(-1px);
}

.contact-direct__button--phone:hover::before,
.contact-direct__button--phone:focus-visible::before,
.contact-direct__button--route:hover::before,
.contact-direct__button--route:focus-visible::before {
    filter: brightness(0) invert(1);
}

.contact-direct__button:focus-visible {
    outline: 3px solid rgba(20, 124, 60, 0.4);
    outline-offset: 2px;
}

/* Informacja RODO pod przyciskiem wysyłki formularza */
.contact-form__privacy {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(12, 62, 32, 0.78);
}

.contact-form__privacy a {
    color: inherit;
    text-decoration: underline;
}

/* Kontakt na telefonach: wcięcie strony jak w regułach .has-mobile-nav wyżej (mapa i linia
   liczą z niego ujemne marginesy), mapa dochodzi do stopki bez dolnego odstępu */
@media (max-width: 1080px) {
    .has-mobile-nav .contact-page {
        --contact-gutter: clamp(16px, 4vw, 26px);
        padding-inline: var(--contact-gutter);
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .has-mobile-nav .contact-page {
        --contact-gutter: clamp(14px, 4.5vw, 22px);
    }
}

@media (max-width: 560px) {
    .contact-direct__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-direct__button {
        justify-content: center;
    }
}

/* ====== Zgoda na pliki cookies (baner budowany w scripts.js) ====== */
.cookie-consent {
    position: fixed;
    left: var(--nav-w-closed, 0px);
    right: 0;
    bottom: 0;
    z-index: 3500;
    display: flex;
    justify-content: center;
    padding: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
    pointer-events: none;
    font-family: "Biryani", system-ui, sans-serif;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__panel {
    pointer-events: auto;
    box-sizing: border-box;
    width: min(100%, 880px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 14px;
    padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
    background: #ffffff;
    color: #1b1b1b;
    border-top: 4px solid var(--brand);
    border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(8, 46, 41, 0.45), 0 2px 10px rgba(8, 46, 41, 0.12);
    animation: cookie-consent-in 260ms ease-out;
}

@keyframes cookie-consent-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__panel {
        animation: none;
    }
}

.cookie-consent__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a3f47;
}

.cookie-consent__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #2b2b2b;
}

.cookie-consent__text a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent__options {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.cookie-consent__options[hidden] {
    display: none;
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f2f7f4;
    cursor: pointer;
}

.cookie-consent__option-title {
    font-weight: 700;
    color: #0a3f47;
}

.cookie-consent__option-desc {
    grid-column: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #44544b;
}

.cookie-consent__option-state {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--brand);
    white-space: nowrap;
}

/* przełącznik zbudowany z checkboxa */
.cookie-consent__switch {
    grid-column: 2;
    grid-row: 1 / span 2;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 46px;
    height: 26px;
    margin: 0;
    border-radius: 999px;
    background: #c4cfc8;
    cursor: pointer;
    transition: background 160ms ease;
}

.cookie-consent__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease;
}

.cookie-consent__switch:checked {
    background: var(--brand);
}

.cookie-consent__switch:checked::after {
    transform: translateX(20px);
}

.cookie-consent__switch:focus-visible {
    outline: 3px solid rgba(20, 124, 60, 0.45);
    outline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent__button {
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #f5f9f6;
    box-shadow: inset 0 0 0 2px var(--brand);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    background: #147c3c;
    color: #f5f9f6;
}

.cookie-consent__button--secondary {
    background: transparent;
    color: var(--brand);
}

.cookie-consent__button--link {
    margin-right: auto;
    padding-inline: 4px;
    background: none;
    box-shadow: none;
    color: #0a3f47;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__button--link:hover,
.cookie-consent__button--link:focus-visible {
    background: none;
    color: var(--brand);
}

.cookie-consent__button:focus-visible {
    outline: 3px solid rgba(20, 124, 60, 0.45);
    outline-offset: 2px;
}

.cookie-consent__button[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 0;
    }

    .cookie-consent__panel {
        width: 100%;
        border-radius: 14px 14px 0 0;
        padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .cookie-consent__text {
        font-size: 13px;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent__button--link {
        grid-column: 1 / -1;
        order: 3;
        justify-self: center;
        margin-right: 0;
    }
}

/* Odnośnik „Ustawienia cookies” w stopce (przycisk wyglądający jak link) */
.site-footer__link--button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Mapa Google i film YouTube wczytywane dopiero po zgodzie na treści zewnętrzne —
   do tego czasu zaślepka z przyciskiem */
.consent-embed {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
    text-align: center;
    font-family: "Biryani", system-ui, sans-serif;
}

.consent-embed[hidden] {
    display: none;
}

.consent-embed--map {
    background-color: #eef3ef;
    background-image:
        linear-gradient(rgba(10, 63, 71, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 63, 71, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    color: #1b1b1b;
}

.consent-embed--video {
    background: radial-gradient(circle at 50% 40%, #145a52 0%, #0a3f47 70%);
    color: #f2f7f4;
}

.consent-embed__box {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 460px;
}

.consent-embed__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand) center / 26px no-repeat;
    box-shadow: 0 10px 24px -8px rgba(20, 124, 60, 0.55);
}

.consent-embed--map .consent-embed__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.consent-embed--video .consent-embed__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E");
}

.consent-embed__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.consent-embed--map .consent-embed__title {
    color: #0a3f47;
}

.consent-embed__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.consent-embed__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 4px;
}

.consent-embed__button {
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #f5f9f6;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 160ms ease;
}

.consent-embed__button:hover,
.consent-embed__button:focus-visible {
    background: #147c3c;
}

.consent-embed__button:focus-visible,
.consent-embed__link:focus-visible {
    outline: 3px solid rgba(20, 124, 60, 0.45);
    outline-offset: 2px;
}

.consent-embed__link {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-embed--map .consent-embed__link {
    color: #0a3f47;
}

/* na telefonie film ma ok. 180 px wysokości — w zaślepce zostaje tytuł, przycisk i link */
@media (max-width: 640px) {
    .consent-embed--video .consent-embed__text,
    .consent-embed--video .consent-embed__icon {
        display: none;
    }

    .consent-embed--video .consent-embed__box {
        gap: 8px;
    }
}

/* Kontakt: nagłówek strony to sam napis KONTAKT (h1 w stylu małego nadtytułu) */
.contact-page__heading {
    margin: 0;
}

/* Stały przycisk zarządzania zgodą na cookies — lewy dolny róg (na komputerze tuż obok
   paska menu). Widoczny po dokonaniu wyboru; z-index pod przyciemnieniem strony (150),
   więc otwarte menu go zakrywa. */
.cookie-manage {
    position: fixed;
    left: calc(var(--nav-w-closed, 0px) + 20px);
    bottom: 24px;
    z-index: 140;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23199848' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5v.01'/%3E%3Cpath d='M16 15.5v.01'/%3E%3Cpath d='M12 12v.01'/%3E%3Cpath d='M11 17v.01'/%3E%3Cpath d='M7 14v.01'/%3E%3C/svg%3E") center / 24px no-repeat;
    box-shadow: inset 0 0 0 2px var(--brand), 0 8px 20px rgba(8, 46, 41, 0.22);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 280ms ease, visibility 280ms ease;
}

.cookie-manage[hidden] {
    display: none;
}

.cookie-manage:hover,
.cookie-manage:focus-visible {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px var(--brand), 0 12px 26px rgba(8, 46, 41, 0.28);
}

.cookie-manage:focus-visible {
    outline: 3px solid rgba(20, 124, 60, 0.45);
    outline-offset: 3px;
}

/* podpis po najechaniu myszą */
.cookie-manage::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    padding: 6px 10px;
    border-radius: 8px;
    background: #0a3f47;
    color: #ffffff;
    font: 600 12px/1.2 "Biryani", system-ui, sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-4px, -50%);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.cookie-manage:hover::after,
.cookie-manage:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (hover: none) {
    .cookie-manage::after {
        display: none;
    }
}

/* nad stopką chowa się jak pozostałe pływające przyciski (w stopce jest „Ustawienia cookies”) */
body.floating-actions-hidden .cookie-manage {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1080px) {
    body.has-mobile-nav .cookie-manage {
        left: var(--floating-action-inset, 18px);
        bottom: var(--floating-action-bottom, 20px);
    }

    /* na stronach z pigułką „Szybki kontakt” w lewym dolnym rogu przycisk stoi nad nią */
    body.has-mobile-nav:has(.quick-contact) .cookie-manage {
        bottom: calc(var(--floating-action-bottom, 20px) + var(--floating-action-size, 50px) + 12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-manage,
    .cookie-manage::after {
        transition: none;
    }
}
