@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* BILANTIVE – identyfikacja wizualna na podstawie zatwierdzonego projektu. */
:root {
    --ink: #082642;                /* naglowki, nawigacja */
    --text: #263c53;               /* tekst podstawowy */
    --muted: #647386;              /* podpisy */
    --navy: #06233b;               /* stopka i ciemne panele */
    --navy-light: #193e5d;
    --gold: #cf9c3d;               /* akcent marki */
    --gold-dark: #b9811e;         /* hover */
    --gold-light: #f3d48e;
    --gold-gradient: linear-gradient(110deg, #dbae57, #c08b26);
    --line: #e0e5ea;
    --soft: #faf8f4;
    --white: #fff;
    --shadow: 0 8px 26px rgba(6, 35, 59, .08);
    /* Zachowane stare aliasy ze wzgledu na istniejace klasy CMS. */
    --blue: var(--gold);
    --blue2: var(--gold-dark);
    --green: var(--gold);
    --orange: var(--gold);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden
}

a {
    color: var(--blue);
    text-decoration: none
}

a:hover {
    color: var(--blue2);
    text-decoration: none
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    font-weight: 800;
    text-transform: none
}

.container {
    width: min(1240px, calc(100% - 40px));
    max-width: none
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    background: #fff;
    border-bottom: 1px solid #eef0f2;
    box-shadow: 0 2px 12px rgba(6, 35, 59, .04)
}

.site-header__inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 22px
}

.site-brand {
    flex: 0 0 255px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--ink);
}

.site-brand img {
    display: block;
    width: 228px;
    max-width: 100%;
    height: auto;
}

.site-brand span {
    width: 228px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .7px;
    text-align: center;
}

.site-nav {
    flex: 1;
    position: static;
    display: block;
    background: none;
    overflow: visible;
    width: auto
}

.site-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none
}

.site-nav li {
    position: relative;
    list-style: none
}

.site-nav a, .site-nav span {
    display: block;
    padding: 27px 0 24px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer
}

.site-nav > ul > li > a:after, .site-nav > ul > li > span:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 19px;
    height: 2px;
    background: var(--blue);
    transition: .2s
}

.site-nav > ul > li:hover > a:after, .site-nav > ul > li:hover > span:after {
    right: 0
}

.site-nav li ul {
    position: absolute;
    top: 67px;
    left: 50%;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(6, 35, 59, .10);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: .2s
}

.site-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0)
}

.site-nav li ul li a, .site-nav li ul li span {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 5px
}

.site-nav li ul li a:hover {
    background: var(--soft)
}

.site-nav li ul ul {
    left: 100%;
    top: 0;
    transform: translate(8px, 0)
}

.site-nav li ul li:hover > ul {
    transform: translate(0, 0)
}

.header-phone {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--blue)
}

.header-phone i {
    font-size: 20px
}

.header-phone span {
    display: flex;
    flex-direction: column
}

.header-phone strong {
    font-size: 18px;
    line-height: 1.1
}

.header-phone small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px
}

.nav-toggle {
    display: none
}

/* BILANTIVE: przycisk telefonu w naglowku.
   Reszta arkusza, w tym wszystkie sekcje CMS, pozostaje bez zmian. */
.site-header__layout {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

/* Kontener menu generowany przez DefaultController::menu. */
.site-header__layout > .site-header__inner {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
}

/* Stary numer z menu ukryty, poniewaz link tel jest w base.html.twig. */
.site-header .header-phone {
    display: none !important;
}

.site-header__call {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    background: var(--gold-gradient);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(185, 129, 30, .12);
    text-decoration: none !important;
    transition: filter .2s ease, transform .2s ease;
}

.site-header__call:hover,
.site-header__call:focus {
    color: #fff !important;
    filter: brightness(.94);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.site-header__call:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
}

.site-header__call i {
    font-size: 15px;
}

@media (min-width: 992px) and (max-width: 1280px) {
    .site-header__layout,
    .site-header__layout > .site-header__inner {
        gap: 12px;
    }
    .site-header__layout .site-brand {
        flex-basis: 215px;
    }
    .site-header__layout .site-brand img {
        width: 205px;
    }
    .site-header__layout .site-nav > ul {
        gap: 12px;
    }
    .site-header__layout .site-nav a,
    .site-header__layout .site-nav span {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .site-header__layout {
        width: calc(100% - 30px);
        gap: 10px;
    }
    .site-header__layout > .site-header__inner {
        min-height: 70px;
        gap: 10px;
    }
    .site-header__call {
        min-height: 40px;
        padding: 10px 13px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .site-header__layout { gap: 6px; }
    .site-header__layout > .site-header__inner { gap: 5px; }
    .site-header__layout .site-brand img {
        width: clamp(118px, 35vw, 155px);
    }
    .site-header__layout .nav-toggle {
        width: 38px;
        flex: 0 0 38px;
    }
    .site-header__call {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
    }
    .site-header__call i { display: none; }
}

/* SLIDER / HERO - dane nadal z bazy */
.slide-wrapper {
    position: relative;
    margin: 0;
    height: 400px;
    background: linear-gradient(110deg, #ffffff 0%, #f2f4f7 100%);
    overflow: hidden
}

.slide-wrapper .slide {
    display: none;
    position: relative;
    height: 400px;
    margin: auto;
    opacity: 0
}

.slide-wrapper .slide.show {
    display: block
}

.slide-wrapper .slide-img {
    position: absolute;
    inset: 0 0 0 50%;
    z-index: 1;
    overflow: hidden
}

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

.slide-wrapper .slide:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.87) 32%, rgba(255,255,255,0) 69%);
    pointer-events: none
}

.slide-text-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 5;
    background: transparent !important
}

