:root {
    --font-xs: 0.75rem; /* 12px */
    --font-sm: 0.8125rem; /* 13px */
    --font-regular: 0.875rem; /* 14px */
    --font-md: 0.96875rem; /* 15.5px */
    --font-base: 1rem; /* 16px */
    --font-small: 1.0625rem; /* 17px */
    --font-medium: 1.25rem; /* 20px */
    --font-medium-plus: 1.375rem; /* 22px */
    --font-large: 1.5rem; /* 24px */
    --font-heading: 1.625rem; /* 26px */
    --font-xl: 1.75rem; /* 28px */
    --font-title: 2.3125rem; /* 37.5px */
    --font-subtitle: 2.5625rem; /* 41px */
    --font-button: 0.8333rem; /* 13.33px */
    --font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Kolory */
    --color-primary: rgb(35, 45, 90);
    --color-accent: rgb(76, 175, 80);
    --color-surface: #f3f3f3;
    --color-text-muted: #6b6b6b; /* kontrast >= 4.5:1 na bieli i #f3f3f3 */

    /* Cień */
    --shadow-card: 0px 0px 8px rgb(0, 0, 0, 0.1);
}

#header-navi,
header .square-button,
header a,
.gallery-buttons {
    display: none;
}

* {
    margin: 0 auto;
    font-family: var(--font-family);
}

header {
    height: 65px;
    display: flex;
}

#a23 {
    display: block;
}

#logo {
    margin-left: 9px;
}

#PLEN {
    font-size: var(--font-base);
    display: flex;
    align-items: center;
}

.hb {
    width: 24px;
    margin: 0 auto;
    display: block;
}

#menu-icon {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 5px;
}

#menu-icon img {
    height: 28px;
}

#mobile-menu {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 10px rgb(0, 0, 0, 0.1);
    transition: 0.3s ease;
    height: fit-content;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

#mobile-menu li {
    padding: 15px 0;
    font-size: var(--font-medium);
    border-bottom: 1px solid #eaeaea;
}

#mobile-menu a {
    color: var(--color-primary);
    font-weight: 600;
}

#mobile-menu.hidden-menu {
    display: none;
}

main {
    width: 100%;
    height: fit-content;
    padding: 0 22px 22px;
    box-sizing: border-box;
    background-color: var(--color-surface);
}

#main-photo img {
    width: calc(100% + 44px);
    height: auto;
    margin-left: -22px;
}

#img2 {
    display: none;
}

#main-header {
    padding-top: 11px;
    display: flex;
    flex-direction: column;
}

#main-h {
    display: flex;
    flex-direction: row;
    margin: 0;
    justify-content: space-between;
}

#main-h h2 {
    width: fit-content;
    height: 100%;
    float: left;
    font-size: var(--font-xl);
    font-weight: 600;
    margin: 0;
}

#main-h img {
    height: 68px;
    width: auto;
    margin: 0;
    display: flex;
}

#main-header h3 {
    font-size: var(--font-md);
    font-weight: normal;
    margin-top: 11px;
    padding-bottom: 11px;
}

.main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    height: 40px;
    width: 80px;
    border-radius: 5px;
    cursor: pointer;
    font-size: var(--font-button);
    transition: background-color 0.3s;
    border: 0;
    margin: 0;
}

.main-button:hover {
    background-color: var(--color-accent);
    color: white;
}

#offer {
    padding: 0 22px 22px;
    display: flex;
    flex-direction: column;
}

.square {
    display: flex;
    flex-direction: column;
    padding: 22px 0;
    margin: 22px 0 0;
    height: fit-content;
    width: 100%;
    background-color: white;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: var(--shadow-card);
}

.square h2 {
    text-align: center;
    font-size: var(--font-xl);
    padding-bottom: 22px;
}

#numbers h2 {
    text-align: center;
    font-size: var(--font-xl);
}

.square img {
    height: 60px;
    width: auto;
}

.square h3 {
    font-weight: normal;
    font-size: var(--font-base);
}

.square1 {
    display: flex;
    align-items: center;
    margin: 0;
}

.square2 {
    display: flex;
    align-items: center;
    margin: 0;
}

.square1 h3 {
    text-align: right;
    width: fit-content;
}

.square2 h3 {
    text-align: right;
}

.square-button {
    margin-top: 22px;
    background-color: var(--color-primary);
    color: white;
    height: 40px;
    width: 120px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    font-size: var(--font-button);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-button:hover {
    background-color: var(--color-accent);
    color: white;
}

#steps {
    display: none;
}

