:root {
    --padd: 50px;
    --padd-small: 10px;
    --radius: 30px;
    --radius-small: 10px;
    --main-color: #587537;
    --bord: 1px solid;
    --accent-color: #2F6C94;
}

h2 {
    margin: var(--padd) 0;
    text-align: center;
}

body a {
    color: var(--main-color);
}

body a:hover {
    color: var(--accent-color);
}

#sp-main-body {
    padding: 0;
}

.btn,
.moduletable.kontakt button.submit {
    background-color: var(--accent-color);
    color: white;
    padding: var(--padd-small);
    border-radius: var(--radius);
}

body .btn:hover,
.moduletable.kontakt button:hover.submit {
    background-color: transparent;
    color: white;
    border: 2px solid var(--accent-color);
}

body .btn a {
    color: white;
}


.box,
.mod-testimonials-slider .testimonial-item {
    background: white;
    color: var(--main-color);
    padding: var(--padd);
    border-radius: var(--radius);
    border: var(--bord) var(--accent-color);
    box-shadow: 0px 0px 11px -3px var(--accent-color);
}

.box img {
    margin: auto;
}

.thin {
    width: 75%;
    margin: auto;

}

/*-------------contac-info-bar---------------*/
#sp-top1 {
    padding: var(--padd-small) 0;
}

.contact-info-bar {
    display: flex;
    justify-content: end;
}

.contact-info-bar .phone {
    margin-right: 15px;
}

.contact-info-bar .icon {
    color: var(--accent-color);
    font-size: 1, 2rem;
    margin-right: 3px;
}

.sp-megamenu-parent>li>a {
    color: var(--accent-color);
}

.sp-megamenu-parent>li>a {
    position: relative;
    transition: color 0.25s ease;
}



.sp-megamenu-parent>li:hover>a {
    color: var(--accent-color);
}




/*---------HERO-----------------*/

.hero {
    height: 100vh;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
}


.hero .box {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero .box.is-visible {
    opacity: 1;
}





/*-----------------Services-------------------*/


.services .boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    width: 95%;
    margin: 100px auto
}

.services .boxes:nth-child(2) {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
}

.services .box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.services .box.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/********************why us************************/

.why-us {
    background: var(--accent-color);
    color: white;
    padding: var(--padd);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.why-us .boxes {
    justify-content: space-around;
}

.why-us .box {
    margin: 0 var(--padd);
    flex-basis: 450px;
}

.why-us h2 {
    flex-basis: 100%;
    order: 1;
}

.why-us .row:nth-child(2) {
    order: 1;
}

/***************Trust us****************/

.mod-testimonials .testimonial-image img {
    border-radius: 0;
    width: auto;
    height: 100px;
}

.trust-us p {
    width: 50%;
    margin: auto;
}

.mod-testimonials .testimonial-text {
    color: inherit;
    font-size: 1.1em;
    line-height: 1.2;
    text-align: center;
    display: flex;
    justify-content: center;
    font-family: inherit;
}

.mod-testimonials .testimonial-text p::before,
.mod-testimonials .testimonial-text p::after {
    display: none;
}

.mod-testimonials .testimonial-image img {
    border: unset;
}

.mod-testimonials-slider .slide-content {
    padding: 50px 50px 10px 50px;
    font-family: Lato, sans-serif;

}

.mod-testimonials-slider .slider-container {
    box-shadow: none;
}

.trust-us>p:last-child {
    margin-top: var(--padd);
}

.mod-testimonials-slider .slider-prev {
    margin-left: 0;
}

.mod-testimonials-slider .slider-next {
    margin-right: 0;
}

.mod-testimonials-slider .slider-prev,
.mod-testimonials-slider .slider-next {
    background-color: var(--accent-color);
    font-size: 40px;
    width: 40px;
    height: 40px;


}

.mod-testimonials-slider .slider-prev:hover,
.mod-testimonials-slider .slider-next:hover {
    background-color: var(--main-color);
}

/************Contact-US****************/
.contact-us {
    background: var(--main-color);
    color: white;
}

.contact-us h2 {
    padding-top: var(--padd);
}

.contact-us .text {
    width: 50%;
    margin: auto;
    margin-bottom: var(--padd);
}

.contact-detail {
    align-items: center;
}


.contact-detail .btn {
    width: 300px;
    margin: var(--padd-small) auto;
}

.kontakt {
    width: 80%;
    margin: auto;
}


/* Kontener formularza */
.moduletable.kontakt .rscontact form fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 10px;
}