.slide-text {
    position: static !important;
    display: flex;
    width: min(1400px, calc(100% - 48px)) !important;
    height: 100%;
    margin: auto;
    align-items: center;
    transform: none !important;
    text-align: left
}

.slide-text > p, .slide-text > div {
    max-width: 650px
}

.slide-text strong, .slide-text h1 {
    display: block;
    margin: 0 0 18px;
    color: var(--ink) !important;
    font-size: clamp(36px, 3.8vw, 52px) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    letter-spacing: -1.25px;
    text-transform: none;
    filter: none !important;
    text-shadow: none !important
}

.slide-text p {
    color: var(--text);
    font-size: 17px;
    line-height: 1.55
}

/* BILANTIVE — tresc slidera */
.slide-text .hero-content {
    box-sizing: border-box;
    width: 620px;
    max-width: 49%;
    margin: 0;
    padding: 0;
    color: #09243c;
}
.slide-text .hero-content::before {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: linear-gradient(110deg, #e3b958, #c68c20);
}
.slide-text .hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 2.7vw, 40px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.8px;
}
.slide-text .hero-content .hero-description {
    margin: 0 0 24px;
    max-width: 530px;
    font-size: 17px;
    line-height: 1.5;
}
.hero-content .hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-content .hero-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}
.hero-content .hero-button-primary {
    background: linear-gradient(110deg, #dca943, #c68c20);
    border-color: #c68c20;
    color: #fff;
}
.hero-content .hero-button-primary:hover {
    background: #b67c16;
    border-color: #b67c16;
    color: #fff;
}
.hero-content .hero-button-phone {
    background: rgba(255,255,255,.92);
    border-color: #29445e;
    color: #09243c;
}
.hero-content .hero-button-phone:hover {
    background: #09243c;
    color: #fff;
}
.hero-content .hero-button:focus-visible {
    outline: 3px solid #09243c;
    outline-offset: 4px;
}
@media (max-width: 991px) {
    .slide-text .hero-content { max-width: 76%; }
    .slide-text .hero-content h1 { font-size: 32px !important; }
    .slide-text .hero-content .hero-description { font-size: 16px; }
}
@media (max-width: 700px) {
    .slide-wrapper:has(.hero-content),
    .slide-wrapper .slide:has(.hero-content) { height: 420px; }
    .slide-text:has(.hero-content) { align-items: center; padding-top: 0; }
    .slide-text .hero-content { width: 100%; max-width: 100%; }
    .slide-text .hero-content h1 {
        font-size: clamp(25px, 5.3vw, 32px) !important;
        letter-spacing: -.5px;
    }
    .slide-text .hero-content .hero-description {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.45;
    }
    .hero-content .hero-buttons { gap: 10px; }
    .hero-content .hero-button { padding: 10px 16px; font-size: 14px; }
}

.slide-button {
    margin-top: 25px
}

.slide-button .btn {
    padding: 13px 24px;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: none
}

.slide-button .btn:hover {
    background: var(--blue2);
    border-color: var(--blue2)
}

.biala-otoczka {
    color: inherit;
    filter: none !important;
    text-shadow: none !important
}

/* CONTENT + CMS SECTIONS */
.page-content, .home-content {
    width: 100%
}

.page-block {
    width: 100%;
    background: #fff
}

.page-block:nth-of-type(even) {
    background: #faf8f4
}

.page-block__inner {
    width: min(1240px, calc(100% - 40px));
    margin: auto
}

.page-block--wide .page-block__inner {
    width: min(1224px, calc(100% - 40px))
}
.page-block__text {text-align:justify;}
.page-block--full .page-block__inner {
    width: 100%
}

.page-block--spacing-small {
    padding: 28px 0
}

.page-block--spacing-normal {
    padding: 58px 0
}

.page-block--spacing-large {
    padding: 78px 0
}

.page-block__inner > h2, .page-block__split h2 {
    margin: 0 0 34px;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 800;
    text-align: left
}

.page-block__inner > h2 {
    text-align: center
}

.page-block__text {
    max-width: 1000px;
    margin: auto;
    color: var(--text);
    line-height: 1.8
}

.page-block__text--columns {
    columns: 2;
    column-gap: 55px
}

/* =========================================================
   ICON CARDS
   - wariant normal: strona główna (3 kafelki)
   - wariant wide: podstrony usługowe (5 kafelków)
   ========================================================= */

.page-block__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.page-block__card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 3px;
    align-items: start;
    min-height: 155px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.page-block__card i {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--navy) !important;
    font-size: 25px !important;
    line-height: 54px !important;
    text-align: center;
}

.page-block__card:nth-child(2) i {
    background: transparent !important;
    color: var(--navy) !important;
}

.page-block__card:nth-child(3) i {
    background: transparent !important;
    color: var(--gold) !important;
}

