* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2B;
    --secondary: #F7931E;
    --accent: #FFD23F;
    --dark: #0A0A0A;
    --dark-secondary: #1A1A1A;
    --dark-tertiary: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFD23F 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Динамическая высота viewport для мобильных */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Для полноэкранного режима в Telegram */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #1A0A0A 0%, #0A0A0A 100%);
}

.smoke {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 25s infinite ease-in-out;
    filter: blur(60px);
}

.smoke-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.smoke-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 147, 30, 0.3) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 8s;
}

.smoke-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.25) 0%, transparent 70%);
    bottom: 15%;
    left: 50%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(40px, -40px) scale(1.15) rotate(5deg);
        opacity: 0.2;
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95) rotate(-5deg);
        opacity: 0.15;
    }
    75% {
        transform: translate(30px, 40px) scale(1.1) rotate(3deg);
        opacity: 0.18;
    }
}

.light-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    animation: pulse 6s infinite ease-in-out;
    pointer-events: none;
}

.light-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-purple);
    top: 5%;
    right: 15%;
    animation-delay: 0s;
    opacity: 0.4;
}

.light-2 {
    width: 250px;
    height: 250px;
    background: var(--gradient-pink);
    bottom: 10%;
    left: 20%;
    animation-delay: 3s;
    opacity: 0.35;
}

.light-3 {
    width: 280px;
    height: 280px;
    background: var(--gradient-primary);
    top: 45%;
    left: 5%;
    animation-delay: 1.5s;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh; /* Динамическая высота viewport */
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
    background: transparent;
    /* Учитываем безопасные зоны на мобильных */
    padding-top: max(40px, env(safe-area-inset-top, 0px));
    padding-top: max(40px, var(--safe-area-inset-top, 0px));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible; /* Не обрезаем контент по вертикали */
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    min-height: 100dvh; /* Динамическая высота viewport */
    padding: 24px;
    padding-top: max(60px, calc(60px + env(safe-area-inset-top, 0px)));
    padding-top: max(60px, calc(60px + var(--safe-area-inset-top, 0px)));
    padding-bottom: max(200px, calc(200px + env(safe-area-inset-bottom))) !important; /* Большой отступ для прокрутки */
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto !important; /* Разрешаем прокрутку, чтобы контент не обрезался */
    overflow-x: hidden !important;
    height: auto !important; /* Высота автоматическая, не фиксированная */
    max-height: none !important; /* Убираем ограничение по высоте */
}

/* Дополнительный отступ снизу для главной страницы, чтобы контент не перекрывался нижним меню */
#main-menu {
    padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
}

#location-screen {
    padding: 8px 12px;
    padding-top: max(30px, calc(30px + env(safe-area-inset-top, 0px)));
    padding-top: max(30px, calc(30px + var(--safe-area-inset-top, 0px)));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#location-screen.active {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

/* Скрываем навигацию на странице выбора локации */
body:has(#location-screen.active) #global-bottom-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.screen.active {
    display: block;
}

/* Специальное правило для location-screen - используем flex когда активен */
#location-screen.active {
    display: flex !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Welcome Screen */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
}

.logo-wrapper {
    margin-bottom: 30px;
    position: relative;
}

.logo-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}

