/* css/style.css */
/* ========== Базовые стили ========== */
:root {
    --brown: #3E2723;
    --cream: #FFF8E7;
    --caramel: #D4A373;
    --caramel-dark: #B5835A;
    --coffee: #6F4E37;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--brown);
    line-height: 1.5;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Шапка ========== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}
.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--caramel);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo span {
    color: var(--brown);
}
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-menu a {
    text-decoration: none;
    color: var(--brown);
    font-weight: 500;
    transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--caramel);
}
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}
.cta-buttons {
    display: flex;
    gap: 15px;
}
.btn-call, .btn-route {
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.btn-call {
    background: var(--caramel);
    color: var(--white);
}
.btn-call:hover {
    background: var(--caramel-dark);
}
.btn-route {
    background: transparent;
    border: 2px solid var(--caramel);
    color: var(--brown);
}
.btn-route:hover {
    background: var(--caramel);
    color: white;
}

/* ========== Мобильное меню ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        gap: 15px;
        margin-top: 15px;
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
    .nav-menu.active {
        display: flex;
    }
    .cta-buttons {
        margin-left: auto;
    }
    .header-inner {
        position: relative;
    }
}

/* ========== Герой-блок (индекс) ========== */
.hero {
    background: linear-gradient(rgba(62,39,35,0.7), rgba(62,39,35,0.7)), url('../assets/img/hero-bg.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}
.btn-primary {
    background: var(--caramel);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 10px;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--caramel-dark);
}

/* ========== Секции общие ========== */
.section {
    padding: 70px 0;
}
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--caramel);
    margin: 15px auto 0;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 20px;
}
.card-content h3 {
    margin-bottom: 10px;
}

/* ========== Меню страница ========== */
.menu-category {
    margin-bottom: 50px;
}
.menu-category h2 {
    font-size: 28px;
    border-left: 5px solid var(--caramel);
    padding-left: 15px;
    margin-bottom: 25px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.menu-item {
    background: white;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    flex-wrap: wrap; /* Добавляем перенос для очень маленьких экранов */
}
.menu-item-info {
    flex: 1;
}
.menu-item-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}
.menu-item-info p {
    font-size: 14px;
    color: #666;
}
.menu-price {
    font-weight: bold;
    font-size: 18px;
    color: var(--caramel);
    white-space: nowrap;
    margin-left: 15px;
}

/* Для карточек на главной */
.card-content .menu-price {
    display: inline-block;
    white-space: nowrap;
    font-size: 18px;
    margin-top: 8px;
}
/* ========== Контакты ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info p {
    margin: 20px 0;
    font-size: 18px;
}
.social-links a {
    display: inline-block;
    margin-right: 20px;
    font-size: 24px;
    color: var(--brown);
    transition: var(--transition);
}
.social-links a:hover {
    color: var(--caramel);
}
.map {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

/* ========== Форма банкета ========== */
.form-group {
    margin-bottom: 20px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
}
button[type="submit"] {
    background: var(--caramel);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
}

/* ========== Подвал ========== */
footer {
    background: var(--brown);
    color: var(--cream);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer a {
    color: var(--caramel);
    text-decoration: none;
}

/* ========== Адаптивность ========== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .section-title { font-size: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
}