/* Общие стили и сброс */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f0f5ee;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Навигация */
.header {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.logo {
    height: 80px; 
    width: auto;  
    display: block; 
}

/* Главный экран */
.hero {
    background: url('header-hutorok.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* О нас и другие блоки */
.about-us-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-us-content img {
    max-width: 50%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-us-content p {
    font-size: 1.1em;
    color: #555;
}

/* Продукты */
.products-grid, .testimonials-grid, .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.product-card, .testimonial-card, .article-card, .delivery-details {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.product-card h3 {
    margin: 20px 0 10px;
    color: #2e7d32;
    font-size: 1.3em;
}

.product-card p {
    padding: 0 20px 10px;
}

.order-btn {
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.order-btn:hover {
    background-color: #2e7d32;
}

/* Доставка и оплата */
.delivery-details {
    padding: 40px;
    line-height: 1.8;
}
.delivery-details h3 {
    color: #4CAF50;
    margin-top: 25px;
}

/* Отзывы */
.testimonial-card {
    padding: 30px;
    text-align: center;
}
.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}
.testimonial-card h4 {
    color: #2e7d32;
    font-weight: 700;
}

/* Статьи */
.article-card-content {
    padding: 20px;
}
.article-card-content h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}
.article-card-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 700;
}

/* Контакты и форма */
.contacts-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}
.contacts-info, .contact-form-block {
    flex: 1;
    min-width: 300px;
}
.contact-form input,
.contact-form textarea,
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #4CAF50;
    outline: none;
}
.contact-form button,
.modal-content button {
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 700;
}
.contact-form button:hover,
.modal-content button:hover {
    background-color: #2e7d32;
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 40px 0;
}

/* Плавающая кнопка звонка */
.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1001;
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.call-button svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideInUp 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #555;
    text-decoration: none;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2e7d32;
    font-size: 1.8em;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

/* Анимация появления блоков */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding-top: 10px;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    .nav-list li {
        margin: 5px 0;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .about-us-content {
        flex-direction: column;
    }
    .contacts-flex {
        flex-direction: column;
        gap: 20px;
    }
}
.article-more-content {
    display: none;
}
.read-more-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;

}
.read-more-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.read-more-btn:hover {
    background-color: #45a049;
}
@media screen and (max-width: 768px) {
    .article-image {
        width: 100%;
        height: auto;
    }