/* custom.css - Фирменный стиль лаунж-бара */
/* Основные цвета: #EB6320 (оранжевый), #000000 (черный), #FFFFFF (белый) */

/* Подключаем шрифты из Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
    /* Фирменная цветовая палитра */
    --primary-orange: #EB6320;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --dark-gray: #2D2D2D;
    --light-gray: #F5F5F5;
    --text-dark: #000000;
    --text-light: #666666;
    --border-light: rgba(235, 99, 32, 0.2);
    
    /* Фирменные шрифты */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Arial', 'Helvetica', sans-serif;
    --font-menu: 'Bebas Neue', sans-serif;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--primary-white);
    background-color: var(--primary-black);
    line-height: 1.6;
    font-weight: 400;
}

/* Фоновый контейнер */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.default-bg {
    background: linear-gradient(135deg, #2D2D2D 0%, #3A3A3A 50%, #4A4A4A 100%);
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(235, 99, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(235, 99, 32, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

/* Контент поверх фона */
.content-overlay {
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-white);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    /* Убрано text-transform: uppercase */
}

h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-white);
}

p, li, span {
    font-family: var(--font-body);
    color: var(--primary-white);
}

/* ===== ФИКС РАЗМЕРОВ ХЕДЕРА ===== */
.navbar {
    background: var(--primary-orange) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0 !important;
    min-height: 70px;
    max-height: 70px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(235, 99, 32, 0.3);
}

.navbar-brand {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
    background: transparent !important;
}

.header-logo {
    max-height: 40px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
    background: transparent !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    color: var(--primary-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    /* Убрано text-transform: uppercase */
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-black) !important;
    background: rgba(255, 255, 255, 0.2);
}

.navbar-brand:hover .header-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* ===== АДАПТИВНЫЕ КАРТОЧКИ БЛЮД (АВТО ВЫСОТА) ===== */
.dish-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(235, 99, 32, 0.1);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* ВЫСОТА АВТО - УБРАЛИ ФИКСИРОВАННУЮ ВЫСОТУ */
    min-height: auto;
    display: block; /* Меняем с flex на block для естественной высоты */
}

.dish-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-orange);
    box-shadow: 0 5px 15px rgba(235, 99, 32, 0.2);
}

/* Контейнер содержимого карточки */
.dish-content {
    /* Убираем flex для естественной высоты */
    display: block;
    width: 100%;
}

/* Заголовок и цена в одной строке */
.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Названия блюд - Bebas Neue */
.dish-name {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.4rem !important;
    color: var(--primary-black) !important;
    letter-spacing: 1px !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
    font-variant: normal !important;
    font-style: normal !important;
    /* Убрано text-transform: uppercase !important; */
    margin: 0 !important;
    flex: 1;
    max-width: 70%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Цены - тоже Bebas Neue */
.dish-price {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.3rem !important;
    color: var(--primary-orange) !important;
    font-weight: normal !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    font-variant: normal !important;
    font-style: normal !important;
    margin: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Описание блюд */
.dish-description {
    font-family: var(--font-body) !important;
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0.5rem 0 !important;
    width: 100%;
    /* Убираем ограничение строк */
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

/* Вес/объем */
.dish-weight {
    font-family: var(--font-body) !important;
    color: #888 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    display: block;
}

/* Стили для изображений блюд */
.dish-image {
    border-radius: 6px;
    overflow: hidden;
    width: 70px;
    height: 70px;
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Карточка с изображением */
.dish-card.with-image {
    display: block; /* Меняем на block */
}

.dish-card.with-image::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== КАТЕГОРИИ МЕНЮ ===== */
.menu-category {
    margin-bottom: 2.5rem;
}

/* Заголовки категорий в меню */
.category-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 2.2rem !important;
    color: var(--primary-white) !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: normal !important;
    line-height: 1 !important;
    font-variant: normal !important;
    font-style: normal !important;
    /* Убрано text-transform: uppercase !important; */
}

/* Подкатегории (группы) */
.text-accent {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.6rem !important;
    color: var(--primary-orange) !important;
    letter-spacing: 1px !important;
    font-weight: normal !important;
    font-variant: normal !important;
    font-style: normal !important;
    /* Убрано text-transform: uppercase !important; */
    margin-bottom: 1rem;
    display: block;
}

/* Сброс наследуемых стилей для элементов с Bebas Neue */
[class*="font-bebas"],
[class*="dish-"],
.category-title,
.text-accent {
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    /* Убрано text-transform: uppercase !important; */
}

/* ===== КНОПКИ ===== */
.btn-primary {
    background: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    color: var(--primary-white);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    /* Убрано text-transform: uppercase; */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 99, 32, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    font-family: var(--font-body);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    /* Убрано text-transform: uppercase; */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-white);
}

.btn-outline.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--primary-white);
}

