.service-centers-page {
    padding: 88px 0 120px;
    color: #000;
}

.service-centers-container {
    box-sizing: border-box;
    max-width: 1400px;
    padding-right: 40px;
    padding-left: 40px;
}

.service-centers-title {
    margin: 0;
    text-align: center;
    font-size: 45px;
    line-height: 1.2;
    font-weight: 600;
}

.service-centers-intro {
    max-width: 1160px;
    margin: 60px auto 52px;
    font-size: 21px;
    line-height: 1.45;
}

.service-centers-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 30px;
    min-height: 610px;
}

.service-centers-sidebar {
    min-width: 0;
}

.service-centers-search {
    position: relative;
    display: block;
    margin-bottom: 27px;
}

.service-centers-search input {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 14px;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.service-centers-search input:focus {
    border-color: #000;
}

.service-centers-search input::placeholder {
    color: #aaa;
    opacity: 1;
}

.service-centers-search svg {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #000;
    stroke-width: 1.7;
    transform: translateY(-50%);
    pointer-events: none;
}

.service-centers-list {
    box-sizing: border-box;
    height: 535px;
    padding-right: 18px;
    overflow: auto;
    scrollbar-color: #999 transparent;
    scrollbar-width: thin;
}

.service-centers-list::-webkit-scrollbar {
    width: 6px;
}

.service-centers-list::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #999;
}

.service-city + .service-city {
    margin-top: 32px;
}

.service-city-title {
    margin: 0 0 22px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}

.service-city-centers {
    position: relative;
}

.service-center-card {
    position: relative;
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 11px;
    margin: 0 0 28px;
    padding-left: 18px;
    outline: none;
}

.service-center-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #151515;
    content: "";
    opacity: 0;
}

.service-center-card.is-active::before {
    opacity: 1;
}

.service-center-select:hover,
.service-center-select:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-center-pin {
    display: block;
    padding-top: 2px;
}

.service-center-pin img {
    display: block;
    width: 15px;
    height: 20px;
}

.service-center-content h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.service-center-select {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.service-center-content p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.35;
}

.service-center-content a {
    display: block;
    width: fit-content;
    color: #000;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.service-centers-map-wrap {
    position: relative;
    min-width: 0;
    height: 610px;
    overflow: hidden;
    border-radius: 20px;
    background: #f2f2f2;
}

.service-centers-map {
    width: 100%;
    height: 100%;
}

.service-centers-map-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    background: #f2f2f2;
    text-align: center;
    font-size: 16px;
}

.service-centers-map-wrap.is-ready .service-centers-map-message {
    display: none;
}

.service-centers-message,
.service-centers-empty {
    padding: 30px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
}

.service-centers-empty {
    margin: 0;
}

.service-map-balloon {
    max-width: 270px;
    font-family: inherit;
}

.service-map-balloon strong,
.service-map-balloon span,
.service-map-balloon a {
    display: block;
    margin-bottom: 5px;
    color: #000;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1100px) {
    .service-centers-page {
        padding-top: 65px;
    }

    .service-centers-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 820px) {
    .service-centers-page {
        padding: 50px 0 80px;
    }

    .service-centers-title {
        font-size: 34px;
    }

    .service-centers-intro {
        margin: 35px 0;
        font-size: 17px;
    }

    .service-centers-layout {
        grid-template-columns: 1fr;
    }

    .service-centers-list {
        height: auto;
        max-height: 520px;
    }

    .service-centers-map-wrap {
        height: 480px;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .service-centers-page {
        padding: 36px 0 60px;
    }

    .service-centers-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .service-centers-title {
        font-size: 29px;
    }

    .service-centers-intro {
        margin: 28px 0 32px;
        font-size: 15px;
    }

    .service-centers-search input {
        height: 46px;
    }

    .service-centers-list {
        max-height: 470px;
    }

    .service-city-title {
        font-size: 19px;
    }

    .service-center-content h3 {
        font-size: 16px;
    }

    .service-center-content p,
    .service-center-content a {
        font-size: 14px;
    }

    .service-centers-map-wrap {
        height: 390px;
        border-radius: 10px;
    }
}
