/* 1. ГЛОБАЛЬНЫЙ СБРОС (Убирает все полосы по краям) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #000; /* Фон страницы черный */
}

/* Общий контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. ШАПКА (МЕНЮ) --- */
/* Она висит ПОВЕРХ видео, прозрачная */
.main-header {
    position: absolute; /* Отрываем от потока */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Самый верхний слой */
    background: transparent; /* Полная прозрачность */
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Логотип */
.logo img {
    height: 80px; 
    width: auto;
    display: block;
    /* Делаем лого белым */
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: 0.3s;
}
.logo img:hover { transform: scale(1.05); }

/* Ссылки меню */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff; /* Белый текст меню */
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Тень чтобы читалось */
    transition: 0.3s;
}
.nav-links a:hover { color: #ccc; }

/* Кнопка Whatsapp */
.whatsapp-btn {
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
    border-radius: 30px;
}
.whatsapp-btn:hover {
    background: #fff;
    color: #000 !important;
    text-shadow: none;
}

/* --- 3. СЕКЦИЯ HERO (ВИДЕО) --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Высота на весь экран */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Видео на фон */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Видео внизу */
    transition: opacity 1s ease;
}

/* Затемнение видео (чтобы текст читался) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* 40% темноты */
    z-index: 1;
}