.page-block__card h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 4px;
    padding: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.page-block__card p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* Podstrony usługowe: page-block--wide = 5 zalet w jednym rzędzie.
   Nie zależy od ID sekcji, więc działa na każdej podstronie. */
.page-block--icons.page-block--wide {
    padding: 55px 0;
}

.page-block--icons.page-block--wide .page-block__inner {
    width: min(1240px, calc(100% - 40px));
}

.page-block--icons.page-block--wide .page-block__cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.page-block--icons.page-block--wide .page-block__card {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 28px 18px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.page-block--icons.page-block--wide .page-block__card > i {
    flex: 0 0 auto;
    margin: 0 0 16px !important;
}

.page-block--icons.page-block--wide .page-block__card h3,
.page-block--icons.page-block--wide .page-block__card p {
    width: 100%;
    text-align: center;
}

.page-block--icons.page-block--wide .page-block__card h3 {
    margin: 0 0 10px;
}

.page-block--icons.page-block--wide .page-block__card p {
    margin: 0;
}

@media (max-width: 991px) {
    .page-block__cards,
    .page-block--icons.page-block--wide .page-block__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .page-block--icons.page-block--wide {
        padding: 42px 0;
    }

    .page-block--icons.page-block--wide .page-block__card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 9px);
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .page-block__cards,
    .page-block--icons.page-block--wide .page-block__cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-block__card {
        grid-template-columns: 54px minmax(0, 1fr);
        column-gap: 16px;
        min-height: 0;
        padding: 22px;
    }
}

@media (max-width: 600px) {
    .page-block--icons.page-block--wide {
        padding: 32px 0;
    }

    .page-block--icons.page-block--wide .page-block__inner {
        width: calc(100% - 30px);
    }

    .page-block--icons.page-block--wide .page-block__cards {
        gap: 14px;
    }

    .page-block--icons.page-block--wide .page-block__card,
    .page-block--icons.page-block--wide .page-block__card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 24px 20px;
        justify-self: stretch;
    }
}

/* HOMEPAGE - mniejszy odstęp pod trzema kafelkami */
#page-section-9 {
    padding-bottom: 32px !important;
}

/* =========================================================
   HISTORIA / LICZBY - HOMEPAGE
   ========================================================= */

#page-section-10 {
    padding: 28px 0 30px !important;
    background: #faf8f4;
}

#page-section-10 .page-block__inner {
    width: min(1240px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

#page-section-10 .page-block__text {
    width: 100%;
    max-width: none;
    margin: 0;
}

#page-section-10 .sw-history {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: center;
    width: 100%;
}

/* LEWA CZĘŚĆ */

#page-section-10 .sw-history__intro {
    padding-right: 42px;
    border-right: 1px solid var(--line);
}

#page-section-10 .sw-history__intro h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

/* kasujemy wymuszony <br>, żeby pierwsza linia była:
   "Tworzymy internet" */
#page-section-10 .sw-history__intro h2 br {
    display: none;
}

#page-section-10 .sw-history__intro h2 span {
    display: block;
    color: var(--gold);
}

#page-section-10 .sw-history__intro p {
    margin: 7px 0 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

/* PRAWA CZĘŚĆ */

#page-section-10 .sw-history__stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.12fr;
    align-items: center;
    width: 100%;
}

#page-section-10 .sw-history__stat {
    min-height: 76px;
    padding: 5px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#page-section-10 .sw-history__stat + .sw-history__stat {
    border-left: 1px solid var(--line);
}

#page-section-10 .sw-history__stat strong {
    display: block;
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.4px;
}

#page-section-10 .sw-history__stat span {
    display: block;
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
}


/* TABLET */

@media (max-width: 991px) {

    #page-section-10 .sw-history {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    #page-section-10 .sw-history__intro {
        padding-right: 28px;
    }

    #page-section-10 .sw-history__stat {
        padding: 5px 14px;
    }

    #page-section-10 .sw-history__stat strong {
        font-size: 20px;
    }
}


/* MOBILE */

@media (max-width: 767px) {

    #page-section-10 {
        padding: 35px 0 !important;
    }

    #page-section-10 .page-block__inner {
        width: calc(100% - 40px);
        padding: 0;
    }

    #page-section-10 .sw-history {
        display: block;
    }

    #page-section-10 .sw-history__intro {
        padding: 0 0 25px;
        border-right: 0;
    }

    #page-section-10 .sw-history__intro h2 {
        font-size: 27px;
    }

    #page-section-10 .sw-history__intro p br {
        display: none;
    }

    #page-section-10 .sw-history__stats {
        grid-template-columns: 1fr 1fr;
    }

    #page-section-10 .sw-history__stat {
        min-height: 90px;
        padding: 18px 15px;
        border-top: 1px solid var(--line);
    }

    #page-section-10 .sw-history__stat + .sw-history__stat {
        border-left: 0;
    }

    #page-section-10 .sw-history__stat:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    #page-section-10 .sw-history__stat strong {
        font-size: 23px;
    }
}

/* TEXT + IMAGE */
.page-block__split {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 56px;
    align-items: center
}

.page-block__split--reverse > div:first-child {
    order: 2
}

.page-block__split--reverse > div:last-child {
    order: 1
}

.page-block__split > div:last-child {
    overflow: hidden;
    border-radius: 10px
}

