body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}


.video-bg {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.header__logo {
    height: 82px;
    width: auto;
}


.fourthSection,
.fifthSection,
.sixthSection {
    background-size: cover;
    background-position: center;
}

.fourthSection__swiper .swiper-slide {
    width: 252px !important;
    height: 467.5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.fourthSection__swiper .swiper-slide img {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    border: none;
}

.fourthSection__swiper .swiper-slide__bottomSection {
    padding: 12px 10px 18px;
    flex: 0 0 auto;
    min-height: 100px;
}

.fourthSection__portfolioLinkText {
    color: #000 !important;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    text-align: left;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .fourthSection__swiper .swiper-slide {
        width: 85% !important;
        height: auto;
    }

    .fourthSection__swiper .swiper-slide img {
        height: 250px;
        object-fit: cover;
    }

    .fourthSection .swiper-slide__bottomSection {
        height: auto;
        min-height: 80px;
        padding: 15px;
    }

    /* Poprawa sekcji "Czym się zajmujemy" na mobilu */
    .fifthSection .swiper-slide {
        width: 85% !important;
        padding: 40px 20px;
    }

    .fifthSection__icon {
        margin-bottom: 20px;
    }

    /* Poprawa sekcji Jak pracujemy */
    .seventhSection .swiper-slide {
        width: 85% !important;
    }

    /* Poprawa sekcji Cennik */
    .ninthSection .swiper-slide {
        width: 85% !important;
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    /* Ujednolicenie paddingów dla spójności - bardzo zwarte */
    div[class^="secondSection"] .text-padding {
        padding: 0 !important;
    }
    .fourthSection__firstContainer,
    .fifthSection__firstContainer,
    .seventhSection__firstContainer,
    .eighthSection__firstContainer,
    .ninthSection__firstContainer {
        padding: 40px !important;
    }

    /* Poprawa responsywności sekcji What Do We Create */
    section[class^="whatDoWeCreate"] {
        padding: 40px !important;
    }

    .text-wrapper { padding: 0 !important;
        padding: 30px 0 !important;
    }

    .number-wrapper .number {
        font-size: 80px;
    }
}

@media (max-width: 992px) {
    .bottomText {
        padding: 5px 20px 10px !important;
        margin-top: 0 !important;
    }
}

@media (min-width: 992px) {
    .fourthSection {
        padding-bottom: 50px !important;
        box-sizing: border-box;
    }

    .fourthSection__swiper {
        position: relative;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .fourthSection__swiper .swiper {
        height: auto !important;
    }

    .fourthSection__swiper .swiper-wrapper {
        align-items: stretch;
    }

    .fourthSection__swiper .swiper-button-next,
    .fourthSection__swiper .swiper-button-prev {
        top: 50% !important;
        transform: translateY(-50%);
    }
}

.portfolio-button {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #d8d6cb;
    border: 1px solid #d8d6cb;
    width: 320px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    margin: 25px 0;
    transition: all 0.3s ease;
    border-radius: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-button > a:hover {
    transition: all 0.5s ease;
    background-color: #d8d6cb;
    color: #000;
}

.portfolio-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 35px 0;
}

.portfolio-nav-bar .portfolio-button {
    margin: 0;
}

.portfolio-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d8d6cb;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-nav-link i {
    font-size: 0.9rem;
}

.portfolio-nav-link:hover {
    color: #ffffff;
}

.portfolio-nav-bar .portfolio-nav-link {
    flex: 1 1 auto;
}

.portfolio-nav-bar .portfolio-nav-link--prev {
    justify-content: flex-start;
}

.portfolio-nav-bar .portfolio-nav-link--next {
    justify-content: flex-end;
}

.portfolio-video {
    margin: 30px auto;
    width: 100%;
}

.portfolio-video--ratio-9-16,
.portfolio-video--ratio-1-2 {
    max-width: 520px;
}

.portfolio-video--ratio-4-3 {
    max-width: 900px;
}

.portfolio-video__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.portfolio-video__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-video--ratio-21-9 .portfolio-video__frame {
    padding-top: 42.85%;
}

.portfolio-video--ratio-18-9 .portfolio-video__frame {
    padding-top: 50%;
}

.portfolio-video--ratio-4-3 .portfolio-video__frame {
    padding-top: 75%;
}

.portfolio-video--ratio-1-1 .portfolio-video__frame {
    padding-top: 100%;
}

.portfolio-video--ratio-1-2 .portfolio-video__frame {
    padding-top: 200%;
}

.portfolio-video--ratio-9-16 .portfolio-video__frame {
    padding-top: 177.77%;
}


.footer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.form-group label {
    color: #d0d0d0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 0;
    padding: 12px 15px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    transition: border-color 0.3s ease, background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d8d6cb;
    background: rgba(255, 255, 255, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
    text-align: left;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #666;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: #d8d6cb;
    border-color: #d8d6cb;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: "✔";
    font-size: 10px;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox label {
    color: #aaa;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox a {
    color: #d8d6cb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.form-checkbox a:hover {
    border-bottom-color: #d8d6cb;
}

.footer .button {
    margin-top: 10px;
    padding: 8px 35px;
    background: transparent;
    color: #d8d6cb;
    border: 1px solid #d8d6cb;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer .button:hover {
    background: #d8d6cb;
    color: #000;
}


.dynamic-pricing {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 0;
    padding: 35px 0;
    margin: 40px auto 0;
    max-width: 1400px !important;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.07);
}

.dynamic-pricing__intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 110.82px;
}

.dynamic-pricing__intro h3 {
    margin: 0;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #363636;
}

.dynamic-pricing__intro p {
    margin: 0;
    color: #000;
    font-size: 13px;
}

.dynamic-pricing__cards {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 30px;
    justify-content: center;
    padding: 0;
}

.pricing-card {
    border: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 24px 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100%;
    width: 350px;
    max-width: 350px;
}

.pricing-card__intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.pricing-card__title {
    margin: 0;
    font-size: 14px !important;
    color: #363636;
    letter-spacing: 1px;
}

.pricing-card__subtitle {
    margin: 0;
    color: #000;
    font-size: 12px;
    text-align: left;
}

.pricing-card__description {
    margin-top: -6px;
    margin-bottom: -4px;
    text-align: left;
    font-size: 11px !important;
}

.pricing-card__toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: stretch;
    margin: 15px 0;
}

.building-toggle-btn {
    border: 1px solid #eee;
    border-radius: 0;
    background: #f8f8f8;
    padding: 12px 5px;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
}

.building-toggle-btn i {
    font-size: 20px;
    color: #999;
    margin-bottom: 6px;
}

.building-toggle-btn span {
    font-size: 10px;
    line-height: 1.2;
    text-transform: none;
    text-align: center;
    font-weight: 700;
}

.building-toggle-btn small {
    font-size: 9px;
    text-transform: none;
    color: #999;
    display: block;
    margin-top: 2px;
}

.building-toggle-btn.is-active {
    border-color: #1c8f5c;
    background: #eaf7f0;
    color: #1c8f5c;
    box-shadow: inset 0 0 0 1px rgba(28, 143, 92, 0.2);
}

.building-toggle-btn.is-active i,
.building-toggle-btn.is-active span,
.building-toggle-btn.is-active small {
    color: #1c8f5c !important;
}

.pricing-card__price {
    text-align: left;
}

.pricing-card__price strong {
    display: block;
    font-size: 22px;
    color: #1c1c1c;
    margin-bottom: 4px;
}

.pricing-card__price span {
    font-size: 12px;
    color: #363636;
}

.pricing-card__extra {
    margin: 6px 0 0;
    font-size: 12px;
    color: #363636;
}

.pricing-card__features {
    margin: 0;
    padding-left: 18px;
    color: #000;
    flex-grow: 1;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.pricing-card__features li {
    margin-bottom: 5px;
}

.pricing-card .button {
    align-self: center !important;
    padding: 8px 22px;
}

.pricing-note {
    margin-top: 26px;
    font-size: 11px;
    color: #333;
}

@media (max-width: 992px) {
    .dynamic-pricing__intro {
        padding: 0 20px !important;
    }
    .dynamic-pricing {
        padding: 28px;
        margin: 35px 20px 0;
    }
}

@media (max-width: 768px) {
    .dynamic-pricing__cards {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
    }

    .pricing-card {
        width: 100% !important;
        max-width: 400px !important;
        padding: 20px;
    }

    .pricing-card__toggle {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    .building-toggle-btn {
        flex: 1 !important;
        padding: 8px 2px !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        aspect-ratio: 1 / 1 !important;
        text-align: center !important;
        background: #f8f8f8 !important;
        border: 1px solid #eee !important;
    }

    .building-toggle-btn i {
        margin-bottom: 4px !important;
        font-size: 18px !important;
        display: block !important;
    }

    .building-toggle-btn span {
        font-size: 8px !important;
        white-space: normal !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        display: block !important;
    }

    .building-toggle-btn small {
        display: block !important;
        font-size: 7px !important;
        line-height: 1 !important;
        margin-top: 2px !important;
        color: inherit !important;
        opacity: 0.8 !important;
    }
}


.file-input-wrapper input {
    color: #aaa;
    font-size: 12px;
    background: transparent;
    border: none;
    padding: 5px 0;
}





.footer__site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.footer__site-links a {
    color: inherit;
    font-weight: 600;
    text-transform: lowercase;
}

@media (min-width: 992px) {
    .footer__site-links {
        justify-content: flex-start;
    }
}


.footer__site-links-pair {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.footer__site-links-pair a {
    display: inline-block;
}

/* WIELKIE CYFRY JAK PRACUJEMY MOBILE */
@media (max-width: 992px) {
    .seventhSection .swiper-slide {
        position: relative !important;
        padding-top: 70px !important;
        text-align: center !important;
    }

    .box-number {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 60px !important;
        font-weight: 900 !important;
        color: rgba(216, 214, 203, 0.15) !important;
        -webkit-text-stroke: 1px rgba(216, 214, 203, 0.8) !important;
        line-height: 1 !important;
        display: block !important;
        opacity: 0.8 !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    .seventhSection h5, .seventhSection p {
        position: relative !important;
        z-index: 11 !important;
    }
}


/* HERO MOBILE OVERLAY FULL WIDTH */
@media (max-width: 991.98px) {
    .firstSection__firstColumn {
        background-color: transparent !important;
    }
    .firstSection::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
        pointer-events: none;
    }
    .firstSection__container {
        position: relative;
        z-index: 2;
    }
}
