/* Стили для страниц конкретных залов и календарей */

/* --- Блок О залах (Минимализм) --- */
.features-section {
    background-color: var(--bg-main);
    padding: 60px 5%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-minimal-grid {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.feature-minimal-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-minimal-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-minimal-item .value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 500;
}

/* --- Стили для спойлера календаря (Общие) --- */
.spoiler-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.spoiler-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 18px 45px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.spoiler-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.spoiler-btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spoiler-btn.active svg {
    transform: rotate(180deg);
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    margin-top: 40px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.spoiler-content.show {
    max-height: 800px;
}

/* --- Стили для полосок в Hero (страница календарей) --- */
.hero-strips {
    display: flex;
    gap: 10px; /* Небольшой зазор между полосками */
    height: 600px;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.hero-strips .strip {
    position: relative;
    flex: 1;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

/* На десктопе при наведении активная полоска расширяется, но остальные остаются видимыми */
@media (min-width: 769px) {
    .hero-strips:hover .strip {
        flex: 0.7;
    }
    .hero-strips .strip:hover {
        flex: 3; /* Не на весь экран, а в 3-4 раза шире остальных */
    }
}

.hero-strips img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-strips .strip:hover img {
    transform: scale(1.05);
}

/* Подсказка (Hint) */
.strip-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-main);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.hero-strips .strip:hover .strip-hint {
    opacity: 1;
}

/* --- Стили для списка календарей --- */
.calendars-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center; /* Центрируем кнопки */
}

.calendars-list .spoiler-container {
    width: 100%; /* Контейнер на всю ширину для контента */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendars-list .spoiler-btn {
    width: 50%; /* Кнопка в половину экрана на десктопе */
    justify-content: space-between;
    padding: 18px 30px;
    transition: width 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.calendars-list .spoiler-content {
    width: 100%; /* Календарь на всю ширину экрана/контейнера */
}

.calendars-list .spoiler-content.show {
    max-height: 2000px; /* Увеличиваем высоту для iframe календаря */
}

/* --- ГАЛЕРЕЯ АТМОСФЕРА ЗАЛА --- */
.hall-full-gallery {
    padding: 80px 0;
    background: var(--bg-main);
    overflow: hidden;
}

.gallery-container {
    padding: 0 5%;
}

.gallery-wrapper {
    display: grid;
    /* Сетка из 3 колонок на десктопе для span 2 */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    grid-auto-flow: dense;
}

.gallery-slide {
    height: 500px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Горизонтальное фото (занимает 2 колонки) */
.gallery-slide.wide {
    grid-column: span 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

/* --- Секция правил в зале --- */
.hall-rules {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

.rules-container {
    max-width: 900px; 
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5; 
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    padding-left: 20px;
}

.rules-footer {
    margin-top: 35px;
    text-align: center;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

/* --- Контакты (Простой блок) --- */
.simple-contacts { 
    padding: 80px 5%; 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 
}

.simple-contacts h2 { 
    font-size: 3rem; 
    margin-bottom: 30px; 
}

.simple-contacts p { 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
    color: var(--text-muted); 
}

.simple-contacts strong { 
    color: var(--text-main); 
    display: block; 
    margin-bottom: 5px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1.5px; 
}


/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1200px) {
    .gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-minimal-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Галерея: Свайп на мобильных */
    .gallery-container {
        padding: 0; 
    }

    .gallery-wrapper {
        display: flex; 
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory; 
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        max-width: none;
    }

    .gallery-wrapper::-webkit-scrollbar {
        display: none; 
    }

    .gallery-slide {
        flex: 0 0 85vw;
        height: 450px;
        scroll-snap-align: center; 
        margin-left: 15px;
        border: none;
    }

    .gallery-slide.wide {
        flex: 0 0 85vw;
        grid-column: auto;
    }

    .gallery-slide:last-child {
        margin-right: 15px;
    }

    .spoiler-btn { width: 100%; justify-content: center; }
    .spoiler-content.show { max-height: 600px; }
    
    /* Стили для страницы календарей на мобильных */
    .calendars-list .spoiler-btn {
        width: 100%; /* Кнопка календаря на всю ширину */
    }

    /* Скрываем полоски с фото на мобильных */
    .hero-strips {
        display: none; 
    }

    .rules-container {
        font-size: 1rem;
    }
    
    .simple-contacts { padding: 60px 5%; }
    .simple-contacts h2 { font-size: 2.2rem; }
    .simple-contacts p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .features-minimal-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .gallery-slide {
        height: 350px;
    }
}