/* --- БАЗА --- */
:root {
    --primary: #FF5500; /* Сочный огненно-оранжевый для акцентов */
    --primary-hover: #E04800; /* Темнее при наведении */
    --primary-soft: #FFF0E6; /* Мягкая подложка под иконки */
    --dark: #1E1611; /* Глубокий кофейно-графитовый */
    --light: #FAF6F0; /* Тёплый кремовый фон сайта */
    --surface: #FFFFFF; /* Чистый белый для карточек */
    --gray: #EFE9E1; /* Тёплый серый для заглушек */
    --text: #2B211B; /* Основной тёмный текст */
    --text-muted: #6E6057; /* Второстепенный текст */
    --border: rgba(43, 33, 27, 0.08);
    --shadow-sm: 0 4px 14px rgba(30, 22, 17, 0.05);
    --shadow-md: 0 12px 30px rgba(30, 22, 17, 0.09);
    --shadow-primary: 0 8px 20px rgba(255, 85, 0, 0.28);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Заглушки для картинок */
.img-placeholder {
    width: 100%;
    height: 240px;
    background-color: var(--gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    object-fit: cover;
}

/* --- ШАПКА --- */
header {
    background: rgba(30, 22, 17, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

    .logo span {
        color: var(--primary);
    }

.main-nav {
    display: flex;
    gap: 8px;
}

    .main-nav a {
        font-size: 15px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 99px;
        transition: all 0.25s ease;
        color: rgba(255, 255, 255, 0.8);
    }

        .main-nav a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .main-nav a.active {
            color: #fff;
            background: rgba(255, 85, 0, 0.22);
        }

.cart-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all 0.25s ease;
}

    .cart-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
    }

/* --- КНОПКИ --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(255, 85, 0, 0.35);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: #fff;
    }

/* --- ГЕРОЙ-БЛОК --- */
.hero {
    padding: 76px 0 84px;
    background: linear-gradient(135deg, #FFF9F2 0%, #FDEBD7 100%);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-text {
    flex: 1.1;
}

    .hero-text h1 {
        font-size: 52px;
        font-weight: 900;
        line-height: 1.08;
        letter-spacing: -0.02em;
        margin-bottom: 20px;
        color: var(--dark);
    }

    .hero-text p {
        font-size: 18px;
        color: var(--text-muted);
        margin-bottom: 32px;
        max-width: 500px;
    }

.hero-img {
    flex: 1;
}

    .hero-img img,
    .hero-img .img-placeholder {
        width: 100%;
        height: 420px;
        object-fit: cover;
        border-radius: 24px;
        box-shadow: var(--shadow-md);
    }

/* --- ПРЕИМУЩЕСТВА --- */
.features {
    display: flex;
    gap: 24px;
    padding: 64px 0 32px;
    text-align: center;
}

.feature-card {
    flex: 1;
    background: var(--surface);
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .feature-card .icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 18px;
        background: var(--primary-soft);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }

    .feature-card h3 {
        font-size: 19px;
        font-weight: 800;
        margin-bottom: 8px;
        color: var(--dark);
    }

    .feature-card p {
        color: var(--text-muted);
        font-size: 14px;
    }

/* --- СЕТКА ТОВАРОВ --- */
.hits {
    padding: 56px 0 72px;
}

    .hits h2 {
        font-size: 38px;
        font-weight: 900;
        letter-spacing: -0.02em;
        text-align: center;
        margin-bottom: 40px;
        color: var(--dark);
    }

.hits-grid, .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 18px;
    text-align: left;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .product-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 14px;
        background-color: var(--gray);
    }

    .product-card h3 {
        margin: 16px 0 6px;
        font-size: 20px;
        font-weight: 800;
        color: var(--dark);
    }

    .product-card p {
        color: var(--text-muted);
        font-size: 14px;
        margin-bottom: 18px;
        flex-grow: 1;
    }

    .product-card .price {
        display: block;
        font-size: 24px;
        font-weight: 900;
        color: var(--dark);
        margin-bottom: 14px;
    }

    .product-card .btn {
        width: 100%;
        border-radius: 12px;
    }

/* --- СТРАНИЦА МЕНЮ --- */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #38251C 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 42px;
        font-weight: 900;
        letter-spacing: -0.02em;
        color: #fff;
        margin-bottom: 10px;
    }

    .page-header p {
        color: rgba(255, 255, 255, 0.75);
        font-size: 18px;
    }

.menu-grid {
    padding: 64px 0;
}

/* --- О НАС --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 72px 0;
}

.about-text {
    flex: 1;
}

    .about-text h2 {
        font-size: 36px;
        font-weight: 900;
        letter-spacing: -0.02em;
        margin-bottom: 20px;
        color: var(--dark);
    }

    .about-text p {
        margin-bottom: 16px;
        color: var(--text-muted);
        font-size: 16px;
    }

.about-img {
    flex: 1;
}

    .about-img img {
        width: 100%;
        border-radius: 24px;
        box-shadow: var(--shadow-md);
    }

.stats {
    display: flex;
    justify-content: space-around;
    padding: 48px 24px;
    background: linear-gradient(135deg, #FFE8D6 0%, #FFD6BA 100%);
    border: 1px solid rgba(255, 85, 0, 0.15);
    border-radius: 24px;
    margin-bottom: 72px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 6px;
}

.stat-text {
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
}

/* --- ДОСТАВКА --- */
.delivery-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    padding: 72px 0;
}

