/* Базовые настройки */
:root {
    --bg-cream: #F9F8F3;
    --text-dark: #1A2B22;
    --green-dark: #1F3D2E;
    --green-light: #4A6D55;
    --yellow-saffron: #E0A96D;
    --yellow-hover: #C99256;
    --white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3, .logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
}
.section-title {
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--green-light);
    margin-bottom: 40px;
}
.text-center { text-align: center; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}
.btn-primary {
    background-color: var(--yellow-saffron);
    color: var(--green-dark);
}
.btn-primary:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(224, 169, 109, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--green-dark);
}
.btn-outline {
    background-color: transparent;
    color: var(--green-dark);
    border: 1px solid var(--green-dark);
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-outline:hover {
    background-color: var(--green-dark);
    color: var(--white);
}
.full-width { width: 100%; }

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 100;
    transition: background 0.3s ease;
    background: rgba(249, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Увеличенный логотип */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; 
    width: 250px; 
    position: relative;
    overflow: hidden; 
    border-radius: 4px;
    margin-right: 20px; 
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transform: scale(1.15); 
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.2);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--green-dark);
    letter-spacing: 2px;
}
.nav a {
    text-decoration: none;
    color: var(--green-dark);
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav a:hover { color: var(--yellow-saffron); }

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}
.phone {
    text-decoration: none;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 1.1rem;
}
.mobile-only { display: none; }

/* Бургер меню */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--green-dark);
    transition: all 0.3s;
}

/* Первый экран (Hero) - ЧИСТЫЙ CSS */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1F3D2E 0%, #4A6D55 100%);
}

/* Паттерн из белых линий */
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.4) 1px, transparent 0);
    background-size: 40px 40px;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(31, 61, 46, 0.9) 0%, rgba(31, 61, 46, 0.3) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding-top: 60px;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Преимущества */
.features {
    padding: 80px 0;
    background-color: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s;
}
.feature-item:hover { transform: translateY(-5px); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-item h3 { margin-bottom: 10px; color: var(--green-dark); }

/* О ферме (Фото) */
.about { padding: 100px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 0px var(--yellow-saffron);
    display: block;
    object-fit: cover;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
}

/* Стандарты (Цифры) */
.standards {
    padding: 60px 0;
    background-color: var(--yellow-saffron);
    color: var(--green-dark);
}
.standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.standard-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}
.standard-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.standard-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Галерея */
.catalog {
    padding: 100px 0;
    background-color: var(--bg-cream);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Как купить (Процесс) */
.process {
    padding: 100px 0;
    background-color: var(--white);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.process-step {
    position: relative;
    padding: 30px;
    background: var(--bg-cream);
    border-radius: 8px;
    border-top: 3px solid var(--yellow-saffron);
    overflow: hidden;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--yellow-saffron);
    opacity: 0.4; 
    position: absolute;
    top: 0px;
    right: 15px;
    line-height: 1;
    z-index: 0;
}
.process-step h3, .process-step p {
    position: relative;
    z-index: 1;
}
.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--green-dark);
}
.process-step p {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background-color: var(--bg-cream);
}
.faq-container {
    max-width: 800px;
}
.faq-list {
    margin-top: 40px;
}
.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}
.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--green-dark);
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}
.faq-question:hover {
    background: #fdfdfd;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--yellow-saffron);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
}
.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

/* Карта (Новый стиль) */
.map-section {
    padding: 80px 0 0;
    background: var(--white);
}
.map-banner {
    position: relative;
    height: 400px;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-overlay {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
}
.map-overlay h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.map-overlay p {
    margin-bottom: 20px;
    color: #666;
}

/* Подвал */
.footer {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer h2, .footer h3 {
    color: var(--yellow-saffron);
    margin-bottom: 20px;
}
.footer p, .footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: block;
    transition: color 0.3s;
}
.footer a:hover { color: var(--white); }
.footer-requisites p { font-size: 0.85rem; margin-bottom: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}
.modal-content {
    background: var(--bg-cream);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    position: relative;
    text-align: center;
}
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--green-dark);
}
.modal-title { color: var(--green-dark); margin-bottom: 10px; }
.modal-desc { margin-bottom: 20px; font-size: 0.9rem; color: #666; }
.modal form input, .modal form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    background: var(--white);
}
.modal form input:focus, .modal form textarea:focus {
    outline: none;
    border-color: var(--yellow-saffron);
}

/* ========================================= */
/* АДАПТИВ ПОД ТЕЛЕФОНЫ И ПЛАНШЕТЫ           */
/* ========================================= */

@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 40px; order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .desktop-only { display: none; }
    
    .standards-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Включаем бургер */
    .burger { display: flex; }
    .mobile-only { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; align-items: flex-start;}
    
    /* Мобильное меню */
    .nav {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: var(--bg-cream);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: -1;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 99;
    }
    .nav a {
        margin: 10px 0;
        font-size: 1.1rem;
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 250px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    
    .standards-grid, .process-grid { grid-template-columns: 1fr; }
    .standard-num { font-size: 2.5rem; }
}