.logo-underline {
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
    animation: underlineExpand 1s ease-out;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.7));
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Location Header Unified (on location selection screen) */
.location-header-unified {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 8px 12px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(255, 107, 53, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    gap: 16px;
    transition: all 0.3s ease;
}

.location-header-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(255, 107, 53, 0.02) 50%, 
        rgba(255, 107, 53, 0.05) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.location-header-unified:hover::before {
    opacity: 1;
}

.location-header-content {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.location-header-content .logo-wrapper {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-header-content .logo-title {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(255, 107, 53, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-header-content .welcome-subtitle {
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.location-header-content .logo-underline {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Buttons */
.btn-primary {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-glow {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), var(--shadow-glow);
    }
    50% {
        box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5), 0 0 40px rgba(255, 107, 53, 0.6);
    }
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.btn-location-change {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-location-change:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.btn-location-change .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Header */
.header {
    margin-bottom: 16px;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    padding-top: max(0px, var(--safe-area-inset-top, 0px));
    position: relative;
    z-index: 1;
}

#location-screen .header {
    margin-bottom: 2px;
    flex-shrink: 0;
    padding: 0 4px;
}

.header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#location-screen .header h2 {
    font-size: 1rem;
    margin-bottom: 1px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 300;
}

#location-screen .header-subtitle {
    font-size: 0.65rem;
    margin: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Banner */
.banner {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    animation: bannerSlide 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: bannerShine 3s infinite;
}

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

@keyframes bannerShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.banner-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.banner-content p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* News Preview Section */
.news-preview-section {
    margin-top: 32px;
    margin-bottom: 20px; /* Уменьшенный отступ до блока о локации */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-see-all {
    background: transparent;
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-see-all:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary);
}

.news-preview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-preview-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.news-preview-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-preview-item:hover {
    transform: translateX(4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.news-preview-item:hover::before {
    opacity: 1;
}

.news-preview-badge {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.news-preview-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.news-preview-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(0) !important;
    width: 100% !important;
    max-width: 500px !important;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 12px 0 !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    z-index: 1000 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    pointer-events: auto !important;
    will-change: opacity, visibility !important;
    -webkit-transform: translateX(-50%) translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    pointer-events: auto !important;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    min-height: 44px; /* Минимальный размер для удобного нажатия */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    stroke: var(--primary);
    transform: scale(1.1);
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item.active span {
    font-weight: 600;
    color: var(--primary);
}

.nav-item:active {
    transform: scale(0.95);
}

/* Manager Scan Button */
.btn-manager-scan {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-manager-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-manager-scan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-manager-scan:hover::before {
    left: 100%;
}

.btn-manager-scan:active {
    transform: translateY(0);
}

.scan-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Scan QR Screen */
.scan-qr-content {
    margin-top: 24px;
    padding-bottom: 100px;
}

#scan-result {
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

#scan-result.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

#scan-result.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.2), var(--shadow-glow);
}

.action-card:hover::before {
    opacity: 0.1;
}

.action-card:active {
    transform: translateY(-3px) scale(0.98);
}

.action-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon-wrapper {
    background: rgba(255, 107, 53, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.action-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    stroke: var(--accent);
    transform: scale(1.1);
}

.action-card span {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

/* Locations - Elegant Design */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    padding: 0 4px;
    padding-bottom: 8px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
}

.location-card-elegant {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.25);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 107, 53, 0.1);
    will-change: transform;
    transform: translateZ(0);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
}

.location-card-elegant:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25), 0 0 30px rgba(255, 107, 53, 0.15);
}

.location-card-elegant:active {
    transform: translateY(-2px) translateZ(0) scale(0.98);
}

.location-card-elegant:active .location-card-img {
    transform: scale(1.12);
}

.location-card-elegant:active .location-portal-icon {
    transform: rotate(180deg) scale(1.3);
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 1));
}

.location-card-elegant:active::before {
    opacity: 0.6;
    filter: blur(15px);
}

.location-card-image-container {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, #1A0A0A 0%, #0A0A0A 100%);
}

.location-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card-elegant:hover .location-card-img {
    transform: scale(1.08);
}

.location-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    opacity: 0.15;
}

.location-card-img-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary);
    stroke-width: 1.5;
    opacity: 0.5;
}

.location-card-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.location-card-quick-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.location-quick-btn {
    width: 36px;
    height: 36px;
    background: rgba(10, 10, 10, 0.85);
    border: 1.5px solid rgba(255, 107, 53, 0.4);
    border-radius: 10px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.location-quick-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.location-quick-btn:active {
    transform: scale(0.95);
}

.location-quick-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.location-card-body {
    padding: 12px 14px;
    background: rgba(26, 26, 26, 0.95);
}

.location-card-main-info {
    margin-bottom: 10px;
}

.location-card-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.location-card-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
}

