/* ===== HOME-PAGE.CSS ===== */
/* Только стили тела главной страницы */

.main_bg, .main_mid {
    background: #b9dfe9;
    min-height: 100vh;
}

/* ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ - ВАЖНО ДЛЯ БАННЕРА ГОСУСЛУГ */


/* ГЛАВНЫЙ СЛАЙДЕР */
.slider_cont {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.simple-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide:first-child {
    opacity: 1;
}

/* КНОПКА "ПОСМОТРЕТЬ ВСЕ СПЕКТАКЛИ" */
a.button[data-rel=""][href="/menju/SPEKTAKLI/"] {
    display: block;
    min-height: 50px;
    font: 700 18px/30px 'Evolventa', sans-serif;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    min-width: 220px;
    box-sizing: border-box;
    position: relative;
    transition: all .2s ease 0s;
    border-radius: 70px;
    background: rgba(64, 86, 104, 1);
    color: #f8f8f8;
    width: 100%;
    margin: 0 auto;
    border: none;
    cursor: pointer;
}

a.button[data-rel=""][href="/menju/SPEKTAKLI/"]:hover {
    background: #5ba2b8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 162, 184, 0.3);
}

/* ПАРТНЕРЫ */
.partners-section {
    margin: 50px 0;
    padding: 0 15px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.partner-link {
    display: inline-block;
    transition: all 0.3s ease;
    height: 150px; /* ← ФИКСИРОВАННАЯ ВЫСОТА */
}

.partner-link:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.partner-link img {
    height: 150px; /* ← ФИКСИРОВАННАЯ ВЫСОТА */
    width: auto; /* ← ШИРИНА АВТОМАТИЧЕСКАЯ ПРОПОРЦИОНАЛЬНАЯ */
    border-radius: 8px;
}

/* ИНФО-БАННЕР */
.info-banner {
    text-align: center;
}

.info-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* МОБИЛЬНАЯ ВЕРСИЯ ДЛЯ ТЕЛА ГЛАВНОЙ СТРАНИЦЫ */
@media screen and (max-width: 1250px) {
    .slider_cont {
        height: 400px;
    }
    
    .slide {
        background-size: cover;
        background-position: center center;
    }
    
    
    .partners-section {
        margin: 30px 0;
    }
    
    .partners-grid {
        gap: 15px;
    }
    
    .partner-link img {
        max-width: 150px;
    }
    
    .info-banner img {
        max-width: 95%;
    }
}

@media screen and (max-width: 768px) {
    .slider_cont {
        height: 300px;
    }
    
    .partners-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .partner-link img {
        max-width: 200px;
    }
    
    .info-banner img {
        max-width: 95%;
    }
    
    /* Мобильная версия кнопки */
    a.button[data-rel=""][href="/menju/SPEKTAKLI/"] {
        min-height: 45px;
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media screen and (max-width: 480px) {
    .slider_cont {
        height: 250px;
    }
    
    .partner-link img {
        max-width: 180px;
    }
    
    .info-banner img {
        max-width: 90%;
    }
}