/* =========================================
   ГЛОБАЛЬНЫЕ НАСТРОЙКИ И ШРИФТ
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

html, body {
    overflow-x: clip !important;
    width: 100%;
    position: relative;
}

/* =========================================
   1. ПУЛЬТ УПРАВЛЕНИЯ (СВЕТЛАЯ ТЕМА)
========================================= */
:root {
    --bg-base: #f3f4f6;        /* Светлый архитектурный бетон (ФОН) */
    --surface: #ffffff;        /* Чистый белый (КАРТОЧКИ И МОНОЛИТЫ) */
    
    --text-main: #111827;      /* Глубокий темный (ЗАГОЛОВКИ) */
    --text-muted: #4b5563;     /* Серый (ОПИСАНИЯ) */
    
    --btn-dark: #1f1f22;       /* Темный графит для кнопок */
    --btn-hover: #374151;      /* Стальной при наведении */
    
    --border-line: rgba(0, 0, 0, 0.08); /* Тонкая расшивка */
}

/* =========================================
   2. БАЗОВЫЕ СТИЛИ (СВЕТ И ТЕКСТ)
========================================= */
body {
    background: radial-gradient(circle at top center, #ffffff 0%, var(--bg-base) 100%) !important;
    background-color: var(--bg-base) !important;
    background-attachment: fixed !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-muted) !important;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
}

/* =========================================
   3. МОНОЛИТЫ И ПАНЕЛИ (ТОЛЬКО ЦВЕТ И ТЕНЬ)
========================================= */
.surface-panel {
    background-color: var(--surface) !important;
    border: 1px solid var(--border-line) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s ease;
}

.surface-panel:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.monolith-level {
    background-color: var(--surface) !important;
    border-top: 1px solid var(--border-line) !important;
    border-bottom: 1px solid var(--border-line) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02) !important;
    position: relative;
    z-index: 5;
    /* Я УБРАЛ PADDING! Именно он делал странную накладку над футером */
}
/* =========================================
   4. ТАКТИЧЕСКИЕ КНОПКИ (УБИВАЕМ ЗАКРУГЛЕНИЯ)
========================================= */
.btn, a.btn, button, .button, .btn-titanium, input[type="submit"], input[type="button"] {
    /* ГЕОМЕТРИЯ: Только прямые углы, только хардкор */
    border-radius: 0 !important; 
    
    /* ЦВЕТ: Глубокий графит, который мы выбрали */
    background-color: #1f1f22 !important; 
    color: #ffffff !important; 
    
    /* ТЕКСТ: Строгий, капсом, с разрядкой */
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    
    /* ВНУТРЕННОСТИ */
    padding: 16px 32px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    outline: none !important;
}

/* СОСТОЯНИЕ ПРИ НАВЕДЕНИИ */
.btn:hover, a.btn:hover, button:hover {
    background-color: #374151 !important; /* Стальной оттенок */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* ЭФФЕКТ НАЖАТИЯ */
.btn:active {
    transform: scale(0.97) !important;
}

/* КНОПКА В КАРТОЧКАХ АРЕНДЫ (GHOST BUTTON) */
/* Если хочешь, чтобы там были рамки, но углы все равно острые */
.room-item .btn-titanium {
    background-color: transparent !important;
    color: #1f1f22 !important;
    border: 2px solid #1f1f22 !important;
}

.room-item .btn-titanium:hover {
    background-color: #1f1f22 !important;
    color: #ffffff !important;
}


/* ДАЛЬШЕ ИДЕТ ТВОЙ ОРИГИНАЛЬНЫЙ CSS ДЛЯ ВИДЕО, СЛАЙДЕРОВ И Т.Д. */

/* --- СЕКЦИЯ ГЛАВНОГО ЭКРАНА С ВИДЕО (БРОНЕБОЙНАЯ ВЕРСИЯ) --- */
.hero-video-section {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important; /* Высота ровно 100% экрана */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Растягиваем видео */
.bg-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100vw !important; /* Принудительная ширина экрана */
    min-height: 100vh !important; /* Принудительная высота экрана */
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important; /* Ставим слой 1 */
    object-fit: cover !important;
    pointer-events: none !important; /* Чтобы видео не перехватывало клики мышки */
}

/* Затемняющая маска */
.video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(18, 18, 20, 0.6) !important; 
    z-index: 2 !important; /* Ставим слой 2 (поверх видео) */
}

