/* =========================================
   ФИНАЛЬНЫЙ СТИЛЬ: BOKHTAR MONSTER (CRIMSON)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html, body { overflow-x: hidden; max-width: 100%; }

:root {
    --apple-black: #1D1D1F;
    --apple-grey: #86868B;
    --apple-bg: #FFFFFF;
    --apple-secondary-bg: #F5F5F7;
    
    /* Твой фирменный цвет: Кровавый Рубин */
    --cobalt-blue: #C9184A; 
    --cobalt-hover: #A0133B;
    
    --silver-gradient: linear-gradient(135deg, #a8a8a8 0%, #e2e2e2 50%, #a8a8a8 100%);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--apple-bg);
    color: var(--apple-black);
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* =========================================
   НАВИГАЦИЯ ДЕСКТОП
   ========================================= */
.nav-link {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* =========================================
   ШАПКА (LUXURY BLACK)
   ========================================= */
.apple-nav {
    background: rgba(29, 29, 31, 0.9);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo-glow { position: relative; }
@media (min-width: 768px) {
    .logo-glow::after {
        content: '';
        position: absolute;
        width: 40px;
        height: 40px;
        background: var(--cobalt-blue);
        filter: blur(35px);
        opacity: 0.4;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }
}

.monster-text {
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #86868B;
}
@media (min-width: 768px) {
    .monster-text { letter-spacing: 0.4em; }
}

.glass-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.live-dot {
    width: 6px; height: 6px;
    background-color: #34C759;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #34C759;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

#typedText { transition: all 0.4s ease; }

/* =========================================
   ГЛАВНЫЙ ЭКРАН И КНОПКИ
   ========================================= */
.hero-vibe {
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.cobalt-btn {
    background-color: var(--cobalt-blue);
    color: #FFFFFF;
    transition: all 0.2s ease;
}
.cobalt-btn:hover {
    background-color: var(--cobalt-hover);
    transform: scale(1.02);
}

/* =========================================
   3D СЧЕТЧИКИ
   ========================================= */
.convex-panel {
    background: linear-gradient(145deg, #ffffff, #f0f0f3);
    border-radius: 3rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.08),
        inset 0 3px 6px rgba(255, 255, 255, 1),
        inset 0 -5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.convex-panel:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.1),
        inset 0 3px 6px rgba(255, 255, 255, 1),
        inset 0 -5px 15px rgba(0, 0, 0, 0.03);
}

.divider-3d {
    width: 2px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0) 100%);
    position: relative;
}
.divider-3d::after {
    content: '';
    position: absolute;
    top: 0; left: 1px; width: 1px; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
}

/* =========================================
   КАТЕГОРИИ И VIP-КАРТОЧКИ
   ========================================= */
.category-card {
    background-color: var(--apple-bg);
    border: 1.5px solid rgba(0,0,0,0.10);
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--cobalt-blue);
    background-color: var(--apple-secondary-bg);
    transform: translateY(-3px);
}

.premium-card {
    background-color: var(--apple-bg);
    border-radius: 2.5rem;
    border: 1.5px solid rgba(0,0,0,0.10);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.premium-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.15);
}