.location-detail-icon {
    width: 14px;
    height: 14px;
    stroke: var(--primary);
    stroke-width: 2;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Эффект портала - вся карточка как вход */
.location-card-elegant::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 18px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.location-card-elegant:hover::before {
    opacity: 0.4;
    animation: portalGlow 2s ease-in-out infinite;
}

@keyframes portalGlow {
    0%, 100% {
        opacity: 0.3;
        filter: blur(8px);
    }
    50% {
        opacity: 0.5;
        filter: blur(12px);
    }
}

/* Индикатор портала внизу карточки */
.location-portal-indicator {
    position: relative;
    width: 100%;
    padding: 10px 14px;
    background: rgba(10, 10, 10, 0.6);
    border-top: 1px solid rgba(255, 107, 53, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.location-card-elegant:hover .location-portal-indicator {
    background: rgba(255, 107, 53, 0.05);
    border-top-color: rgba(255, 107, 53, 0.3);
}

.location-portal-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.location-card-elegant:hover .location-portal-glow {
    transform: scaleX(1);
    animation: portalGlowLine 1.5s ease-in-out infinite;
}

@keyframes portalGlowLine {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

.location-portal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.location-portal-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.location-card-elegant:hover .location-portal-icon {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.location-portal-hint {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.location-card-elegant:hover .location-portal-hint {
    opacity: 1;
    letter-spacing: 1px;
}

/* Эффект глубины при наведении */
.location-card-elegant::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 16px;
}

.location-card-elegant:hover::after {
    opacity: 1;
}

.location-phone-button {
    width: 100%;
    max-width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    margin-top: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.location-phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.location-phone-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Location Navigation Button with Dropdown */
.location-nav-button {
    width: 100%;
    max-width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    position: relative;
    margin-top: 5px;
    z-index: 1;
    box-sizing: border-box;
}

.location-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.location-nav-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Старые стили location-phone-button удалены - используются location-action-btn */

/* Menu */
.menu-container {
    margin-top: 24px;
    overflow: visible !important;
    min-height: auto !important;
    max-height: none !important;
}

#menu-container {
    padding: 20px;
    padding-bottom: 200px !important; /* Большой отступ для bottom navigation и подкатегорий */
    overflow: visible !important; /* Не обрезаем подкатегории */
    min-height: auto; /* Не ограничиваем высоту */
    position: relative;
    z-index: 1;
}

.menu-category {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    overflow: visible !important; /* Не обрезаем контент */
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Если у категории есть подкатегории, убираем нижние скругления и border-bottom */
.menu-category.has-subcategories {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    margin-bottom: 16px; /* Отступ между категориями, даже если подкатегории скрыты */
    overflow: visible !important; /* Разрешаем видимость подкатегорий, которые находятся ВНЕ категории */
}

/* Если категория с подкатегориями раскрыта, убираем margin-bottom (отступ создаст последняя подкатегория) */
.menu-category.has-subcategories:not(.collapsed) {
    margin-bottom: 0;
    overflow: visible !important; /* Важно: не обрезаем подкатегории */
}

/* Когда категория с подкатегориями закрыта, тоже visible, так как подкатегории находятся вне категории */
.menu-category.has-subcategories.collapsed {
    overflow: visible !important; /* Подкатегории находятся вне категории, поэтому не обрезаем */
    border-bottom: 1px solid rgba(255, 107, 53, 0.2) !important; /* Обводка снизу когда закрыта */
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    margin-bottom: 16px !important; /* Отступ между категориями */
}

.menu-category:first-child {
    margin-top: 0;
}

.menu-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.menu-category-header:hover {
    background: rgba(255, 107, 53, 0.08);
}

.menu-category-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.menu-category-toggle {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.menu-category.collapsed .menu-category-toggle {
    transform: rotate(-90deg);
}

.menu-category-items {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
}

.menu-category:not(.collapsed) .menu-category-items {
    display: flex;
    animation: menuExpand 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-direct-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

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

/* Подкатегории - на том же уровне, что и основная категория, той же ширины */
.menu-subcategory {
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-top: none; /* Нет верхней границы, так как она продолжение родителя */
    border-left: 1px solid rgba(255, 107, 53, 0.2);
    border-right: 1px solid rgba(255, 107, 53, 0.2);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2); /* Есть нижняя граница */
    border-radius: 0;
    overflow: visible !important; /* Не обрезаем контент */
    box-sizing: border-box;
    transition: all 0.3s ease;
    display: none; /* Скрыты по умолчанию, управляется через JS */
    position: relative;
    z-index: 0;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}

/* Убрана полоска слева у подкатегорий */

/* Последняя подкатегория в группе должна иметь нижний border-radius, border-bottom и margin-bottom */
.menu-subcategory.last-subcategory {
    border-bottom: 1px solid rgba(255, 107, 53, 0.2) !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}


/* Убеждаемся, что подкатегории не обрезаются и видны полностью */
.menu-subcategory.last-subcategory .menu-subcategory-items {
    padding-bottom: 14px !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1; /* Ниже border */
    overflow: visible !important;
}

/* Убеждаемся, что последняя подкатегория полностью видна */
.menu-subcategory.last-subcategory:not(.collapsed) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.menu-subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
    position: relative;
    z-index: 2;
    padding-left: 18px; /* Такой же отступ, как у обычной категории */
}

.menu-subcategory-header:hover {
    background: rgba(255, 107, 53, 0.05);
}

.menu-subcategory-header h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.menu-subcategory-header .menu-category-toggle {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.menu-subcategory.collapsed .menu-subcategory-header .menu-category-toggle {
    transform: rotate(-90deg);
}

.menu-subcategory-items {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 14px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Ниже border */
    overflow: visible !important;
}

.menu-subcategory:not(.collapsed) .menu-subcategory-items {
    display: grid;
    animation: menuExpand 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.menu-item-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-item-content {
    padding: 8px;
}

.menu-item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Модальное окно для позиции меню */
.menu-item-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-item-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.menu-item-modal-content {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.menu-item-modal-overlay.show .menu-item-modal-content {
    transform: scale(1);
}

.menu-item-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.menu-item-modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.menu-item-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    color: var(--text-primary);
}

.menu-item-modal-body {
    padding: 24px;
}

.menu-item-modal-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.menu-item-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-modal-info {
    color: var(--text-primary);
}

.menu-item-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    gap: 16px;
}

.menu-item-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    color: var(--text-primary);
}

.menu-item-modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-item-modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Адаптивность для меню */
@media (max-width: 480px) {
    #menu-container {
        padding: 12px;
        padding-bottom: 100px;
    }
    
    .menu-category-header {
        padding: 12px 16px;
    }
    
    .menu-category-header h3 {
        font-size: 1.1rem;
    }
    
    .menu-category-items {
        padding: 12px;
    }
    
    .menu-category:not(.collapsed) .menu-category-items {
        display: flex;
        padding: 12px;
    }
    
    .menu-direct-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .menu-subcategory-header {
        padding: 10px 12px;
    }
    
    .menu-subcategory-header h4 {
        font-size: 0.95rem;
    }
    
    .menu-subcategory .menu-category-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 12px 12px;
    }
    
    .menu-item-image-container {
        aspect-ratio: 1 / 1;
    }
    
    .menu-item-content {
        padding: 8px;
    }
    
    .menu-item-name {
        font-size: 0.8rem;
    }
    
    .menu-item-price {
        font-size: 1rem;
    }
    
    .menu-item-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
    
    .menu-item-modal-body {
        padding: 20px;
    }
    
    .menu-item-modal-image-container {
        aspect-ratio: 1 / 1;
        margin-bottom: 16px;
    }
    
    .menu-item-modal-name {
        font-size: 1.3rem;
    }
    
    .menu-item-modal-price {
        font-size: 1.5rem;
    }
    
    .menu-item-modal-description {
        font-size: 0.9rem;
    }
}

/* Booking Form */
.booking-form {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 80px;
}

.form-group {
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.half-width {
    grid-column: span 1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.booking-form .btn-primary {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 16px;
    font-size: 1rem;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.booking-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.booking-form .btn-primary:hover::before {
    left: 100%;
}

.form-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* Location Info Block */
.location-info-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.location-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.location-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    flex-shrink: 0;
}

.location-info-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.location-info-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-route {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
}

.location-nav-button-main {
    position: relative;
}

.btn-route:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-route svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Location Gallery Block */
.location-gallery-block {
    margin-top: 16px;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Отступ снизу для блока локации, чтобы не перекрывался нижним меню */
#main-menu .location-gallery-block {
    margin-bottom: 20px;
    padding-bottom: 0;
}

.location-gallery-main {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.location-gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.location-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-gallery-image:hover img {
    transform: scale(1.05);
}

.location-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 20px 16px 16px;
    color: white;
}

.location-gallery-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.location-gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.location-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(0, 0, 0, 0.2);
}

.location-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.location-gallery-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.location-gallery-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.location-gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

.location-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-info-details {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.location-vip-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.highlight-badge:hover {
    background: rgba(255, 107, 53, 0.25);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #FFD700;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.location-description {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.location-description p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.location-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.btn-phone-main {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-phone-main:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-phone-main svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.location-gallery-block .btn-route {
    margin: 0;
}

.add-to-home-container {
    margin: 16px 0;
    padding: 0 16px;
}

.btn-add-to-home {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-add-to-home:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.btn-add-to-home svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Add to Home Icon with Overlay Help */
.location-header-unified .add-to-home-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: auto;
}

.location-header-unified .btn-add-to-home-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.12);
    border: 1.5px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.location-header-unified .btn-add-to-home-icon:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.location-header-unified .btn-add-to-home-icon:active {
    transform: translateY(0) scale(0.95);
}

.btn-add-to-home-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.btn-add-to-home-help {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: rgba(26, 26, 26, 0.98);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 50%;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4), 0 0 8px rgba(255, 107, 53, 0.2);
}

.btn-add-to-home-help:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.6);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-add-to-home-help:active {
    transform: scale(0.9);
}

.btn-add-to-home-help svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.add-to-home-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: -20px;
    background: rgba(26, 26, 26, 0.98);
    border: 1.5px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-add-to-home-help:hover ~ .add-to-home-tooltip,
.btn-add-to-home-help:focus ~ .add-to-home-tooltip,
.add-to-home-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-content {
    color: var(--text-primary);
}

.tooltip-content p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.tooltip-content p:first-child {
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

.tooltip-content p:last-child {
    color: var(--text-secondary);
}

.tooltip-arrow {
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: rgba(26, 26, 26, 0.98);
    border-left: 1.5px solid rgba(255, 107, 53, 0.3);
    border-top: 1.5px solid rgba(255, 107, 53, 0.3);
    transform: rotate(45deg);
}

/* Старые стили location-nav-button удалены - используются location-action-btn */

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 99999;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 50vh;
    overflow-y: auto;
}

.nav-dropdown.show {
    display: flex;
}

.nav-dropdown-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary);
    transform: translateX(4px);
}

.nav-dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* News */
.news-container {
    margin-top: 24px;
    margin-bottom: 100px; /* Отступ для bottom nav */
}

.news-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.1);
}