/* Контент (Текст и кнопки) */
.hero-content {
    position: relative !important;
    z-index: 3 !important; /* Ставим слой 3 (на самом верху) */
    text-align: center !important;
    max-width: 800px !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* Типографика */
.hero-title {
    font-size: 4rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; 
}

.hero-subtitle {
    font-size: 1.5rem !important;
    color: #D1D5DB !important;
    margin-bottom: 40px !important;
    font-weight: 300 !important;
}

/* --- СРУБАЕМ ПАРАЗИТНЫЕ РАМКИ С ВИДЕО --- */
.hero-video-section, 
.bg-video, 
.video-overlay {
    border: none !important;           /* Убиваем любые обводки */
    border-radius: 0 !important;       /* Срубаем закругления углов под ноль */
    outline: none !important;          /* Убираем контуры фокуса */
    box-shadow: none !important;       /* Убираем любые тени (они могут выглядеть как толстые рамки) */
    background: transparent !important; /* Убираем фоновые заливки, если они торчат */
}

/* --- БАЗОВЫЕ НАСТРОЙКИ ШАПКИ --- */
header {
    width: 100% !important;
    z-index: 1000 !important;
    transition: all 0.3s ease-in-out;
}

/* --- СЦЕНАРИЙ 1: ГЛАВНАЯ СТРАНИЦА --- */
/* Меню прибито к низу экрана поверх видео, фон полностью прозрачный */


/* Добавим эффект блюра, если вдруг захочется при скролле */
header.scrolled {
    background: rgba(18, 18, 20, 0.8) !important;
    backdrop-filter: blur(10px);
}

/* Если в шапке есть ссылки, сделаем их серебряными */
header a {
    color: var(--text-light) !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
}

/* --- АКТИВНЫЙ ТАБ АРЕНДЫ --- */
.switch-tab-selector.active {
    border-color: #d1d5db !important; /* Яркий серебряный контур */
    background: #1f1f23 !important;   /* Чуть светлее фон */
}

/* При активации зажигаем иконку и текст */
.switch-tab-selector.active .text-gray-500 {
    color: #ffffff !important;
}
.switch-tab-selector.active p {
    color: #ffffff !important;
}

/* Зажигаем верхнюю полосу навсегда для активного таба */
.switch-tab-selector.active > div.absolute {
    opacity: 1 !important;
}







/* =========================================
   ТАКТИЧЕСКАЯ КНОПКА СВЯЗИ (ЧИСТЫЙ КОД)
========================================= */

.contact-button-hard {
    background-color: #222222 !important; /* Наш графит */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Стальная рамка */
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease !important;
    /* Углы прямые. Если захочешь слегка срезать фаску, раскомментируй строку ниже: */
    /* border-radius: 4px !important; */
}

/* Наша новая иконка трубки */
.contact-button-hard i.bi {
    color: var(--accent) !important; /* Серебряный цвет из твоей палитры */
    font-size: 24px !important;
    transition: transform 0.3s ease !important;
}

/* Реакция на наведение (Ховер) */
.contact-button-hard:hover {
    background-color: #3A3A3A !important;
    border-color: #ffffff !important;
}

/* Легкий зум трубки при наведении */
.contact-button-hard:hover i.bi {
    transform: scale(1.15) !important;
}

/* =========================================
   ВСПЛЫВАЮЩАЯ ФОРМА (#exampleModal) - СВЕТЛАЯ ТЕМА
========================================= */

/* Перекрашиваем саму подложку модального окна */
#exampleModal .modal-content {
    background-color: var(--surface) !important; /* Кристально белый */
    border: 1px solid var(--border-line) !important;
    border-radius: 0 !important; /* Прямые углы */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1) !important; /* Мягкая, светлая тень */
}

