/* style.css - Основные стили Moje Jelo */

/* ============================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра */
    --primary-green: #708238;      /* Основной зеленый */
    --primary-orange: #FF6B35;     /* Акцентный оранжевый для CTA */
    --primary-beige: #F9F7F2;      /* Фоновый бежевый */
    --dark-gray: #2C3E50;          /* Темно-серый для текста */
    --light-gray: #95A5A6;         /* Светло-серый */
    --white: #FFFFFF;
    --light-green: #E8F5E9;        /* Светло-зеленый для акцентов */
    --light-orange: #FFE8D6;       /* Светло-оранжевый */
    
    /* Градиенты */
    --gradient-green: linear-gradient(135deg, #708238 0%, #8DA63C 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    
    /* Тени */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* Скругления */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;
    --radius-circle: 50%;
    
    /* Отступы */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 60px;
    
    /* Шрифты */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--primary-beige);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   ТИПОГРАФИЯ
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--dark-gray);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-orange {
    color: var(--primary-orange);
}

.text-green {
    color: var(--primary-green);
}

/* ============================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ============================================ */
.top-bar {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.order-info, .contact-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.order-info i {
    color: var(--primary-orange);
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.contact-info a:hover {
    color: var(--primary-orange);
}

.viber-link {
    color: #7360F2 !important;
}

.whatsapp-link {
    color: #25D366 !important;
}

/* ============================================
   ОСНОВНАЯ ШАПКА
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    position: relative;
}

/* Логотип */
.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-green);
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 0;
}

/* Основная навигация */
.main-nav ul {
    display: flex;
    gap: var(--space-lg);
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: var(--space-sm) 0;
}

.main-nav a:hover {
    color: var(--primary-orange);
}

.main-nav li.active a {
    color: var(--primary-orange);
}

.main-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
}

/* Корзина */
.cart-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-green);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-medium);
    font-weight: 500;
}

.cart-link:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cart-counter {
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-circle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--space-xs);
}

.phone-order-btn {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-orange);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-medium);
    font-weight: 500;
}

.phone-order-btn:hover {
    background: var(--primary-green);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-menu-close {
    font-size: 1.5rem;
    color: var(--dark-gray);
}

.mobile-nav ul {
    padding: var(--space-md);
}

.mobile-nav li {
    margin-bottom: var(--space-md);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav li.active a {
    color: var(--primary-orange);
}

.mobile-contact {
    padding: var(--space-md);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--space-md);
}

.mobile-social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-social span {
    font-weight: 500;
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================ */
.main-content {
    min-height: 60vh;
    padding: var(--space-xl) 0;
}

/* Секции */
.section {
    margin-bottom: var(--space-xl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--radius-medium);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--primary-green);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-gray);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   ФУТЕР
   ============================================ */
.main-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.social-link.viber:hover {
    background: #7360F2;
}

.social-link.whatsapp:hover {
    background: #25D366;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-orange);
}

.footer-links i {
    font-size: 0.8rem;
    color: var(--primary-orange);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-contact i {
    color: var(--primary-orange);
    margin-top: 3px;
    width: 16px;
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.delivery-schedule {
    background: rgba(255,255,255,0.05);
    padding: var(--space-md);
    border-radius: var(--radius-medium);
}

.delivery-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-payments i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-orange);
    color: var(--white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* ============================================
   УВЕДОМЛЕНИЯ
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-heavy);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: 400px;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.notification-success {
    border-left-color: #2ECC71;
}

.notification-warning {
    border-left-color: #F39C12;
}

.notification-info {
    border-left-color: #3498DB;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.notification-close {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.notification-close:hover {
    color: var(--dark-gray);
}

.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .cart-text {
        display: none;
    }
    
    .phone-order-btn {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .order-info {
        display: none;
    }
    
    .header-content {
        padding: var(--space-sm) 0;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: var(--space-lg) 0;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }

.bg-beige { background-color: var(--primary-beige); }
.bg-green { background-color: var(--primary-green); }
.bg-orange { background-color: var(--primary-orange); }
.bg-white { background-color: var(--white); }

.text-small { font-size: 0.9rem; }
.text-large { font-size: 1.2rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }