:root {
    --main-blue: #00a8ff;
    --dark-blue: #0077b6;
    --light-blue: #e3f2fd;
    --loft-dark: #2d3436;
    --text-gray: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--loft-dark);
    scroll-behavior: smooth;
}

/* Навигация */
nav {
    background: #fff;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--main-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--loft-dark);
    font-weight: 400;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--main-blue);
}

/* Главный экран (Hero Section) */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/fotofon.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn {
    background: var(--main-blue);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
}

/* Стили для секций */
section {
    padding: 100px 10%;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    width: 50px;
    height: 5px;
    background: var(--main-blue);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* О лофте */
#about {
    background-color: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Заголовок занимает 1 часть, текст 2 части */
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

#about h2 {
    text-align: left;
    margin-bottom: 0;
}

/* Увеличиваем линию специально для секции "О лофте" */
#about h2::after {
    width: 120px; /* Было 50px, сделали 120px для солидности */
    height: 6px;  /* Можно сделать чуть толще, чтобы подчеркнуть лофт-стиль */
    left: 0;
    transform: none;
    bottom: -10px; /* Немного отодвинем от текста, чтобы "дышало" */
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: justify; /* Делает края текста ровными */
    hyphens: auto; /* Автоматические переносы для красоты */
}

/* Наши преимущества */
/* Секция преимуществ */
#advantages {
    background-color: var(--light-blue); /* Светло-голубой фон для разделения секций */
    padding: 80px 10%;
}

.adv-grid {
    display: grid;
    /* auto-fit заставляет карточки растягиваться и занимать всё свободное место в ряду */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
    margin-top: 40px;
}

.adv-item {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 168, 255, 0.1);
}

/* Эффект при наведении */
.adv-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 168, 255, 0.15);
    border-color: var(--main-blue);
}

.adv-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
}

.adv-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--loft-dark);
    font-weight: 700;
}

.adv-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin: 0;
}

/* Адаптация для мобильных: убираем лишние отступы */
@media (max-width: 600px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }
}

/* ГАЛЕРЕЯ (ОБНОВЛЕННЫЕ СТИЛИ) */
/* Убираем Grid, Slick сам выстроит элементы в ряд */
.gallery-carousel {
    max-width: 1000px; /* Ограничим ширину карусели */
    margin: 0 auto;
    padding: 0 40px; /* Место для стрелочек по бокам */
}