/* Разделители внутри окна (если они есть) */
#exampleModal .modal-header,
#exampleModal .modal-footer {
    border-color: var(--border-line) !important; 
}

/* Заголовки и тексты в модалке */
#exampleModal p,
#exampleModal h1,
#exampleModal h2,
#exampleModal h3,
#exampleModal span,
#exampleModal label {
    color: var(--text-main) !important; /* Темный строгий текст */
}

/* Кнопка закрытия окна (Снимаем инверсию, делаем темной) */
#exampleModal .btn-close {
    filter: none !important; /* Вернули родной цвет крестику */
    opacity: 0.4 !important;
}
#exampleModal .btn-close:hover {
    opacity: 1 !important;
}

/* Инпуты внутри модального окна */
#exampleModal input,
#exampleModal textarea {
    background: #f9fafb !important; /* Светло-серый фон */
    border: 1px solid var(--border-line) !important;
    color: var(--text-main) !important;
    border-radius: 0 !important; 
    border-bottom: 2px solid #d1d5db !important; /* Серая линия внизу */
    transition: all 0.3s ease !important;
}

#exampleModal input:focus,
#exampleModal textarea:focus {
    background: #ffffff !important;
    border-color: #111827 !important; /* Черная линия при вводе текста */
    box-shadow: none !important;
    outline: none !important;
}

/* Кнопка "Отправить" */
#exampleModal .btn {
    background: var(--btn-dark) !important; /* Наш фирменный графит */
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

/* =========================================
   ПЕРФЕКЦИОНИЗМ ДЛЯ МОДАЛЬНОГО ОКНА
========================================= */

/* 1. Идеальная центровка (БЕЗ НЕВИДИМЫХ КОЛЛИЗИЙ) */
#exampleModal .modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100vh - 60px) !important; 
    margin: 0 auto !important; 
    width: 100% !important;
    max-width: 500px !important; 
}

#exampleModal .modal-content {
    width: 100% !important; 
}

/* 2. Центровка и стилизация заголовка (ОБРАТНАЯ СВЯЗЬ) */
#exampleModal .modal-content p.bold,
#exampleModal .modal-header h1,
#exampleModal .modal-title,
#exampleModal p:first-child {
    text-align: center !important;
    width: 100% !important;
    font-size: 1.2rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
    color: var(--text-main) !important; /* Жестко темный цвет */
}

/* =========================================
   3. ТОТАЛЬНОЕ УНИЧТОЖЕНИЕ СВЕЧЕНИЯ
========================================= */

/* Бьем по всем состояниям (клик, фокус, наведение) */
#exampleModal button:focus,
#exampleModal button:active,
#exampleModal button:focus-visible,
#exampleModal .btn:focus,
#exampleModal .btn:active,
#exampleModal .btn:focus-visible,
#exampleModal .bg-secondary:focus,
#exampleModal .bg-secondary:active {
    outline: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background-color: var(--btn-hover) !important; /* Чуть светлее при клике */
    color: #ffffff !important;
    -webkit-tap-highlight-color: transparent !important; 
}

/* Убиваем пунктирную рамку фокуса, которая вшита в ядро Firefox */
#exampleModal button::-moz-focus-inner,
#exampleModal input::-moz-focus-inner,
#exampleModal .btn::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
}

/* Эффект физического нажатия (без всякого свечения) */
#exampleModal .btn:active {
    transform: scale(0.98) !important;
}



/* =========================================
   ФИКС ЯЗЫКОВОГО СЕЛЕКТОРА (НАД ВИДЕО)
========================================= */

