/* Базовые настройки (Общие для всех страниц) */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary-gradient: linear-gradient(135deg, #ff6b6b, #ff8e53, #e52e71);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; padding: 0; margin: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; }

/* Фон и контейнер */
.bg-glow {
    position: absolute; width: 600px; height: 600px;
    border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.4;
}
.glow-1 { top: -100px; left: -200px; background: radial-gradient(circle, rgba(229,46,113,0.3) 0%, rgba(0,0,0,0) 70%); }
.glow-2 { bottom: 10%; right: -200px; background: radial-gradient(circle, rgba(255,138,0,0.2) 0%, rgba(0,0,0,0) 70%); }

.main-container {
    display: flex; flex-direction: column; min-height: 100vh;
    max-width: 1000px; /* Делаем чуть уже для профиля, чтобы смотрелось элегантнее */
    margin: 0 auto; padding: 0 1rem;
}

/* Навигация */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; }
.logo { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.logo i { color: #e52e71; }
.nav-links { display: none; gap: 2rem; font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a:hover { color: var(--text-main); }
.btn-secondary {
    border: 1px solid var(--glass-border); padding: 0.6rem 1.2rem; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; transition: all 0.3s; background: rgba(255,255,255,0.05);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* Класс стекла */
.glass {
    background: rgba(20, 20, 20, 0.6); border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ========================================= */
/* СТИЛИ ПРОФИЛЯ И МЕНЮ                      */
/* ========================================= */

/* Шапка профиля (Фото и название) */
.place-hero {
    margin-top: 1rem;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .hero-image { height: 450px; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.5) 50%, rgba(5,5,5,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status, .rating {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.open { color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.rating { color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }

.place-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.place-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 1rem;
}

.place-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.place-tags span {
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Кнопки действий (Маршрут, Бронь) */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .quick-actions { grid-template-columns: 1fr; }
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 1.2rem;
}

.primary-action {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
}

/* Рекламный баннер (Акции) */
.promo-banner {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(229, 46, 113, 0.3);
    background: rgba(229, 46, 113, 0.05);
}

.promo-icon {
    font-size: 2rem;
    color: #e52e71;
}

.promo-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.promo-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Секция Меню */
.menu-section {
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.menu-categories {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}
.menu-categories::-webkit-scrollbar { display: none; }

.cat-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.cat-btn.active, .cat-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* Сетка карточек меню */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

.menu-item {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    transition: border-color 0.3s;
}

.menu-item:hover {
    border-color: rgba(255,255,255,0.2);
}

.item-image {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.item-info {
    flex-grow: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4ade80;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Подвал */
.footer { margin-top: auto; padding: 2rem; border-radius: 24px 24px 0 0; border-bottom: none; text-align: center; }
.footer-logo { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.footer-copyright { font-size: 0.8rem; color: #555; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; }