:root {
    --primary-color: #f39c12; /* Желтый «строительный» акцент */
    --dark-color: #2c3e50;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --text-main: #333;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    /* line-height: 1.6; */
}
html {
    scroll-behavior: smooth;
}

#main{
    scroll-margin-top: 20px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Дополнительная проверка для контейнера хедера */
.header {
    overflow: hidden;
}





/*-------------Контакты----------------- */
.contacts-section {
    padding: 80px 20px; /* Отступы сверху/снизу и по бокам для мобилок */
    max-width: 900px;   /* Оптимальная ширина, чтобы текст не был слишком длинным */
    margin: 0 auto;     /* МАГИЯ: центрирует блок по горизонтали */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует заголовок внутри секции */
}

.contacts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

/* Элементы контактов */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    background: #f0f0f0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--main-color);
}

.contact-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.contact-text p, .contact-text a {
    margin: 0;
    color: #666;
    text-decoration: none;
    line-height: 1.5;
}

/* Блок мессенджеров */
.contacts-social {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.social-btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
    flex: 1;
    min-width: 140px;
}

.social-btn.tg { background: #0088cc; }
.social-btn.wa { background: #25d366; }
.social-btn.vb { background: #7360f2; }

.social-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacts-social {
        padding: 25px;
    }
}


/*______________________________*/




/* --- Навигация --- */
.header {
    /* background: var(--white); */
    background: #ffffff5e;
    backdrop-filter: blur(8px);
    padding: 0.1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 4px;
}

.phone-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.phone-link:hover { color: var(--primary-color); }
/* Базовые стили хедера */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--main-color);
}

/* Бургер-кнопка (скрыта на ПК) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.phone-text {
        font-size: 50px; /* Прячем цифры на мелких экранах, оставляем только иконку трубки */
        font-weight: bold;
    }


/* МОБИЛЬНАЯ АДАПТАЦИЯ (до 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Показываем бургер */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Меню спрятано */
        width: 70%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: 0.4s;
        
        /* ДОБАВЬ ЭТИ ДВЕ СТРОЧКИ */
        visibility: hidden; 
        pointer-events: none;
    }

    /* Когда меню открыто */
    .nav-menu.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .phone-text {
        display: none; /* Прячем цифры на мелких экранах, оставляем только иконку трубки */
    }

    /* Анимация бургера в крестик */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* Запрещаем внешним стилям влиять на плитки карты */






.grid-layout { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
}
.service-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    text-align: center; 
    transition: 0.3s; 
}
.service-card:hover { 
    transform: translateY(-5px); 
}
.service-card span { 
    font-size: 40px; 
    display: block; 
    margin-bottom: 10px; 
}


.floating-contact { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 5; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.contact-icon.wa { background: #25d366; }
.contact-icon.phone { background: var(--main-color); }

/* Контейнер секции FAQ */
/* Контейнер всей секции */
.faq-section {
    padding: 80px 20px; /* Отступы сверху/снизу и по бокам для мобилок */
    max-width: 900px;   /* Оптимальная ширина, чтобы текст не был слишком длинным */
    margin: 0 auto;     /* МАГИЯ: центрирует блок по горизонтали */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует заголовок внутри секции */
}

/* Обертка для самих вопросов */
.faq-container {
    width: 100%; /* Растягивается на все 900px контейнера */
}

.faq-item {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

/* Центрирование текста в заголовке секции */
.faq-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

/* Стилизация кнопки-вопроса */
.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background-color: #fcfcfc;
}

/* Иконка стрелочки */
.faq-question::after {
    content: '+'; /* Можно заменить на SVG стрелочку */
    font-size: 1.5rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

/* Контейнер ответа (скрыт по умолчанию) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Состояние при открытии (добавляется через JS) */
.faq-item.active {
    border-color: var(--main-color);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg); /* Превращаем плюс в крестик или поворачиваем стрелку */
    color: #ff4d4d;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Достаточная высота для текста */
}

/* Убедитесь, что у контейнера визуально есть место */











/* Форма бронирования */
.hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Убрали gap на десктопе для прилегания картинки */
    gap: 0; 
    padding: 0; /* Пэддинг теперь внутри колонок */
    align-items: stretch; /* Растягиваем колонки по высоте самой высокой */
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--white); /* Общий фон для бесшовности */
    border-radius: 20px;
    overflow: hidden; /* Чтобы скруглить углы фона */
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.hero-content {
    padding: 1rem 5%; /* Пэддинг переехал сюда */
}

.booking-card {
    background: transparent; /* Фон теперь у .hero */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}


.badges {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.75); /* Полупрозрачный фон для читаемости */
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(8px); /* Более явный эффект размытия */
    z-index: 5; /* Поверх картинки */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#map {
    flex: 1;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* Адаптивность для мобильных */
@media (max-width: 968px) {
    .hero-visual { 
        height: auto; /* На мобильном высота зависит от картинки */
        border-radius: 20px 20px 0 0;
        align-items: center; /* На мобильном центрируем авто */
        padding: 2rem 0; /* Добавим поля на мобильном */
    }
    
    .hero-visual img { 
        height: 300px; /* Фиксированная высота на мобильном (как и раньше) */
        width: auto;
        max-height: 100%;
    }

    .badges {
        position: relative; /* На мобильном они идут за картинкой */
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
    }
}


.section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.form-group { margin-bottom: 1.2rem; }

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus { border-color: var(--primary-color); }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    cursor: pointer;
}