.premium-image-wrap {
    aspect-ratio: 16/10;
    border-radius: 2.1rem;
    overflow: hidden;
    position: relative;
    margin: 0.5rem;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

/* =========================================
   МОДАЛЬНЫЕ ОКНА И АНИМАЦИИ
   ========================================= */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-animate {
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Скрытие скроллбара для горизонтальных лент (Видео и Средний класс) */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Ограничители текста */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Общий скроллбар для страницы */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #999; }
/* =========================================
   СКРОЛЛ-ПОЛОСЫ И HOVER ЭФФЕКТЫ
   ========================================= */
#legStrip::-webkit-scrollbar { display: none; }
#vibeStrip::-webkit-scrollbar { display: none; }
#cityStrip::-webkit-scrollbar { display: none; }
#videoStrip::-webkit-scrollbar { display: none; }

.legend-card:hover .legend-img { transform: scale(1.05); }

/* =========================================
   КНОПКИ СТРЕЛОК
   ========================================= */
.arrow-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.arrow-btn:hover {
    border-color: var(--cobalt-blue);
    color: var(--cobalt-blue);
}
.arrow-btn-lg {
    width: 36px; height: 36px;
}

/* =========================================
   ЛЕГЕНДЫ ГОРОДА
   ========================================= */
.legend-card {
    flex-shrink: 0;
    width: min(520px, 85vw);
    border-radius: 2.5rem;
    overflow: hidden;
    display: block;
    position: relative;
    scroll-snap-align: start;
    text-decoration: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    border: 1.5px solid rgba(0,0,0,0.06);
}
.legend-card:hover {
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}
.legend-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.legend-photo {
    position: relative;
    height: 320px;
    overflow: hidden;
}
.legend-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.legend-body {
    background: white;
    padding: 20px 24px 24px;
}
.legend-tags {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
.legend-tag {
    background: #F5F5F7;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    color: #1D1D1F;
}
.legend-desc {
    font-size: 13px; color: #86868B;
    margin: 10px 0 16px; line-height: 1.5;
}
.legend-actions {
    display: flex; gap: 10px; align-items: center;
}
.legend-cta {
    flex: 1; background: var(--cobalt-blue);
    color: white; padding: 13px; border-radius: 16px;
    font-size: 11px; font-weight: 900;
    text-align: center; text-transform: uppercase;
    letter-spacing: 0.12em; cursor: pointer;
    transition: background 0.2s;
    text-decoration: none; display: block;
}
.legend-cta:hover { background: var(--cobalt-hover); }
.legend-call {
    width: 46px; height: 46px; border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; text-decoration: none;
    transition: border-color 0.2s;
}
.legend-call:hover { border-color: var(--cobalt-blue); }
.legend-rating {
    position: absolute; bottom: 16px; left: 16px;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    border-radius: 10px; padding: 4px 10px;
    display: flex; align-items: center; gap: 4px;
}
.legend-open {
    position: absolute; top: 16px; right: 16px;
    background: rgba(52,199,89,0.15); backdrop-filter: blur(10px);
    border: 1px solid rgba(52,199,89,0.4);
    padding: 5px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
}
.legend-premium {
    position: absolute; top: 16px; left: 16px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    padding: 5px 14px; border-radius: 20px;
    font-size: 9px; font-weight: 900;
    letter-spacing: 0.2em; color: var(--cobalt-blue);
}

/* =========================================
   ВЕСЬ БОХТАР - скролл strip
   ========================================= */
#cityStrip {
    display: flex; overflow-x: auto;
    gap: 16px; padding-bottom: 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.city-card {
    flex-shrink: 0;
    width: calc(50% - 8px);
    max-width: 200px;
    background: white;
    border-radius: 1.5rem;
    border: 1.5px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}
.city-card:hover {
    border-color: var(--cobalt-blue);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.city-card:hover img { transform: scale(1.05); }
.city-card img { transition: transform 0.5s ease; }

/* =========================================
   NAV MAIN
   ========================================= */
#main-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(29,29,31,0.92);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
#main-nav .nav-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 60px; padding: 0 16px;
    box-sizing: border-box; width: 100%;
}
#main-nav .nav-logo {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0; text-decoration: none;
}
#main-nav .nav-logo img { height: 32px; width: auto; }
#main-nav .nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
#main-nav .nav-logo-title {
    font-size: 14px; font-weight: 900;
    letter-spacing: -0.02em; color: white; text-transform: uppercase;
}
#main-nav .nav-logo-sub {
    font-size: 7px; letter-spacing: 0.35em; color: #86868B;
    text-transform: uppercase; margin-top: 2px; font-weight: 300;
}
#main-nav .nav-center {
    display: none; flex: 1; justify-content: center; gap: 2px;
}
#main-nav .nav-right {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
#main-nav .nav-live {
    display: none; align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px 12px; border-radius: 10px;
}
#main-nav .nav-live span.nav-live-text {
    font-size: 10px; font-weight: 600; color: white;
    margin-left: 6px; white-space: nowrap;
}
#main-nav .nav-btn {
    padding: 7px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white; border-radius: 10px;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    white-space: nowrap; cursor: pointer; flex-shrink: 0;
}
#main-nav .nav-btn:hover { background: rgba(255,255,255,0.15); }
@media (min-width: 768px) {
    #main-nav .nav-inner { height: 80px; padding: 0 32px; }
    #main-nav .nav-logo img { height: 40px; }
    #main-nav .nav-logo-title { font-size: 18px; }
    #main-nav .nav-logo-sub { font-size: 8px; }
    #main-nav .nav-live { display: flex; }
    #main-nav .nav-btn { padding: 9px 18px; font-size: 11px; }
}
@media (min-width: 1024px) {
    #main-nav .nav-center { display: flex; }
}