/* ===== ОБНОВЛЕННЫЙ ФУТЕР ===== */
.footer {
    background: var(--primary-orange);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    box-shadow: 0 -2px 20px rgba(235, 99, 32, 0.3);
}

.footer h5 {
    color: var(--primary-white);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--primary-black);
    text-decoration: none;
}

/* Социальные иконки в футере */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.social-links a:hover {
    background: var(--primary-white);
    transform: translateY(-2px);
}

.social-links a:hover i {
    color: var(--primary-orange) !important;
}

/* Разделитель в футере */
.footer hr {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero-section {
    padding-top: 90px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.8rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
}

/* Карточки преимуществ на главной */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    /* Адаптивная высота */
    min-height: 140px;
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card h4 {
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-card i {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

/* Навигация категорий */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
}

/* ===== БЭДЖИ И МЕТКИ ===== */
.badge-new {
    background: var(--primary-orange);
    color: var(--primary-white);
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 0.75rem !important;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    /* Убрано text-transform: uppercase; */
    letter-spacing: 0.8px !important;
    font-weight: normal !important;
}

.badge-popular {
    background: var(--primary-white);
    color: var(--primary-black);
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 0.75rem !important;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    /* Убрано text-transform: uppercase; */
    letter-spacing: 0.8px !important;
    font-weight: normal !important;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 0.4rem 0 !important;
    }
    
    .navbar-brand {
        height: 35px !important;
    }
    
    .header-logo {
        max-height: 35px !important;
        max-width: 180px !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .dish-card {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .dish-name {
        font-size: 1.2rem !important;
        letter-spacing: 0.8px !important;
    }
    
    .dish-price {
        font-size: 1.1rem !important;
    }
    
    .dish-description {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin: 0.4rem 0 !important;
    }
    
    .dish-weight {
        font-size: 0.75rem !important;
    }
    
    .dish-image {
        width: 60px;
        height: 60px;
        margin-right: 0.8rem;
    }
    
    .category-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.25rem;
    }
    
    .text-accent {
        font-size: 1.4rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .feature-card {
        min-height: 120px;
        padding: 1.25rem;
    }
    
    .feature-card h4 {
        font-size: 1rem !important;
    }
    
    .feature-card p {
        font-size: 0.85rem !important;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: 75vh;
    }
    
    .main-logo {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .dish-card {
        padding: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .btn-outline {
        width: 200px;
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .navbar {
        min-height: 55px !important;
        max-height: 55px !important;
    }
    
    .navbar-brand {
        height: 30px !important;
        margin-right: 1rem;
    }
    
    .header-logo {
        max-height: 30px !important;
        max-width: 150px !important;
    }
    
    .main-logo {
        max-width: 180px;
    }
    
    .dish-name {
        font-size: 1.1rem !important;
    }
    
    .dish-price {
        font-size: 1rem !important;
    }
    
    .category-title {
        font-size: 1.6rem !important;
    }
    
    .text-accent {
        font-size: 1.2rem !important;
    }
    
    .feature-card {
        min-height: 110px;
        padding: 1rem;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: 70vh;
    }
}

/* ===== СТИЛИ ДЛЯ 5 КОЛОНОК В РЯД ===== */
@media (min-width: 1200px) {
    .row.g-4.justify-content-center .col-xl {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .row.g-4.justify-content-center .col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .row.g-4.justify-content-center .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .row.g-4.justify-content-center > div {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

/* ===== УТИЛИТЫ ===== */
.text-accent {
    color: var(--primary-orange) !important;
}

.bg-dark-transparent {
    background: rgba(0, 0, 0, 0.8) !important;
}

.border-accent {
    border-color: var(--primary-orange) !important;
}

.text-muted {
    color: #888 !important;
}

/* Ссылки в карточках */
.text-decoration-none:hover .feature-card {
    transform: translateY(-3px);
    border-color: var(--primary-orange);
}

/* Активная кнопка навигации */
.btn-outline.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--primary-white);
}

/* Резервные стили если Bebas Neue не загрузился */
.font-fallback {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
}