* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили body */
body {
      margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Стили шапки */

header {
    width: 100%;
    height: 70px;
    display: flex;
    background-color: #fff;
}

nav {
    width: 50%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.logo {
    width: 50%;
    height: 70px;
}

.logo img {
    height: 80%;
    object-fit: contain;
}


a {
    text-decoration: none;
    color: #383838;
}

a:hover {
    color: #3e8622;
}




/* Кнопка меню для мобильных */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #383838;
}

/* Основной контент */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 30px;
}

/* Секции */
section {
    padding: 25px 0;
    margin: 25px 0;
    border-bottom: 1px solid #eee;
}

h2 {
    color: #3e8622;
    margin-bottom: 15px;
    font-size: 28px;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery p {
    margin-top: 10px;
    text-align: center;
    color: #555;
}

/* Кнопка CTA */
.cta-button {
    display: inline-block;
    background-color: #3e8622;
    color: white;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid #3e8622;
}

.cta-button:hover {
    background-color: white;
    color: #3e8622;
}

/* Футер */


footer {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px;
}
footer a {
    text-decoration: none;
    color: #333;
}

/* Стили для мобильных устройств (только когда экран меньше 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    nav.mobile-visible {
        display: flex;
    }
    
    nav a {
        padding: 15px;
        width: 100%;
        text-align: center;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
    }
    
    .block1 {
        height: auto;
        padding: 100px 20px 40px;
    }
    
    .txt {
        font-size: 28px;
        text-align: center;
    }
    
    .txt2 {
        font-size: 18px;
        text-align: center;
    }
    
    .cnop {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .photo {
        height: auto;
        max-height: 300px;
    }
    
    .block2 {
        height: auto;
        padding: 40px 20px;
    }
    
    .contact {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .grafic, .map-container {
        width: 100%;
    }
    
    .map-container iframe {
        width: 100%;
        height: 300px;
    }
    
    footer {
        height: auto;
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 480px) {
    .txt {
        font-size: 24px;
    }
    
    .txt2 {
        font-size: 16px;
    }
    
    .txt3 {
        font-size: 16px;
    }
    
    .cnop1, .cnop2 {
        width: 180px;
        height: 45px;
    }
}