/* Стили для карточек товаров и слайдера */
.product-card-img, .swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-swiper .swiper-slide img {
    height: 400px;
}

.swiper {
    width: 100%;
    height: auto;
}

/* Стили для баннера на главной странице */
.hero-banner {
    min-height: 450px;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 800px;
    padding: 2rem 5%;
}

/* Стили для бегущей строки */
.marquee-container {
    background-color: #343a40;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 1.1rem;
    color: #ff4757;
    font-weight: 500;
}

@keyframes marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Стили для блоков "Почему мы" */
.feature-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover, .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    color: #0d6efd;
}

/* Стили для заголовков каталога */
.catalog-heading {
    text-align: center;
}

.catalog-subtitle {
    text-align: center;
    font-weight: 300;
    font-size: 1rem;
    margin-top: -5px;
    margin-bottom: 2rem;
    color: #6c757d;
}

/* Стили для секции "Процесс установки" */
.process-section {
    color: white;
    /* ИСПОЛЬЗУЕМ АБСОЛЮТНЫЙ ПУТЬ */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/img/process-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.process-section h2, .process-section .step-card p, .process-section .step-card h4 {
    color: white;
}

.step-card {
    background-color: rgba(248, 249, 250, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Стили для секции отзывов */
.reviews-section {
    padding: 2rem 0;
    /* ИСПОЛЬЗУЕМ АБСОЛЮТНЫЙ ПУТЬ */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/img/reviews-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: .25rem;
}

.reviews-section h2 {
    color: #fff;
}

.reviews-swiper {
    padding-bottom: 20px;
}

.reviews-swiper .swiper-pagination {
    display: none !important;
}

.reviews-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.review-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    color: #333;
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: bold;
    color: #333;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 1rem;
        text-align: center;
    }

    .hero-content h1.display-5 {
        font-size: 2rem;
    }

    .hero-content p.fs-4 {
        font-size: 1.1rem;
    }

    /* Отключаем эффект параллакса на мобильных, так как он может плохо работать */
    .process-section, .reviews-section {
        background-attachment: scroll;
    }
}