/* #offer h2{
    text-align: center;
    font-size: var(--font-xl);
    padding: 22px 0px 22px 0px;
} */

#offer-h2 {
    text-align: center;
    font-size: var(--font-xl);
    padding: 22px 0;
}

#implementations {
    display: grid;
    gap: 22px;
}

.implementation {
    height: auto;
    width: 100%;
    background-color: var(--color-surface);
    color: black;
    border-radius: 30px;
}

.implementation h2 {
    padding: 11px 20px;
    font-weight: 600;
    font-size: var(--font-medium);
    display: flex;
}

.implementation-text {
    padding: 0 20px;
    font-weight: 400;
}

.implementation-button {
    border: 0;
    float: right;
    cursor: pointer;
    transition: color 0.5s;
    background-color: var(--color-surface);
    margin: 20px;
    padding: 1px 6px;
    font-size: var(--font-button);
    color: var(--color-text-muted);
}

.implementation-button:hover {
    color: var(--color-accent);
}

.implementation img,
.implementation video {
    width: 100%;
    height: 200px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    object-fit: cover;
}

.special {
    background-color: #fff;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    margin: 0;
}

#numbers {
    padding: 22px;
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    row-gap: 22px;
}

.numbers-box {
    margin: 0;
    background-color: white;
    padding: 22px;
    border-radius: 30px;
    display: flex;
    box-shadow: var(--shadow-card);
}

.numbers-box-left {
    width: 90%;
    margin: 0;
}

.numbers-box-right {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.hidden-display {
    display: none;
    padding-top: 11px;
    color: #505050;
    font-size: var(--font-regular);
}

.numbers-box.is-open .hidden-display {
    display: block;
}

.numbers-toggle {
    position: relative;
    display: flex;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

/* powiększony obszar dotyku (min. 44 px) bez zmiany układu */
.numbers-toggle::after {
    content: '';
    position: absolute;
    inset: -10px;
}

.numbers-toggle img {
    width: 24px;
    height: 24px;
    margin: 0;
}

.numbers-toggle .arrow-up,
.numbers-box.is-open .arrow-down {
    display: none;
}

.numbers-box.is-open .arrow-up {
    display: block;
}

#numbers-background-color {
    background-color: var(--color-surface);
}

#numbers-background-color h1 {
    text-align: center;
    padding: 0 22px 22px;
    font-size: var(--font-medium-plus);
}

