/* Desktop styles for clinics page */

@media (min-width: 1024px) {
  /* На десктопе мобильные блокировки не нужны */
  body,
  html {
    overflow: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
  }

  /* Скрываем мобильные элементы */
  .clinics-fixed-header,
  .filters-wrapper,
  .filter-sheet,
  .filter-overlay {
    display: none !important;
  }

  .clinics-page {
    max-width: 1620px;
    background: transparent;
    height: auto;
    padding-right: 40px;
    padding-left: 40px;
    margin: 0 auto;
    padding-top: 30px;
    overflow: visible;
  }

  .clinics-desktop-shell {
  }

  .clinics-desktop-shell .breadcrumbs {
    margin-bottom: 30px;
  }

  /* Те же классы и вид, что у Bitrix-крошек: ссылки — тёмные, текущая страница — светлее */
  .clinics-desktop-breadcrumb-booking .breadcrumbs {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 13px;
  }

  .clinics-desktop-breadcrumb-booking .breadcrumbs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .clinics-desktop-breadcrumb-booking .breadcrumb-nav_item {
    margin-right: 8px;
  }

  .clinics-desktop-breadcrumb-booking .breadcrumb-nav_item.current-item {
    color: #A8A9AF;
    margin-right: 0;
    padding-right: 0;
  }

  .clinics-desktop-breadcrumb-booking .breadcrumb-nav_item a {
    color: #2D354D;
    text-decoration: none;
    transition: opacity 0.4s;
  }

  .clinics-desktop-breadcrumb-booking .breadcrumb-nav_item a:hover {
    opacity: 0.7;
  }

  .clinics-desktop-breadcrumb-booking .breadcrumb-nav_divider {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
  }

  .clinics-desktop-booking-block {
    background: #fff;
    padding: 24px 24px 32px;
  }

  .clinics-desktop-card {
    background: #fff;
    /*border: 1px solid #eef2f7;*/
    /*border-radius: 16px;*/
    padding: 24px;
    /*box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);*/
  }

  .clinics-desktop-breadcrumbs {
    margin-bottom: 12px;
    font-size: 12px;
    color: #667085;
  }

  .clinics-desktop-breadcrumbs a {
    color: #667085;
    text-decoration: none;
  }

  .clinics-desktop-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #101828;
  }

  .clinics-desktop-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid #eef2f7;
    margin: 0 0 16px 0;
  }

  .clinics-desktop-tab {
    border: none;
    background: transparent;
    padding: 10px 2px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #667085;
    cursor: pointer;
    position: relative;
  }

  .clinics-desktop-tab.active {
    color: #1c70ff;
  }

  .clinics-desktop-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1c70ff;
    border-radius: 2px;
  }

  .clinics-desktop-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 12px;
  }

  .clinics-desktop-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #desktopClinicsCount {
    color: #A8A9AF;
  }

  .clinics-desktop-dot {
    color: #98a2b3;
    font-weight: 400;
  }

  /* «Назад во все услуги» (показывается при выборе конкретной услуги) */
  .clinics-desktop-back-link {
    /* Включаем flexbox */
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Расстояние между стрелкой и текстом */

    font-size: 14px;
    font-weight: 500;
    color: #1c70ff;
    text-decoration: none;
  }

  .clinics-desktop-back-link img {
    /* Гарантируем, что у картинки нет лишних внешних отступов */
    display: block;
  }

  .clinics-desktop-back-link:hover {
    text-decoration: underline;
  }

  .clinics-desktop-back-wrap-booking {
    margin-bottom: 16px;
  }

  /* Блок параметров услуги (под заголовком, при выборе карточки) */
  .clinics-desktop-service-params {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
  }

  .desktop-service-param {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #101828;
  }

  .desktop-service-param-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    opacity: 0.85;
  }

  .desktop-service-param-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .desktop-service-param-label {
    color: #667085;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
  }

  .desktop-service-param-value {
    font-weight: 600;
    font-size: 13px;
    color: #101828;
    line-height: 1.3;
  }

  .clinics-desktop-service-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 8px;
  }

  .desktop-service-card {
    width: 188px;
    background: rgba(85, 184, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .desktop-service-card:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(28, 112, 255, 0.12);
  }

  .desktop-service-card.active {
    border-color: #1c70ff;
    box-shadow: 0 10px 22px rgba(28, 112, 255, 0.16);
  }

  .desktop-service-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    min-height: 34px;
  }

  .desktop-service-card-price {
    font-size: 16px;
    font-weight: 300;
    /*color: #1c70ff;*/
    line-height: 1.1;
  }

  .desktop-service-card-note {
    font-size: 11px;
    color: #667085;
    margin-top: 2px;
  }

  .desktop-service-card-more {
    background: rgba(85, 184, 255, 0.2);
    border-color: #eaecf0;
    text-align: center;
  }

  .clinics-desktop-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .desktop-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #eaecf0;
    background: #F4F4F6;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #767C8B;
    cursor: pointer;
  }
  .desktop-filter-btn-icon {
    flex-shrink: 0;
    color: #2D354D;
  }
  .desktop-filter-btn-text {
    white-space: nowrap;
  }

  .desktop-pill-btn {
    border: 1px solid #F4F4F6;
    background: #F4F4F6;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #101828;
    cursor: pointer;
  }

  .desktop-pill-btn.active {
    color: #fff;
    border-color: #1CA0FF;
    background: #1CA0FF;
  }

  .desktop-price-control {
    position: relative;
  }
  .desktop-price-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #F4F4F6;
    background: #F4F4F6;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #101828;
    cursor: pointer;
    font-family: inherit;
  }
  .desktop-price-trigger:hover {
    background: #eaecf0;
  }
  .desktop-price-chevron {
    flex-shrink: 0;
    color: #667085;
    transition: transform 0.2s;
  }
  .desktop-price-control.is-open .desktop-price-chevron {
    transform: rotate(180deg);
  }
  .desktop-price-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    display: none;
    z-index: 20;
  }
  .desktop-price-control.is-open .desktop-price-dropdown {
    display: block;
  }
  .desktop-price-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    color: #101828;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    outline: none;
  }
  .desktop-price-input::placeholder {
    color: #98a2b3;
  }
  .desktop-price-input:focus {
    border-color: #1c70ff;
  }

  .desktop-controls-spacer {
    flex: 1;
  }

  .desktop-list-btn {
    border: 1px solid #eaecf0;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #101828;
    cursor: pointer;
  }

  /* Кнопка «Фильтры»: бейдж с количеством активных фильтров */
  .desktop-filter-btn {
    position: relative;
  }
  .desktop-filter-btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    vertical-align: middle;
    min-width: 20px;
    height: 20px;
    padding: 3px 6px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #1CA0FF;
    border-radius: 50%;
  }
  .desktop-filter-btn-badge[aria-hidden="true"] {
    display: none;
  }

  /* Оверлей и панель фильтров — внутри блока карты, по высоте карты, слева поверх карты (не смещая карту) */
  .clinics-desktop-map-row .clinics-map-container {
    position: relative;
  }
  .desktop-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    pointer-events: none;
  }
  .desktop-filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .desktop-filter-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    max-width: 85%;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 11;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    overflow: hidden;
  }
  .desktop-filter-panel.is-open {
    transform: translateX(0);
  }

  .desktop-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 4px;
    flex-shrink: 0;
  }
  .desktop-filter-panel-title {
    margin: 0;
    font-size: 18px !important;
    font-weight: 700;
    color: #101828;
    margin-bottom: 0 !important;
  }
  .desktop-filter-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #667085;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }
  .desktop-filter-panel-close:hover {
    background: #f5f5f5;
    color: #101828;
  }

  .desktop-filter-panel-body {
    padding: 20px;
    overflow-y: auto;
  }
  .desktop-filter-section {
    margin-bottom: 24px;
  }
  .desktop-filter-section:last-child {
    margin-bottom: 0;
  }
  .desktop-filter-section-title {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    font-weight: 600;
    color: #101828;
  }
  .desktop-filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14px;
    color: #101828;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
  }
  .desktop-filter-input::placeholder {
    color: #98a2b3;
  }
  .desktop-filter-input:focus {
    border-color: #1c70ff;
  }

  .desktop-filter-special-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .desktop-filter-special-btn {
    border: 1px solid #F4F4F6;
    background: #F4F4F6;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444B54;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .desktop-filter-special-btn:hover {
    border-color: #1CA0FF;
    background: #1CA0FF;
    color: #fff;
  }
  .desktop-filter-special-btn.active {
    border-color: #1CA0FF;
    background: #1CA0FF;
    color: #fff;
  }

  /* Карта и панель клиники (десктоп) */
  .clinics-desktop-map-row {
    display: flex;
    gap: 0;
    margin-top: 16px;
    height: 520px;
    min-height: 0;
  }

  .clinics-desktop-clinic-panel {
    width: 360px;
    flex-shrink: 0;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .desktop-clinic-panel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .desktop-clinic-panel-inner {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-image {
    width: 100%;
    min-height: 100px;
    max-height: 140px;
    object-fit: contain;
    display: block;
    background: #f0f2f5;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-image-wrap {
    position: relative;
    background: #f0f2f5;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-body {
    padding: 14px 16px 20px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-name {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 8px;
    line-height: 1.3;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-rating .star-icon {
    color: #f59e0b;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-reviews-link {
    color: #1c70ff;
    cursor: pointer;
    text-decoration: none;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-reviews-link:hover {
    text-decoration: underline;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-hours {
    font-size: 13px;
    color: #667085;
    margin-bottom: 8px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-address {
    font-size: 13px;
    color: #667085;
    margin-bottom: 10px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-metro {
    margin-bottom: 14px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-metro .metro-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #667085;
    margin-bottom: 4px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-metro .metro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-services {
    margin-bottom: 16px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-services-title {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    margin: 15px 0 10px;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-services-list {
    max-height: 160px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-service-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #101828;
    margin-bottom: 4px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f7fa;
  }

  .desktop-clinic-panel-info .desktop-clinic-panel-service-item:last-child {
    border-bottom: none;
  }

  .desktop-clinic-panel-service-name {
    flex: 1 1 0;
    min-width: 0;
  }

  .desktop-clinic-panel-service-price {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 600;
    color: #101828;
    font-size: 13px;
  }

  .desktop-clinic-panel-service-price--empty {
    display: none;
}

  .desktop-services-pagination {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
  }

  .desktop-services-pagination-count {
    font-size: 12px;
    color: #667085;
    margin-bottom: 8px;
  }

  .desktop-services-load-more {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1c70ff;
    background: #fff;
    border: 1px solid #1c70ff;
    border-radius: 8px;
    cursor: pointer;
  }

  .desktop-services-load-more:hover {
    background: #eff6ff;
  }

  .desktop-clinic-panel-info .btn-book-clinic-desktop {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #1c70ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
  }

  .desktop-clinic-panel-info .btn-book-clinic-desktop:hover {
    background: #1557d6;
  }

  /* Выбранная услуга и цена (под кнопкой) */
  .desktop-clinic-panel-selected-service {
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
  }

  .desktop-clinic-panel-selected-service-name {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 4px;
  }

  .desktop-clinic-panel-selected-service-price {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
  }

  /* Секции «Режим работы» и «О клинике» */
  .desktop-clinic-panel-section {
    margin-bottom: 16px;
  }

  .desktop-clinic-panel-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 8px;
  }

  .desktop-clinic-panel-schedule-row {
    font-size: 13px;
    color: #101828;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .desktop-clinic-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .desktop-clinic-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #667085;
    background: #f2f4f7;
    border-radius: 999px;
    padding: 6px 12px;
  }

  .desktop-clinic-panel-tag-icon {
    font-size: 14px;
  }

  /* О клинике — текст из API (Description) */
  .desktop-clinic-panel-about {
    font-size: 13px;
    color: #101828;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .desktop-clinic-panel-about-empty {
    color: #667085;
    font-style: italic;
  }

  /* Экран отзывов внутри панели */
  .desktop-clinic-panel-reviews {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .desktop-clinic-panel-reviews-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
    background: #fff;
  }

  .desktop-clinic-panel-reviews-back {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-clinic-panel-reviews-back img {
    width: 24px;
    height: 24px;
    display: block;
  }

  .desktop-clinic-panel-reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    margin: 0;
  }

  .desktop-clinic-panel-reviews-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 0;
  }

  .desktop-clinic-panel-reviews-list .review-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
  }

  .desktop-clinic-panel-reviews-list .review-block:last-child {
    border-bottom: none;
  }

  .desktop-clinic-panel-reviews-list .review-author {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 6px;
  }

  .desktop-clinic-panel-reviews-list .review-text {
    font-size: 13px;
    color: #667085;
    line-height: 1.5;
  }

  .desktop-reviews-pagination {
    padding: 12px 16px 16px;
    border-top: 1px solid #eef2f7;
    flex-shrink: 0;
  }

  .desktop-reviews-pagination-count {
    font-size: 13px;
    color: #667085;
    margin-bottom: 10px;
  }

  .desktop-reviews-load-more {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1c70ff;
    background: #fff;
    border: 1px solid #1c70ff;
    border-radius: 10px;
    cursor: pointer;
  }

  .desktop-reviews-load-more:hover {
    background: #eff6ff;
  }

  .clinics-map-container {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 100%;
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef2f7;
  }

  /* Скрываем встроенные элементы Яндекса: «Открыть в Яндекс Картах», «Создать свою карту», копирайты */
  .clinics-map-container [class*="ymaps"][class*="copyright"],
  .clinics-map-container [class*="ymaps"][class*="map-copyrights"],
  .clinics-map-container [class*="ymaps"][class*="promo"],
  .clinics-map-container a[href*="yandex.ru/maps"],
  .clinics-map-container a[href*="yandex.com/maps"] {
    display: none !important;
  }

  .clinics-desktop-map-row .clinics-map-container {
    margin-top: 0;
  }

  .clinics-map-container #clinics_map {
    width: 100%;
    height: 100%;
  }

  /* Sidesheet списка клиник (как «Услуги»: оверлей + панель 420px справа) */
  .desktop-list-sidesheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.4);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .desktop-list-sidesheet-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .clinics-desktop-list-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 3001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .clinics-desktop-list-panel.is-open {
    transform: translateX(0);
  }

  .clinics-desktop-list-panel-header {
    display: flex;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f7;
    align-items: center;
    flex-shrink: 0;
  }

  .clinics-desktop-list-panel-header .clinics-search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    font-size: 14px;
    color: #101828;
    box-sizing: border-box;
  }

  .clinics-desktop-list-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #f2f4f7;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #667085;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clinics-desktop-list-close:hover {
    background: #eaecf0;
    color: #101828;
  }

  /* Sidesheet «Услуги»: затемнение фона + панель справа */
  .desktop-services-sidesheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.4);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .desktop-services-sidesheet-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .desktop-services-sidesheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 3001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .desktop-services-sidesheet.is-open {
    transform: translateX(0);
  }

  .desktop-services-sidesheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
  }

  .desktop-services-sidesheet-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #101828;
  }

  .desktop-services-sidesheet-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f2f4f7;
    font-size: 24px;
    line-height: 1;
    color: #667085;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
  }

  .desktop-services-sidesheet-close:hover {
    background: #eaecf0;
    color: #101828;
  }

  .desktop-services-sidesheet-search {
    padding: 12px 24px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
    background: #F3F5F7;
  }

  .desktop-services-sidesheet-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    font-size: 14px;
    color: #101828;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
    box-sizing: border-box;
  }

  .desktop-services-sidesheet-input::placeholder {
    color: #98a2b3;
  }

  .desktop-services-sidesheet-input:focus {
    outline: none;
    border-color: #1c70ff;
    background-color: #fff;
  }

  .desktop-services-sidesheet-list-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 12px 15px;
    background: #F3F5F7;
  }

  .desktop-services-sidesheet-list {
    list-style: none;
    margin: 0;
    padding: 0 24px;
  }

  .desktop-services-sidesheet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 10px;
    margin-bottom: 10px;
    border: 1px solid #f2f4f7;
    border-radius: 15px;
    cursor: pointer;
    /*transition: background 0.15s;*/
    background: #fff;
  }

  .desktop-services-sidesheet-item:hover {
    /*background: #f9fafb;*/
    /*margin: 0 -24px;*/
    /*padding-left: 24px;*/
    /*padding-right: 24px;*/
  }

  .desktop-services-sidesheet-item-left {
    flex: 1;
    min-width: 0;
  }

  .desktop-services-sidesheet-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 2px;
  }

  .desktop-services-sidesheet-item-meta {
    font-size: 12px;
    color: #667085;
  }

  .desktop-services-sidesheet-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    white-space: nowrap;
  }

  .desktop-services-sidesheet-item-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #98a2b3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .desktop-services-sidesheet-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
    font-size: 14px;
    list-style: none;
  }

  .clinics-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    font-size: 13px;
    background: #f9fafb;
    box-sizing: border-box;
  }

  .clinics-search-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
  }

  .clinics-list-desktop {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
  }

  .clinics-desktop-list-panel .clinics-list {
    padding: 0 16px 16px;
  }

  .clinics-desktop-list-panel .clinic-card {
    margin: 0 0 12px 0;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .clinics-desktop-list-panel .clinic-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
  }

  .clinics-desktop-list-panel .clinic-card-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .clinics-desktop-list-panel .clinic-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f2f4f7;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clinics-desktop-list-panel .clinic-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .clinics-desktop-list-panel .clinic-card-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #101828;
    line-height: 1.3;
  }

  .clinics-desktop-list-panel .clinic-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #667085;
    margin-bottom: 6px;
  }

  .clinics-desktop-list-panel .clinic-card-rating-star {
    color: #f59e0b;
  }

  .clinics-desktop-list-panel .clinic-card-address {
    font-size: 12px;
    color: #667085;
    margin: 6px 0;
    line-height: 1.4;
  }

  .clinics-desktop-list-panel .clinic-card-metro {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #667085;
    margin-bottom: 8px;
  }

  .clinics-desktop-list-panel .clinic-card-metro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .clinics-desktop-list-panel .clinic-card-schedule {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    background: #f0f9ff;
    color: #1c70ff;
  }

  .clinics-desktop-list-panel .clinic-card-schedule.closed {
    background: #fef2f2;
    color: #dc2626;
  }

  .clinics-desktop-list-panel .clinic-card-services {
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
    margin-top: 4px;
  }

  .clinics-desktop-list-panel .clinic-card-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
  }

  .clinics-desktop-list-panel .clinic-card-service-name {
    color: #101828;
    flex: 1;
    margin-right: 8px;
  }

  .clinics-desktop-list-panel .clinic-card-service-price {
    color: #1c70ff;
    font-weight: 600;
    white-space: nowrap;
  }

  .clinics-desktop-list-panel .clinic-card-service-arrow {
    color: #98a2b3;
    margin-left: 4px;
  }

  .clinics-desktop-list-panel .clinics-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: #667085;
    font-size: 14px;
  }

  /* Десктопные модалки — оставляем из прошлой версии */
  .clinic-modal {
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: 640px;
    max-width: 92vw;
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(16, 24, 40, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .clinic-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
  }

  #bookingModal {
    width: 900px;
    max-width: 92vw;
  }

  /* Форма записи — десктоп: два столбца */
  #bookingModal.booking-modal-desktop {
    width: 960px;
    max-width: 96vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #bookingModal.booking-modal-desktop .clinic-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px 32px;
  }

  .booking-desktop-wrap {
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }

  .booking-desktop-left {
    flex: 1;
    min-width: 0;
  }

  .booking-desktop-breadcrumbs {
    font-size: 12px;
    color: #667085;
    margin-bottom: 8px;
  }

  .booking-desktop-back-link {
    font-size: 14px;
    color: #1c70ff;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
  }

  .booking-desktop-back-link:hover {
    text-decoration: underline;
  }

  .booking-desktop-title {
    font-size: 24px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 24px;
  }

  .booking-desktop-section {
    margin-bottom: 24px;
  }

  .booking-desktop-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 12px;
  }

  .booking-desktop-error {
    font-size: 13px;
    color: #d92d20;
    margin-top: 6px;
  }

  .booking-desktop-error:empty {
    display: none;
  }

  .booking-desktop-days-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
  }

  .booking-desktop-days-scroll:active {
    cursor: grabbing;
  }

  .booking-desktop-days-scroll::-webkit-scrollbar {
    display: none;
  }

  .booking-desktop-day {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    cursor: pointer;
    white-space: nowrap;
  }

  .booking-desktop-day:hover {
    border-color: #1c70ff;
    color: #1c70ff;
  }

  .booking-desktop-day.active {
    border-color: #1c70ff;
    background: #eff6ff;
    color: #1c70ff;
  }

  .booking-desktop-time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
  }

  .booking-desktop-time {
    padding: 10px 14px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    cursor: pointer;
  }

  .booking-desktop-time:hover {
    border-color: #1c70ff;
    color: #1c70ff;
  }

  .booking-desktop-time.active {
    border-color: #1c70ff;
    background: #eff6ff;
    color: #1c70ff;
  }

  .booking-desktop-time:disabled,
  .booking-desktop-time.booking-desktop-time-past {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }

  .booking-desktop-input {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 12px 14px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    font-size: 14px;
    color: #101828;
    margin-bottom: 12px;
  }

  .booking-desktop-input::placeholder {
    color: #98a2b3;
  }

  .booking-desktop-input:focus {
    outline: none;
    border-color: #1c70ff;
  }

  .booking-desktop-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #667085;
    cursor: pointer;
    margin-top: 12px;
  }

  .booking-desktop-checkbox input {
    margin-top: 2px;
  }

  .booking-desktop-right {
    width: 320px;
    flex-shrink: 0;
  }

  .booking-desktop-clinic-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #eef2f7;
  }

  .booking-desktop-clinic-logo {
    width: 250px;
    /*height: 56px;*/
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .booking-desktop-clinic-logo-placeholder {
    width: 56px;
    height: 56px;
    background: #eef2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 12px;
  }

  .booking-desktop-clinic-name {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 8px;
    line-height: 1.3;
  }

  .booking-desktop-clinic-rating {
    font-size: 14px;
    color: #101828;
    margin-bottom: 8px;
  }

  .booking-desktop-reviews {
    color: #667085;
    font-weight: 400;
  }

  .booking-desktop-clinic-address,
  .booking-desktop-clinic-metro {
    font-size: 13px;
    color: #667085;
    margin: 0 0 6px;
    line-height: 1.4;
  }

  .booking-desktop-service-select-wrap {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
    display: none;
  }

  .booking-desktop-service-select-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 8px;
  }

  .booking-desktop-service-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #101828;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .booking-desktop-service-name {
    display: none; /* скрыто */
    /* Оригинальные стили:
    font-size: 15px;
    font-weight: 600;
    color: #101828;
    margin: 16px 0 20px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
    */
  }

  .booking-desktop-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1c70ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 12px;
  }

  .booking-desktop-submit:hover:not(:disabled) {
    background: #1557d6;
  }

  .booking-desktop-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }

  .booking-desktop-consent {
    font-size: 12px;
    color: #667085;
    margin: 0;
    line-height: 1.4;
  }

  .booking-desktop-consent a {
    color: #1c70ff;
    text-decoration: none;
  }

  .booking-desktop-consent a:hover {
    text-decoration: underline;
  }

  .booking-desktop-metro-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
  }

  /* Стили кластеров карты (на мобилке в style.css, на десктопе только здесь) */
  .cluster-oval {
    display: inline-flex;
    align-items: center;
    background: transparent;
    cursor: pointer;
    position: relative;
  }

  .cluster-number {
    width: 46px;
    height: 46px;
    background: #1CA0FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    position: relative;
    z-index: 2;
  }

  .cluster-text {
    background: #fff;
    padding: 12px 16px 12px 28px;
    border-radius: 23px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-left: -18px;
    position: relative;
    z-index: 1;
  }

  /* Подписи маркеров (синяя капля + белый блок справа, как на мобилке) */
  .clinic-marker-container {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
  }

  .clinic-marker-icon {
    width: 32px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
  }

  .clinic-marker-label {
    background: #fff;
    padding: 5px 10px 5px 24px;
    border-radius: 17px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: 170px;
    margin-left: -20px;
    position: relative;
    z-index: 1;
    cursor: pointer;
  }

  .clinic-marker-label .clinic-info-line {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .clinic-marker-label .clinic-name-wrapper {
    display: inline-block;
    max-width: 119px;
    overflow: hidden;
  }

  .clinic-marker-label .clinic-name-text {
    display: inline-block;
    white-space: nowrap;
  }

  @keyframes marquee {
    0%, 20% {
      transform: translateX(0);
    }
    80%, 100% {
      transform: translateX(calc(119px - 100%));
    }
  }

  .clinic-marker-label .clinic-rating {
    font-size: 10px;
    color: #FF9500;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .clinic-marker-label .clinic-price-line {
    font-size: 10px;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
  }

  /* Страница успеха после записи — заголовок + два столбца */
  body.success-page-active .clinics-page {
    background: #f5f9fc;
  }

  .success-page-wrapper {
    width: 100%;
    margin-bottom: 32px;
  }

  .success-page-wrapper .success-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 48px;
    background: transparent;
  }

  .success-page-wrapper .success-title {
    margin: 0 0 24px 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    color: #101828;
    text-align: center;
    background: transparent !important;
  }

  .success-page-columns {
    display: flex;
    gap: 24px;
    align-items: stretch;
  }

  .success-page-left {
    flex: 1;
    min-width: 0;
  }

  .success-page-right {
    width: 320px;
    flex-shrink: 0;
  }

  .success-details-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
    border: 1px solid #eaecf0;
  }

  .success-detail-row {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #344054;
  }

  .success-detail-row:last-of-type {
    margin-bottom: 0;
  }

  .success-detail-label {
    display: block;
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 4px;
  }

  .success-detail-value {
    font-weight: 500;
    color: #101828;
  }

  .success-detail-clinic {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
  }

  .success-detail-clinic strong {
    color: #101828;
  }

  .success-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #344054;
    line-height: 1.5;
  }

  .success-detail-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
  }

  .success-detail-icon-info {
    background: #e0f2fe;
    color: #0369a1;
  }

  .success-detail-icon-clock {
    background: #fef3c7;
    font-size: 14px;
  }

  .success-detail-icon-price {
    background: #dcfce7;
    color: #15803d;
  }

  .success-page-wrapper .btn-share-booking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 0;
  }

  .success-page-wrapper .btn-share-booking:hover {
    background: #f9fafb;
  }

  .success-change-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
    border: 1px solid #eaecf0;
    height: 100%;
  }

  .success-change-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
  }

  .success-change-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #344054;
    line-height: 1.5;
  }

  .success-change-phone {
    font-size: 18px;
    font-weight: 600;
    color: #1CA0FF;
    text-decoration: none;
  }

  .success-change-phone:hover {
    text-decoration: underline;
  }

  /* Модалка ошибки — полноэкранный оверлей, поверх всего, без наложения на контент */
  .error-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  .error-modal {
    max-width: 440px;
    width: 100%;
  }
}
