/* === ГЛОБАЛЬНЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #141414;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #141414;
}

/* WebGL: скрыт в 2D (лендинг / каталог с лендинга), см. main.js */
canvas.scene-canvas--hidden-2d {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* === 3D SCENE CONTAINER (first screen) === */
.scene-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: block;
    overflow: hidden;
    background-color: #141414;
    z-index: 0;
    margin: 0;
    margin-bottom: 0;
    padding: 0;
}

.scene-container canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    vertical-align: bottom;
    outline: none;
}

/* === ЗАГРУЗЧИК === */
#loading-overlay {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    height: 100dvh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
}

/* Инлайн-загрузчик 3D внутри #three-container (показывается только по клику) */
.scene-loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: min(340px, 92vw);
    padding: 16px;
}

.loader-logo {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.loader-logo-white,
.loader-logo-gold {
    margin-left: 0;
    margin-right: 0;
    letter-spacing: 0;
    word-spacing: 0;
}

.loader-logo-white {
    color: rgba(255, 255, 255, 0.95);
}

.loader-logo-gold {
    color: #d4af37;
    font-weight: 600;
}

.loader-content > p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 500;
}

.progress-bar {
    width: min(220px, 80vw);
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 12px;
    border-radius: 2px;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #b8860b, #d4af37);
    transition: width 0.3s;
}

/* === ШАПКА И НАВИГАЦИЯ === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.city-selector {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.city-selector-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
}

.city-autocomplete-wrap {
    position: relative;
    width: 100%;
}

.city-autocomplete-wrap--header {
    width: auto;
    min-width: 130px;
}

.city-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a1a26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.city-autocomplete-list.open {
    display: block;
}

.city-autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #e8e8ee;
    transition: background 0.15s;
}

.city-autocomplete-list li:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.city-autocomplete-list li.city-all-option {
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
}

.city-autocomplete-list--header {
    min-width: 180px;
    left: auto;
    right: 0;
}

.header-city-autocomplete-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 130px;
    outline: none;
    cursor: text;
    transition: border-color 0.2s;
}

.header-city-autocomplete-input:focus {
    border-color: rgba(212, 175, 55, 0.5);
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    color: #333;
}

.logo #header-logo {
    display: block;
    height: 34px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: #888;
    font-weight: 400;
}

.room-nav-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
}

.room-nav {
    display: flex;
    gap: 10px;
    background: white !important;
    padding: 8px 25px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto;
    align-items: center !important;
}

.room-nav a,
.room-nav button {
    color: #333 !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: color 0.2s ease !important;
}

/* === 3D-тур: золото ТОЛЬКО на внутренней "таблетке" меню комнат === */
#three-container .room-nav {
    background: linear-gradient(135deg, #EAD6A8 0%, #D4AF37 100%) !important;
    color: #000000 !important;
}

/* Родительские контейнеры меню не заливаем (чтобы логотип не сливался) */
#three-container .room-nav-floating,
#three-container .room-nav-wrap {
    background: transparent !important;
}

/* Шапка/фон сцены не золотые */
#three-container .header {
    background: transparent !important;
}

#three-container .room-nav a,
#three-container .room-nav button,
#three-container .back-to-main-btn,
#three-container .back-to-main-btn-header {
    color: #000000 !important; /* Строго чёрный текст на золоте */
    text-shadow: none !important;
    background: transparent !important;
}

/* 3D-тур: кнопка «← На главную» в верхнем ряду — премиальная тёмная */
#three-container .back-to-main-btn-header {
    background: rgba(26, 26, 26, 0.8) !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

/* Убираем любые "полупрозрачные белые" фоны на ссылках внутри плашки */
#three-container .room-nav a,
#three-container .room-nav button {
    background: transparent !important;
    box-shadow: none !important;
}

#three-container .room-nav a:hover,
#three-container .room-nav button:hover,
#three-container .back-to-main-btn:hover {
    color: #000000 !important;
}

/* Делаем названия комнат более четкими и жирными (Semibold) safe */
.room-nav a,
.room-nav-floating a,
.rooms-list-links a {
    font-weight: 600 !important; /* Увеличиваем жирность safe */
    letter-spacing: 0.3px !important; /* Немного раздвинем буквы для чистоты safe */
}

.room-nav a:hover,
.room-nav button:hover {
    color: #000 !important;
}

/* «← На главную» — золотистая/акцентная */
.room-nav a.back-to-main-btn,
.room-nav #back-to-main-btn.back-to-main-btn {
    color: #d4af37 !important;
    font-weight: 600 !important;
}

.contact-btn {
    padding: 10px 22px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-left: auto;
}

.header-order-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background: #1a1a1a;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: 0.25s ease;
}

.header-order-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.75);
}

@media (max-width: 768px) {
    .header-order-btn {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 11px;
        z-index: 1001;
    }
}

.back-to-main-btn {
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    transition: 0.3s;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: #d4af37;
}

.back-to-main-btn:hover {
    color: #fff;
}

/* Кнопка «На главную» в верхнем ряду — только на мобилке (см. @media 768px); на ПК скрыта */
.back-to-main-btn-header {
    display: none;
}

/* === ПОДСКАЗКА ВНИЗУ === */
.hint-block {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    padding: 16px 35px;
    border-radius: 50px;
    border: 2px solid #ffffff;
    z-index: 9999;
    text-align: center;
    width: max-content;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
}

.scroll-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(212, 175, 55, 0.95);
    z-index: 9999;
    pointer-events: auto;
    animation: scrollArrowPulse 2s ease-in-out infinite;
}

.scroll-arrow-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.scroll-arrow-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-arrow-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 11px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(212, 175, 55, 0.95);
    border-bottom: 2px solid rgba(212, 175, 55, 0.95);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollArrowPulse {
    0%,
    100% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(8px);
        filter: brightness(1.12);
    }
}

/* === MAIN CONTENT SECTIONS === */
.content-section {
    padding: 100px 0;
    background: radial-gradient(circle, #1a1a1d 0%, #0a0a0c 100%);
    color: rgba(255, 255, 255, 0.92);
}

.section-inner {
    width: min(1060px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

.section-heading {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.95);
    letter-spacing: 0.3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    padding: 14px 14px 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-preview-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
}

.service-preview-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(155, 164, 181, 0.95);
}

/* Мастер-блок: текст | фото | текст на ПК, колонка на мобилке */
.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.about-text {
    flex: 1;
    color: rgba(232, 232, 238, 0.78);
    font-size: 14px;
    line-height: 1.55;
    min-width: 0;
}

.about-text--right {
    text-align: right;
}

.about-photo {
    flex: 0 0 auto;
    width: 260px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(0, 0, 0, 0) 100%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: block;
}

.muted-inline {
    color: rgba(232, 232, 238, 0.75);
    font-size: 14px;
    line-height: 1.45;
}

.hint-block p {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.hint-block strong {
    color: #ffd700;
    text-transform: uppercase;
    font-weight: 700;
}

/* === СТРАНИЦА КАТЕГОРИИ (ФОН) === */
#category-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, #1a1a1d 0%, #0a0a0c 100%);
    backdrop-filter: blur(25px);
    color: #e0e0e0;
    z-index: 2000;
    overflow-y: auto;
    padding: 60px 10%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#category-page.hidden-page {
    transform: translateY(100%);
}

.back-btn {
    background: rgba(255, 255, 255, 0.03);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    transition: 0.3s;
}

#category-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

#category-desc {
    color: #8892b0;
    font-size: 16px;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* === КАРТОЧКИ УСЛУГ (ПРОЗРАЧНЫЙ ЛЮКС) === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03) !important;
    /* Прозрачный фон */
    backdrop-filter: blur(12px);
    /* Размытие заднего фона (эффект стекла) */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Еле заметная белая рамка */
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    /* При наведении рамка чуть золотеет */
}

