/* Specialists listing — Figma 797:352 */

.mr-specialists-page {
    display: flex;
    flex-direction: column;
    padding: 50px 0 0;
    background: #fff;
    color: #42474c;
    font-family: Montserrat, sans-serif;
}

body.mr-specialists-listing,
body.mr-specialists-listing .site_wrapper,
body.mr-specialists-listing .main_wrapper {
    display: flex;
    flex-direction: column;
}

body.mr-specialists-listing {
    min-height: 100vh;
}

body.mr-specialists-listing .site_wrapper,
body.mr-specialists-listing .main_wrapper,
body.mr-specialists-listing .mr-specialists-page,
body.mr-specialists-listing .mr-specialists-panel {
    flex: 1 1 auto;
}

.mr-specialists-panel {
    background: #f6f8f9;
    border-radius: 60px 60px 0 0;
    margin: 70px 0 0;
    padding: 52px 0 120px;
}

@media (min-width: 768px) {
    .mr-specialists-panel.is-empty-results {
        /* Leave room for the dropdown above the overlapping footer. */
        padding-bottom: 200px;
    }
}

body.mr-specialists-listing #footer.mr-footer {
    position: relative;
    z-index: 1;
    margin-top: -48px;
}

.mr-specialists-inner {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.mr-specialists-kicker {
    margin: 0 0 6px;
    color: #739289;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
    text-transform: uppercase;
}

.mr-specialists-hero {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    max-width: 1400px;
    min-height: 420px;
    margin-bottom: 56px;
    padding: 55.484px 64px;
    overflow: hidden;
    border-radius: 20px;
    font-family: Montserrat, sans-serif;
    /* Match the Cyrillic glyphs in the Figma banner. */
    font-feature-settings: "locl" 0;
}

.site-main > .mr-specialists-hero {
    margin-top: 50px;
    margin-bottom: 0;
}

.mr-specialists-hero-base,
.mr-specialists-hero-bg {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: none;
    pointer-events: none;
}

.mr-specialists-hero-base {
    top: -257.26%;
    height: 514.61% !important;
}

.mr-specialists-hero-bg {
    top: 0;
    height: 100% !important;
    object-fit: cover;
}

.mr-specialists-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(134, 123, 169, 0.9) 7.69%, rgba(68, 121, 136, 0.5) 100%),
        linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
        linear-gradient(rgba(38, 38, 38, 0.5), rgba(38, 38, 38, 0.5));
}

.mr-specialists-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    color: #fff;
}

.mr-specialists-hero-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10.568px;
}

.mr-specialists-hero-kicker,
.mr-specialists-hero h1,
.mr-specialists-hero-text {
    margin: 0;
    color: #fff;
}

.mr-specialists-hero-kicker {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.32px;
    line-height: normal;
    text-transform: uppercase;
}

.mr-specialists-hero h1 {
    font-size: 55.484px;
    font-weight: 700;
    line-height: 1.15;
}

.mr-specialists-hero-line {
    display: block;
    width: 75px;
    height: 2px;
    background: #d2e1dc;
}

.mr-specialists-hero-text {
    max-width: 1054px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.mr-specialists-page h2 {
    margin: 0;
    color: #42474c;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
}

.mr-specialists-filters {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 32px 0 40px;
}

.mr-specialists-filter-controls {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.mr-specialists-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.mr-specialists-search input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 48px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 15px;
    background: #fff;
    color: #828282;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
}

.mr-specialists-search input::placeholder {
    color: #828282;
}

.mr-specialists-expertise,
.mr-specialists-price {
    position: relative;
    flex: 0 0 auto;
}

.mr-specialists-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    height: 48px;
    margin: 0;
    padding: 12px 10px 12px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #fff;
    color: #828282;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.16px;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.mr-specialists-select-chevron {
    display: flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.mr-specialists-select-chevron::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid #522a70;
    border-bottom: 1.5px solid #522a70;
    transform: rotate(45deg);
}

.mr-specialists-price-dropdown {
    width: 320px;
    max-height: none;
    overflow: hidden;
    padding: 16px;
    border-radius: 15px;
    box-shadow: none;
}

.mr-specialists-price-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mr-specialists-price-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    color: #828282;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
}

.mr-specialists-price-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    margin: 0;
    border: 0.833px solid #bdbdbd;
    border-radius: 3.333px;
    background: #fff;
    cursor: pointer;
}

