/*
 * Corporate pages CSS overrides.
 * Loaded AFTER the donor bundle (assets/css/style.min.css) on corporate pages
 * (see functions.php -> mk_is_corporate_page()). Keep the minified donor file
 * untouched; put all hand-made tweaks for about/services/areas/etc. here.
 */

/*
 * Reviews slider navigation.
 * The donor bundle has a global rule
 *   @media (min-width: 992px) { .swiper-nav { position: absolute; top: .3125rem; right: 1rem; } }
 * meant for the services/gallery sliders (whose nav is hidden on desktop anyway).
 * On the reviews slider nobody overrides it, so the prev/pagination/next block
 * floated to the top-right corner over the cards. Pin it back under the slides
 * at every breakpoint (higher specificity than the bare .swiper-nav rule).
 */
.reviews .swiper-nav {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin-top: 2.5rem;
    margin-right: auto;
}

/*
 * Background backdrop layer for the Reviews and FAQ sections.
 * These sections have no ::before in the donor bundle, so we create one here.
 * The image itself is injected per-site by header.php (the global
 * "Настройки сайта → Фоны секций" options bg_reviews / bg_faq) as
 *   .reviews::before / .faq::before { background-image: url(...) !important; }
 * When the option is empty the layer stays transparent (no image) — harmless.
 * Content stays above it via the existing .reviews__container / .faq__container
 * z-index: 2 rules in the donor bundle.
 */
.reviews::before,
.faq::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}