.page-block__split img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover
}

.webprom-checklist {
    padding: 0;
    list-style: none
}

.webprom-checklist li {
    position: relative;
    margin: 10px 0;
    padding-left: 26px
}

.webprom-checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 800
}

/* =========================================================
   PROCES WSPÓŁPRACY
   Wspólny dla wszystkich sekcji procesu - bez zależności od ID.
   ========================================================= */
.page-block__process {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    position: relative;
    text-align: center;
}

.page-block__process article {
    position: relative;
    min-width: 0;
    padding: 0 18px;
    text-align: center;
}

.page-block__process article > span {
    position: relative;
    z-index: 3;
    display: flex;
    width: 42px;
    height: 42px;
    margin: 0 auto 15px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.page-block__process article:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(50% + 21px);
    width: calc(100% - 42px);
    border-top: 2px dashed var(--line);
    z-index: 1;
}

.page-block__process article:not(:last-child)::after {
    content: "\f061";
    position: absolute;
    z-index: 2;
    top: 11px;
    left: calc(100% - 8px);
    transform: translateX(-50%);
    padding: 0 7px;
    background: #fff;
    color: var(--gold);
    font-family: FontAwesome;
    font-size: 14px;
    line-height: 20px;
}

.page-block__process h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.page-block__process p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 767px) {
    .page-block__process {
        display: block;
        width: 100%;
    }

    .page-block__process article {
        width: 100%;
        padding: 0 15px 70px;
    }

    .page-block__process article:last-child {
        padding-bottom: 0;
    }

    .page-block__process article > span {
        margin: 0 auto 12px;
    }

    .page-block__process article:not(:last-child)::before {
        top: auto;
        bottom: 10px;
        left: 50%;
        width: 0;
        height: 42px;
        border: 0;
        border-left: 2px dashed var(--line);
        transform: translateX(-50%);
    }

    .page-block__process article:not(:last-child)::after {
        content: "\f063";
        top: auto;
        bottom: 19px;
        left: 50%;
        transform: translateX(-50%);
        padding: 4px 6px;
        line-height: 16px;
    }
}

/* PORTFOLIO */
.page-block__portfolio-wrap {
    display: grid;
    grid-template-columns:minmax(0, 2.1fr) minmax(350px, 1fr);
    gap: 24px
}

.page-block__portfolio-main {
    min-width: 0
}

.page-block__portfolio-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px
}

.page-block__portfolio-heading h2 {
    margin: 0;
    font-size: 30px
}

.page-block__portfolio-all {
    font-size: 13px;
    font-weight: 700
}

.page-block__portfolio-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.portfolio-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: .2s
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 35, 59, .10)
}

.portfolio-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit
}

.portfolio-card__image {
    display: block;
    height: 190px;
    overflow: hidden;
    background: #f2f2ef
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center
}

.portfolio-card__body {
    display: flex;
    min-height: 85px;
    padding: 14px;
    flex-direction: column
}

.portfolio-card__title {
    color: var(--ink);
    font-size: 15px
}

.portfolio-card__tags {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 9px
}

.portfolio-card__tag {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 10px
}

.page-block__portfolio-cta {
    display: flex;
    padding: 28px;
    flex-direction: column;
    background: #faf8f4;
    border: 1px solid var(--line);
    border-radius: 8px
}

.page-block__portfolio-cta h3 {
    font-size: 21px
}

.page-block__portfolio-features {
    padding: 0;
    list-style: none
}

.page-block__portfolio-features li {
    position: relative;
    margin: 9px 0;
    padding-left: 22px;
    font-size: 13px
}

.page-block__portfolio-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 800
}

.page-block__portfolio-phone {
    display: flex;
    margin-top: 9px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    font-weight: 700
}

/* CTA */
.page-block__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px
}

.page-block__cta h2 {
    margin-bottom: 8px;
    text-align: left
}

.page-block__cta p {
    margin: 0
}

.page-block__buttons {
    display: flex;
    gap: 12px
}

.page-block__button {
    display: inline-flex;
    min-height: 46px;
    padding: 11px 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700
}

.page-block__button.primary {
    background: var(--blue);
    color: #fff
}

.page-block__button.secondary {
    background: #fff;
    color: var(--blue)
}

/* FAQ */
.page-block__faq {
    max-width: 1000px;
    margin: auto
}

.page-block__faq details {
    margin: 10px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px
}

.page-block__faq summary {
    position: relative;
    padding: 18px 54px 18px 20px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none
}

.page-block__faq summary:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 14px;
    color: var(--blue);
    font-size: 24px
}

.page-block__faq details[open] summary:after {
    content: "−"
}

.page-block__faq details > div {
    padding: 0 20px 20px
}

/* FINAL CTA + FOOTER */
.site-cta {
    background: linear-gradient(100deg, var(--navy), var(--navy-light));
    color: #fff
}

.site-cta__inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 130px;
    margin: auto;
    display: grid;
    grid-template-columns:1fr auto auto;
    gap: 34px;
    align-items: center
}

.site-cta h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 25px
}

.site-cta p {
    margin: 0;
    color: #dce6ec;
    font-size: 13px
}

.site-cta__phone {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap
}

.site-cta__button {
    padding: 13px 20px;
    background: var(--gold-gradient);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700
}