.delivery-card {
    background: var(--surface);
    padding: 36px;
    border-radius: 22px;
    border: 1px solid var(--border);
    border-top: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

    .delivery-card h3 {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 14px;
        color: var(--dark);
    }

    .delivery-card p {
        margin-bottom: 16px;
        color: var(--text-muted);
    }

    .delivery-card ul {
        list-style: none;
    }

        .delivery-card ul li {
            margin-bottom: 10px;
            padding-left: 24px;
            position: relative;
            font-weight: 500;
        }

            .delivery-card ul li::before {
                content: "✓";
                color: var(--primary);
                position: absolute;
                left: 0;
                font-weight: 900;
            }

/* --- КОНТАКТЫ --- */
.contact-grid {
    display: flex;
    gap: 36px;
    padding: 72px 0;
}

.contact-info, .contact-form-wrapper {
    flex: 1;
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

    .contact-info h2, .contact-form-wrapper h2 {
        font-size: 26px;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--dark);
    }

    .contact-info p {
        margin-bottom: 14px;
        font-size: 16px;
    }

.map-placeholder {
    height: 220px;
    background: var(--gray);
    border-radius: 16px;
    margin-top: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .booking-form input {
        padding: 15px 18px;
        background: var(--light);
        border: 1px solid var(--border);
        border-radius: 12px;
        font-size: 15px;
        font-family: inherit;
        color: var(--text);
        transition: all 0.2s ease;
    }

        .booking-form input:focus {
            outline: none;
            background: #fff;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.12);
        }

/* --- УСПЕХ --- */
.success-section {
    padding: 90px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-box {
    background: var(--surface);
    padding: 48px 40px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-width: 480px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-box h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-box p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* --- ПОДВАЛ --- */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 36px;
    margin-top: 40px;
    border-top: 4px solid var(--primary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

    .footer-col h4 {
        margin-bottom: 18px;
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .footer-col a {
        display: block;
        margin-bottom: 10px;
        color: rgba(255, 255, 255, 0.65);
        font-size: 14px;
        transition: color 0.2s;
    }

        .footer-col a:hover {
            color: var(--primary);
        }

.author-col {
    text-align: right;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 32px;
}

    .author-col p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 6px;
    }

    .author-col strong {
        color: #fff;
    }
/* --- АДАПТИВ ДЛЯ ПОДВАЛА --- */
@media (max-width: 900px) {
    .author-col {
        text-align: center;
        border-left: none;
        padding-left: 0;
        margin-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 24px;
    }
}
/* --- АДАПТИВ --- */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        margin: 0 auto 28px;
    }

    .hero-img img,
    .hero-img .img-placeholder {
        height: 280px;
    }

    .features {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        flex-direction: column;
        gap: 28px;
    }

    .contact-grid {
        flex-direction: column;
    }

    .author-col {
        text-align: center;
        border-left: none;
        padding-left: 0;
        margin-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 24px;
    }
}
/* --- КОРЗИНА --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 13, 10, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .cart-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

    .cart-drawer.open {
        right: 0;
    }

.cart-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-header h3 {
        font-size: 20px;
        font-weight: 800;
        color: var(--dark);
    }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--light);
}
/* Кнопки плюс/минус */
.qty-btn {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.2s;
}

    .qty-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }
/* Всплывающее уведомление */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: #fff;
    padding: 14px 26px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }