:root {
    --primary-color: #ed1c24;  /* Ярко-красный цвет пламени и пиццы из логотипа */
    --accent-orange: #ff9100;  /* Теплый янтарный цвет пива из логотипа */
    --accent-gold: #ff9100;    /* Сохраняем для обратной совместимости элементов */
    --bg-dark: #141414;        /* Глубокий темный фоновый цвет логотипа */
    --bg-card: #1f1f1f;        /* Контрастный фон карточек */
    --text-light: #ffffff;     /* Чистый белый текст из логотипа */
    --text-muted: #a8a8a8;     /* Дополнительный серый текст */
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 3px; }

/* Навигация с логотипом по центру */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 20px; 
    padding: 12px 20px;
}

.nav-side {
    flex: 1;
    display: flex;
    align-items: center;
}
.nav-left {
    justify-content: flex-start;
}
.nav-right {
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 68px; /* Увеличенный размер логотипа */
    transition: var(--transition);
}
.logo:hover {
    transform: scale(1.03);
}
.logo-img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { font-weight: 600; font-size: 15px; transition: var(--transition); }
.nav-links a:hover { color: var(--accent-orange); }

.btn {
    background: var(--primary-color); color: #fff; padding: 10px 24px;
    border-radius: 30px; font: inherit; font-weight: 700; border: none;
    cursor: pointer; transition: var(--transition); display: inline-block;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { background: #c8131a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(237,28,36,0.4); }
.btn-gold { background: var(--accent-orange); color: var(--bg-dark); }
.btn-gold:hover { background: #e07f00; box-shadow: 0 5px 15px rgba(255,145,0,0.4); }

.hero {
    min-height: 100svh;
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 110px 20px 30px;
}
.hero-content { max-width: 800px; }
.badge {
    background: rgba(255,145,0,0.15); color: var(--accent-orange);
    padding: 6px 16px; border-radius: 20px; font-size: 14px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    display: inline-block; margin-bottom: 20px; border: 1px solid var(--accent-orange);
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 56px; margin-bottom: 20px; line-height: 1.1; color: var(--text-light); }
.hero p { font-size: 20px; color: #c5c5c5; margin-bottom: 35px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

.section { padding: 90px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--accent-orange); margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--bg-card); padding: 35px 25px; border-radius: var(--radius);
    text-align: center; border: 1px solid rgba(255,255,255,.05); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--primary-color); }
.feature-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-light); }
.feature-card p { color: var(--text-muted); font-size: 15px; }

.menu-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
    background: var(--bg-card); color: var(--text-light); border: 1px solid rgba(255,255,255,.1);
    padding: 10px 24px; border-radius: 20px; cursor: pointer; font: inherit;
    font-weight: 600; transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; align-items: start; }
.menu-item {
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,.05); transition: var(--transition);
}
.menu-item-clickable {
    cursor: pointer;
    user-select: none;
}
.menu-item-clickable:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(0,0,0,.6); 
}
.menu-img {
    height: 220px; width: 100%; object-fit: contain; background: #161616; display: block; padding: 15px;
    transition: transform 0.3s ease;
}
.menu-item-clickable:hover .menu-img {
    transform: scale(1.03);
}
.menu-info { padding: 20px; }
.menu-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 10px; }
.menu-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text-light); }

.menu-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.menu-price-row:last-child { border-bottom: none; }
.size-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}
.weight-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}
.price-value {
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 16px;
}

.menu-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; min-height: 44px; }

/* Подсказка для клика */
.pizza-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 600;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    transition: color 0.2s ease;
}

/* Скрываемый блок КБЖУ */
.details-content {
    display: none;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

/* Раскрытие по клику на карточку */
.menu-item.active-kbzhu .details-content {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}
.menu-item.active-kbzhu {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 145, 0, 0.25);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ingredients-text {
    margin-bottom: 10px;
}
.kbzhu-grid {
    background: rgba(0, 0, 0, 0.35);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.kbzhu-grid div {
    margin-bottom: 4px;
}
.kbzhu-grid div:last-child {
    margin-bottom: 0;
}

/* Акции */
.promos-container { display: flex; flex-direction: column; gap: 25px; }
.promo-banner {
    background: var(--bg-card);
    border-radius: var(--radius); padding: 40px 30px; text-align: center;
    border: 2px solid var(--accent-orange);
}
.promo-banner h3 { font-size: 32px; color: var(--accent-orange); margin-bottom: 15px; }
.promo-description { font-size: 18px; margin-bottom: 15px; color: var(--text-light); }
.promo-condition { color: var(--primary-color); font-weight: 700; }

/* Контакты и Карта проезда */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.contact-info > div { margin-bottom: 25px; }
.contact-info h4 { color: var(--accent-orange); margin-bottom: 5px; font-size: 18px; }

.map-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.map-title {
    color: var(--accent-orange);
    font-size: 20px;
    font-weight: 700;
}
.map-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
.map-box iframe {
    width: 100%;
    height: 400px;
    display: block;
}

footer { background: #0a0a0a; padding: 30px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,.05); color: var(--text-muted); font-size: 14px; }

/* Кнопка "Вверх" */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-left { display: none; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 75px; }
    .nav-container { padding: 8px 12px; gap: 10px; }
    .logo { height: 45px; }
    .nav-phone { padding: 8px 12px; font-size: 0; }
    .nav-phone::after { content: 'Позвонить'; font-size: 13px; }
    .hero { padding-top: 85px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .section { padding: 65px 15px; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 32px; }
    .menu-grid, .features-grid, .contacts-grid { grid-template-columns: 1fr; }
    .promo-banner { padding: 35px 20px; }
    .promo-banner h3 { font-size: 25px; }
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}