/* Fancybox / portfolio modal */
.project {
    position: relative;
    width: min(1100px, 90vw);
    max-height: 90vh;
    padding: 30px;
    overflow: auto;
    background: #fff;
    border-radius: 10px
}

.project .close-btn {
    position: absolute;
    right: 15px;
    top: 5px;
    color: var(--blue);
    font-size: 44px;
    cursor: pointer
}

.project-img-wrap {
    float: left;
    width: 48%;
    margin: 0 24px 16px 0
}

.project-img {
    width: 100%;
    height: auto
}

.clearfix {
    clear: both
}

.fancybox__container {
    background: rgba(4, 19, 36, .92) !important
}

/* Consent */
.cc {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none
}

.cc.is-open {
    display: block
}

.cc__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6)
}

.cc__modal {
    position: relative;
    top: 50%;
    max-width: 720px;
    margin: auto;
    padding: 18px;
    transform: translateY(-50%)
}

.cc__content {
    padding: 22px;
    background: var(--navy);
    color: #fff;
    border-radius: 10px
}

.cc__title {
    color: #fff;
    font-size: 20px
}

.cc__desc {
    font-size: 13px
}

.cc__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end
}

.cc__btn {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 5px;
    background: transparent;
    color: #fff
}

.cc__btn--primary {
    background: var(--blue);
    border-color: var(--blue)
}

.cc__links {
    margin-top: 10px;
    font-size: 11px
}

.cc__link {
    color: #f5dda5
}

.cc__sep {
    margin: 0 6px
}

@media (max-width: 1100px) {
    .site-header__inner {
        gap: 18px
    }

    .site-nav > ul {
        gap: 16px
    }

    .header-phone small {
        display: none
    }

}

@media (max-width: 991px) {
    .site-header__inner {
        min-height: 70px;
        width: calc(100% - 30px)
    }

    .site-brand {
        flex-basis: auto
    }

    .site-brand img {
        width: 160px
    }

    .header-phone {
        margin-left: auto
    }

    .header-phone span {
        display: none
    }

    .nav-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 9px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: #fff
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--ink)
    }

    .site-nav {
        position: fixed;
        top: 70px;
        bottom: 0;
        left: 100%;
        width: 100%;
        padding: 18px;
        background: #fff;
        overflow: auto;
        transition: .2s
    }

    .site-nav.open {
        left: 0
    }

    .site-nav > ul {
        display: block
    }

    .site-nav a, .site-nav span {
        padding: 14px 10px;
        border-bottom: 1px solid var(--line);
        font-size: 15px
    }

    .site-nav li ul {
        position: static;
        display: none;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none
    }

    .site-nav li:hover > ul {
        display: block;
        transform: none
    }

    .slide-wrapper, .slide-wrapper .slide {
        height: 400px
    }

    .slide-wrapper .slide-img {
        inset: 0
    }

    .slide-wrapper .slide:after {
        background: linear-gradient(90deg, rgba(250, 249, 246, .96), rgba(250, 249, 246, .82) 60%, rgba(250, 249, 246, .22))
    }

    .slide-text {
        width: calc(100% - 36px) !important
    }

    .slide-text > p, .slide-text > div {
        max-width: 70%
    }

    .slide-text strong, .slide-text h1 {
        font-size: clamp(32px, 7vw, 46px) !important
    }

    .page-block__split {
        grid-template-columns:1fr;
        gap: 28px
    }

    .page-block__split--reverse > div:first-child, .page-block__split--reverse > div:last-child {
        order: initial
    }

    .page-block__portfolio-wrap {
        grid-template-columns:1fr
    }

    .site-cta__inner {
        grid-template-columns:1fr auto;
        padding: 26px 0
    }

    .site-cta__button {
        grid-column: 2
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px
    }

    .slide-wrapper, .slide-wrapper .slide {
        height: 350px
    }

    .slide-wrapper .slide:after {
        background: linear-gradient(180deg, rgba(250, 249, 246, .94), rgba(250, 249, 246, .72) 72%, rgba(250, 249, 246, .15))
    }

    .slide-text {
        align-items: flex-start;
        padding-top: 42px
    }

    .slide-text > p, .slide-text > div {
        max-width: 100%
    }

    .slide-text strong, .slide-text h1 {
        font-size: 31px !important;
        line-height: 1.08 !important
    }

    .slide-text p {
        font-size: 14px
    }

    .page-block--spacing-normal {
        padding: 42px 0
    }

    .page-block--spacing-large {
        padding: 52px 0
    }

    .page-block__text--columns {
        columns: 1
    }

    .page-block__portfolio-grid {
        grid-template-columns:1fr
    }

    .page-block__cta {
        display: block
    }

    .page-block__buttons {
        margin-top: 20px;
        display: grid
    }

    .site-cta__inner {
        display: block
    }

    .site-cta__phone, .site-cta__button {
        display: inline-flex;
        margin-top: 18px;
        margin-right: 12px
    }
.project-img-wrap {
        float: none;
        width: 100%;
        margin: 0 0 16px
    }
}

/* STRONY.WEBPROM.PL - HERO DESKTOP */