.legend-strip {
    display: flex; overflow-x: auto; gap: 20px;
    scroll-behavior: smooth; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 8px;
}
.legend-open-text {
    font-size: 9px; font-weight: 800; color: #34C759;
    text-transform: uppercase; letter-spacing: 0.15em;
}
.legend-rating-wrap {
    position: absolute; bottom: 16px; left: 16px;
    display: flex; align-items: center; gap: 4px;
}
.legend-rating {
    background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    border-radius: 10px; padding: 4px 10px;
    display: flex; align-items: center; gap: 4px;
}
.legend-title {
    font-size: 22px; font-weight: 900;
    letter-spacing: -0.03em; margin: 0 0 4px;
    color: #1D1D1F;
}

/* =========================================
   ОТЗЫВЫ
   ========================================= */
.reviews-section {
    padding: 80px 20px;
    background: #F5F5F7;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.reviews-track-wrap {
    overflow: hidden;
    position: relative;
}
.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.review-slide {
    min-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}
.review-card {
    background: white;
    border-radius: 2rem;
    padding: 28px 28px 22px;
    border: 1.5px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}
.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.review-avatar-placeholder {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9184A, #ff6b9d);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: white;
    flex-shrink: 0;
}
.review-name {
    font-size: 14px; font-weight: 800;
    letter-spacing: -0.01em; color: #1D1D1F;
}
.review-place {
    font-size: 11px; color: #86868B; font-weight: 500; margin-top: 1px;
}
.review-text {
    font-size: 15px; line-height: 1.6;
    color: #1D1D1F; margin: 14px 0 18px;
    font-weight: 400;
}
.review-stars {
    display: flex; gap: 2px;
}
.review-like-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 20px; padding: 6px 14px;
    cursor: pointer; transition: all 0.2s;
    font-size: 12px; font-weight: 700; color: #86868B;
    position: relative; overflow: visible;
}
.review-like-btn:hover { border-color: #C9184A; color: #C9184A; }
.review-like-btn.liked { border-color: #C9184A; color: #C9184A; background: rgba(201,24,74,0.06); }
.review-like-btn .heart-icon { font-size: 15px; transition: transform 0.2s; }
.review-like-btn.liked .heart-icon { transform: scale(1.2); }

/* Floating hearts */
@keyframes floatHeart {
    0%   { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r)); }
    80%  { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-90px) scale(0.5) rotate(var(--r)); }
}
.float-heart {
    position: absolute;
    pointer-events: none;
    font-size: 18px;
    animation: floatHeart 0.9s ease-out forwards;
    z-index: 100;
}

/* Dots */
.review-dots { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.review-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(0,0,0,0.15); cursor: pointer;
    transition: all 0.3s;
}
.review-dot.active { width: 20px; border-radius: 3px; background: #C9184A; }

/* Write review form */
.review-form-wrap {
    max-width: 640px; margin: 32px auto 0;
    background: white; border-radius: 2rem;
    border: 1.5px solid rgba(0,0,0,0.07);
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.review-form-title {
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #86868B; margin-bottom: 14px;
}
.review-input-name {
    width: 100%; border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 14px; padding: 11px 16px;
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.2s;
    box-sizing: border-box; margin-bottom: 10px;
    color: #1D1D1F;
}
.review-input-name:focus { border-color: #C9184A; }
.review-textarea {
    width: 100%; border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 14px; padding: 11px 16px;
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.2s;
    box-sizing: border-box; resize: none; height: 90px;
    color: #1D1D1F; line-height: 1.5;
}
.review-textarea:focus { border-color: #C9184A; }
.review-submit {
    width: 100%; background: #C9184A; color: white;
    border: none; border-radius: 14px; padding: 13px;
    font-size: 12px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.12em;
    cursor: pointer; margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}
.review-submit:hover { background: #A0133B; }
.review-submit:active { transform: scale(0.98); }

/* Star selector */
.star-selector { display: flex; gap: 4px; margin-bottom: 10px; }
.star-selector span {
    font-size: 22px; cursor: pointer;
    transition: transform 0.15s;
    filter: grayscale(1); opacity: 0.3;
}
.star-selector span.on { filter: grayscale(0); opacity: 1; }
.star-selector span:hover { transform: scale(1.2); }