.top-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.20) 0%, rgba(255, 255, 255, 0.03) 35%, rgba(0, 0, 0, 0) 100%) !important;
    border: 4px solid rgba(212, 175, 55, 0.9) !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 0 28px rgba(212, 175, 55, 0.30), 0 22px 70px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    /* Задаем плавное переливание только для premium */
    position: relative;
}

.top-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(115deg,
            rgba(212, 175, 55, 0) 0%,
            rgba(212, 175, 55, 0.18) 35%,
            rgba(255, 255, 255, 0.10) 50%,
            rgba(212, 175, 55, 0.18) 65%,
            rgba(212, 175, 55, 0) 100%);
    background-size: 200% 200%;
    opacity: 0.95;
    animation: premiumShimmer 2.8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.top-card > * {
    position: relative;
    z-index: 1;
}

.service-card.top-card:hover {
    border-color: rgba(255, 215, 100, 0.98) !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.30),
        0 0 40px rgba(212, 175, 55, 0.35),
        0 18px 55px rgba(0, 0, 0, 0.45);
    transform: translateY(-7px);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d4af37;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff !important;
    /* Белый заголовок */
    font-weight: 800;
    padding-right: 90px;
}

.service-card p {
    font-size: 14px;
    color: #9ba4b5 !important;
    /* Светло-серый текст для описания */
    margin-bottom: 24px;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Прозрачная линия-разделитель */
    padding-top: 16px;
}

.price {
    font-weight: 700;
    color: #ffffff !important;
    /* Белая цена */
    font-size: 16px;
}

.phone-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    /* Прозрачная кнопка */
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.phone-btn:hover {
    background: #d4af37 !important;
    color: #111 !important;
    border-color: #d4af37;
}

/* --- Стили для кнопки звонка (теперь это ссылка) --- */
.call-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important; /* Убираем синее подчеркивание safe */
    color: #ffffff !important; /* Делаем текст белым, а не синим safe */
    background: rgba(255, 255, 255, 0.05) !important; /* Темный фон кнопки safe */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important; /* Скругление safe */
    padding: 8px 16px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.call-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Переопределяем цвет текста внутри кнопки safe */
.call-btn .btn-text {
    color: #ffffff !important;
}

/* --- Стиль для показанного номера телефона (JS подменяет контент) --- */
.revealed-phone {
    color: #D4AF37 !important; /* Сделаем раскрытый номер золотым для акцента safe */
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ (ДЛЯ ТЕЛЕФОНОВ) === */
@media (max-width: 768px) {
    .scene-container {
        height: 100dvh;
    }

    /* Плашка: поднята внутрь сцены слева */
    #hint-overlay.hint-block {
        position: absolute;
        bottom: 50px;
        left: 5%;
        right: auto;
        transform: none;
        width: 60%;
        max-width: none;
        margin: 0;
        padding: 12px;
        border-radius: 16px;
        font-size: 11px;
        text-align: left;
    }

    #hint-overlay.hint-block p {
        font-size: 11px;
        line-height: 1.35;
    }

    /* Стрелка: справа, на одном уровне с плашкой */
    .scroll-arrow {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        left: auto;
        right: 10px;
        bottom: 50px;
        transform: none;
        margin: 0;
    }

    .scroll-arrow-label {
        display: block;
        font-size: 9px;
        text-align: center;
        margin: 0;
        line-height: 1.2;
        max-width: 60px;
        word-wrap: break-word;
        white-space: normal;
    }
    #scene-loader .loader-logo {
        font-size: 18px;
        letter-spacing: 0;
        margin-bottom: 14px;
    }

    #scene-loader .loader-logo-white,
    #scene-loader .loader-logo-gold {
        letter-spacing: 0;
        margin-left: 0;
        margin-right: 0;
    }

    #scene-loader .loader-content > p {
        font-size: 11px;
    }

    #scene-loader .progress-bar {
        height: 2px;
    }

    .header {
        position: relative;
        padding: 8px 10px 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        text-align: left;
        background: rgba(255, 255, 255, 0.97);
        height: auto;
        min-height: 0;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    /* Верх: логотип слева, «На главную» справа (город в шапке скрыт) */
    .header-top-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
        min-height: 0;
    }

    .header-top-row .city-selector {
        display: none !important;
    }

    .back-to-main-btn-header {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin: 0;
        padding: 8px 16px;
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #D4AF37;
        background: rgba(26, 26, 26, 0.8);
        border: 1px solid rgba(212, 175, 55, 0.5);
        border-radius: 20px;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .back-to-main-btn-header:active {
        background: rgba(212, 175, 55, 0.1);
    }

    .header-top-row .logo {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 132px);
    }

    .logo #header-logo {
        display: block;
        height: auto;
        max-height: 27px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    /* «На главную» только в верхнем ряду; в свайп-ленте скрыта */
    .room-nav #back-to-main-btn {
        display: none !important;
    }

    /* Низ: свайп-лента комнат — без лишнего зазора слева (ровно с логотипом по линии шапки) */
    .room-nav-wrap.room-nav-row {
        position: relative;
        width: 100%;
        max-width: 100%;
        flex: none;
        margin: 0;
        margin-left: 0;
        padding-left: 0;
        justify-content: flex-start;
    }

    .room-nav-wrap::after {
        content: none !important; /* Убираем белое "затухание" справа */
        background: none !important;
        box-shadow: none !important;
    }

    .room-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
        padding: 6px 18px 6px 0;
        margin: 0;
        margin-left: 0;
        border-radius: 12px;
        max-width: 100%;
    }

    .room-nav button:first-child {
        margin-left: 0;
    }

    .room-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .room-nav button {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 13px;
    }

    .hint-block {
        width: 90%;
        padding: 12px 15px;
        bottom: 15px;
    }

    /* 2D-лендинг: боковые поля у контента, не у скролл-контейнера */
    .landing-inner {
        padding: 0 16px 28px;
    }

    .landing-services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Страница категории: полноэкранно, без просветов 3D по краям */
    #category-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        transform: none;
        border-radius: 0;
        overflow-y: auto;
        z-index: 1000;
        background: #0a0a0c;
        padding: 20px 15px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #category-title {
        font-size: 28px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