/* Цепляем все возможные ссылки в языковом блоке шапки */
header .language-selector a, 
header [class*="lang"] a,
header .dropdown-menu a {
    color: rgba(255, 255, 255, 0.5) !important; /* Неактивные: приглушенный белый */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    /* Тень спасает текст, если под ним проплывает белый кадр из видео */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important; 
    transition: all 0.3s ease !important;
}

/* При наведении и активный язык */
header .language-selector a:hover, 
header [class*="lang"] a:hover,
header .active,
header [class*="lang"] a.active {
    color: #ffffff !important; /* Загорается чистым белым */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important; /* Тень становится плотнее */
}

/* =========================================
   6. ФУТЕР (ТЕМНЫЙ ФУНДАМЕНТ)
========================================= */
footer, .footer, #footer {
    background-color: #151515 !important; /* Настоящий строгий черный графит, ноль синевы */
    padding: 60px 0 !important;
    position: relative;
    z-index: 10;
}

/* Применяем шрифт Inter ко всему, КРОМЕ тегов иконок <i>, иначе они ломаются! */
footer *:not(i), .footer *:not(i), #footer *:not(i) {
    font-family: 'Inter', sans-serif !important;
}

/* =========================================
   ФИНАЛЬНЫЙ ФИКС ФУТЕРА
========================================= */

/* Убиваем коричневый градиент и синеву */
footer, .footer {
    background: #151515 !important;
    position: relative;
    z-index: 50;
}

footer .background {
    background: transparent !important;
    background-image: none !important;
}

/* Единый шрифт Inter для всего, кроме иконок */
footer *:not(i), .footer *:not(i) {
    font-family: 'Inter', sans-serif !important;
}