@media (min-width: 992px) {

    .slide-wrapper {
        height: 400px !important;
    }

    .slide-wrapper .slide {
        position: relative;
        height: 400px !important;
        min-height: 400px !important;
        overflow: hidden;
    }

    .slide-wrapper .slide .slide-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;

        width: 100% !important;
        height: 400px !important;

        overflow: hidden !important;
    }

    .slide-wrapper .slide .slide-img img {
        display: block;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
        position: absolute;
        inset: 0;
        transform: none !important;
    }
}

/* =========================================================
   STRONY.WEBPROM.PL - PRZYCISKI HERO
   ========================================================= */

.sw-hero__buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;

    border: 2px solid var(--gold);
    border-radius: 5px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;

    transition: all .2s ease;
}

.sw-btn--primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff !important;
}

.sw-btn--primary:hover,
.sw-btn--primary:focus {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff !important;
    text-decoration: none !important;
}

.sw-btn--secondary {
    background-color: rgba(255, 255, 255, .85);
    border-color: var(--gold);
    color: var(--gold) !important;
}

.sw-btn--secondary:hover,
.sw-btn--secondary:focus {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff !important;
    text-decoration: none !important;
}

.sw-btn--primary span {
    margin-left: 7px;
    font-size: 18px;
    line-height: 1;
}
/* =========================================================
   STRONY INTERNETOWE - LOKALIZACJE
   ========================================================= */

.sw-local {
    width: 100%;
}


/* NAGŁÓWEK */

.sw-local__heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.sw-local__heading h2 {
    margin: 0 0 13px;

    color: var(--ink);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.7px;
}

.sw-local__heading h2 span {
    color: var(--blue);
}

.sw-local__heading p {
    margin: 0;

    color: var(--text);
    font-size: 13px;
    line-height: 1.65;
}

.sw-local__heading p strong {
    color: var(--ink);
    font-weight: 700;
}


/* MAPA + MIASTA */

.sw-local__body {
    display: grid;
    grid-template-columns: minmax(400px, .9fr) minmax(0, 1.1fr);
    gap: 65px;
    align-items: center;
}


/* MAPA */

.sw-local__map {
    display: flex;
    min-height: 300px;

    align-items: center;
    justify-content: center;
}

.sw-local__map-image {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
}


/* LISTA MIAST */

.sw-local__cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    row-gap: 0;
}


/* POJEDYNCZY LINK */

.sw-local__city {
    display: flex;
    min-height: 42px;

    padding: 10px 4px;

    align-items: center;
    gap: 10px;

    color: var(--text);
    font-size: 12px;
    line-height: 1.25;

    border-bottom: 1px solid var(--line);

    text-decoration: none !important;

    transition: color .2s ease;
}

.sw-local__city i {
    flex: 0 0 17px;

    color: var(--blue);
    font-size: 15px;
    text-align: center;
}

.sw-local__city span {
    display: block;
}

.sw-local__city strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;

    transition: color .2s ease;
}

.sw-local__city:hover,
.sw-local__city:hover strong {
    color: var(--blue);
}


/* WSZYSTKIE LOKALIZACJE */

.sw-local__all {
    grid-column: 1 / -1;

    padding-top: 18px;
    text-align: right;
}

.sw-local__all a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;

    text-decoration: none !important;
}

.sw-local__all a span {
    display: inline-block;
    margin-left: 5px;

    transition: transform .2s ease;
}

.sw-local__all a:hover span {
    transform: translateX(4px);
}


/* TABLET */

@media (max-width: 991px) {

    .sw-local__body {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 35px;
    }

    .sw-local__cities {
        column-gap: 22px;
    }

}


/* MOBILE */

@media (max-width: 767px) {

    .sw-local__heading {
        margin-bottom: 25px;
        text-align: left;
    }

    .sw-local__heading h2 {
        font-size: 27px;
    }

    .sw-local__body {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sw-local__map {
        min-height: 240px;
    }
}


@media (max-width: 520px) {

    .sw-local__cities {
        grid-template-columns: 1fr;
    }

    .sw-local__all {
        text-align: left;
    }

}
/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    padding: 48px 0 0;
    background: var(--navy);
    border-top: 0;
    color: #eef3f7;
}

.site-footer__inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


/* GŁÓWNY UKŁAD */

.site-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(250px, 1.55fr)
        repeat(4, minmax(135px, 1fr));
    gap: 42px;
    width: 100%;
    padding-bottom: 48px;
}

.site-footer__about,
.site-footer__column {
    min-width: 0;
}


/* O WEBPROM */

.site-footer__about {
    padding-right: 20px;
}

.site-footer__brand {
    display: inline-block;
    margin-bottom: 17px;
    text-decoration: none !important;
}

.site-footer__brand img {
    display: block;
    width: 210px;
    height: auto;
}

.site-footer__description {
    max-width: 280px;
    margin: 0 0 16px;
    color: #e5edf3;
    font-size: 12px;
    line-height: 1.65;
}

.site-footer__location {
    margin: 0 0 18px;
    color: #e5edf3;
    font-size: 11px;
    font-weight: 600;
}

.site-footer__location i {
    margin-right: 6px;
    color: var(--blue);
}


/* KONTAKT */

.site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.site-footer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eef3f7;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: color .2s ease;
}

.site-footer__contact a:hover {
    color: var(--blue);
}