.mr-specialists-price-option input[type="checkbox"]:checked {
    border-color: #3c5b50;
    background: #3c5b50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10 3.5 3.5 7.5-7.5' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.mr-specialists-price-divider {
    position: relative;
    width: calc(100% + 2px);
    height: 0;
    margin-left: -1px;
}

.mr-specialists-price-divider::before {
    content: "";
    position: absolute;
    top: -0.5px;
    right: 0;
    left: 0;
    border-top: 1px solid #e0e0e0;
}

.mr-specialists-dropdown,
.mr-specialists-suggestions {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    box-sizing: border-box;
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(49, 74, 66, 0.08);
}

.mr-specialists-expertise .mr-specialists-dropdown {
    width: 250px;
    max-width: calc(100vw - 40px);
}

.mr-specialists-suggestions {
    width: 100%;
}

.mr-specialists-dropdown.is-open,
.mr-specialists-suggestions.is-open {
    display: block;
}

.mr-specialists-expertise .mr-specialists-dropdown label,
.mr-specialists-suggestions label {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    font-size: 14px;
}

.mr-specialists-submit {
    flex: 0 0 260px;
    width: 260px;
    height: 49px;
    margin: 0;
    padding: 0 32px;
    border: 0;
    border-radius: 15px;
    background: #3c5b50;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
}

@media (min-width: 768px) and (max-width: 1050px) {
    .mr-specialists-filters {
        gap: 16px;
    }

    .mr-specialists-filter-controls {
        gap: 12px;
    }

    .mr-specialists-select {
        gap: 16px;
    }

    .mr-specialists-submit {
        flex-basis: 190px;
        width: 190px;
    }
}

.mr-specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 45px;
}

.mr-specialists-slider-nav {
    display: none;
}

.mr-specialists-empty {
    margin: 24px 0;
    font-size: 16px;
}

.mr-specialists-more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

#specialists-load-more[hidden] {
    display: none !important;
}

.mr-specialists-count {
    margin: 0;
    color: #42474c;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .mr-specialists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mr-specialists-hero {
        padding: 48px 40px;
    }

    .mr-specialists-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .mr-specialists-page {
        padding: 28px 0 0;
    }

    .mr-specialists-inner {
        width: calc(100% - 40px);
    }

    .mr-specialists-panel {
        border-radius: 28px 28px 0 0;
        margin: 40px 0 0;
        padding: 32px 0 88px;
    }

    .mr-specialists-hero {
        min-height: 0;
        padding: 40px 24px;
    }

    .site-main > .mr-specialists-hero {
        margin-top: 28px;
    }

    .mr-specialists-hero-copy {
        gap: 18px;
    }

    .mr-specialists-hero-kicker {
        font-size: 14px;
    }

    .mr-specialists-hero h1 {
        font-size: 28px;
    }

    .mr-specialists-hero-text {
        font-size: 15px;
    }

    .mr-specialists-page h2 {
        font-size: 28px;
    }

    .mr-specialists-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mr-specialists-filter-controls {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .mr-specialists-search,
    .mr-specialists-expertise,
    .mr-specialists-price,
    .mr-specialists-submit {
        flex: 0 0 auto;
        width: 100%;
    }

    .mr-specialists-select {
        width: 100%;
    }

    .mr-specialists-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .mr-specialists-expertise .mr-specialists-dropdown,
    .mr-specialists-price-dropdown {
        width: 100%;
        max-width: none;
    }

    #specialists-results {
        position: relative;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        column-gap: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
    }

    #specialists-results > article {
        min-width: 0;
        scroll-snap-align: start;
    }

    #specialists-results ~ .mr-specialists-more,
    #specialists-results ~ .specialists-load-more-wrap {
        display: none;
    }

    .mr-specialists-slider-nav:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 16px;
        color: #42474c;
        font-variant-numeric: tabular-nums;
    }

    .mr-specialists-slider-nav button {
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent url("../img/pages/home-slider-prev.svg") center / 30px auto no-repeat;
        cursor: pointer;
    }

    .mr-specialists-slider-nav button:last-child {
        background-image: url("../img/pages/home-slider-next.svg");
    }

    .mr-specialists-slider-nav button:focus-visible {
        outline: 2px solid #3c5b50;
    }

    .mr-specialists-slider-nav button:disabled {
        opacity: .35;
        cursor: default;
    }
}