html {
    color-scheme: light;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.accent {
    color: var(--color-accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 16px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 0 0 5px;
    transform: translateY(-100%);
}

.skip-link:focus {
    transform: translateY(0);
}

a {
    text-decoration: none;

    color: inherit;
}

@media (min-width: 1025px) {
    #header-navi,
    header .square-button,
    header a,
    #img2 {
        display: block;
    }

    header a {
        text-decoration: none;
        color: inherit;
        margin: 0;
        padding: 0;
    }

    header {
        justify-content: center;
        column-gap: 19px;
        align-items: center;
        height: 87px;
    }

    #logo {
        margin: 0;
    }

    #logo img {
        height: 100%;
        width: auto;
    }

    #header-navi {
        margin: 0;
    }

    .l-header-navi li {
        font-size: larger;
        padding: 8px 12px;
        font-weight: 600;
        color: var(--color-primary);
        transition: all 0.3s ease;
    }

    .l-header-navi {
        list-style-type: none;
        padding: 0;
        height: 100%;
        display: flex;
        flex-direction: row;
        column-gap: 11px;
        align-items: center;
        background-color: white;
    }

    .l-header-navi li::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
        opacity: 0;
    }

    .l-header-navi li:hover::after {
        opacity: 1;
    }

    .l-header-navi li:hover {
        transform: translateY(3px);
        box-shadow: 0 2px 4px rgb(0, 0, 0, 0.1);
    }

    header .square-button {
        display: flex;
        margin: 0;
        height: 45px;
        width: 140px;
        font-size: var(--font-base);
    }

    #PLEN {
        margin: 0;
        font-size: larger;
    }

    #menu-icon {
        display: none;
    }

    main {
        width: clamp(70%, 95%, 1200px);
        margin: 0 auto;
        border-radius: 10px 10px 0 0;
        background-color: white;
    }

    #main-photo {
        display: flex;
        flex-direction: column;
        row-gap: 11px;
    }

    #main-photo img {
        height: 295px;
        object-fit: cover;
    }

    #img1 {
        border-radius: 10px 100px 10px 10px;
        object-position: center;
    }

    #img2 {
        border-radius: 10px 10px 10px 100px;
        object-position: bottom;
    }

    #main-h {
        flex: 1;
        justify-content: flex-start;
        align-items: flex-end;
    }

    #main-h img {
        padding-left: 22px;
        height: 85px;
    }

    #main-header {
        flex-direction: column;
        padding-top: 44px;
    }

    #main-header h2 {
        font-size: var(--font-subtitle);
    }

    #main-header h3 {
        font-size: var(--font-heading);
        margin-top: 0;
        padding-bottom: 0;
        flex: 1;
    }

    .main-button {
        align-items: center;
        width: 140px;
        height: 45px;
        font-size: var(--font-base);
    }

    #main-pc {
        display: flex;
        flex-direction: row;
        margin: 0;
        padding-bottom: 22px;
        align-items: flex-end;
    }

    #square-steps {
        display: flex;
    }

    .square {
        width: 70%;
        margin-top: 44px;
    }

    .square h3 {
        font-size: var(--font-medium-plus);
    }

    .square1 img {
        height: 90px;
        margin-left: 22.5%;
    }

    .square2 img {
        height: 90px;
        margin-right: 22.5%;
    }

    .square h2,
    #numbers h2 {
        font-size: var(--font-subtitle);
        margin: 22px 0;
    }

    #offer h2 {
        font-size: var(--font-subtitle);
    }

    .square .square-button {
        height: 45px;
        width: 140px;
        font-size: var(--font-base);
        margin-bottom: 22px;
    }

    #steps {
        max-width: 1344px;
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 44px;
    }

    .art-steps {
        width: 100%;
        text-align: center;
        border-radius: 12px;
        flex-direction: column;
        padding: 36px 0;
        display: flex;
        row-gap: 16px;
    }

    .h4-steps-number {
        width: 100px;
        height: 100px;
        font-size: 50px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .h3-steps-title {
        text-align: center;
        font-size: var(--font-medium);
    }

    .h4-steps-text {
        text-align: center;
        font-size: 18px;
        font-weight: normal;
    }

    .text-steps-kontakt {
        color: var(--color-primary);
        font-size: 18px;
        font-weight: normal;
    }

    #offer {
        width: clamp(70%, 95%, 1200px);
        padding: 0 0 22px;
    }

    #implementations {
        display: flex;
        overflow-x: hidden;
        scroll-behavior: smooth;
        gap: 88px;
        padding: 22px 0;
        width: 100%;
    }

    .implementation {
        max-width: 350px;
        flex-shrink: 0;
        background: var(--color-surface);
        border-radius: 30px;
    }

    .gallery-buttons {
        display: block;
        text-align: center;
        margin: 22px;
    }

    .gallery-buttons button {
        padding: 10px 20px;
        font-size: 16px;
        margin: 5px;
    }

    #implementations h2 {
        font-size: var(--font-medium-plus);
    }

    .implementation-text {
        width: 73%;
        float: left;
        font-size: var(--font-medium);
    }

    .implementation-button {
        font-size: var(--font-md);
    }

    #numbers-background-color {
        background-color: var(--color-surface);
    }

    #numbers-background-color h1 {
        text-align: center;
        padding: 0 0 44px;
    }

    #numbers {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 22px 0 44px;
        width: clamp(70%, 90%, 1200px);
    }

    .numbers-box {
        width: 100%;
    }

    .numbers-box-left p {
        font-size: var(--font-medium);
    }

    .numbers-box-left h3 {
        font-size: var(--font-heading);
    }
}

/* ==========================================================================
   Animacje wejścia (aktywne tylko gdy js/reveal.js dodał klasę .js-reveal)
   ========================================================================== */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.6s ease var(--reveal-delay, 0ms),
        transform 0.6s ease var(--reveal-delay, 0ms);
}

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

[data-countup] {
    font-variant-numeric: tabular-nums;
}

@media print {
    header,
    .skip-link,
    #mobile-menu,
    .gallery-buttons,
    .numbers-toggle {
        display: none !important;
    }

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

/* Wspólna stopka (Web Component <site-footer>) */
site-footer {
    display: block;
}

address {
    font-style: normal;
}

.clearfix {
    clear: both;
}
