* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Ubuntu', sans-serif;
    color: #222;
    background: #f7f7f4;
}


/* ==================================================
   HERO
   ================================================== */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 400;
    color: #234d32;
    margin-bottom: 22px;
}

.hero p {
    font-size: 21px;
    line-height: 1.6;
    color: #555;
}


/* ==================================================
   TELEFON / TABLET
   ================================================== */

@media (max-width: 850px) {

    .hero {
        min-height: 430px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }
}
/* ==================================================
   STRONA GŁÓWNA
   ================================================== */

.home-intro {
    width: 100%;
    min-height: calc(100vh - 82px);

    display: grid;
    grid-template-columns: 40% 60%;
}

.home-intro-text {
    padding: 80px 8%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #f7f7f4;
}

.home-intro-text h1 {
    margin: 0 0 30px;
    font-family: "Ubuntu", cursive;
    font-size: clamp(54px, 5.5vw, 84px);
    font-weight: 400;
    line-height: 1.15;
    color: #234d32;
}

.home-intro-text p {
    max-width: 520px;
    margin: 0 0 40px;

    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
}

.home-button {
    display: inline-block;
    align-self: flex-start;

    padding: 14px 26px;

    border: 0;
    border-radius: 3px;

    color: #fff;
    background: #234d32;

    text-decoration: none;

    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.home-button:hover {
    background: #39704b;
}

/* ==================================================
   PRZENIKAJĄCE ZDJĘCIA
   ================================================== */

.home-intro-slider {
    position: relative;
    min-height: calc(100vh - 82px);
    overflow: hidden;
}

.home-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    animation: homeFade 18s infinite;
}

.slide-1 {
    animation-delay: 0s;
}

.slide-2 {
    animation-delay: 6s;
}

.slide-3 {
    animation-delay: 12s;
}

@keyframes homeFade {

    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* ==================================================
   POJAWIANIE PODCZAS PRZEWIJANIA
   ================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==================================================
   TELEFON / TABLET
   ================================================== */

@media (max-width: 850px) {

    .home-intro {
        display: block;
        min-height: auto;
    }

    .home-intro-text {
        padding: 70px 25px;
    }

    .home-intro-text h1 {
        font-size: 44px;
    }

    .home-intro-text p {
        font-size: 18px;
    }

    .home-intro-slider {
        height: 65vh;
        min-height: 450px;
    }
}
/* ==================================================
   PODSTRONY - WPROWADZENIE
   ================================================== */

.page-intro {
    padding: 110px 25px 90px;
    background: #f7f7f4;
}

.page-intro-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-intro h1 {
    margin-bottom: 30px;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.1;
    color: #234d32;
}

.page-intro p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
}


/* ==================================================
   SEKCJE ZDJĘCIE + TEKST
   ================================================== */

.content-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-row-reverse .content-image {
    order: 2;
}

.content-row-reverse .content-text {
    order: 1;
}

.content-image {
    overflow: hidden;
}

.content-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.content-text {
    max-width: 560px;
}

.content-text h2 {
    margin-bottom: 24px;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.2;
    color: #234d32;
}

.content-text p {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
}


/* ==================================================
   CTA
   ================================================== */

.page-cta {
    padding: 100px 25px;
    background: #eef1e9;
    text-align: center;
}

.page-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-cta h2 {
    margin-bottom: 22px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    color: #234d32;
}

.page-cta p {
    margin-bottom: 35px;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
}

.page-cta .home-button {
    display: inline-block;
}


/* ==================================================
   TELEFON / TABLET
   ================================================== */

@media (max-width: 850px) {

    .page-intro {
        padding: 75px 25px 60px;
    }

    .page-intro p {
        font-size: 18px;
    }

    .content-row {
        padding: 55px 25px;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .content-row-reverse .content-image,
    .content-row-reverse .content-text {
        order: initial;
    }

    .content-text {
        max-width: none;
    }

    .content-text p {
        font-size: 18px;
    }

    .page-cta {
        padding: 70px 25px;
    }
}
/* ==================================================
   PODSTRONY OFERTY
   ================================================== */

.subpage-intro {
    padding: 70px 25px 50px;
    background: #f7f7f4;
}

.subpage-intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.subpage-intro h1 {
    margin-bottom: 25px;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 400;
    color: #234d32;
}

.subpage-intro p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
}

.service-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 40px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.service-section-reverse .service-image {
    order: 2;
}

.service-section-reverse .service-text {
    order: 1;
}