.contact-detail {
    padding-bottom: var(--padd);
}



/* Każda grupa jako grid-item */
.moduletable.kontakt .control-group {
    margin: 0;
}

/* INPUT / TEXTAREA – spójny wygląd */
.moduletable.kontakt .form-control {
    width: 100%;
}

/* ===== ROZMIESZCZENIE PÓL ===== */

/* Temat – pełna szerokość */
.moduletable.kontakt .control-group:nth-of-type(7) {
    grid-column: 1 / -1;
}

/* Treść wiadomości – pełna szerokość */
.moduletable.kontakt .control-group:nth-of-type(8) {
    grid-column: 1 / -1;
    order: 1;
}

.moduletable.kontakt .control-group:nth-of-type(8) .control-label {
    padding: 0 10px 10px 0;
}

.moduletable.kontakt .control-group:nth-of-type(8) .help-inline {
    display: inline-block;
    margin-left: 10px;
}

.moduletable.kontakt .control-group:nth-of-type(8) a {
    color: white;
    text-decoration: underline;
}

/* Checkbox (zgoda) – pełna szerokość */
.moduletable.kontakt .control-group:nth-of-type(9) {
    grid-column: 1 / -1;
}

/* Alert (captcha / błąd) – pełna szerokość */
.moduletable.kontakt .control-group:nth-of-type(10),
.moduletable.kontakt #mod-rscontact-error-msg-117 {
    grid-column: 1 / -1;
}

/* Przycisk submit */
.moduletable.kontakt .controls:last-child {
    grid-column: 1 / -1;
    order: 2;
}

/* CHECKBOX */
.moduletable.kontakt .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* BUTTON */


.form-check-input {
    width: 2em;
}

.contact-detail span {
    margin-left: 10px;
}

.artic {
    width: 75%;
    margin: auto;
    text-align: justify;
}

#sp-section-2 .row {
    justify-content: space-between;
    align-items: center;
}

#sp-footer ul.menu li {
    display: flex;
    flex-direction: column;
}

#sp-footer ul.menu {
    margin: 20px 0;
}

.sp-scroll-up {
    background-color: var(--accent-color);
}


.sp-scroll-up:hover,
.sp-scroll-up:active,
.sp-scroll-up:focus {
    background-color: var(--main-color);
}

/**********kontakt*******/

.contact-page .box {
    width: 80%;
    position: static;
    margin: auto;
}

.contact-page {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: var(--padd);
    padding-bottom: var(--padd);

}

