.herosection--mobile {
    width: 100%;
}

.herosection--desktop {
    display: none;
}

.herosection__slider-swiper {
    width: 100%;
    height: 100%;
}

.herosection--mobile .herosection__slider-swiper {
    padding-bottom: 15px;
}

.herosection__billboard {
    background-color: white;
    height: 100%;
    width: 100%;
}

.herosection__billboard--mobile {
    height: 100%;
    width: 100%;
    background-color: var(--belyy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    line-height: 21px;
    color: var(--seryy);
}

.herosection__slide {
    width: min(calc(100% - 80px), 460px);
    max-width: none;
    aspect-ratio: 313 / 200;
    height: auto;
    background-color: var(--belyy);
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.07);
}

.herosection--mobile .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0 !important;
    display: flex;
    gap: 5px;
    max-width: 60px;
    z-index: 2;
}

.herosection--mobile .swiper-pagination-bullet {
    width: 10px;
    height: 2px;
    background: var(--chernyy);
    border-radius: 5px;
    opacity: 1 !important;
    margin: 0 !important;
    transition: width 0.3s ease;
}

.herosection--mobile .swiper-pagination-bullet-active {
    width: 30px;
}

@media (min-width: 768px) {
    .herosection--mobile {
        display: none;
    }

    .herosection--desktop {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 220px 140px;
        gap: 15px;
    }
    .herosection__billboard--main {
        grid-area: 1 / 1 / 2 / 3;
    }
}

@media (min-width: 1200px) {
    .herosection--desktop {
        display: grid;
        grid-template-rows: 430px 330px;
        gap: 20px;
    }
    .herosection__billboard--main {
        grid-area: 1 / 1 / 2 / 3;
    }
}

/* Banners from the admin ("Акции на главной"): pictures fill their frame, optional link wraps the picture */
.herosection__billboard img,
.herosection__billboard--mobile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herosection__link {
    display: block;
    width: 100%;
    height: 100%;
}

.herosection__hint {
    margin: 0 0 20px;
    padding: 12px 15px;
    background: #fff4d6;
    border-left: 4px solid #e0a800;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
}

@media (min-width: 768px) {
    .herosection--only-main,
    .herosection--only-main.herosection--desktop {
        grid-template-rows: 220px;
    }

    .herosection--no-main.herosection--desktop {
        grid-template-rows: 140px;
    }

    .herosection--one-side .herosection__billboard--other {
        grid-column: 1 / 3;
    }
}

@media (min-width: 1200px) {
    .herosection--only-main.herosection--desktop {
        grid-template-rows: 430px;
    }

    .herosection--no-main.herosection--desktop {
        grid-template-rows: 330px;
    }
}