.site-footer__contact i {
    width: 14px;
    color: var(--blue);
    text-align: center;
}


/* KOLUMNY */

.site-footer__column h4 {
    position: relative;
    margin: 3px 0 19px;
    padding-bottom: 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.site-footer__column h4::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--blue);
    content: "";
}

.site-footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__column li {
    margin: 0 0 10px;
    padding: 0;
}

.site-footer__column li:last-child {
    margin-bottom: 0;
}

.site-footer__column a {
    color: #e5edf3;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color .2s ease;
}

.site-footer__column a:hover {
    color: var(--blue);
}


/* DOLNY PASEK */

.site-footer__bottom {
    display: flex;
    width: 100%;
    min-height: 62px;
    padding: 18px 0;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,.28);
}

.site-footer__copyright {
    margin: 0;
    color: #c6d3df;
    font-size: 10px;
    line-height: 1.4;
}

.site-footer__legal {
    display: flex;
    width: auto;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 25px;
}

.site-footer__legal a {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #e5edf3;
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color .2s ease;
}

.site-footer__legal a:hover {
    color: var(--blue);
}


/* TABLET */

@media (max-width: 991px) {

    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 38px 30px;
    }

    .site-footer__about {
        grid-row: span 2;
    }
}


/* MOBILE */

@media (max-width: 767px) {

    .site-footer {
        padding-top: 42px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding-bottom: 38px;
    }

    .site-footer__about {
        grid-column: 1 / -1;
        grid-row: auto;
        padding-right: 0;
    }

    .site-footer__description {
        max-width: 400px;
    }

    .site-footer__bottom {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-footer__legal {
        width: 100%;
        justify-content: flex-start;
        gap: 8px 18px;
    }
}


@media (max-width: 480px) {

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

    .site-footer__about {
        grid-column: auto;
    }
}
/* Delikatna jasna maska pod tekstem slidera */
.slide:has(.hero-mask-light) .slide-img::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, .78) 0%,
            rgba(255, 255, 255, .60) 22%,
            rgba(255, 255, 255, .20) 43%,
            rgba(255, 255, 255, 0) 60%
    );

}

.slide:has(.hero-mask-light) .slide-img {
    position: absolute;
}

/* =========================================
   GALERIA PODSTRON – WEBPROM
   ========================================= */

.page-block--gallery .page-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

/* Pojedyncza miniatura */
.page-block--gallery .page-gallery-grid > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 230px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(6, 35, 59, 0.06);
    box-sizing: border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Zdjęcia panelu CMS */
.page-block--gallery .page-gallery-grid > a > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

/* Efekt po najechaniu */
.page-block--gallery .page-gallery-grid > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 35, 59, 0.12);
}

/* Tablet */
@media (max-width: 991px) {
    .page-block--gallery .page-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .page-block--gallery .page-gallery-grid > a {
        height: 210px;
    }
}

/* Telefon */
@media (max-width: 575px) {
    .page-block--gallery .page-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-block--gallery .page-gallery-grid > a {
        height: 230px;
    }
}

/* =========================================
   PORTFOLIO – WARIANT BEZ CTA
   ========================================= */

.page-block__portfolio-wrap--full {
    display: block;
    width: 100%;
}

.page-block__portfolio-wrap--full .page-block__portfolio-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
}

/* Siatka realizacji na pełną szerokość */
.page-block__portfolio-wrap--full .page-block__portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

/* Tablet */
@media (max-width: 991px) {
    .page-block__portfolio-wrap--full .page-block__portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mniejszy tablet */
@media (max-width: 767px) {
    .page-block__portfolio-wrap--full .page-block__portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Telefon */
@media (max-width: 480px) {
    .page-block__portfolio-wrap--full .page-block__portfolio-grid {
        grid-template-columns: 1fr;
    }
}


/* ===============================================================
   BILANTIVE – elementy nowego projektu (do uzycia w szablonie Twig)
   =============================================================== */

/* Naglowek / CTA do umowienia konsultacji */
.header-cta,
.btn-bilantive,
.bilantive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    padding: 11px 20px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    background: var(--gold-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(185, 129, 30, .12);
    transition: filter .2s ease, transform .2s ease;
}
.header-cta:hover,
.btn-bilantive:hover,
.bilantive-btn:hover {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}

/* Linie przy naglowkach sekcji – motyw z makiety */
.page-block__inner > h2,
.bilantive-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
    letter-spacing: -.7px;
}
.page-block__inner > h2::before,
.page-block__inner > h2::after,
.bilantive-section-title::before,
.bilantive-section-title::after {
    content: "";
    display: block;
    flex: 0 0 50px;
    height: 2px;
    background: var(--gold);
}

/* Opcjonalny dzial: „Dlaczego Bilantive?” – 4 kolumny z separatorami */
.bilantive-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
    margin: 28px auto;
}
.bilantive-benefit {
    min-width: 0;
    padding: 20px 24px;
    text-align: center;
}
.bilantive-benefit + .bilantive-benefit {
    border-left: 1px solid var(--line);
}
.bilantive-benefit > i,
.bilantive-benefit__icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 44px;
}
.bilantive-benefit:nth-child(2) > i,
.bilantive-benefit:nth-child(3) > i {
    color: var(--gold);
}
.bilantive-benefit h3 {
    max-width: 230px;
    margin: 0 auto;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

/* Opcjonalna sekcja: 3 karty uslug */
.bilantive-offer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 8px 0 24px;
}
.bilantive-offer__card {
    display: flex;
    min-width: 0;
    min-height: 235px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 17px;
    box-shadow: var(--shadow);
}
.bilantive-offer__card > i {
    display: block;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 43px;
}
.bilantive-offer__card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.2;
}
.bilantive-offer__card p {
    max-width: 310px;
    margin: 0 auto 16px;
    font-size: 14px;
    line-height: 1.55;
}
.bilantive-offer__card a {
    margin-top: auto;
    color: var(--gold-dark);
    font-weight: 800;
}

