:root {
    /* Палитра Ku Ramen */
    --bg-color: #050505;
    --card-bg: rgba(22, 22, 22, 0.85);
    --card-hover: rgba(40, 40, 40, 0.95);
    --accent-red: #e52e2e;
    --accent-red-hover: #ff3b3b;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --green-status: #34c759;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Обнуление */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    overflow-x: hidden;
    position: relative;
}

/* --- ФОН И ОВЕРЛЕЙ --- */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-ramen.webp'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    animation: backgroundMove 40s ease-in-out infinite alternate;
}

@keyframes backgroundMove {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1) translate(1%, 1%); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,1) 100%);
    z-index: -1;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* --- АНИМАЦИИ ПОЯВЛЕНИЯ --- */
.fade-in {
    animation: fadeInPage 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(25px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn, .social-card {
    opacity: 0;
    animation: fadeInElement 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInElement {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.links-group > *:nth-child(1) { animation-delay: 0.2s; }
.links-group > *:nth-child(2) { animation-delay: 0.35s; }
.links-group > *:nth-child(3) { animation-delay: 0.5s; }
.links-group > *:nth-child(4) { animation-delay: 0.65s; }
.links-group > *:nth-child(5) { animation-delay: 0.8s; }

.socials.single-social .social-card { animation-delay: 0.95s; }

/* --- ХЕДЕР --- */
.header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 15px 0 !important;
}

.top-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.top-lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.top-lang-btn.active, .top-lang-btn:hover {
    color: var(--accent-red);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

.site-logo-img {
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    display: block !important;
    margin: 12px auto !important;
    
    /* Увеличиваем только сам графический элемент внутри */
    transform: scale(2.2) !important;
    transform-origin: center center !important;
    
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

/* Статус-бейдж (Открыто/Закрыто) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.25);
    color: var(--green-status);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 8px;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-status);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--green-status);
    border-radius: 50%;
    animation: pulseDot 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(3); opacity: 0; }
}

.status-badge.closed {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.25);
    color: #ff3b30;
}

.status-badge.closed .status-dot,
.status-badge.closed .status-dot::after {
    background-color: #ff3b30;
}

/* --- КНОПКИ --- */
.links-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    outline: none;
    
    transition: 
        transform 0.25s cubic-bezier(0.33, 1, 0.68, 1), 
        background-color 0.25s ease, 
        box-shadow 0.25s ease,
        border-color 0.25s ease;
        
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform-style: preserve-3d;
}

.btn:hover {
    transform: translateY(-4px) scale(1.015) translateZ(10px);
}

.btn:active {
    transform: translateY(-1px) scale(0.99) translateZ(0);
    transition: transform 0.1s ease;
}

.btn-icon {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .btn-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Варианты кнопок */
.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 46, 46, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 6px 20px rgba(229, 46, 46, 0.5);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background-color: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- СОЦСЕТИ --- */
.socials.single-social {
    width: 100%;
    margin-top: 14px;
    display: block;
}

.socials.single-social .social-card {
    display: block;
    width: 100%;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.socials.single-social .social-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- ПОДВАЛ --- */
.footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.modal-header {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 16px;
    color: var(--accent-red);
    letter-spacing: 1px;
}

.modal-body {
    flex: 1;
    width: 100%;
    height: 100%;
}

.menu-gallery {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

.menu-gallery::-webkit-scrollbar {
    width: 4px;
}

.menu-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.menu-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- БЛОК ОТЗЫВОВ --- */
.reviews-section {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.reviews-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.reviews-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    padding: 14px 8px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.review-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.review-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.review-card.yandex:hover { border-color: rgba(252, 63, 29, 0.5); }
.review-card.google:hover { border-color: rgba(66, 133, 244, 0.5); }
.review-card.dgis:hover { border-color: rgba(107, 194, 73, 0.5); }

/* --- СТАРТОВЫЙ ЭКРАН ВЫБОРА ЯЗЫКА --- */
.lang-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lang-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.lang-modal {
    width: 100%;
    max-width: 340px;
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-modal .site-logo-img {
    max-width: 260px;
    margin-bottom: 12px;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lang-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin: 12px 0 24px 0;
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.lang-flag {
    font-size: 18px;
}

.hidden-content {
    opacity: 0;
    pointer-events: none;
}

.show-content {
    animation: fadeInPage 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: auto;
}

/* Убираем задержку отклика 300мс на смартфонах */
button, a {
    touch-action: manipulation;
}

/* Эффект яркого свечения красной главной кнопки */
.btn-primary {
    position: relative;
    box-shadow: 0 4px 15px rgba(229, 46, 46, 0.35);
}

.btn-primary:hover, .btn-primary:active {
    box-shadow: 0 0 25px rgba(229, 46, 46, 0.65), 0 0 50px rgba(229, 46, 46, 0.3);
}

/* Поддержка Safe Area для iPhone без рамки */
body {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* Стили рейтинговых бейджей */
.rating-badge {
    font-size: 10px;
    font-weight: 800;
    color: #ffc107; /* Золотой цвет звёзд */
    background: rgba(255, 193, 7, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* Подсветка отзывов фирменными цветами сервисов при наведении */
.review-card.yandex:hover { 
    border-color: rgba(252, 63, 29, 0.6); 
    box-shadow: 0 0 15px rgba(252, 63, 29, 0.2); 
}
.review-card.google:hover { 
    border-color: rgba(66, 133, 244, 0.6); 
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.2); 
}
.review-card.dgis:hover { 
    border-color: rgba(107, 194, 73, 0.6); 
    box-shadow: 0 0 15px rgba(107, 194, 73, 0.2); 
}


/* --- СТИЛИ СТАРТОВОГО ЭКРАНА ВЫБОРА ЯЗЫКА --- */
.lang-modal {
    width: 100%;
    max-width: 360px; /* Слегка расширили модалку, чтобы текст влезал */
    text-align: center;
    padding: 0 10px;
}

/* ФИКС ТЕКСТА ВЫБОРА ЯЗЫКА (ЗАПРЕТ ПЕРЕНОСА) */
.lang-subtitle {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.5px !important; /* Уменьшили разрядку, чтобы фраза полностью влезла */
    white-space: nowrap !important;   /* Жесткий запрет на перенос слова "ЯЗЫК" */
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 12px 0 20px 0 !important;
}

/* Расширяем контейнер модалки под ширину логотипа */
.lang-modal {
    width: 100% !important;
    max-width: 380px !important;
    padding: 0 10px !important;
}
}