/* Заголовки (Адрес, Контакты и т.д.) */
.footer-header {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Обычный текст (номера, адреса) */
.footer-text {
    color: #9ca3af !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Ссылки меню */
.footer-link {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: block;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff !important;
}

/* Иконки: центрируем их по вертикали с текстом */
footer i.bi {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =========================================
   ФИНАЛЬНЫЙ ФИКС ФУТЕРА (РАБОТАЕМ ТОЛЬКО С CSS)
========================================= */

/* 1. Убиваем коричневый градиент и задаем графит */
footer .background {
    background: transparent !important;
    background-image: none !important;
}
footer, .footer {
    background: #151515 !important;
}

/* 2. Принудительный единый шрифт Inter для всего текста */
footer *:not(i) {
    font-family: 'Inter', sans-serif !important;
}

/* 3. Стилизация заголовков (Адрес, Контакты, e-mail) */
footer span.bold {
    display: inline-block !important; /* Важно для работы выравнивания */
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

/* 4. Стилизация основного текста и ссылок */
footer p.regular {
    color: #9ca3af !important; /* Серый текст, чтобы не сливался с заголовками */
    font-size: 14px !important;
    line-height: 1.8 !important; /* Межстрочный интервал, чтобы телефоны не слипались */
}

footer p.regular a {
    color: #9ca3af !important;
    transition: color 0.3s ease !important;
}

footer p.regular a:hover {
    color: #ffffff !important;
}

/* =========================================
   5. МАТЕМАТИЧЕСКОЕ ВЫРАВНИВАНИЕ ИКОНОК
========================================= */
footer span.bold i.absolute {
    top: 50% !important;
    transform: translateY(-50%) !important; /* Опускает иконку ровно на центр текстовой строки */
    left: -32px !important; /* Четкий отступ слева от слова */
    font-size: 18px !important;
    line-height: 1 !important;
    color: #ffffff !important; /* Делаем иконки белыми для контраста */
}

/* Защита для иконок соцсетей (чтобы они не улетели из-за правила выше) */
footer .mt-16 i, 
footer .flex.justify-center i {
    position: static !important;
    transform: none !important;
}
/* =========================================
   7. СОЦСЕТИ: КРУПНЫЙ РАЗМЕР И ZOOM
========================================= */

/* Увеличиваем базовый размер иконок */
footer .flex.justify-center a i.bi {
    font-size: 28px !important; /* Сделали их заметно крупнее */
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Плавная пружинистая анимация */
    
    /* Сбрасываем лишние отступы, которые могли тянуться из Bootstrap */
    margin: 0 !important;
    padding: 0 !important;
}

/* Эффект при наведении (Zoom) */
footer .flex.justify-center a:hover i.bi {
    transform: scale(1.3) !important; /* Увеличение на 30% */
    filter: brightness(1.2) !important; /* Легкая подсветка для "живого" отклика */
}

/* Очистка старых правил: разрешаем трансформацию для соцсетей */
footer .mt-16 i, 
footer .flex.justify-center i {
    position: static !important;
    /* УДАЛИЛИ transform: none, теперь зум работает! */
    transform: perspective(1px) translateZ(0); 
}

/* =========================================
   АРЕНДА: ТАБЫ (АНИМАЦИЯ МОРФИНГА - ПИКСЕЛЬ ПЕРФЕКТ)
========================================= */

/* 1. БАЗОВАЯ КАРТОЧКА (Всегда строго белая основа) */
.hard-tab {
    background-color: #ffffff !important; /* Убиваем любой черный фон извне */
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
    position: relative;
    overflow: hidden !important; /* Жестко обрезаем всё, что вылазит */
}

/* ЗАЩИТА: Активный таб тоже ДОЛЖЕН БЫТЬ БЕЛЫМ в основе. Темной будет только шторка! */
.hard-tab.active {
    background-color: #ffffff !important; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px) !important;
}

/* 2. ТЕМНАЯ ШТОРКА (Меняем физику движения) */
.hard-tab .hard-tab-curtain {
    position: absolute;
    /* Убираем шторку с запасом вверх, чтобы не было никаких микро-полос */
    top: -105%; 
    left: 0;
    width: 100%;
    height: 66.66%;
    background-color: #2c2c2e !important; 
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Падение шторки при клике */
.hard-tab.active .hard-tab-curtain {
    top: 0 !important; 
}

/* 3. ГЕОМЕТРИЯ ИКОНКИ И ТЕКСТА */
.hard-tab .hard-tab-icon,
.hard-tab .hard-tab-text {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 2; /* Всегда поверх шторки */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- СОСТОЯНИЕ: НЕАКТИВНО (ПЛОТНАЯ ГРУППА В ЦЕНТРЕ) --- */
.hard-tab .hard-tab-icon {
    top: 38%; /* Идеальный визуальный центр с учетом текста */
    transform: translateY(-50%);
    color: #111827 !important;
}

.hard-tab .hard-tab-icon i {
    color: inherit !important;
}

.hard-tab .hard-tab-text {
    top: 72%; /* Текст аккуратно под иконкой */
    transform: translateY(-50%);
}

.hard-tab .hard-tab-text span {
    color: #111827 !important;
}

/* Эффект ховера для неактивного таба */
.hard-tab:not(.active):hover {
    background-color: #f9fafb !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}
.hard-tab:not(.active):hover .hard-tab-icon {
    top: 35%; /* Легкий прыжок вверх при наведении */
}

/* =========================================
   4. СОСТОЯНИЕ: АКТИВНО (РАЗЪЕЗД В СТОРОНЫ)
========================================= */

/* Иконка улетает в центр верхней части (33.33%) и становится белой */
.hard-tab.active .hard-tab-icon {
    top: 33.33%; 
    transform: translateY(-50%) scale(1.15);
    color: #ffffff !important; 
}

/* Текст падает в центр нижней белой части (83.33%) */
.hard-tab.active .hard-tab-text {
    top: 83.33%; 
    transform: translateY(-50%);
}

/* Разделительная линия (появляется между верхом и низом) */
.hard-tab.active::after {
    content: '';
    position: absolute;
    top: 66.66%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.05);
    z-index: 3;
}