.service-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*.service-text h2 {
    margin-bottom: 25px;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.2;
    color: #234d32;
}*/
.service-text h2 {
    margin-bottom: 15px;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.2;
    color: #234d32;
}
.service-text p {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
}
/* ==================================================
   STOPKA
   ================================================== */

.site-footer {
    margin-top: 60px;
    background: #234d32;
    color: #fff;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand strong {
    font-size: 24px;
    font-weight: 500;
}

.footer-brand span {
    font-size: 15px;
    font-weight: 300;
    opacity: .8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 25px;

    border-top: 1px solid rgba(255, 255, 255, .2);

    text-align: center;
    font-size: 13px;
    font-weight: 300;
    opacity: .8;
}


/* TELEFON */

@media (max-width: 850px) {

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-contact {
        text-align: left;
    }

}

/* ==================================================
   NEWSLETTER
   ================================================== */

.newsletter {
    background: #f5f7f3;
    padding: 55px 25px;
    color: #333333;
}

.newsletter-inner {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #245536;
}

.newsletter-text p {
    margin: 0;
    line-height: 1.6;
}

.newsletter-form {
    flex: 1;
    max-width: 520px;
}

.newsletter-row {
    display: flex;
    gap: 10px;
}

.newsletter-row input[type="email"] {
    flex: 1;
    padding: 13px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

.newsletter-row button {
    padding: 13px 22px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.newsletter-consent input {
    margin-top: 3px;
}

.newsletter-message {
    margin-top: 10px;
    min-height: 20px;
    font-size: 13px;
}

.newsletter-message.success {
    color: #267326;
}

.newsletter-message.error {
    color: #b00020;
}

@media (max-width: 750px) {

    .newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .newsletter-form {
        max-width: none;
    }

    .newsletter-row {
        flex-direction: column;
    }

    .newsletter-row button {
        width: 100%;
    }
}

.newsletter-text p,
.newsletter-consent {
    color: #555555;
}

/* ==================================================
   POTWIERDZENIE NEWSLETTERA
   ================================================== */

.newsletter-confirmation {
    min-height: 520px;
    padding: 90px 25px;
    background: #f5f7f3;

    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-confirmation-box {
    width: 100%;
    max-width: 700px;

    padding: 55px 45px;

    background: #ffffff;
    text-align: center;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.newsletter-confirmation-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #245536;
    color: #ffffff;

    font-size: 34px;
    font-weight: 600;
}

.newsletter-confirmation h1 {
    margin: 0 0 18px;
    color: #245536;
    font-size: 34px;
}

.newsletter-confirmation p {
    max-width: 560px;
    margin: 0 auto 30px;

    color: #555555;
    line-height: 1.7;
}

@media (max-width: 600px) {

    .newsletter-confirmation {
        padding: 60px 20px;
    }

    .newsletter-confirmation-box {
        padding: 40px 25px;
    }

    .newsletter-confirmation h1 {
        font-size: 28px;
    }
}

/* ==================================================
   POP-UP NEWSLETTERA
   ================================================== */

.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);
}

.newsletter-popup-box {
    position: relative;

    width: 100%;
    max-width: 520px;

    padding: 45px 40px 40px;

    background: #ffffff;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.newsletter-popup-box h2 {
    margin: 0 0 15px;

    font-size: 28px;
    color: #1f5132;
}

.newsletter-popup-box p {
    margin: 0 0 28px;

    font-size: 16px;
    line-height: 1.6;
    color: #444444;
}

.newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;

    padding: 0;
    border: 0;
    background: transparent;

    font-size: 30px;
    line-height: 1;
    color: #666666;

    cursor: pointer;
}

.newsletter-popup-close:hover {
    color: #1f5132;
}

.newsletter-popup-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-popup-buttons .home-button {
    width: auto;
}

.newsletter-popup-no {
    padding: 12px 20px;

    border: 1px solid #cccccc;
    border-radius: 4px;

    background: #ffffff;
    color: #555555;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;
}

.newsletter-popup-no:hover {
    background: #f2f2f2;
}


/* Telefon */
@media (max-width: 600px) {

    .newsletter-popup-box {
        padding: 40px 20px 30px;
    }

    .newsletter-popup-box h2 {
        font-size: 24px;
    }

    .newsletter-popup-buttons {
        flex-direction: column;
    }

    .newsletter-popup-buttons .home-button {
        width: auto;
    }

    .newsletter-popup-no {
        width: auto;
    }
}