/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхний баннер */
.top-banner {
    background: linear-gradient(90deg, #1a237e, #283593);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.current-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-icon {
    font-size: 16px;
}

/* Бегущая строка */
.news-ticker {
    flex: 1;
    margin: 0 20px;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-label {
    background: #e53935;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Кнопка телефона */
.phone-button {
    background: #dd4055;
    color: rgb(255, 255, 255);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.phone-button:hover {
    background: #2b28d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 183, 183, 0.4);
}

/* Анимация пульсации */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Основной хедер */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #1a237e;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-subtitle {
    color: rgb(212, 44, 53);
    font-size: 12px;
}

/* Навигация */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #0c0c0c;
}

.order-button {
    background: #fafafa;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.order-button:hover {
    background: #0c8f38;
    transform: translateY(-2px);
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.highlight {
    color: #ffcc00;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-phone-button {
    display: inline-block;
    background: #ffffff;
    color: rgb(31, 146, 84);
    padding: 20px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 30px 0;
    transition: all 0.3s;
}

.hero-phone-button:hover {
    background: #f6f4f4;
    transform: scale(1.05);
}

/* Анимация для кнопок */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate {
    animation: bounce 2s infinite;
}

/* Особенности */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
}

.feature span {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

/* Как заказать */
.how-to-order {
    padding: 80px 0;
    background: white;
}

.how-to-order h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #1b944d;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #13a755;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Популярные товары */
.popular-products {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
}

.popular-products h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #33ac4d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.product-order {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.product-order:hover {
    background: #388e3c;
}

/* Видеоплеер */
.video-section {
    padding: 80px 0;
    background: white;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #18893a;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Баннеры */
.banners {
    padding: 60px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.banner {
    padding: 40px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.promo-banner {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
}

.delivery-banner {
    background: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
}

.banner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.banner-button {
    display: inline-block;
    background: white;
    color: #333;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s;
}

.banner-button:hover {
    transform: scale(1.05);
}

/* Футер */
.main-footer {
    background: #1a237e;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #fffbfb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ffcc00;
}

.footer-phone-link {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffcc00;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    background: #283593;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: #3949ab;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #283593;
    color: #e8eaf6;
    font-size: 14px;
}

/* Плавающая кнопка телефона */
.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fdfdfd;
    color: rgb(16, 150, 79);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(182, 179, 179, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.floating-phone:hover {
    background: #eeecec;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .top-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .news-ticker {
        margin: 10px 0;
        order: 3;
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .feature span {
        font-size: 2rem;
    }
    
    .steps, .products-grid, .banner-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-phone {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Стили для новостей */
.news-page, .recipes-page, .contacts-page {
    padding: 60px 0;
}

.news-grid, .recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card, .recipe-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    color: #2daa65;
    font-weight: bold;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

/* Стили для рецептов */
.recipe-image {
    height: 150px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.recipe-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.recipe-ingredients span {
    background: #e8eaf6;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.recipe-order {
    display: inline-block;
    background: #e53935;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 15px;
}

/* Стили для контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.main-contact {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
}

.contact-phone-large {
    font-size: 2rem;
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin: 15px 0;
}

.2gis-link {
    display: inline-block;
    background: #2b9cff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.delivery-zones {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.zones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.zones-list span {
    background: #e8eaf6;
    padding: 8px 15px;
    border-radius: 20px;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a237e;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .main-nav {
        display: none;
        width: 100%;
    }
    
    .main-nav.active {
        display: block;
    }
}