/* === ИСПРАВЛЕНИЕ ОТСТУПОВ (ДОБАВЛЯЕМ ВОЗДУХ) === */

/* Даем пространство вокруг заголовков перед карточками */
.page-content h3,
.page-content h5.section-title {
    font-size: 18px;
    color: #ffffff;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Шапка категории: 1) заголовок → 2) баннер → 3) описание (колонка) */
#category-page .category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

#category-page .category-header #category-title {
    margin-bottom: 0;
}

#category-page .category-header #category-desc {
    margin-top: 0;
    margin-bottom: 0;
    color: #9ba4b5;
    font-size: 15px;
    line-height: 1.8;
    max-width: 800px;
}

#category-page .category-banner-slot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 450px;
}

#category-page .category-banner-slot .banner-card {
    width: 100%;
    max-width: 450px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

#category-page .category-banner-slot .banner-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    #category-page .category-banner-slot,
    #category-page .category-banner-slot .banner-card {
        max-width: 100%;
    }
}

/* Улучшаем читаемость главного описания (вне интро-флекса, если используется отдельно) */
#category-desc {
    color: #9ba4b5;
    font-size: 15px;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Делаем баннер Светланы более аккуратным */
#category-desc img {
    max-width: 450px !important;
    /* Ограничиваем ширину, чтобы не был гигантским */
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Добавляем красивую тень */
    margin-bottom: 20px !important;
}

/* Чуть увеличиваем отступ внутри самих карточек */
.service-card p {
    line-height: 1.6 !important;
}
/* Золотой бейджик для тарифа PREMIUM */
.card-badge.vip {
    background: linear-gradient(180deg, #ffe58a 0%, #d4af37 45%, #b7861e 100%) !important;
    color: #111 !important;
    box-shadow: 0 0 0 1px rgba(255, 220, 120, 0.40), 0 0 18px rgba(212, 175, 55, 0.55);
    font-size: 13px;
    padding: 6px 12px;
    animation: premiumBadgePulse 1.8s ease-in-out infinite;
}
/* Золотые звездочки для PREMIUM и ТОП */
.price.gold-stars {
    color: #d4af37 !important;
    font-size: 20px;
    letter-spacing: 2px;
}

/* Отступы для новых рядов */
.mt-40 {
    margin-top: 40px;
}

.section-title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

/* === BLOG SECTION === */
.blog-section {
    width: 100%;
    margin-top: 0;
    padding: 56px 24px 70px;
    background: radial-gradient(circle, #1a1a1d 0%, #0a0a0c 100%);
    color: rgba(255, 255, 255, 0.92);
}

#blog-preview {
    margin-top: 0 !important;
}

/* === SERVICES OVERLAY === */
body.services-overlay-open {
    overflow: hidden !important;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 7200;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.overlay-content {
    position: relative;
    width: min(1040px, 92vw);
    max-height: min(86dvh, 860px);
    overflow: auto;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    padding: 22px 18px 18px;
    color: rgba(255, 255, 255, 0.92);
}

.close-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(212, 175, 55, 0.95);
    cursor: pointer;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    transition: 0.2s ease;
}

.close-overlay:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.75);
}

.overlay-content.article-content {
    width: min(800px, 92vw);
    text-align: left;
}

.overlay-content.form-content {
    width: min(520px, 92vw);
    text-align: left;
}

.admin-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    margin-top: 10px;
}

.admin-input:focus {
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.submit-btn {
    border: 1px solid rgba(212, 175, 55, 0.75);
    background: rgba(212, 175, 55, 0.95);
    color: #111;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

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

#toast-container {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
    width: min(92vw, 720px);
}

.toast {
    pointer-events: auto;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
    font-weight: 700;
    text-align: center;
}

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

.toast.toast--hide {
    opacity: 0;
    transform: translateY(8px);
}

/* Полноэкранная стеклянная панель снизу safe */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important; /* Прижимаем вплотную к низу safe */
    left: 0 !important;
    transform: none !important; /* Убираем центрирование через transform safe */
    width: 100% !important;
    max-width: none !important; /* Снимаем ограничения ширины safe */
    border-radius: 0 !important; /* Убираем скругления - делаем строгий прямоугольник safe */
    padding: 15px 20px !important;
    z-index: 999999 !important; /* Делаем его абсолютно самым верхним safe */
    pointer-events: auto !important; /* Принудительно разрешаем клики safe */

    /* Оставляем эффект премиального стекла safe */
    background: rgba(18, 18, 18, 0.9) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.4) !important; /* Оставляем только верхнюю золотую линию safe */
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5) !important; /* Тень направляем вверх safe */
    transition: opacity 0.3s ease, transform 0.3s ease !important;

    display: flex !important;
    box-sizing: border-box !important;
}

/* Скрытое состояние safe */
.cookie-banner.hidden {
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
}

/* Внутренний макет safe */
.cookie-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1200px !important; /* Ограничитель ширины для ПК safe */
    margin: 0 auto !important; /* Центрируем контент safe */
    gap: 20px !important;
    width: 100% !important;
}

/* Текст safe */
.cookie-content p {
    color: white !important;
    font-size: 13px !important;
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Стиль для ссылки на политику внутри куки-баннера safe */
.cookie-policy-link {
    color: #D4AF37 !important; /* Наш фирменный золотой safe */
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    transition: color 0.2s ease !important;
}

.cookie-policy-link:hover {
    color: #FFF !important; /* При наведении становится белой safe */
}

/* ЗОЛОТАЯ КНОПКА в стиле "На главную" safe */
#accept-cookies {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    color: #121212 !important;
    border: none !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* На мобильных устройствах текст чуть меньше для компактности safe */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column !important; /* Текст сверху, кнопка снизу safe */
        text-align: center !important;
        gap: 12px !important;
    }
    .cookie-content p {
        text-align: center !important;
    }
    #accept-cookies {
        width: 100% !important; /* Кнопка на всю ширину на мобилке safe */
    }
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.master-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.master-name {
    font-weight: 900;
    font-size: 16px;
    margin: 0 0 6px;
}

.master-specialty {
    color: rgba(232, 232, 238, 0.75);
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.master-contacts {
    font-size: 13px;
    margin: 0 0 8px;
}

.master-contact {
    color: rgba(212, 175, 55, 0.95);
    text-decoration: none;
    font-weight: 800;
}

.master-contact:hover {
    text-decoration: underline;
}

.master-status {
    color: rgba(232, 232, 238, 0.6);
    font-size: 12px;
    font-weight: 800;
}

.top-master {
    border: 2px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    position: relative;
}

.top-master::after {
    content: "ТОП";
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.12);
    color: rgba(212, 175, 55, 0.95);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.services-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
}

.services-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.services-overlay-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1040px, 92vw);
    max-height: min(86dvh, 860px);
    overflow: auto;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    padding: 18px 16px 16px;
    color: rgba(255, 255, 255, 0.92);
}

