body, .background-container {
    margin: 0;
    font-family: "Advent Pro", sans-serif;
}


.main-container {
    width: 100vw;
    height: 100vh;
    background-color: #bec0c6;
    position: relative;
    overflow: hidden; 
    box-sizing: border-box; 
}



.main-container::before {
    content: "";  
    position: absolute;
margin-top: 12%;
    width: 100%;  
    height: 55px;  
    background-color: rgba(255, 255, 255, 0.7); 
    z-index: 0;
    transform: translateY(-50%); 
}
.logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    cursor: pointer;
}
.logo img {
    width: 120px;
    height: auto;
    background-color: rgba(77, 119, 49, 0.8);
    padding: 15px 5px;
}

.header-container {
    background-color: rgba(255, 255, 255, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navigation {
    text-align: center;
}
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin-right: 20px;
}
nav ul li a {
    text-decoration: none;
    color: #1d1d1d;
    font-weight: 750;
    position: relative;
    transition: color 0.3s ease;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1d1d1d;
    transition: width 0.3s ease, left 0.3s ease, background-color 0.3s ease;
}
nav ul li a:hover,
nav ul li a:focus,
nav ul li a:active,
nav ul li a.active {
    color: #4d7731;
}
nav ul li a:hover::after,
nav ul li a:focus::after,
nav ul li a:active::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
    background-color: #4d7731;
}
nav ul li a.active {
    color: #4d7731; 
}

nav ul li a.active::after {
    width: 100%; 
    left: 0;
    background-color: #4d7731; 
}

.imagecont {
    width: 33vw; 
    height: 74vh; 
    position: absolute; 
    top: 50%;  
    right: 10vw; 
    transform: translateY(-50%); 
    background-image: url('1ur.jpg'); 
    background-size: contain;
    background-repeat: no-repeat; 
    background-position: center; 
}


.content {
    margin-top: 10.5%;
    margin-left: 140px;
    text-align: left;
    color: #ffffff;
     position: relative; 
    z-index: 1; 
}
.main-heading, .sub-heading {
    margin: 0;
    text-align: left;
    color: #4d7731  ;
}
.main-heading {
    font-size: 2em;
    font-weight: 800;
    max-width: 800px;
}


.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    left: 0;
    width: 80%;
    max-width: 52vw;
    margin: 50px;
    
}

.box {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.number {
    background-color: #4d7731;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 10px;
}
.box-content {
    display: flex;
    align-items: center; 
    margin-bottom: 10px; 
}

.section-title {
    font-weight: bold; 
    margin-left: 10px; 
    font-size: 1.2em; 
    color: #333; 
}

@media (max-width: 768px) {
    .main-container {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    
    .logo {
        position: relative;
        display: block;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .logo img {
        width: 80px;
        padding: 10px;
    }
    
    .header-container {
        position: relative;
    }
    
    .navigation {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }
    
    nav ul {
        display: inline-block;
        padding: 0 10px;
    }
    
    nav ul li {
        display: inline-block;
        margin: 0 8px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 5px 0;
    }
    
    .main-container::before {
        display: none;
    }
    
    .imagecont {
        position: relative;
        width: 100%;
        height: 450px; 
        right: auto;
        top: auto;
        transform: none;
        margin: 20px 0;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .content {
        margin: 20px;
        text-align: center;
    }
    
    .main-heading {
        font-size: 1.5em;
        text-align: center;
        color: #4d7731;
    }
    
    .container {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 20px;
        width: auto;
    }
    
    .box {
        padding: 15px;
    }
    
    .box-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* Чат-бот */
    .chat-icon {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
}