/* Контент внутри Hero */
.hero-content {
    position: relative;
    z-index: 10; /* Поверх затемнения */
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Текст заголовка */
.headline {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
}

.subheadline {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

/* --- 4. ВИДЖЕТ (СТЕКЛО) --- */
.corporate-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    justify-self: end;
    color: #fff;
}

.widget-header h3 { font-size: 22px; margin-bottom: 5px; color: #fff; }
.widget-header p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 25px; }

.input-row { display: flex; gap: 15px; margin-bottom: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.input-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.input-group input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
    width: 100%;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover { background: #eee; transform: translateY(-2px); }

/* --- 5. ЗАНАВЕС (INTRO) --- */
#curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.curtain-up { transform: translateY(-100%); }
.curtain-content { text-align: center; }
.curtain-logo { width: 100px; margin-bottom: 20px; filter: brightness(0) invert(1); }

/* --- 6. ОСТАЛЬНЫЕ СЕКЦИИ (НОМЕРА, КАРТА) --- */
.rooms-section, .contacts-section { padding: 80px 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.room-card { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; }
.room-card:hover { transform: translateY(-10px); }
.room-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.room-info { padding: 25px; }
.btn-card { display: inline-block; margin-top: 15px; text-decoration: none; color: #000; font-weight: 700; border-bottom: 2px solid #000; }

#map { height: 400px; width: 100%; border-radius: 20px; margin-top: 40px; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.loc-item { padding: 30px; background: #f8f8f8; border-radius: 20px; }
.icon { font-size: 30px; margin-bottom: 15px; }

.main-footer { background: #111; color: #fff; padding: 40px 0; text-align: center; font-size: 14px; opacity: 0.6; }

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@media (max-width: 768px) {
    .headline { font-size: 32px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .nav-links { display: none; } /* Скрыли меню на телефоне */
    .corporate-widget { justify-self: center; width: 100%; }
    .location-grid { grid-template-columns: 1fr; }
}
/* --- СЕКЦИЯ О НАС (SEO & TRUST) --- */
.about-section {
    padding: 100px 0;
    background: #fff; /* Белый фон для контраста с черным Hero */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Текст шире, картинка уже */
    gap: 60px;
    align-items: center;
}

/* Бейджик над заголовком */
.badge-seo {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #111;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    max-width: 90%;
}

/* СПИСОК ДОКУМЕНТОВ */
/* --- КАРТОЧКИ ДОКУМЕНТОВ (Bento Style) --- */

.docs-list {
    margin-top: 35px;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 15px; /* Расстояние между карточками */
}

/* Сама карточка (серая плашка) */
.docs-list li {
    background-color: #F5F5F7; /* Благородный светло-серый (Apple style) */
    padding: 20px;
    border-radius: 16px; /* Сильные закругления */
    display: flex;
    align-items: center; /* Центруем иконку и текст */
    gap: 15px;
    
    /* Настройка анимации */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent; /* Чтобы при наведении не скакало */
    cursor: default; /* Курсор показывает, что элемент активный */
}

/* Эффект при наведении мышки */
.docs-list li:hover {
    background-color: #FFFFFF; /* Становится белым */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); /* Мягкая дорогая тень */
    transform: translateY(-5px); /* Чуть взлетает вверх */
    border-color: #E0E0E0; /* Тонкая рамочка */
}

/* Текст внутри (Жирный заголовок) */
.docs-list strong {
    color: #111;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

/* Текст внутри (Мелкое описание) */
.docs-list small {
    color: #777;
    font-size: 12px;
    line-height: 1.3;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .docs-list {
        grid-template-columns: 1fr; /* На телефоне в одну колонку */
    }
    .docs-list li {
        padding: 15px; /* Чуть компактнее */
    }
}
/* КАРТИНКА СПРАВА */
/* --- ИСПРАВЛЕНИЕ ДЛЯ ВЕРТИКАЛЬНОЙ ФОТКИ --- */

/* Контейнер для картинки */
.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* ЖЕСТКАЯ ВЫСОТА. Иначе вертикальная фотка растянет сайт */
    height: 600px; 
    width: 100%;
}

/* Сама картинка */
.about-img img {
    width: 100%;
    height: 100%;
    display: block;
    
    /* МАГИЯ ЗДЕСЬ: */
    /* cover заставит фотку заполнить весь блок, обрезав лишнее */
    object-fit: cover; 
    
    /* Центрируем, чтобы самое важное (дом) было в кадре */
    object-position: center center; 
}

/* На мобилках сделаем чуть пониже, чтобы не на весь экран */
@media (max-width: 768px) {
    .about-img {
        height: 450px;
    }
}

/* Плашка "100% Налоговая" */
.trust-badge {
    position: absolute;
    bottom: 30px;
    left: -30px; /* Свешивается влево */
    background: #000;
    color: #fff;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-number {
    font-size: 36px;
    font-weight: 800;
    color: #25D366; /* Зеленый цвет успеха */
}

.trust-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Мобильная версия */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
    .docs-list {
        grid-template-columns: 1fr; /* Документы в столбик */
    }
    .trust-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: -30px;
        margin-left: 20px;
        display: inline-flex;
    }
}
/* --- ФИКС ДЛЯ МОБИЛЬНЫХ (ПЛАШКА 100%) --- */

@media (max-width: 900px) {
    /* 1. Картинка на телефоне не такая высокая */
    .about-img {
        height: 400px; /* Было 600, уменьшили для телефона */
        margin-bottom: 60px; /* Добавили отступ снизу, чтобы плашка влезла */
        overflow: visible; /* РАЗРЕШАЕМ вылезать за границы блока */
    }

    /* 2. Плашка "100%" переезжает под картинку */
    .trust-badge {
        position: absolute; /* Оставляем абсолют */
        
        /* Прибиваем к нижнему краю картинки, но чуть ниже */
        bottom: -40px; 
        left: 50%; /* Ставим по центру */
        transform: translateX(-50%); /* Точная центровка */
        
        /* Растягиваем на всю ширину (почти) */
        width: 90%; 
        justify-content: center; /* Текст по центру */
        
        /* Тень посильнее, чтобы выделялась на белом фоне */
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        margin: 0; /* Сбрасываем лишние отступы */
    }
}
/* --- МОБИЛЬНОЕ МЕНЮ (ПОЧИНКА) --- */

/* Скрываем кнопку меню на компьютере */
.burger-menu {
    display: none;
    cursor: pointer;
    color: #fff;
    align-items: center;
    gap: 10px;
}

/* Стили для выезжающего меню (черный экран) */
.mobile-nav-overlay {
    height: 100%;
    width: 0; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0; /* Выезжает справа */
    background-color: #000; /* Черный фон */
    overflow-x: hidden;
    transition: 0.5s; /* Плавная анимация */
    padding-top: 60px;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.mobile-nav-overlay a {
    padding: 15px 15px;
    text-decoration: none;
    font-size: 24px;
    color: #818181;
    display: block;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 700;
}

.mobile-nav-overlay a:hover {
    color: #f1f1f1;
}

/* Кнопка закрыть (крестик) */
.closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px !important;
    line-height: 30px;
}

/* Большая кнопка Ватсап в меню */
.mobile-wa-btn {
    background: #25D366;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 50px;
    margin-top: 20px;
    font-size: 18px !important;
}

/* --- АДАПТИВ (Включаем на телефоне) --- */
@media (max-width: 900px) {
    /* Скрываем обычное меню */
    .desktop-nav {
        display: none;
    }

    /* Показываем кнопку "МЕНЮ" */
    .burger-menu {
        display: flex;
    }
    
    .burger-icon {
        font-size: 30px;
    }
    
    .burger-text {
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
}