.contact-page {
    background: linear-gradient(135deg,
            #2F6C94 0%,
            #4F7F8E 30%,
            #587537 100%);
}

.contact-detail .btns {
    margin-top: 70px;
    display: flex;
}

.btns .btn:first-child {
    margin-right: 20px;
}

body .contact-detail .btns .btn:hover,
body .btn a:hover,
body .contact-detail .btns .btn:hover a,
.moduletable.kontakt button:hover.submit {
    color: var(--main-color);

}

.contact-page h1 {}

.tile {
    margin: 300px auto;
    padding: var(--padd);
    width: 1200px;
    height: 600px;
    background-repeat: no-repeat !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
}

.tile:nth-child(even) {
    background-position: right center !important;
}

.overl {
    background-color: rgba(88, 117, 55, 80%);
    color: white;
    width: 50%;
    height: 800px;
    padding: var(--padd);
    top: 50%;
    position: absolute;
    transform: translate(0, -50%);
}

.tile:nth-child(even) .overl {
    left: 0;
}

.tile:nth-child(odd) .overl {
    right: 0;
}

li::first-letter {
    text-transform: uppercase;
}

.label {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    line-height: 30px;
    justify-content: left;
    padding-left: 0;
}

.label li {
    background-color: var(--accent-color);
    padding: 3px 5px;
    margin: 5px;
    color: white;
    border-radius: var(--padd-small);
}

.tile:nth-child(even) {
    flex-direction: row-reverse;
}

.article-details {}



.blog-article {
    width: 1200px;
    text-align: justify;
    margin: auto;
    line-height: 1.8;

}

.blog h1 {
    margin: var(--padd) 0;
    text-align: center;
}

.blog h2 {
    text-align: center;
}

.blog {
    text-align: center;
}



.article-full-image {
    width: 1200px;
    margin: 0 auto 50px auto;
}

.expert-say {
    justify-content: center;
    align-items: center;
}

.blog-article .btns {
    margin: var(--padd);
}

.sp-dropdown.sp-dropdown-main.sp-menu-right {
    width: 500px !important;
}

.sp-megamenu-wrapper {
    justify-content: end;
}

.sp-menu-item.active a {
    display: flex;
    align-items: center;
    gap: 6px;
    /* odstęp tekst ↔ after */
}



/* Nowoczesny Spis Treści */
.content-list {
    border-left: 4px solid #2e7d32;
    /* Ciemna zieleń */
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin: var(--padd) 0;
}

.content-list h3 {
    margin-top: 0;
    color: #2e7d32;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.content-list li {
    margin-bottom: 10px;
}

.content-list a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.content-list a:hover {
    color: #2e7d32;
    padding-left: 8px;
    font-weight: 500;
}

/* Sekcja Okiem Eksperta */
.expert-say {
    background: #e8f5e9;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.expert-say img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 150px;
    height: auto;
}

.expert-say blockquote {
    border-left: none;
    font-style: italic;
    font-size: 1.1rem;
    color: #2e7d32;
    margin: 0;
    position: relative;
}

/* FAQ */
.faq {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.faq h2 {
    color: #1b5e20;
}

.faq ul {
    list-style: none;
    padding: 0;
}

.faq li {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.faq li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #2e7d32;
}

/* Przyciski Kontaktowe */


/* Responsywność */
@media (max-width: 768px) {
    .expert-say {
        flex-direction: column;
        text-align: center;
    }

    .btns {
        flex-direction: column;
    }

    .btns .btn {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .blog-article h1 {
        font-size: 2rem;
    }

    .blog-article h2 {
        font-size: 1.8rem;

    }

    .blog-article h3 {
        font-size: 1.5rem;
    }
}




/* RESPONSIVE – MOBILE */

@media (min-width: 1200px) {
    .hero .box {
        width: 40%;
        top: 50%;
        transform: translate(10%, -50%);
        position: relative;
    }
}

@media (max-width: 1200px) {
    .blog-article {
        width: 90%;
    }

    body .tile {
        background-position: center center !important;
        height: 500px;
        margin: 100px auto;
        padding: 0;
    }

    body .tile:nth-child(even) {
        background-position: center center !important;
    }

    .overl {
        width: 90%;
        height: unset;
    }

    .tile:nth-child(even) .overl {
        left: 50%;
        transform: translate(-50%, 0);
    }

    .tile:nth-child(odd) .overl {
        right: 50%;
        transform: translate(50%, 0);
    }

    .container-tile {
        height: 900px;
    }

    .container-tile:last-child {
        margin-bottom: 300px;
    }

    .tile {
        width: 100%;
    }

    .documentation .hero {
        height: 500px;
        margin-bottom: 50px;
    }

    .documentation .box {
        margin-top: 15%;
    }
}

@media (max-width: 992px) {

    .services .boxes {
        display: flex;
        flex-direction: column;
        margin: 50px auto;
    }

    .services .box {
        width: 80%;
        margin: auto;
    }

    .why-us .box {
        flex-basis: 100%;
        margin: 20px 0;
    }

    .trust-us p,
    .contact-us .text {
        width: 90%;
    }

    .contact-detail .col {
        margin-bottom: 30px;
    }

    .overl {
        width: 95%;
        padding: var(--padd-small);
        height: unset;
    }

}

@media (max-width: 768px) {
    .moduletable.kontakt .rscontact form fieldset {
        grid-template-columns: 1fr;
    }

    body h1 {
        font-size: 25px;
    }

    body h2 {
        font-size: 20px;
    }

    .box {
        padding: 20px;
    }

    .contact-info-bar {
        flex-wrap: wrap;
    }

    .hero {
        height: 100%;
        padding: 20px;
    }

    .contact-detail {
        flex-direction: column;
    }

    .form-check-input {
        width: 4em;
    }

    .contact-page .box {
        width: 95%;
    }

    .contact-page .kontakt {
        width: 100%;
    }

    .contact-page .thin {
        width: 100%;
    }

    .contact-detail .btns {
        flex-direction: column;
    }

    .btns .btn:first-child {
        margin-right: auto;
    }

    body .tile {
        width: 100%;
        margin: 0 auto 50px auto;
    }


    .tile h2 {
        margin: var(--padd-small) 0;
        font-size: 24px;
    }

    .tile h3 {
        font-size: 20px;
    }



    .contact-detail .btns {
        margin-top: unset;
    }
}

@media (orientation: landscape) {}

@media (max-width: 576px) {
    .contact-info-bar {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-bar .phone {
        margin-bottom: 5px
    }
}