.news-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.news-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.news-category-акция {
    background: var(--gradient-primary);
}

.news-category-вечеринка {
    background: var(--gradient-purple);
}

.news-category-dj {
    background: var(--gradient-pink);
}

.news-category-дегустация {
    background: var(--gradient-gold);
}

/* News Filters */
.news-filters {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* Loyalty */
.loyalty-content {
    margin-top: 16px;
    padding-bottom: 80px;
}

.loyalty-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card-compact {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-compact:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

.stat-card-compact:hover::before {
    opacity: 1;
}

.stat-value-compact {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-label-compact {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

.loyalty-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: scale(1.05) translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.loyalty-info {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
    text-align: center;
    border: 1.5px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.loyalty-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.loyalty-info p {
    margin: 4px 0;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.loyalty-info p:first-child {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.qr-code-container {
    background: white;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 107, 53, 0.2);
}

.qr-code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.qr-code-container img {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 8px;
}

.qr-code-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.3;
}

/* Contacts */
.contacts-container {
    margin-top: 24px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 700;
}

.contact-info {
    color: var(--text-secondary);
    line-height: 2;
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.loading-overlay.active {
    display: flex;
    pointer-events: auto;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(26, 26, 26, 0.95);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(26, 26, 26, 0.98);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-nav-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modal-nav-item:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary);
    transform: translateX(4px);
}

.modal-nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .screen {
        padding: 20px;
    }
    
    .logo-title {
        font-size: 2.8rem;
    }
    
    .location-header {
        padding: 30px 20px 20px;
    }
    
    .location-header .logo-title {
        font-size: 2.2rem;
    }
    
    .location-header .welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .loyalty-stats {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 20px 16px;
    }
    
    .booking-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-group.half-width {
        grid-column: 1;
    }
    
    .loyalty-stats-compact {
        gap: 8px;
    }
    
    .stat-card-compact {
        padding: 10px 6px;
    }
    
    .stat-value-compact {
        font-size: 1.4rem;
    }
    
    .stat-label-compact {
        font-size: 0.7rem;
    }
    
    .qr-code-container img {
        max-width: 160px;
    }
    
    .location-gallery-main {
        height: 180px;
    }
    
    .location-gallery-overlay {
        padding: 16px 12px 12px;
    }
    
    .location-gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .location-gallery-overlay p {
        font-size: 0.85rem;
    }
    
    .location-gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .location-description {
        padding: 12px;
    }
    
    .location-description p {
        font-size: 0.9rem;
    }
    
    /* Адаптивность для элегантных карточек локаций */
    .location-card-image-container {
        height: 180px;
    }
    
    .location-card-name {
        font-size: 1.3rem;
    }
    
    .location-card-body {
        padding: 16px;
    }
    
    .location-card-image-container {
        height: 120px;
    }
    
    .location-card-name {
        font-size: 1.1rem;
    }
    
    .location-card-body {
        padding: 10px 12px;
    }
    
    .location-portal-indicator {
        padding: 8px 12px;
    }
    
    .location-portal-hint {
        font-size: 0.65rem;
    }
    
    .location-portal-icon {
        width: 14px;
        height: 14px;
    }
    
    .location-quick-btn {
        width: 32px;
        height: 32px;
    }
    
    .location-quick-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .location-header-unified {
        gap: 12px;
        padding: 8px 12px;
        margin: 6px 8px 10px;
        border-radius: 14px;
    }
    
    .location-header-content .logo-title {
        font-size: 1.1rem;
    }
    
    .location-header-content .welcome-subtitle {
        font-size: 0.7rem;
    }
    
    .location-header-content .logo-underline {
        width: 40px;
        height: 1.5px;
    }
    
    .location-header-unified .add-to-home-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .location-header-unified .btn-add-to-home-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .location-header-unified .btn-add-to-home-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .location-header-unified .btn-add-to-home-help {
        width: 18px;
        height: 18px;
        top: -5px;
        right: -5px;
    }
    
    .location-header-unified .btn-add-to-home-help svg {
        width: 10px;
        height: 10px;
    }
    
    .location-header-unified .add-to-home-tooltip {
        min-width: 180px;
        max-width: 240px;
        padding: 10px 14px;
        right: -10px;
    }
    
    .location-header-unified .tooltip-arrow {
        right: 24px;
    }
    
    .tooltip-content p {
        font-size: 0.75rem;
    }
    
    .tooltip-content p:first-child {
        font-size: 0.8rem;
    }
    
    #location-screen .header h2 {
        font-size: 0.9rem;
    }
}
