
/* v1.0.2 — геометрия шапки и главной как в «Клондайк Сервис». */
:root { --service-page-width: 1330px; }

body.service-home-body {
    background: #fff;
}

body.service-home-body .market-header {
    width: min(var(--service-page-width), calc(100% - 32px));
    max-width: var(--service-page-width);
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

body.service-home-body .market-header__main {
    width: 100%;
    min-height: 80px;
    height: 80px;
    box-sizing: border-box;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

body.service-home-body .market-header__sub {
    width: 100%;
    min-height: 55px;
    box-sizing: border-box;
    margin: 0;
}

body.service-home-body .service-home {
    width: min(var(--service-page-width), calc(100% - 32px));
    max-width: var(--service-page-width);
    margin: 0 auto;
    padding-top: 0;
}

body.service-home-body .service-radio {
    width: 100%;
    height: 80px;
    margin: 0;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    background: #fff;
}

body.service-home-body .service-radio img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Баннер всегда виден, даже если OwlCarousel не загрузился. */
.service-promo-widget {
    width: 100%;
    margin-top: 14px;
}

.service-promo-widget .banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1330 / 195;
    overflow: hidden;
    border-radius: 30px;
    background: #f1f3f6;
    isolation: isolate;
}

.service-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .42s ease;
}

.service-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-banner-slide a,
.service-banner-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-promo-widget .banner-carousel::after {
    content: "Реклама";
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: #555;
    font-size: 11px;
    backdrop-filter: blur(9px);
    pointer-events: none;
}

.service-banner-nav {
    position: absolute;
    z-index: 7;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.84);
    box-shadow: 0 5px 18px rgba(0,0,0,.10);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    opacity: .75;
    transition: opacity .2s, transform .2s;
}

.service-banner-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.service-banner-nav--prev { left: 18px; }
.service-banner-nav--next { right: 18px; }

.service-banner-dots {
    position: absolute;
    z-index: 7;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-banner-dots button {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255,255,255,.58);
    cursor: pointer;
    transition: width .2s, background .2s;
}

.service-banner-dots button.is-active {
    width: 28px;
    background: #fff;
}

.adaptive-banner--mobile { display: none !important; }

/* Партнёры — расположение как в старом Клондайке */




/* Рабочая модалка партнёров — независима от Bootstrap и старых modal-классов. */
.service-partner-modal[hidden] { display: none !important; }

.service-partner-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.service-partner-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 16, 9, .66);
    backdrop-filter: blur(5px);
}

.service-partner-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(700px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 22px;
    padding: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
}

.service-partner-modal__media {
    overflow: hidden;
    border-radius: 16px;
}

.service-partner-modal__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 470px;
    object-fit: cover;
    object-position: center top;
}

.service-partner-modal__body { padding: 13px 8px 4px; }

.service-partner-modal__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.service-partner-modal__heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
}

.service-partner-modal__heading span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: #45ad30;
    font-size: 12px;
    font-weight: 800;
}

.service-partner-modal__body p {
    margin: 14px 0 18px;
    color: #596274;
    font-size: 16px;
    line-height: 1.45;
}

.service-partner-modal__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg,#ff7200,#e6007d);
    box-shadow: 0 14px 30px rgba(230,0,125,.25);
    text-decoration: none;
    font-weight: 800;
}

.service-partner-modal__close {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.service-partner-modal__arrow {
    position: absolute;
    z-index: 3;
    top: 45%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.36);
    font-size: 30px;
    cursor: pointer;
}

.service-partner-modal__arrow--prev { left: 30px; }
.service-partner-modal__arrow--next { right: 30px; }

.service-partner-modal__progress {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 56px;
    right: 56px;
    display: flex;
    gap: 6px;
}

.service-partner-modal__progress span {
    height: 3px;
    flex: 1;
    border-radius: 99px;
    background: rgba(0,0,0,.16);
}

.service-partner-modal__progress span.is-active { background: #1d1d1d; }

body.has-service-modal { overflow: hidden; }

@media (max-width: 900px) {
    body.service-home-body .market-header,
    body.service-home-body .service-home {
        width: min(100% - 20px, var(--service-page-width));
    }
}

@media (max-width: 767px) {
    body.service-home-body .market-header__main {
        min-height: 68px;
        height: auto;
    }

    body.service-home-body .service-radio,
    body.service-home-body .service-radio img {
        height: 54px;
    }

    .service-promo-widget .banner-carousel {
        aspect-ratio: 737 / 320;
        border-radius: 20px;
    }

    .adaptive-banner--pc { display: none !important; }
    .adaptive-banner--mobile { display: block !important; }

    .service-banner-nav {
        width: 36px;
        height: 36px;
    }

    .service-banner-nav--prev { left: 8px; }
    .service-banner-nav--next { right: 8px; }

    .service-promo-widget .icon-item {
        width: 66px;
        min-width: 66px;
    }

    .service-promo-widget .icon-item img {
        width: 60px;
        height: 60px;
    }

    .service-promo-widget .icon-item span { font-size: 9px; }

    .service-partner-modal {
        padding: 10px;
    }

    .service-partner-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 12px;
        border-radius: 17px;
    }

    .service-partner-modal__arrow--prev { left: 18px; }
    .service-partner-modal__arrow--next { right: 18px; }
}


