/* Общие стили для всех элементов */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Футер на главной странице */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.main-content {
    flex: 1;
    margin-top: 80px;
    padding-bottom: 0;
}

.footer {
    margin-top: auto;
    position: relative;
    width: 100%;
}

/* Стили для баннеров "О нас" (с фотографиями) */
.banner span {
    transition: opacity 0.3s ease;
}
.banner:hover span {
    opacity: 1 !important;
}
.banner {
    position: relative;
    overflow: hidden;
}

/* Лицевая сторона баннера (первый текст) */
.banner-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    background-color: #000744;
    color: #FFFFFF;
    font-size: 20px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
/* Баннеры раздела "О нас" (с фоновыми изображениями) */
.info-banner {
    width: 304px;
    height: 195px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Фоновые изображения для каждого баннера */
.info-banner:nth-child(1) {
    background-image: url('img_musorka/first_photo.svg');
}
.info-banner:nth-child(2) {
    background-image: url('img_musorka/second_photo.svg');
}
.info-banner:nth-child(3) {
    background-image: url('img_musorka/third_photo.svg');
}

/* Текст внутри баннеров "О нас" */
.info-banner .banner-text {
    opacity: 0;
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000744;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 20px;
    transition: opacity 0.3s;
}

/* При наведении показываем текст на баннерах "О нас" */
.info-banner:hover .banner-text {
    opacity: 1;
}

/* Контейнер для трёх основных баннеров (инструкции) */
.banners-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* Основные баннеры (инструкции) */
.banner {
    width: 304px;
    height: 195px;
    background-color: #000744;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Лицевая сторона основных баннеров */
.banner-front {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    text-align: center;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000744;
    transition: opacity 0.3s;
}

/* Оборотная сторона основных баннеров */
.banner-back {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    color: #FFFFFF;
    font-size: 12px;
    text-align: left;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000744;
    opacity: 0;
    transition: opacity 0.3s;
}

/* При наведении скрываем лицевую сторону */
.banner:hover .banner-front {
    opacity: 0;
}

/* При наведении показываем оборотную сторону */
.banner:hover .banner-back {
    opacity: 1;
}
/* Слайдер */
.banners-slider {
    position: relative;
    width: 304px;
    height: 195px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2px;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

.slide .banner {
    width: 304px;
    height: 195px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000744;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    z-index: 10;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: -40px;
}

.slider-next {
    right: -40px;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: #1a1a6e;
}
@media (max-width: 400px) {
    .slider-prev {
        left: -30px;
    }
    .slider-next {
        right: -30px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

@media (min-width: 1001px) {
    .banners-slider {
        width: auto;
        max-width: 972px;
        overflow: visible;
    }
    .slides-container {
        display: flex;
        gap: 20px;
        transform: none !important;
    }
    .slide {
        flex: 0 0 auto;
        width: 304px;
    }
    .slider-prev,
    .slider-next,
    .slider-dots {
        display: none;
    }
}
@media (max-width: 1000px) {
    h2 {
        text-align: center;
    }
}
/* Слайдер для раздела "О нас" */
.about-slider {
    position: relative;
    width: 304px;
    height: 195px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2px;
}

.about-slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.about-slide {
    flex: 0 0 100%;
    height: 100%;
}

.about-slide .info-banner {
    width: 304px;
    height: 195px;
}

.about-prev,
.about-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000744;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    z-index: 10;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-prev {
    left: -40px;
}

.about-next {
    right: -40px;
}

.about-prev:hover,
.about-next:hover {
    background-color: #1a1a6e;
}

.about-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.about-dots .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.about-dots .dot.active {
    background-color: white;
}

@media (min-width: 1001px) {
    .about-slider {
        width: auto;
        max-width: 972px;
        overflow: visible;
    }
    .about-slides-container {
        display: flex;
        gap: 20px;
        transform: none !important;
    }
    .about-slide {
        flex: 0 0 auto;
        width: 304px;
    }
    .about-prev,
    .about-next,
    .about-dots {
        display: none;
    }
}

@media (max-width: 400px) {
    .about-prev {
        left: -30px;
    }
    .about-next {
        right: -30px;
    }
}
.banner, .banner-front, .banner-back, .info-banner, .banner-text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}