/* Элемент галереи (теперь это ссылка 'a') */
.gallery-item {
    display: block; /* Ссылка должна быть блочной */
    height: 300px;
    overflow: hidden;
    position: relative;
    outline: none; /* Убрать рамку при клике в Slick */
    margin: 0 10px; /* Отступы между слайдами */
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* Эффект при наведении */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Кастомизация стрелочек Slick, чтобы они подходили под лофт */
.slick-prev:before, .slick-next:before {
    color: var(--main-blue); /* Наш основной голубой цвет */
    font-size: 30px;
    opacity: 0.8;
}

.slick-prev {
    left: -10px;
}

.slick-next {
    right: -10px;
}

/* Стили для точек навигации Slick */
.slick-dots li button:before {
    color: var(--main-blue);
    font-size: 12px;
}

.slick-dots li.slick-active button:before {
    color: var(--dark-blue);
}

/* Цены */
/* Контейнер сетки */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Общие стили карточек */
.price-card {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.card-content {
    background: rgba(0, 119, 182, 0.85); /* Полупрозрачный синий */
    padding: 30px;
    width: 100%;
    height: 60%; /* Высота выезжающей панели */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    
    /* Начальное состояние: скрыто внизу */
    transform: translateY(100%); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card::before {
    content: attr(data-title);
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    transition: opacity 0.3s;
}

/* Эффект при наведении на любую карточку */
.price-card:hover .card-content {
    transform: translateY(0); /* Панель выезжает вверх */
}

/* Скрываем подпись-заголовок при наведении, чтобы не мешала контенту */
.price-card:hover::before {
    opacity: 0;
}

.price-card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.price-card .price { font-size: 1.5rem; font-weight: 700; color: var(--main-blue); margin-bottom: 15px; }
.price-card .price span { font-size: 0.9rem; color: #ccc; }
.price-card p { font-size: 0.9rem; margin-bottom: 20px; opacity: 0.9; }

/* Кнопка внутри карточки */
.card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: 0.3s;
}

.card-btn:hover {
    background: #fff;
    color: var(--dark-blue);
}

/* Фоны карточек */
.card-event { background-image: url('images/format6.jpg'); }
.card-party { 
    background-image: url('images/format1.jpg');
    background-position: top center; 
}
.card-romantic { background-image: url('images/format5.jpg'); }
.card-family { background-image: url('images/format2.jpg'); }
.card-flash { background-image: url('images/format3.jpg'); }
.card-custom { 
    background-image: url('images/format4.jpg'); 
    /* Если фото специфическое, можно тоже подправить позицию */
    background-position: center; 
}


/* Форма бронирования и календарь */
/* Контейнер для текстового бронирования */
.booking-text-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.booking-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центрируем по вертикали для аккуратности */
    gap: 40px;
    margin-top: 40px;
}

.booking-info {
    flex: 1.2; /* Левая часть чуть шире */
}

/* Список шагов */
.steps-list {
    list-style: none;
    margin-top: 20px;
}

.steps-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.steps-list span {
    color: var(--main-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 20px;
    border-right: 2px solid var(--main-blue);
    padding-right: 15px;
}

/* Блок с кнопками */
.booking-cta {
    background: var(--light-blue);
    padding: 40px;
    border-radius: 20px;
    flex: 1; /* Правая часть теперь занимает достаточно места */
    min-width: 350px; /* Гарантируем минимальную ширину для телефона */
    text-align: center;
}

.booking-cta p {
    margin-bottom: 25px;
    font-weight: 400;
}

.booking-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-max, .btn-vk {
    flex: 1; /* Распределяет место поровну */
    height: 55px; /* Фиксированная высота для симметрии */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Цвет для MAX (используем глубокий синий/голубой) */
.btn-max { 
    background-color: #00a8ff; 
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

/* Цвет для ВК (фирменный синий) */
.btn-vk { 
    background-color: #0077ff; 
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.btn-max:hover, .btn-vk:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Оформление телефона в одну строку */
.phone-container {
    margin-top: 25px;
}

.phone-container p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.phone-link {
    display: inline-block;
    color: var(--loft-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem; /* Крупный номер */
    border-bottom: 2px solid var(--main-blue);
    white-space: nowrap; /* ЗАПРЕТ ПЕРЕНОСА НОМЕРА */
    transition: 0.3s;
}

.phone-link:hover {
    color: var(--main-blue);
}

/* Адаптивность для мобильных */
@media (max-width: 900px) {
    .booking-content {
        flex-direction: column;
    }
    .booking-cta {
        width: 100%;
        min-width: unset;
    }
}

.booking-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.calendar-mockup {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.booking-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.booking-form input, .booking-form select {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Контакты */
.contacts-info {
    text-align: center;
}

footer {
    background: var(--loft-dark);
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    nav ul { display: none; }
    #hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Перестраиваем сетку в одну колонку */
    .about-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Выравниваем заголовок по центру */
    #about h2 {
        text-align: center;
    }

    /* Центрируем длинную синюю линию */
    #about h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 100px; /* На мобильном можно чуть короче, чем 120px */
    }

    /* Исправляем текст: убираем justify, так как на узких экранах он создает дыры */
    .about-text {
        text-align: center;
        font-size: 1rem; /* Чуть уменьшим шрифт для мобильных */
        line-height: 1.6;
        hyphens: none;
    }
}

/* Перемещаем контейнер с кнопкой закрытия */
.lb-dataContainer {
    position: absolute;
    top: -40px; /* Выносим над фотографией */
    right: 0;
    width: auto !important;
    padding-top: 0;
}


/* Стилизуем кнопку закрытия */
.lb-data .lb-close {
    width: 35px;
    height: 35px;
    background-size: 100%;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
    top: 5px;
}

/* Эффект при наведении на крестик */
.lb-data .lb-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}