/* Formularz kontaktowy / konsultacje (styles do struktury Twig) */
.bilantive-contact {
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.bilantive-contact__aside {
    padding: 38px 34px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    color: #fff;
}
.bilantive-contact__aside h2,
.bilantive-contact__aside h3,
.bilantive-contact__aside a { color: #fff; }
.bilantive-contact__aside a:hover { color: var(--gold-light); }
.bilantive-contact__aside .fa { color: var(--gold-light); }
.bilantive-contact__form {
    padding: 26px 32px;
}
.bilantive-contact__form h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

/* Wspolna typografia i kontrolki – wspolpracuja z Bootstrap 3 */
.form-control,
.bilantive-contact input[type="text"],
.bilantive-contact input[type="tel"],
.bilantive-contact input[type="email"],
.bilantive-contact textarea,
.bilantive-contact select {
    width: 100%;
    min-height: 39px;
    border: 1px solid #cdd7e0;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    box-shadow: none;
}
.form-control:focus,
.bilantive-contact input:focus,
.bilantive-contact textarea:focus,
.bilantive-contact select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(207,156,61,.16);
    outline: 0;
}
.form-control::placeholder,
.bilantive-contact input::placeholder,
.bilantive-contact textarea::placeholder { color: #6b7888; }
.bilantive-contact textarea { min-height: 90px; resize: vertical; }
input[type="checkbox"] { accent-color: var(--gold-dark); }
.btn-primary {
    background: var(--gold-gradient);
    border-color: var(--gold-dark);
    color: #fff;
    font-weight: 800;
    border-radius: 8px;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

/* Wariant hero z diagonalnym zdjeciem i zlotym obramowaniem.
   Aktywowany dopiero po dodaniu .slide--bilantive do danego slidera. */
@media (min-width: 992px) {
    .slide-wrapper .slide.slide--bilantive .slide-img {
        left: 49% !important;
        width: 51% !important;
        right: 0 !important;
        height: 400px !important;
        border-left: 11px solid var(--gold-light);
        border-top-left-radius: 135px;
        border-bottom-left-radius: 35px;
        transform: skewX(-23deg);
        transform-origin: center bottom;
        box-shadow: -10px 0 0 var(--gold);
    }
    .slide-wrapper .slide.slide--bilantive .slide-img img {
        position: absolute;
        top: 0;
        left: 50%;
        width: 120% !important;
        height: 100% !important;
        object-fit: cover !important;
        transform: translateX(-50%) skewX(23deg) scale(1.08) !important;
    }
    .slide-wrapper .slide.slide--bilantive::after {
        background: none;
    }
}

@media (max-width: 991px) {
    .bilantive-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bilantive-benefit:nth-child(3) { border-left: 0; }
    .bilantive-benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
    .bilantive-contact { grid-template-columns: 1fr; }
    .bilantive-contact__aside { padding: 25px 30px; }
}
@media (max-width: 767px) {
    .page-block__inner > h2,
    .bilantive-section-title { gap: 12px; }
    .page-block__inner > h2::before,
    .page-block__inner > h2::after,
    .bilantive-section-title::before,
    .bilantive-section-title::after { flex-basis: 23px; }
    .bilantive-offer { grid-template-columns: 1fr; }
    .bilantive-contact__form { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .bilantive-benefit { padding: 18px 12px; }
    .bilantive-benefit h3 { font-size: 14px; }
}
/* Bilantive — mechanizm pulsowania jak w Rehabii */
.bil-why__item svg,.bil-why__item h3,.bil-offer__icon {
    transform:scale(1);
    transform-origin:center;
    transition:transform .25s ease;
}
.bil-why__item.bil-pulse-active svg,
.bil-why__item.bil-pulse-active h3,
.bil-offer__card.bil-pulse-active .bil-offer__icon {
    animation:bilRehabPulse .9s ease-out;
    animation-delay:var(--bil-pulse-delay,0s);
}
@keyframes bilRehabPulse {
    0% { transform:scale(1); }
    55% { transform:scale(1.08); }
    100% { transform:scale(1); }
}
.bil-why__item:hover svg { transform:scale(1.08); }
.bil-offer__card { transition:transform .25s ease,box-shadow .25s ease; }
.bil-offer__card:hover,.bil-offer__card:focus-within {
    transform:translateY(-6px) scale(1.01);
    box-shadow:0 14px 30px rgba(9,36,60,.12);
}
.bil-offer__card:hover .bil-offer__icon,
.bil-offer__card:focus-within .bil-offer__icon { transform:scale(1.08); }