.services-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(212, 175, 55, 0.95);
    cursor: pointer;
    font-weight: 900;
    transition: 0.2s ease;
}

.services-close-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.75);
}

.services-overlay-title {
    margin: 4px 0 14px;
    padding-right: 52px;
    font-size: 24px;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.95);
    letter-spacing: 0.3px;
}

.services-overlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.services-overlay-grid .service-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.services-overlay-grid .service-card:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.services-overlay-grid .service-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.services-overlay-grid .service-card p {
    margin: 0 0 12px;
    color: rgba(155, 164, 181, 0.95);
    font-size: 13px;
    line-height: 1.35;
}

.services-overlay-grid .card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-overlay-grid .price {
    font-weight: 900;
    color: rgba(212, 175, 55, 0.95) !important;
    font-size: 14px;
}

.service-order-btn {
    border: 1px solid rgba(212, 175, 55, 0.75);
    background: transparent;
    color: rgba(212, 175, 55, 0.95);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.service-order-btn:hover {
    background: rgba(212, 175, 55, 0.95);
    color: #111;
}

@media (max-width: 768px) {
    .blog-section {
        margin-top: 0;
        padding: 42px 16px 56px;
    }

    .overlay-content.article-content {
        width: 92vw;
        max-height: 90dvh;
        border-radius: 16px;
        padding: 18px 14px 14px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .services-overlay-card {
        width: 92vw;
        max-height: 90dvh;
        border-radius: 16px;
    }

    .services-overlay-grid {
        grid-template-columns: 1fr;
    }
}

.blog-inner {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.blog-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: rgba(212, 175, 55, 0.95);
    margin: 0 0 8px;
}

.blog-subtitle {
    margin: 0 0 18px;
    color: rgba(232, 232, 238, 0.75);
    font-size: 14px;
    line-height: 1.45;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 18px;
    padding: 14px 14px 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(0, 0, 0, 0) 100%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.blog-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.blog-card-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(155, 164, 181, 0.95);
    line-height: 1.35;
}

.blog-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.blog-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #111;
    background: linear-gradient(135deg, #ffe58a 0%, #d4af37 100%);
    border-radius: 8px;
    padding: 3px 9px;
    align-self: flex-start;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.blog-read-btn {
    padding: 10px 14px;
}

.blog-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.blog-load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.04) 60%, rgba(0, 0, 0, 0) 100%);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 36px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-load-more-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.9);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(255, 255, 255, 0.06) 60%, rgba(0, 0, 0, 0) 100%);
}

.blog-load-more-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* === FOOTER === */
.site-footer {
    background: #141414;
    color: rgba(255, 255, 255, 0.86);
    padding: 46px 24px 18px;
}

.footer-inner {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
    font-size: 14px;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.95);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: rgba(212, 175, 55, 0.95);
}

.footer-btn-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    text-align: left;
}

.footer-btn-link:hover {
    color: rgba(212, 175, 55, 0.95);
}

.forum-message {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
}

.forum-message-head {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.forum-message-name {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
}

.forum-message-date {
    font-size: 12px;
    color: rgba(232, 232, 238, 0.65);
    font-weight: 700;
}

.forum-message-text {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.footer-social {
    gap: 10px;
}

.footer-bottom {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(232, 232, 238, 0.62);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about-photo {
        width: 100%;
        max-width: 320px;
        order: -1;
    }

    .about-text,
    .about-text--right {
        width: 100%;
        text-align: center;
    }

    .section-inner {
        padding: 0 16px;
    }

    .content-section {
        padding: 70px 0;
    }

    .blog-section {
        margin-top: 80px;
        padding: 42px 16px 56px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 38px 16px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* === LEAD MODAL (заказ проекта) === */
#lead-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: default;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#lead-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lead-modal-card {
    width: min(560px, 100%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 26px 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    transform: scale(0.99);
    transition: transform 0.25s ease;
    position: relative;
    color: #eaeaf2;
    text-align: center;
    cursor: default;
}

#lead-modal.open .lead-modal-card {
    transform: scale(1);
}

.lead-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(212, 175, 55, 0.95);
    cursor: pointer;
    font-weight: 900;
    transition: 0.2s ease;
}

.lead-close-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.75);
}

.lead-modal-card h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #ffffff;
}

.lead-modal-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(232, 232, 238, 0.9);
    margin-bottom: 18px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.35);
    outline: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.lead-submit-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.2px;
    transition: 0.25s ease;
}

.lead-submit-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.95);
    box-shadow: 0 18px 55px rgba(212, 175, 55, 0.18);
}

@media (max-width: 768px) {
    #lead-modal {
        padding: 12px;
    }

    .lead-modal-card {
        width: 90%;
        max-width: 90vw;
    }

    .lead-modal-card h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .lead-modal-subtitle {
        font-size: 12px;
        line-height: 1.45;
    }
}

@keyframes premiumShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes premiumBadgePulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        filter: brightness(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-card::before,
    .card-badge.vip {
        animation: none !important;
    }

    #main-landing {
        scroll-behavior: auto;
    }

    .scroll-down-indicator {
        animation: none !important;
    }
}

/* === MAIN LANDING (2D поверх 3D) === */
#main-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 3000;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(circle, #1a1a1d 0%, #0a0a0c 100%);
    background-color: #0a0a0c;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #e8e8ee;
    opacity: 1;
    pointer-events: auto;
    cursor: default;
    box-sizing: border-box;
}

.landing-inner {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 0 24px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

/* Десктоп: классический лендинг — услуги сразу под блоком комнат, без полноэкранного hero */
.landing-hero {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 0;
}

.landing-hero-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
}

.scroll-down-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.scroll-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.95);
    opacity: 0.8;
    line-height: 1.2;
}

#landing-logo {
    width: min(360px, 78vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.55));
}

