* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    width: 100%;
    height: 70px;
    display: flex;
    position: fixed;
    background-color: #fff;
}

nav {
    width: 50%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.logo {
    width: 50%;
    height: 70px;
}

.logo img {
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

a {
    text-decoration: none;
    color: #383838;
}

a:hover {
    color: #3e8622;
}

.block1 {
    width: 100%;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 70px;
}

.txt {
    font-size: 50px;
    font-family: 'Arial', 'Verdana', sans-serif;
}

.txt2 {
    font-size: 30px;
    font-family: 'Arial', 'Verdana', sans-serif;
    color: #2d2d2d;
}

.txt3 {
    font-size: 20px;
    font-family: 'Arial', 'Verdana', sans-serif;
    color: #383838;
    display: flex;
    justify-content: center;
}

.cnop {
    width: 30%;
    display: flex;
    justify-content: space-around;
}

.q1 {
    color: #ffffff;
}

.q1:hover {
    color:#fff;
}

.q2 {
    color: #3e8622;
}

.cnop1 {
    width: 200px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:#3e8622;
    border-radius: 5px;
}

.cnop2 {
    width: 200px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border-color: #3e8622;
    border-style: solid;
    border-width: 2px;
}

.photo {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.block2 {
    width: 100%;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 5%;
}

.cart1 {
    width: 300px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
}

.cart1:hover {
    transform: translateY(-10px);
}

.photo1 {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.contact {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px 5%;
    background-color: #f8f8f8;
}

.grafic {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container {
    position: relative;
    overflow: hidden;
}

footer {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px;
}

/* Стили для мобильных устройств (только когда экран меньше 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;
    }
}