@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --primary-color: #4C9B25;
    --secondary-color: #545455;
    --primary-accent-color: #39741c;
    --secondary-accent-color: #D9D9D9;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.header-contact-info{
    width: 80%;
    margin: auto;
    height: 30px;
    display: flex;
    justify-content: space-between;
}

.header-contact-info a{
    margin-top: 15px;
    text-decoration: none;
    color: #000;
    font-size: 18px;
}

.header-contact-info i{
    color: var(--primary-color);
}

.header-contact-info a:hover{
    text-decoration: underline;
}

.header{
    height: 75px;
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-around;
}

.navigation{
    flex: 2;
}

.navigation ul, .mobile-language-toggle{
    list-style: none;
    display: flex;
    justify-content: space-evenly;
}

.mobile-navigation{
    display: none;
    position: absolute;
    width: 100%;
    height: 55%;
    background-color: #fff;
    z-index: 2;
}

.mobile-language-toggle, .mobile-navigation-toggle{
    display: none;
}

.navigation li, .mobile-navigation-toggle, .mobile-language-toggle li, .mobile-navigation li{
    margin-top: 20px;
}

.navigation a, .mobile-navigation-toggle a, .mobile-language-toggle a, .mobile-navigation a{
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

.mobile-navigation ul{
    list-style: none;
}

.mobile-navigation li{
    margin-left: 20px;
}

.mobile-navigation a{
    font-size: 30px;
}

.close-menu-btn{
    font-size: 30px;
    margin-left: 90%;
}

.navigation a:hover{
    color: var(--primary-color);
}

.logo{
    flex: 1;
    align-items: center;
    
}

.logo img{
    height: 60px;
    margin-left: 20%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 30px;
    background-color: #666666;
    color: #ffffff;
    min-width: 160px;
    max-width: 300px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 1;
}

.dropdown-content a {
    color: #ffffff;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #555555;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.banner{
    width: 100%;
    height: 110vh;
    background-image: url(../src/images/house6.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-container{
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: auto;
    align-items: center;
}

.banner-container h1{
    margin-top: 20%;
    margin-bottom: 20px;
    font-size: 80px;
    color: #fff;
}

.banner-container h3{
    color: #fff;
    margin-bottom: 50px;
    font-size: 50px;
}

.banner-container a{
    color: #fff;
    background-color: #4C9B25;
    border-radius: 5px;
    padding: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 30px;
}

.banner-container a:hover{
    background-color: #39741c;
}

.container{
    width: 80%;
    margin: auto;
}

.container h1{
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.container p{
    margin-bottom: 15px;
}

.contact-form {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 30px;
}

.contact-form span {
    margin: 10px 0;
}

.error-message{
    width: 65%;
    height: 60px;
    margin: auto;
    background-color: #f5cdcd;
    border: 2px solid #ff2e2e;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-message{
    width: 65%;
    height: 60px;
    margin: auto;
    background-color: #d9f1cb;
    border: 2px solid var(--primary-color);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

#form-status{
    width: 100%;
}

.error-message p, .success-message p{
    margin-top: 10px;
}

.button {
    color: #fff;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    margin-left: 46%;
}

.form-item {
    width: 100%;
    border: 2px solid var(--primary-color);
    color: var(--secondary-color);
    background-color: #f0f0f0;
    margin: 10px 0; 
    padding: 10px;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
}


#message-box{
    height: 150px;
}

.page-contacts span{
    margin-top: 5%;
}

.page-contacts{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.image-block{
    width: 450px;
    height: 300px;
    background-color: #f0f0f0;
}

.about-wrapper{
    display: flex;
    justify-content: space-around;
}

.about-wrapper p{
    width: 50%;
}

.project-wrapper{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;   
    justify-content: center;
}

.error-message.modal-message, .success-message.modal-message{
    margin-top: 10px;
    width: 100%;
}

.project{
    flex: 1 1 50%;  
    text-align: center;             
    align-items: center;   
    justify-content: center; 
    font-size: 16px;
    margin-bottom: 10px;
}

.project .image-block{
    margin: auto;
}

.review-panel{
    width: 80%;
    margin: auto;
    background-color: #f0f0f0;
    height: 200px;
    margin-bottom: 10px;
}

.about-wrapper button{
    width: 100%;
    align-self: center;
}

.partner-wrapper{
    margin-bottom: 20px;
}

.material-section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.product-list {
    margin: 15px auto;
    padding: 0 16px;
    display: grid;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
    text-align: center;
    box-sizing: border-box;
}

.section-image{
    display: block;
    margin: auto;
    width: 95%;
    padding: 20px;
    max-height: 650px;
    object-fit: cover;
}

.material-section h1, .material-section h2, .material-section h3 {
    color: var(--primary-accent-color);
    margin-bottom: 10px;
}
.material-section ul {
    padding-left: 20px;
}
.material-section li {
    margin-bottom: 10px;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}
th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}
th {
    background-color: var(--primary-color);
    color: white;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:hover {
    background-color: #f1f1f1;
}
caption {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Modal background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
}

/* Modal content */
.modal-content {
    background-color: #fff;
    width: 500px;
    padding: 20px;
    border: 2px solid #4C9B25;
    border-radius: 5px;
    position: relative;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form .form-item {
    width: 100%;
    border: 1px solid #4C9B25;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #f0f0f0;
}

.contact-form .button, .modal-content .button {
    background-color: #4C9B25;
    color: #fff;
    padding: 10px 20px;
    width: 100%;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form .button:hover, .modal-content .button:hover {
    background-color: #39741c;
}

.form-item.error{
    border: 2px solid #ff2e2e;
    background-color: #ecdddd;
}

.partners {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100px;
    width: 100%;
}

.button{
    margin: 30px 0;
}

.scroll {
    display: inline-flex;
    animation: scroll 40s linear infinite;
}

.partner-logo {
    max-height: 100px;
    margin: 0 10px;
}

.product-wrapper .partner-logo{
    min-height: 160px;
    max-width: 300px;
    margin: 0;
}

.not-found-wrapper {
    margin-top: 10%;
    text-align: center;
}

.not-found-wrapper img {
    width: 30%;
}

.not-found-wrapper h1 {
    margin-top: 50px;
    font-size: 40px;
}

.not-found-wrapper span {
    color: var(--primary-accent-color);
}

.not-found-wrapper p {
    font-size: 24px;
    margin-bottom: 30px;
}

.not-found-wrapper a {
    text-decoration: none;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.footer{
    background-color: #545455;
    display: flex;
    color: #fff;
}

.footer-contact-details{
    padding: 25px;
    margin-left: 20px;
    flex: 2;
}

.footer-contacts{
    flex: 3;
    align-items: center;
    margin: auto;
}

.footer-socials{
    flex: 1;
    font-size: 36px;
    text-align: end;
    margin: auto 45px;
}

.footer-socials i{
    color: #fff;
    margin: 5px;
}

.footer-socials i:hover{
    color: #4C9B25;
}

.button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button.loading::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .navigation{
        display: none;
    }

    .container{
        width: 90%;
    }

    .banner{
        height: 90vh;
    }

    .banner-container h1{
        font-size: 60px;
        margin-top: 30%;
    }

    .banner-container h3{
        font-size: 35px;
        text-align: center;
    }

    .banner-container a{
        font-size: 25px;
    }

    .page-contacts{
        flex-direction: column;
    }

    .about-wrapper{
        flex-direction: column;
    }

    .about-wrapper p{
        width: 100%;
    }

    .image-block{
        width: 100%;
    }

    .project-wrapper{
        display: flex;
        flex-direction: column;
    }

    .project{
        width: 100%;
    }

    .button{
        width: 100%;
        margin: 0;
        margin-top: 20px;
    }

    .partner-button{
        margin-bottom: 20px;
    }

    .error-message, .success-message {
        width: 100%;
    }

    .error-message p, .success-message p{
        margin: 0;
    }

    .h-captcha iframe, .section-image{
        width: 100%;
    }

    .section-image {
        padding: 0;
    }

    .footer{
        flex-direction: column;
    }

    .footer-contact-details{
        margin: 0;
    }

    .footer-contacts{
        align-items: start;
        margin-left: 25px;
    }

    .footer-socials{
        text-align: start;
        margin: 0;
        margin-left: 25px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .mobile-language-toggle, .mobile-navigation-toggle{
        display: flex;
    }

    .product-list {
        grid-template-columns: 1fr;
    }
}