/* Лендинг, ПК: шапка на всю ширину блока, лого слева (padding 40px), меню справа за счёт margin-right: auto у лого */
@media (min-width: 1024px) {
    .landing-hero {
        align-items: stretch;
        /* Разворачиваем на полную ширину .landing-inner (с компенсацией его горизонтальных padding) */
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
        max-width: none !important;
        box-sizing: border-box;
    }

    .landing-hero-main {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 40px;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start !important;
        align-items: center;
        align-content: flex-start;
        column-gap: 30px;
        row-gap: 22px;
    }

    #landing-logo {
        order: 1;
        flex: 0 1 auto;
        align-self: center;
        margin-left: 0 !important;
        margin-right: auto !important;
        padding-left: 0;
        width: min(360px, 42%);
        max-width: 360px;
    }

    .mobile-burger-btn {
        order: 2;
    }

    .desktop-top-nav {
        order: 3;
        position: static;
        top: auto;
        right: auto;
        flex: 0 1 auto;
        align-self: center;
        margin: 0;
        padding-right: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .landing-city {
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        max-width: min(980px, 100%);
        margin-left: auto;
        margin-right: auto;
        justify-self: unset;
    }

    .portal-description {
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        max-width: min(980px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .landing-room-choices {
        order: 11;
        flex: 1 1 100%;
        width: 100%;
        max-width: min(980px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
}

.landing-city {
    width: min(520px, 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-display {
    text-align: left;
    font-size: 14px;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.95);
    letter-spacing: 0.2px;
    min-height: 20px;
}

.portal-description {
    width: min(620px, 100%);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.portal-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(232, 232, 238, 0.78);
}

.portal-description strong {
    color: #d4af37;
    font-weight: 600;
}

.portal-description__lead {
    font-size: 15px;
    font-weight: 600;
    color: rgba(232, 232, 238, 0.95);
}

.portal-description__tagline {
    font-size: 13px;
    font-weight: 700;
    color: rgba(232, 232, 238, 0.78);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 10px;
    margin-top: 2px;
}

.portal-description__brand {
    color: #d4af37;
}

.landing-city label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(232, 232, 238, 0.9);
    letter-spacing: 0.3px;
}

.city-autocomplete-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #ffffff;
    outline: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: text;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.city-autocomplete-input:focus {
    border-color: rgba(212, 175, 55, 0.7);
}

.city-autocomplete-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.landing-room-choices {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.landing-choice {
    min-width: 260px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600 !important; /* унификация толщины шрифта */
}

.landing-choice:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
}

.landing-choice.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 1) 0%, rgba(159, 125, 0, 1) 100%);
    border-color: rgba(212, 175, 55, 0.7);
    color: #111;
    box-shadow: 0 18px 55px rgba(212, 175, 55, 0.22);
    font-weight: 600 !important; /* не меняем толщину в active */
}

.landing-choice.active:hover {
    transform: translateY(-4px);
}

.landing-choice.disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.choice-title {
    font-weight: 600 !important;
    font-size: 18px;
}

.choice-soon {
    font-weight: 600 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    /* Двухэкранный лендинг только на мобилке */
    .landing-hero {
        position: relative;
        min-height: 100dvh;
        padding: 8px 0 52px;
    }

    .landing-hero-main {
        flex: 1;
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .scroll-down-indicator {
        display: flex;
        animation: landingIndicatorBounce 2s ease-in-out infinite;
    }

    #landing-logo {
        width: min(150px, 42vw);
        min-width: 0;
        flex-shrink: 0;
    }

    .landing-city {
        width: 100%;
    }

    .portal-description {
        width: 100%;
        padding: 16px 14px;
        border-radius: 14px;
    }

    .portal-description p {
        font-size: 13px;
    }

    .portal-description__lead {
        font-size: 14px;
    }

    .landing-room-choices {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .landing-choice {
        min-width: 0;
        width: 100%;
    }

    .landing-services {
        margin-top: 20px;
        padding-bottom: 28px;
    }
}

/* === Landing services list === */
.landing-services {
    width: min(980px, 100%);
    margin: 10px auto 0;
    padding-bottom: 40px;
}

.landing-services-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
}

.landing-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
}

.landing-service-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 16px 16px 14px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 18px 50px rgba(212, 175, 55, 0.14);
}

.landing-service-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.landing-service-card p {
    color: rgba(155, 164, 181, 0.95);
    font-size: 13px;
    line-height: 1.35;
    min-height: 34px;
}

.landing-service-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

