/* Верхняя шапка - остается обычной */
.top-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1b5e20 100%);
    color: white;
    padding: 15px 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.logo i {
    font-size: 32px;
    color: var(--warm-yellow);
}

.logo-highlight {
    color: var(--warm-yellow);
}

.slogan {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.slogan i {
    color: var(--warm-yellow);
}

.header-right {
    display: flex;
    gap: 30px;
}

.contact-info, .work-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i, .work-time i {
    font-size: 22px;
    color: var(--warm-yellow);
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.phone-description, .work-description {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

/* Основная навигация - ФИКСИРОВАННАЯ ПРИ ПРОКРУТКЕ */
.main-nav {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: fixed; /* Изменено на fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transform: translateY(0); /* Изначально видна */
    transition: transform 0.3s ease;
}

/* Класс для скрытия навигации при прокрутке вниз (опционально) */
.main-nav.hidden {
    transform: translateY(-100%);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px; /* Фиксированная высота */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--dark-gray);
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}

.nav-list a:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.nav-list a.active {
    background: var(--light-green);
    color: var(--primary-green);
    font-weight: 600;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px 3px 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: var(--dark-gray);
    padding: 10px;
    transition: var(--transition);
    background: none;
    border: none;
}

.cart-icon:hover {
    color: var(--primary-green);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Герой секция - добавлен отступ сверху для фиксированной навигации */
.hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(255, 235, 59, 0.05) 100%);
    padding: 140px 0 80px; /* Увеличил верхний отступ на 70px для фиксированной навигации */
    overflow: hidden;
    margin-top: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--earth-brown);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-feature i {
    color: var(--primary-green);
    font-size: 18px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image .image-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    animation: morphing 15s infinite;
}

.hero-image .image-placeholder i {
    position: absolute;
    font-size: 60px;
    color: white;
    opacity: 0.8;
}

.hero-image .image-placeholder i:nth-child(1) {
    top: 20%;
    left: 20%;
}

.hero-image .image-placeholder i:nth-child(2) {
    top: 50%;
    right: 20%;
}

.hero-image .image-placeholder i:nth-child(3) {
    bottom: 20%;
    left: 40%;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}




@media (max-width: 400px) {
    /* Для очень маленьких экранов делаем компактное меню */
    .container {
        width: 100%;
    }
    .main-nav .container {
        justify-content: space-between;
        padding: 0 2px;
        height: 50px;
    }
    
    .nav-list {
        display: none; /* Скрываем основное меню */
    }
   
}