.btn-main {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-main:hover { background: #e67e22; transform: translateY(-2px); }

.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important; /* Убираем тень, если он внутри белой формы */
    border: 1px solid #eee !important;
}

/* Внутренняя обертка с днями */
.flatpickr-innerContainer, 
.flatpickr-days, 
.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Растягиваем каждую отдельную ячейку дня */
.flatpickr-day {
    max-width: none !important; /* Убираем ограничение в 39px */
    flex-basis: 14.2857% !important; /* Ровно 1/7 ширины недели */
    height: 45px !important; /* Можно чуть увеличить высоту для удобства */
    line-height: 45px !important;
}

/* Заголовок с месяцем и днями недели */
.flatpickr-month, 
.flatpickr-weekdays,
.flatpickr-weekdaycontainer {
    width: 100% !important;
    max-width: none !important;
}

span.flatpickr-weekday {
    flex: 1 !important; /* Равномерно распределяем названия дней недели */
}




/* Ссылка на политику */
.privacy-group a {
    color: var(--main-color);
    text-decoration: underline;
    font-weight: 500;
}

/* Фон модального окна (затемнение) */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px); /* Легкое размытие фона */
}

/* Контент модального окна */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Кнопка закрытия (крестик) */
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover { color: #333; }

.modal-body {
    line-height: 1.6;
    color: #444;
    margin-top: 20px;
}



.container{
    margin: 20px;
}

.services-grid{
    margin: 20px;
}




/* Общие настройки секции ТТХ */
.specs-section {
    padding: 10px 0;
    background-color: #f9f9f9; /* Светлый фон, чтобы выделить на фоне белой формы */
}

/* Обертка (Flex-контейнер для двух колонок) */
.specs-wrapper {
    display: flex;
    /* align-items: center; Центрируем по вертикали */
    gap: 60px; /* Отступ между колонками */
}

/* Колонки пополам */
.specs-image, .specs-content {
    flex: 1;
    width: 50%;
}

/* Стилизация картинки */
.specs-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Глубокая тень */
}

.spec-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер */
    display: block;
}

/* Красивый бейдж поверх картинки */
.spec-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 30px 20px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Контент справа */
.specs-content h2.section-title {
    margin-bottom: 10px;
    text-align: left; /* Перебиваем глобальное выравнивание */
}

.section-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Таблица характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse; /* Убираем двойные границы */
    margin-bottom: 30px;
}

.specs-table td {
    padding: 18px 10px;
    border-bottom: 1px solid #eaeaea; /* Тонкая серая линия разделителя */
    color: var(--dark-color);
}

/* Выравнивание первого столбца (название параметра) */
.specs-table td:first-child {
    font-weight: 500;
    color: #555;
}

/* Иконки в таблице */
.specs-table .icon {
    display: inline-block;
    width: 25px;
    margin-right: 10px;
    opacity: 0.8;
}