/* === Карточки услуг с главной (Firestore services_list): категория × тариф === */
.landing-services-published {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.landing-category-published {
    padding: 28px 0 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.landing-category-published:first-child {
    border-top: none;
    padding-top: 12px;
}

.landing-category-published__title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.35px;
    color: rgba(255, 255, 255, 0.96);
    margin: 0 0 20px;
    line-height: 1.2;
}

.landing-category-published__tiers {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.landing-tier-wrap[hidden] {
    display: none !important;
}

.landing-tier-title {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.3px;
    margin: 0 0 12px;
    line-height: 1.25;
}

.landing-tier-title--premium {
    color: #ead6a8;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

.landing-tier-title--top {
    color: rgba(255, 255, 255, 0.94);
}

.landing-tier-title--ordinary {
    color: rgba(232, 232, 238, 0.72);
    font-weight: 800;
}

.landing-tier-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}

.landing-tier-grid--premium {
    grid-template-columns: 1fr;
}

.landing-tier-grid--top,
.landing-tier-grid--ordinary {
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .landing-tier-grid--top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-tier-grid--ordinary:not(.landing-tier-grid--list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Обычные тарифы — компактный список внутри категории */
.landing-tier-grid--list {
    display: block;
}

.landing-ordinary-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.landing-ordinary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.landing-ordinary-row:last-child {
    border-bottom: none;
}

.landing-ordinary-row__main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.landing-ordinary-row__title {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.25;
}

.landing-ordinary-row__desc {
    font-size: 13px;
    font-weight: 500;
    color: rgba(155, 164, 181, 0.96);
    line-height: 1.35;
}

.landing-ordinary-row__action {
    flex-shrink: 0;
    align-self: center;
}

.landing-ordinary-row__action .call-btn {
    padding: 7px 12px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .landing-ordinary-row {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-ordinary-row__action {
        align-self: flex-end;
    }
}

.landing-promo-card {
    position: relative;
    border-radius: 20px;
    padding: 18px 18px 16px;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
}

.landing-promo-card__title {
    margin: 0 0 10px;
    line-height: 1.25;
}

.landing-promo-card__desc {
    margin: 0;
    line-height: 1.45;
}

.landing-promo-card__footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

/* Premium — золото, свечение, плашка PREMIUM */
.landing-promo-card--premium {
    background: linear-gradient(155deg, rgba(212, 175, 55, 0.16) 0%, rgba(22, 22, 26, 0.96) 40%, rgba(6, 6, 8, 0.99) 100%);
    border: 2px solid rgba(212, 175, 55, 0.88);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.28),
        0 0 44px rgba(212, 175, 55, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 56px rgba(0, 0, 0, 0.52);
    padding-top: 52px;
}

.landing-promo-card--premium .landing-promo-card__title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.landing-promo-card--premium .landing-promo-card__desc {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* TOP — темнее и скромнее премиума */
.landing-promo-card--top {
    background: rgba(30, 30, 36, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
    padding-top: 50px;
}

.landing-promo-card--top .landing-promo-card__title {
    font-size: 1.08rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.96);
}

.landing-promo-card--top .landing-promo-card__desc {
    font-size: 14px;
    font-weight: 600;
    color: rgba(200, 206, 220, 0.92);
}

/* Ordinary — лаконично, без лишнего */
.landing-promo-card--ordinary {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: none;
}

.landing-promo-card--ordinary .landing-promo-card__title {
    font-size: 0.98rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
}

.landing-promo-card--ordinary .landing-promo-card__desc {
    font-size: 13px;
    font-weight: 500;
    color: rgba(155, 164, 181, 0.95);
}

.landing-promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 7px 11px;
    border-radius: 10px;
    line-height: 1;
    pointer-events: none;
}

.landing-promo-badge--premium {
    color: #121212;
    background: linear-gradient(135deg, #ead6a8 0%, #d4af37 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.landing-promo-badge--top {
    color: #d4af37;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.5);
    letter-spacing: 0.06em;
}

.btn-3d {
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(255, 255, 255, 0.04) 60%, rgba(0, 0, 0, 0) 100%);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-3d:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.9);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(255, 255, 255, 0.06) 60%, rgba(0, 0, 0, 0) 100%);
}

/* Безопасное скрытие лишних элементов интерфейса поверх 3D сцены */
.header-order-btn {
    display: none !important;
}

.scroll-arrow,
.scroll-arrow-label,
.scroll-arrow-icon {
    display: none !important;
}

/* Единый стиль для перенесенных секций (Блог, Форум, Футер) на главной странице */
.blog-section,
footer.site-footer {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 60px 20px !important;
    margin: 0 !important;
    position: relative;
    z-index: 10;
}

/* Центрируем внутренний контент (Заголовки и карточки) */
.blog-section > div,
footer.site-footer > div,
footer.site-footer > .footer-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Сетка карточек блога — три равные колонки на десктопе */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 30px !important;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Десктопная навигация на главной странице (Кнопки-таблетки) */
.desktop-top-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 15px; /* Расстояние между кнопками */
    z-index: 100; /* Поверх главной страницы */
}

.nav-pill {
    padding: 8px 24px !important;
    border-radius: 25px !important; /* Сильное скругление для формы таблетки */
    font-family: sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    color: #121212 !important; /* Темный текст на кнопках */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    border: none !important;
}

.nav-pill:hover {
    transform: translateY(-2px) !important;
    opacity: 0.9 !important;
}

/* Белые кнопки */
.pill-white {
    background-color: #ffffff !important;
}

/* Желтые кнопки */
.pill-yellow {
    background-color: #D4AF37 !important;
}

/* === Auth/Profile pages (brand) === */
body.auth-page,
body.profile-page {
    margin: 0;
    background: #000000;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color-scheme: dark; /* Нативные селекты/поля в темной схеме */
}

.auth-shell,
.profile-shell {
    width: min(980px, 92vw);
    margin: 0 auto;
    padding: 34px 0 60px;
}

/* auth.html: как в админке — строго по центру экрана */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.auth-page .auth-shell {
    width: min(460px, 90vw);
    padding: 0;
}

body.auth-page .auth-card {
    margin-top: 0;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(26, 26, 26, 0.8);
    color: rgba(212, 175, 55, 0.95);
    font-weight: 700;
    transition: 0.2s ease;
}
.auth-back:hover {
    border-color: rgba(212, 175, 55, 0.9);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.12);
}

.auth-card,
.profile-card {
    margin-top: 16px;
    background: rgba(10, 10, 12, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    padding: 18px 16px;
}

@media (max-width: 768px) {
    .auth-shell {
        width: 90vw;
        padding: 0;
    }
    .auth-card {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 18px 16px;
    }
    .auth-input {
        font-size: 16px;
        padding: 14px 14px;
    }
    .auth-primary,
    .auth-secondary {
        padding: 14px 16px;
        font-size: 15px;
    }
}

.auth-head { margin-bottom: 12px; }
.auth-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(212, 175, 55, 0.95);
}
.auth-sub {
    margin: 8px 0 0;
    color: rgba(232, 232, 238, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.auth-form { display: grid; gap: 12px; }
.auth-field { display: grid; gap: 6px; }
.auth-label {
    color: rgba(232, 232, 238, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Личный кабинет: селекты и пункты должны быть читаемыми */
body.profile-page select.auth-input {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px; /* место под стрелку */
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(212, 175, 55, 0.95) 50%),
        linear-gradient(135deg, rgba(212, 175, 55, 0.95) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

body.profile-page select.auth-input option {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.95) !important;
}
.auth-input:focus {
    border-color: rgba(212, 175, 55, 0.85);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}
.auth-textarea { resize: vertical; }

.auth-primary {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #121212;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.auth-primary:hover { transform: translateY(-1px); filter: brightness(1.02); }
.auth-primary:active { transform: translateY(0); }

.auth-secondary {
    width: 100%;
    border-radius: 14px;
    padding: 12px 16px;
    background: transparent;
    color: rgba(212, 175, 55, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-weight: 800;
    cursor: pointer;
}

.auth-toggle {
    margin-top: 12px;
    width: 100%;
    background: transparent;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 10px 14px;
    color: rgba(232, 232, 238, 0.85);
    cursor: pointer;
    font-weight: 600;
}
.auth-toggle span { color: rgba(212, 175, 55, 0.95); font-weight: 800; }

.profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.profile-title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(212, 175, 55, 0.95);
}
.profile-sub {
    margin: 8px 0 0;
    color: rgba(232, 232, 238, 0.72);
    font-size: 13px;
    line-height: 1.5;
}
.profile-h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
}
.profile-muted { margin: 0 0 14px; color: rgba(232, 232, 238, 0.8); font-size: 13px; }
.profile-help { color: rgba(232, 232, 238, 0.65); font-size: 12px; line-height: 1.4; }
.profile-warning {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: rgba(232, 232, 238, 0.92);
    font-weight: 700;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.profile-grid--align-inputs { align-items: end; }
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-grid--align-inputs { align-items: stretch; }
}
.profile-hint-form {
    margin: 0 0 10px;
    color: rgba(232, 232, 238, 0.65);
    font-size: 12px;
    line-height: 1.4;
}

#adv-fields {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.4s ease;
}
#adv-fields.is-visible {
    max-height: 700px;
    opacity: 1;
    margin-top: 12px;
}

.file-upload-zone {
    border: 2px dashed rgba(212, 175, 55, 0.75);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    color: rgba(232, 232, 238, 0.75);
    background: rgba(255, 255, 255, 0.04);
    transition: 0.2s ease;
    user-select: none;
}
.file-upload-zone:hover {
    border-color: rgba(212, 175, 55, 0.95);
    background: rgba(212, 175, 55, 0.06);
}
.file-upload-zone.is-dragover {
    border-color: rgba(212, 175, 55, 1);
    background: rgba(212, 175, 55, 0.10);
}

/* Nav visibility helpers */
.nav-only-mobile { display: none !important; }
@media (max-width: 768px) {
    .nav-only-mobile { display: inline-flex !important; }
    .nav-auth-link { display: none !important; }

    /* Мобильное меню: пункт входа/кабинета как солидная кнопка */
    .desktop-top-nav .nav-only-mobile {
        width: 80% !important;
        justify-content: center !important;
        padding: 14px 18px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(212, 175, 55, 0.55) !important;
        background: rgba(26, 26, 26, 0.85) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 800 !important;
        letter-spacing: 0.02em !important;
    }
}

/* Wrapper: logo + burger. На десктопе прозрачен (display:contents — дети
   ведут себя как прямые потомки родительского flex), на мобиле — sticky полоса. */
.mobile-sticky-header {
    display: contents;
}

/* Кнопка закрытия мобильного меню — скрыта на десктопе */
.mobile-menu-close {
    display: none;
}

/* --- ГЛОБАЛЬНЫЕ СТИЛИ БУРГЕРА (Скрыт на ПК) --- */
.mobile-burger-btn {
    display: none; /* Невидимка на десктопе */
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 10001; /* Поверх всего, даже поверх открытого меню */
    padding: 10px;
    flex-direction: column;
    gap: 6px;
}

.mobile-burger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #D4AF37; /* Золотой корпоративный цвет */
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация крестика при открытом меню */
.mobile-burger-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-burger-btn.active span:nth-child(2) { opacity: 0; }
.mobile-burger-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Глобально скрываем мобильную кнопку комнат */
.mobile-rooms-toggle {
    display: none !important;
}

/* (Rollback) Мобильный dropdown комнат удалён */

/* Корпоративный Футер */
.corporate-footer {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: #0d0d0d !important;
    padding: 60px 0 20px 0 !important;
    border-top: 1px solid #222;
    font-family: sans-serif;
    z-index: 10;
}

.corporate-footer .footer-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.corporate-footer .footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.corporate-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
}

.corporate-footer .footer-heading {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.corporate-footer .footer-col p {
    color: #888;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.corporate-footer .footer-col .footer-subtext {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.corporate-footer .footer-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.corporate-footer .footer-link:hover {
    color: #ffffff;
}

.corporate-footer .footer-link-highlight {
    color: #D4AF37;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.corporate-footer .footer-link-highlight:hover {
    opacity: 0.8;
}

.corporate-footer .footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
}

.corporate-footer .footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 12px;
}

.corporate-footer .footer-requisites {
    color: #888;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.corporate-footer .footer-disclaimer {
    margin-top: 10px;
    font-size: 11px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Выпадающее меню Связь */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 10px;
    min-width: 150px;
    z-index: 10000;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #222;
}

.dropdown-content a:hover {
    background-color: #222;
    color: #D4AF37;
}

.hidden {
    display: none !important;
}

/* Модальные окна: Общие стили */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-modal-box {
    background: #121212;
    border: 1px solid #333;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    position: relative;
    color: white;
    font-family: sans-serif;
}

.custom-modal-box.modal-large {
    max-width: 700px;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid #555;
    color: #D4AF37;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: 0.2s;
}

.modal-close-btn:hover {
    border-color: #D4AF37;
}

.modal-title {
    color: #D4AF37;
    margin-top: 0;
    font-size: 22px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

/* Карточка услуги в модалке */
.service-popup-card {
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.service-popup-card h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.service-popup-card p {
    color: #888;
    margin: 0 0 15px 0;
    font-size: 14px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.service-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price {
    color: #D4AF37;
    font-weight: bold;
    font-size: 16px;
}

.service-order-btn {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.service-order-btn:hover {
    background: #D4AF37;
    color: #121212;
}

/* Форум в модалке */
.forum-message {
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.forum-message strong {
    color: white;
    margin-right: 10px;
}

.msg-date {
    color: #666;
    font-size: 12px;
}

.forum-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-input,
.forum-textarea {
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.forum-textarea {
    min-height: 100px;
    resize: vertical;
}

.forum-submit-btn {
    background: #D4AF37;
    color: #121212;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.forum-submit-btn:hover {
    opacity: 0.9;
}

/* --- Чекбокс согласия на обработку персональных данных --- */
.consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.consent-wrap .consent-cb {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #D4AF37;
    cursor: pointer;
}

.consent-wrap label {
    font-size: 0.78rem;
    color: #aaa;
    line-height: 1.55;
    cursor: pointer;
}

.consent-wrap label a {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-wrap label a:hover {
    opacity: 0.8;
}

/* ========================================================================== */
/* МОБИЛЬНАЯ АДАПТАЦИЯ (Меньше 768px)                    */
/* ВНИМАНИЕ: Все стили ниже применяются только для смартфонов и планшетов!    */
/* ========================================================================== */

@media (max-width: 768px) {
    
    /* Cursor: Здесь будет находиться весь мобильный CSS.
      Пока оставляем блок пустым. 
    */

    /* По умолчанию 3D-шапка (белая с комнатами) скрыта везде на мобилке */
    .header {
        display: none !important;
    }

    /* ── Sticky-шапка: логотип + бургер прилипают к верху при скролле ── */
    .mobile-sticky-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 100;
        /* компенсируем padding landing-inner (16px) + landing-hero-main (16px) = 32px */
        margin: 0 -32px;
        padding: 8px 32px;
        width: calc(100% + 64px);
        box-sizing: border-box;
        background: rgba(10, 10, 12, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    /* Бургер виден по всему сайту по умолчанию safe */
    .mobile-burger-btn {
        display: flex !important;
        position: relative;
        top: auto;
        right: auto;
        flex-shrink: 0;
        align-self: center;
        margin-left: auto;
    }

    /* Прячем бургер ТОЛЬКО когда открыта 3D-сцена safe */
    body.three-active .mobile-burger-btn {
        display: none !important;
    }

    /* Превращаем горизонтальное меню в выезжающую боковую панель */
    .desktop-top-nav {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Прячем за правый край экрана */
        width: 80% !important; /* Ширина панели */
        height: 100vh !important;
        background: rgba(18, 18, 18, 0.98) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5) !important;
        z-index: 10000 !important;
        margin: 0 !important;
    }

    /* Класс, который скрипт добавит при клике */
    .desktop-top-nav.mobile-open {
        right: 0 !important; /* Выезжает на экран */
    }

    /* Кнопка закрытия мобильного меню */
    .mobile-menu-close {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-radius: 50% !important;
        color: #d4af37 !important;
        cursor: pointer !important;
        z-index: 10 !important;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-close:hover,
    .mobile-menu-close:focus-visible {
        background: rgba(212, 175, 55, 0.1) !important;
        border-color: #d4af37 !important;
    }

    .mobile-menu-close:active {
        transform: scale(0.95) !important;
    }

    /* Растягиваем кнопки-таблетки для удобства нажимания */
    .desktop-top-nav .nav-pill {
        width: 80% !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
    }

    /* Корректируем выпадающее меню контактов для мобилки */
    .dropdown-wrapper { width: 80% !important; text-align: center; }
    .dropdown-wrapper .nav-pill { width: 100% !important; }
    .dropdown-content {
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        width: 100% !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-top: 10px;
    }

    /* ЧЕРНЫЙ СПИСОК (страховка): на лендинге/услугах 3D-шапка не должна появляться */
    body:not(.three-active) #three-container .header,
    body.category-open #three-container .header {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* ===== Мобильная 3D-сцена: белая шапка фиксирована сверху (ТОЛЬКО в 3D-режиме, НЕ на услугах) ===== */
    body.three-active:not(.category-open) #three-container .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: transparent !important;
        z-index: 10005 !important;
        padding-top: 10px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* На страницах услуг/категорий белая 3D-шапка не должна появляться */
    body.category-open #three-container .header {
        display: none !important;
    }

    /* Панель комнат внутри шапки (золото только на внутренней таблетке .room-nav) */
    body.three-active:not(.category-open) #three-container .room-nav-floating {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 10px !important;
        width: fit-content !important;
        max-width: 92vw !important;
        background: transparent !important;
        display: flex !important;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        gap: 1px !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 10000 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.three-active:not(.category-open) #three-container .room-nav-floating .room-nav {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1px !important;
        background: linear-gradient(135deg, #EAD6A8 0%, #D4AF37 100%) !important;
        box-shadow: none !important;
        padding: 10px 25px !important;
        margin: 0 !important;
        width: fit-content !important;
        max-width: 92vw !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        border-radius: 50px !important;
    }

    body.three-active:not(.category-open) #three-container .room-nav-floating a {
        color: #000000 !important;
        font-size: 13px !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        text-shadow: none !important;
        background: transparent !important;
        border: none !important;
        padding: 2px 3px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* Скрываем системную полосу прокрутки внутри золотой плашки */
    body.three-active:not(.category-open) #three-container .room-nav-floating .room-nav {
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE/Edge legacy */
    }
    body.three-active:not(.category-open) #three-container .room-nav-floating .room-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* На главной (2D-лендинг) комнатам не место — прячем, если вдруг появились */
    body:not(.three-active) #three-container .room-nav-floating {
        display: none !important;
    }

    /* === Утечка на страницах услуг/категорий: комнаты там не нужны === */
    body.category-open #three-container .room-nav-floating {
        display: none !important;
    }

    /* На страницах услуг/категорий не добавляем лишний верхний отступ */
    body.category-open #category-page {
        padding-top: 0 !important;
        box-sizing: border-box !important;
    }

    /* В 3D-сцене отступ не нужен: шапка должна накладываться поверх */
    body.three-active #three-container {
        padding-top: 0 !important;
    }

    /* 1. Уменьшаем текст подсказки на телефоне */
    .mobile-hint-overlay,
    #hint-overlay.hint-block,
    .hint-block {
        font-size: 14px !important;
        width: 85% !important;
        padding: 10px !important;
    }
}

/* Маркировка рекламы на карточках услуг */
.ad-disclosure {
    font-size: 10px;
    line-height: 1.4;
    color: rgba(232, 232, 238, 0.45);
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 6px;
}

/* Маркировка рекламы на баннерах */
.banner-ad-wrap {
    position: relative;
}

.banner-ad-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-disclosure-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.88);
    font-size: 10px;
    line-height: 1.4;
    padding: 4px 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* === BLOG PAGE (blog.html) === */
.blog-page-header {
    background: rgba(10, 10, 12, 0.96);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog-page-header-inner {
    width: min(1060px, 100%);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blog-page-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.blog-page-logo {
    height: 40px;
    width: auto;
    display: block;
}

.blog-page-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-nav-link {
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-nav-link:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    color: rgba(212, 175, 55, 0.95);
}

.blog-page-hero {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%), #0a0a0c;
    padding: 60px 24px 52px;
    text-align: center;
}

.blog-page-title {
    font-size: 42px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.blog-page-subtitle {
    font-size: 16px;
    color: rgba(155, 164, 181, 0.95);
    margin: 0;
    font-weight: 400;
}

.blog-page-main {
    padding: 48px 24px 80px;
    background: #0a0a0c;
    min-height: 40vh;
}

.blog-page-inner {
    width: min(1600px, 95%);
    margin: 0 auto;
}

.blog-page-status {
    text-align: center;
    color: rgba(155, 164, 181, 0.75);
    font-size: 15px;
    padding: 40px 0;
    margin: 0;
}

.blog-page-status--error {
    color: rgba(220, 80, 80, 0.85);
}

.blog-cover--img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transition: transform 0.3s ease;
}

.blog-card-date {
    margin: 0;
    font-size: 12px;
    color: rgba(232, 232, 238, 0.50);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .blog-page-title {
        font-size: 28px;
    }

    .blog-page-hero {
        padding: 40px 16px 36px;
    }

    .blog-page-main {
        padding: 32px 16px 60px;
    }

    .blog-page-header-inner {
        padding: 12px 16px;
    }

    .blog-page-logo {
        height: 32px;
    }
}

/* === ARTICLE PAGE (article.html) === */
.article-page-main {
    padding: 48px 24px 80px;
    background: #0a0a0c;
    min-height: 60vh;
}

.article-page-inner {
    width: min(800px, 100%);
    margin: 0 auto;
}

.article-cover-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 32px;
    display: block;
}

.article-page-title {
    font-size: 36px;
    font-weight: 800;
    color: #f0f0f0;
    line-height: 1.25;
    margin: 0 0 12px;
}

.article-page-date {
    display: block;
    font-size: 14px;
    color: rgba(155, 164, 181, 0.8);
    margin-bottom: 32px;
}

.article-page-body {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(220, 220, 230, 0.9);
    white-space: pre-wrap;
    word-break: break-word;
}

.article-back-wrap {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.article-back-link {
    color: #d4af37;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.article-back-link:hover {
    color: #f0c84a;
}

.blog-card-cover-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 14px;
    flex-shrink: 0;
    text-decoration: none;
    outline-offset: 2px;
}

.blog-card-title-link {
    color: inherit;
    text-decoration: none;
}

.blog-card-title-link:hover {
    color: #d4af37;
}

/* === BLOG PAGE: override flex to auto-fill grid === */
.blog-page-inner .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 20px !important;
    justify-content: unset !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .article-page-main {
        padding: 32px 16px 60px;
    }

    .article-page-title {
        font-size: 26px;
    }

    .article-cover-img {
        max-height: 280px;
        margin-bottom: 24px;
    }
}

/* ── First-visit city modal ────────────────────────────────── */
#first-visit-city-modal {
    z-index: 9100;
}

.fvcm-card {
    position: relative;
    width: min(520px, 92vw);
    max-height: min(82dvh, 620px);
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 12, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.40);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 24px 20px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.fvcm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(212, 175, 55, 0.95);
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
    line-height: 38px;
    transition: 0.2s ease;
}

.fvcm-close:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.75);
}

.fvcm-title {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 6px;
}

.fvcm-subtitle {
    font-size: 13px;
    color: rgba(232, 232, 238, 0.70);
    margin-bottom: 16px;
    line-height: 1.5;
}

.fvcm-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.fvcm-list li {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.20);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    text-align: center;
}

.fvcm-list li:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.55);
    color: #fff;
}

.fvcm-all-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.10);
    color: #d4af37;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.fvcm-all-btn:hover {
    background: rgba(212, 175, 55, 0.22);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.80);
}

@media (max-width: 480px) {
    .fvcm-card {
        padding: 22px 14px 16px;
    }

    .fvcm-title {
        font-size: 20px;
    }

    .fvcm-list {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}