
@font-face {
    font-family: 'BebasNeue-Bold'; 
    src: url('fonts/BebasNeue-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --green: #3C6469;
    --black: #1A1919;
    --gray: #EEF0F1;
}
* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

.flex {display: flex;}

h1, h3 {font-family: 'BebasNeue-Bold', sans-serif;}

a {text-decoration: none;
    color: var(--black);}


#top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-menu .logo {width: 200px; margin-left: 50px;}

#top-menu .nav {
    font-size: 16px;     
    display: flex;
    flex-direction: row;
    gap: 30px;}

#top-menu .contacts {
    gap: 5px;
    font-size: 16px;
    flex-direction: column;
    background-color: var(--gray);
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
    width: 278px;
    height: 100%;
    padding: 30px 0px 30px 100px;
    display: flex;
    justify-content: center;}

#top {background-image: url(img/background_1.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 675px;}

#top .btn {
    gap: 20px;
    margin: 50px 0px 0px 50px;
    font-size: 20px;
    padding-bottom: 50px;}

#top .btn a {border: var(--green) solid 1px; padding: 10px 20px; transition: .5s;}
#top .btn a:hover {color: white; background-color: var(--green); transition: .5s;}



.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1A1919; 
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



h1 {color: var(--green);
    margin: 0px 0px 10px 50px;
    padding-top: 50px;
    font-size: 60px;;}

    .gray-div {background-color: gray;
    width: 100px;
    height: 5px;
    margin: 10px 50px 10px 50px;}

h2 {margin: 10px 10px 80px 50px;
    font-size: 20px;
    font-weight: 300;}

h3 {color: var(--green); font-size: 46px; margin: 30px; text-align: center;}


@media (max-width: 768px) {

    #top-menu .nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #EEF0F1; 
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    #top-menu .nav.active {
        display: flex;
    }

    #top-menu {
        position: relative;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #EEF0F1; 
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav a {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav.active {
        display: flex;
    }

    #top-menu .contacts {
        display: none;
    }

    #top-menu .logo {   width: 200px; margin-left: 0px;    }

    h1 {  margin: 0px 0px 10px 20px;}

    #top { background-image: none;}

    .gray-div {  margin: 10px 50px 10px 20px;    }

    h2 { margin: 10px 10px 50px 20px; }

    #top .btn { margin: 10px 0px 0px 20px; }

}



#why {
    padding: 50px;
    background: var(--gray);
}

.why-card {display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    max-width: 220px;}

.why-card img {width: 60px; max-height: 60px;}
.why-card h4 {color: var(--green); margin-top: 15px; font-size: 20px;}
.why-card p {font-weight: 300;}

#why .flex {gap: 35px;
    justify-content: center;
    flex-wrap: wrap;}


#production {padding: 50px 10px;}

#production h5 {font-size: 18px; margin-bottom: 10px;}

#production .flex {
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;}

#production .prod-card {
    display: flex;
    flex-direction: column;
    gap: 25px;}

#production .prod-img-box {
    height: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;}

#production .prod-list {
    list-style-type: none;}

#production li {
    position: relative;
    padding-left: 25px; 
    margin-bottom: 12px;   
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #1A1919;
    display: flex;
    align-items: center;}

#production li::before {
    content: "►";             
    position: absolute;
    left: 0;                  
    color: var(--green);           
    font-size: 12px;         
    transform: translateY(0px); 
}


#sectors {
    background-color: var(--green);
    color: white;
    padding: 30px 10px 70px 10px;
    flex-wrap: wrap; }

#sectors h3 {color: white;}

#sectors .flex {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;}

#sectors .sector-card {
    align-items: center;
    display: flex;
    flex-direction: column;}

#sectors img {width: 75px;} 


#docs-section {padding: 30px 10px 70px 10px;}

#docs-section .docs-grid {
        flex-wrap: wrap;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;}

#docs-section .doc-card {
    align-items: center;
    display: flex;
    flex-direction: column;}

    #docs-section .doc-card img {
    width: 200px;
    height: auto;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    transition: transform 0.2s ease;
}

#docs-section .doc-card img:hover {
    transform: scale(1.03);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}


.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #3C6469; 
}


#footer .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;}

#footer .form {max-width: 600px;
    border-right: solid 5px #3c6469;
    padding-right: 20px;
    margin-right: 20px;}
 
#footer input, textarea {
    width: 100%;
    padding: 8px 15px;
    border: solid 1px #bfbfbf;
    border-radius: 5px;
    font-size: 18px;
    margin: 10px 10px 10px 0px;}

#footer input[type="checkbox"] {width: fit-content; margin: 3px;}

#footer button {background-color: var(--green);
    color: white;
    padding: 16px;
    width: 100%;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    transition: .5s;}

#footer button:hover {background-color: #558e95}


#popupContactForm input, textarea {
    width: 100%;
    padding: 8px 15px;
    border: solid 1px #bfbfbf;
    border-radius: 5px;
    font-size: 18px;
    margin: 10px 10px 10px 0px;}

#popupContactForm input[type="checkbox"] {width: fit-content; margin: 3px;}

#popupContactForm button {background-color: var(--green);
    color: white;
    padding: 16px;
    width: 100%;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    transition: .5s;}

#popupContactForm button:hover {background-color: #558e95}

#popupContactForm .checkbox-area label {display: block;}

#popupContactForm .checkbox-area  {margin-bottom: 10px;}


#footer .checkbox-area {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-size: 12px;
    margin: 10px 0px;}

#footer .contacts {max-width: 600px;
    border-right: solid 5px #3c6469;
    padding-right: 20px;
    margin-right: 20px;}

#footer .footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;}

#footer h3 {text-align: left;
    margin-left: 0px;}

#footer .bootom {background-color: var(--green);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;}


#footer .bootom a {color: white;}

@media (max-width: 768px) {
    #footer .container { flex-wrap: wrap; padding: 10px;}
    #footer .form {
        border-right: solid 0px #3c6469;
        padding-right: 0px;   margin-right: 0px;  }
    #footer .contacts {   border-right: solid 0px #3c6469;
        padding-right: 0px;    margin-right: 0px;   }
    #footer .rekv {width: 100%;}
}


.modal-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px; 
    width: 90%;       
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.modal-form-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #1A1919;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-form-close:hover {
    color: #3C6469; /* Ваш зеленый */
}

.delay-05s { animation-delay: 0.5s; }
.delay-15s { animation-delay: 1.5s; }
.delay-25s { animation-delay: 2.5s; }