/* Выравнивание второго столбца (значение) */
.specs-table td strong {
    font-size: 1.05rem;
}

/* Кнопка под таблицей */
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--main-color);
    color: #fff;
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .specs-wrapper {
        flex-direction: column; /* Колонки друг под другом */
        gap: 30px;
    }
    .specs-image, .specs-content {
        width: 100%;
    }
    .specs-image {
        order: -1; /* Картинка всегда сверху */
    }
}




.resources-section {
    
}

.resources-grid {
    display: grid;
    
    grid-template-columns: 1fr 1fr; /* Две колонки на ПК */
    gap: 30px;
    margin-top: 30px;
}

.resource-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover {
    transform: scale(1.02); /* Легкое увеличение всей карточки */
}

/* Затемнение фона для читаемости текста */
.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end; /* Текст внизу карточки */
    padding: 30px;
    transition: background 0.3s ease;
}

.resource-card:hover .resource-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 100%);
}

.resource-content {
    color: #fff;
    width: 100%;
}

.resource-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.resource-content p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Стилизация кнопки внутри карточки */
.resource-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--main-color);
    color: #fff;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.resource-card:hover .resource-btn {
    filter: brightness(1.2);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
    }
    .resource-card {
        height: 250px;
    }
}




/* --- Футер --- */
.footer {
    background: var(--dark-color);
    color: #bdc3c7;
    padding: 2rem 5% 2rem;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 4fr ;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer h3 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.8rem; }
.footer a { color: inherit; text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--primary-color); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    background: #ffeded !important; /* Светло-красный фон */
    color: #ff4d4d !important;      /* Красный текст */
    cursor: not-allowed;
    text-decoration: line-through;   /* Зачеркивание */
    border-color: transparent !important;
}

/* Контейнер для карты */
/* Контейнер карты теперь должен растягиваться */
#map {
    width: 100%;
    height: 100%;
    min-height: 500px; /* Важно: чтобы карта не схлопнулась в 0 */
    background: #f0f0f0;
}

.hero {
    display: flex; /* или grid */
    align-items: stretch; /* Это заставит колонки быть одной высоты */
}

.hero-visual {
    flex-grow: 1; /* Позволяет колонке занять всё свободное место справа */
    position: relative;
    min-height: 500px; /* Важно: у карты должна быть высота */
}

#map {
    width: 100%;
    height: 100%;
    position: absolute; /* Позволяет карте заполнить весь родительский блок .hero-visual */
    top: 0;
    left: 0;
}


.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-top: 10px;
    user-select: none;
}
.hero-container-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .hero-container-form { grid-template-columns: 1fr; }
    #map { height: 400px; }
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f39c12; /* Оранжевый цвет в стиле вашего бренда */
}
/* Бейджи поверх карты */
.hero-visual .badges {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5; /* Выше слоев карты */
    pointer-events: none; /* Чтобы не мешали кликать по карте под ними */
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    #map {
        height: 350px; /* Фиксированная высота для мобильных */
    }
}



.gallery-section {
    width: 100%;
    max-width: 1400px; /* Ограничиваем ширину, чтобы на огромных мониторах не было гигантизма */
    margin: 2rem auto;
    padding: 0 20px;
}

.mySwiper {
    width: 100%;
    /* Используем аспектное соотношение 16/9 */
    aspect-ratio: 16 / 9; 
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0; /* Светлый фон для пустых зон, если фото чуть другие */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; /* Черный фон для "киношного" эффекта, если фото не на весь слайд */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    /* ИЗМЕНЕНО: contain вместо cover. Фото будет видно ПОЛНОСТЬЮ */
    object-fit: contain; 
    display: block;
}

/* На мобильных можно сделать чуть выше, чтобы не было слишком узко */
/* @media (max-width: 768px) {
    .mySwiper {
        aspect-ratio: 4 / 3;
    }
} */

/* Кастомизация стрелок под ваш стиль (оранжевый) */
.swiper-button-next, .swiper-button-prev {
    color: #f39c12 !important;
}

.swiper-pagination-bullet-active {
    background: #f39c12 !important;
}