/* Sphere /services: круги площадок + pills услуг, список карточек как у Crowd */

.sphere-svc-page.svc-page {
  padding: 40px 0 72px;
  background: #f8fbfe;
  min-height: 50vh;
}

.sphere-svc-page .svc-layout {
  display: block;
}

.sphere-svc-page .svc-main {
  max-width: 1100px;
  margin: 0 auto;
}

.sphere-svc-page .svc-breadcrumbs {
  margin-bottom: 14px;
  font-size: 13px;
  color: #9aa0b4;
}

.sphere-svc-page .svc-breadcrumbs a {
  color: #9aa0b4;
  text-decoration: none;
}

.sphere-svc-page .svc-breadcrumbs a:hover {
  color: #7874fe;
}

.sphere-svc-page .svc-head__title {
  font-family: Lato, sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #282c4b;
  margin: 0 0 10px;
}

.sphere-svc-page .svc-head__sub {
  color: #8181a5;
  font-size: 15px;
  max-width: 760px;
}

/* --- Площадки: круги --- */
.sphere-plat {
  margin: 28px 0 26px;
}

.sphere-plat__title,
.sphere-svc-page .svc-filter__title {
  font-family: Poppins, Lato, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #282c4b;
  margin-bottom: 14px;
}

.sphere-plat__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.sphere-plat__select {
  display: none;
  margin-top: 12px;
  max-width: 320px;
}

.sphere-svc-page .svc-platform {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 4px 16px rgba(40, 44, 75, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sphere-svc-page .svc-platform:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(120, 116, 254, 0.16);
}

.sphere-svc-page .svc-platform.is-active {
  border-color: #7ec8ff;
  box-shadow: 0 0 0 4px rgba(126, 200, 255, 0.28), 0 6px 18px rgba(120, 116, 254, 0.12);
  background: #fff;
  color: inherit;
  font-weight: inherit;
}

.sphere-svc-page .svc-platform__ico {
  width: 28px;
  height: 28px;
  flex: none;
}

.sphere-svc-page .svc-platform__ico img {
  width: 28px;
  height: 28px;
}

.sphere-svc-page .svc-platform__name,
.sphere-svc-page .svc-platform__chev {
  display: none !important;
}

/* --- Фильтр услуг: pills с иконками --- */
.sphere-svc-page .svc-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sphere-svc-page .svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e6ef;
  background: #fff;
  color: #282c4b;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(40, 44, 75, 0.04);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sphere-svc-page .svc-chip:hover {
  border-color: #e6e6ef;
  color: #282c4b;
  background: #f8f7ff;
}

.sphere-svc-page .svc-chip.is-active {
  border-color: #e6e6ef;
  background: #f4f3ff;
  color: #282c4b;
  box-shadow: 0 2px 8px rgba(40, 44, 75, 0.04);
}

.sphere-svc-page .svc-chip__ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sphere-svc-page .svc-chip__ico img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

/* Селект «Тип услуги» в форме заказа: без серого квадрата, иконка крупная */
.sphere-svc-page .svc-order-panel .select--icon .glyphicon,
.sphere-svc-page .svc-order-panel .bootstrap-select .glyphicon[class*="ico-"],
.sphere-svc-page .svc-order-panel .bootstrap-select .dropdown-menu li a .glyphicon[class*="ico-"] {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin-right: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-size: 28px 28px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Карточки ближе к Sphere-палитре */
.sphere-svc-page .svc-card {
  border-color: rgba(120, 116, 254, 0.14);
  box-shadow: 0 6px 18px rgba(40, 44, 75, 0.05);
}

.sphere-svc-page .svc-card.is-selected {
  border-color: #7874fe;
}

.sphere-svc-page .svc-card__btn {
  background: linear-gradient(90deg, #b224ef, #7579ff);
  border: 0;
  color: #fff;
}

.sphere-svc-page .svc-card__name {
  font-weight: 400;
}

.sphere-svc-page .svc-order__back {
  color: #7874fe;
}

/* Белый блок с тенью — оболочка; ширина по содержимому (форма + инфо) */
.sphere-svc-page .svc-order-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(120, 116, 254, 0.12);
  padding: 28px 32px 32px;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
}

.sphere-svc-page .svc-order-shell .admin-services__row {
  display: grid;
  grid-template-columns: minmax(0, 420px) 400px;
  gap: 40px;
  align-items: start;
  justify-content: start;
  margin: 0;
}

.sphere-svc-page .svc-order-shell .admin-services__item {
  grid-column: auto;
  width: 100%;
  align-self: start;
}

.sphere-svc-page .svc-order-shell .admin-services__row > .sphere-svc-info-col {
  grid-column: auto;
  align-self: start;
  min-width: 0;
}

/* Контент «О тарифе» — оболочку карточки не трогаем (услуги + ЛК) */
.sphere-svc-page .svc-order-shell .admin-services__about .admin-services__items,
.sphere-acc-create .admin-services__about .admin-services__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-top: 8px;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item,
.sphere-acc-create .admin-services__about .item {
  grid-column: 1 / -1;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(40, 44, 75, 0.1);
  border-radius: 0;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item--meta,
.sphere-acc-create .admin-services__about .item--meta {
  grid-column: auto;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item:last-child,
.sphere-acc-create .admin-services__about .item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item .title,
.sphere-acc-create .admin-services__about .item .title {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: #7874fe;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item p,
.sphere-acc-create .admin-services__about .item p,
.sphere-acc-create .admin-services__about .item .value {
  margin: 0;
  white-space: pre-line;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4e69;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item[hidden],
.sphere-acc-create .admin-services__about .item[hidden] {
  display: none !important;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item--example p,
.sphere-acc-create .admin-services__about .item--example p {
  margin-top: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #282c4b;
  word-break: break-word;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item--note,
.sphere-svc-page .svc-order-shell .admin-services__about .sphere-svc-note,
.sphere-acc-create .admin-services__about .item--note,
.sphere-acc-create .admin-services__about .sphere-acc-note {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 16px 0 16px 14px;
  border-bottom: 1px solid rgba(40, 44, 75, 0.1);
  border-left: 0;
  margin-top: 0;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item--note::before,
.sphere-svc-page .svc-order-shell .admin-services__about .sphere-svc-note::before,
.sphere-acc-create .admin-services__about .item--note::before,
.sphere-acc-create .admin-services__about .sphere-acc-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #b224ef, #7579ff);
}

.sphere-svc-page .svc-order-shell .admin-services__about .item--note:last-child,
.sphere-svc-page .svc-order-shell .admin-services__about .sphere-svc-note:last-child,
.sphere-acc-create .admin-services__about .item--note:last-child,
.sphere-acc-create .admin-services__about .sphere-acc-note:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sphere-svc-page .svc-order-shell .admin-services__about .item--note:last-child::before,
.sphere-svc-page .svc-order-shell .admin-services__about .sphere-svc-note:last-child::before,
.sphere-acc-create .admin-services__about .item--note:last-child::before,
.sphere-acc-create .admin-services__about .sphere-acc-note:last-child::before {
  bottom: 0;
}

.sphere-svc-page .svc-order-shell .admin-services__about .sphere-svc-note .title,
.sphere-svc-page .svc-order-shell .admin-services__about .item--note .title,
.sphere-acc-create .admin-services__about .sphere-acc-note .title,
.sphere-acc-create .admin-services__about .item--note .title {
  color: #282c4b !important;
  font-weight: 400;
  font-size: 14px;
}

@media (max-width: 560px) {
  .sphere-svc-page .svc-order-shell .admin-services__about .admin-services__items,
  .sphere-acc-create .admin-services__about .admin-services__items {
    grid-template-columns: 1fr;
  }

  .sphere-svc-page .svc-order-shell .admin-services__about .item--meta,
  .sphere-acc-create .admin-services__about .item--meta {
    grid-column: 1 / -1;
  }
}

.sphere-svc-page .svc-order-shell .want-discount {
  margin-top: 20px;
}

.sphere-svc-page .svc-order-shell .price_total {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-weight: 700;
  font-size: 16px;
}

.sphere-svc-page .svc-order-shell .price_total .cs-price-old {
  margin-left: 8px;
  text-decoration: line-through;
  color: #9a9ca5;
  font-weight: 500;
  font-size: 14px;
}

.sphere-svc-page .sphere-svc-extra-urls {
  display: grid;
  gap: 14px;
  margin: 4px 0 10px;
}

.sphere-svc-page .sphere-svc-add,
.sphere-svc-page .sphere-order-add {
  margin: 0 0 16px;
  background: none;
  border: 0;
  color: #7874fe;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.sphere-svc-page .sphere-svc-add[hidden],
.sphere-svc-page .sphere-order-add[hidden] {
  display: none !important;
}

.sphere-svc-page .svc-order-shell .order-error {
  display: none;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 16px;
  color: #e76666;
}

.sphere-svc-page .qo-promo-msg {
  margin-top: 8px;
}

.sphere-svc-page .svc-order-shell .form-btn {
  width: 100%;
  white-space: nowrap !important;
}

/* Каталог услуг — мобилка. Форму заказа (.svc-order-shell) не трогаем. */
@media (max-width: 1024px) {
  .sphere-svc-page.svc-page {
    padding: 8px 0 36px;
    background: #f5f6fb;
  }

  .sphere-svc-page .svc-main {
    max-width: none;
  }

  .sphere-svc-page .svc-breadcrumbs {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .sphere-svc-page .svc-head {
    margin-bottom: 16px;
  }

  .sphere-svc-page .svc-head__title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .sphere-svc-page .svc-head__sub {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .sphere-plat {
    margin: 0 0 18px;
  }

  .sphere-plat__title,
  .sphere-svc-page .svc-filter__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8181a5;
    margin-bottom: 10px;
  }

  .sphere-svc-page .sphere-plat__select {
    display: block !important;
    max-width: none;
    margin-top: 0;
  }

  /* Селект площадки — та же высота, что поля формы (50px) */
  .sphere-svc-page .sphere-plat__select.sphere-qo-form .bootstrap-select > .dropdown-toggle {
    height: auto !important;
    min-height: 50px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: flex !important;
    align-items: center;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .bootstrap-select .dropdown-menu {
    top: 50px !important;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .bootstrap-select > .dropdown-menu.open {
    overflow: hidden !important;
    max-height: none !important;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .bootstrap-select .dropdown-menu .inner.open {
    max-height: 245px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .select--icon .dropdown-menu li a {
    display: grid !important;
    grid-template-columns: 29px 0 1fr !important;
    gap: 9px !important;
    align-items: center !important;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .bootstrap-select .dropdown-menu li a .glyphicon[class*="ico-"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin-right: 0 !important;
    background-color: transparent !important;
    background-size: 24px 24px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .glyphicon::before,
  .sphere-svc-page .sphere-plat__select.sphere-qo-form .dropdown-menu li a .glyphicon::before {
    display: none !important;
    content: none !important;
  }

  .sphere-svc-page .sphere-plat__select.sphere-qo-form .bootstrap-select .dropdown-menu li {
    list-style: none !important;
    margin-bottom: 0 !important;
  }

  .sphere-svc-page .sphere-plat__row {
    display: none !important;
  }

  .sphere-svc-page .svc-filter {
    margin-bottom: 14px;
  }

  .sphere-svc-page .svc-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .sphere-svc-page .svc-chip {
    flex: 0 0 auto;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
  }

  .sphere-svc-page .svc-chip.is-active {
    border-color: transparent;
    background: linear-gradient(90deg, #f3e8ff 0%, #ecebff 100%);
    color: #5b56d6;
    box-shadow: none;
  }

  .sphere-svc-page .svc-cards {
    gap: 10px;
  }

  .sphere-svc-page .svc-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "ico body"
      "aside aside";
    gap: 10px 12px;
    align-items: start;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e8e9f2;
    box-shadow: 0 8px 20px rgba(40, 44, 75, 0.06);
  }

  .sphere-svc-page .svc-card__ico {
    grid-area: ico;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f5fb;
  }

  .sphere-svc-page .svc-card__ico img {
    width: 24px;
    height: 24px;
  }

  .sphere-svc-page .svc-card__body {
    grid-area: body;
  }

  .sphere-svc-page .svc-card__name {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .sphere-svc-page .svc-card__desc {
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .sphere-svc-page .svc-card__aside {
    grid-area: aside;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid #eef0f6;
  }

  .sphere-svc-page .svc-card__price-label {
    display: none;
  }

  .sphere-svc-page .svc-card__price {
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(90deg, #b224ef, #7579ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .sphere-svc-page .svc-card__btn {
    width: auto;
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .sphere-svc-page .svc-empty {
    padding: 22px 14px;
    border-radius: 16px;
  }

  .sphere-svc-page .svc-order__toolbar {
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .sphere-svc-page .svc-order-shell {
    padding: 20px 16px 24px;
    width: 100%;
  }

  .sphere-svc-page .svc-order-shell .admin-services__row {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-content: start;
  }

  .sphere-svc-page .svc-order-shell .admin-services__item,
  .sphere-svc-page .svc-order-shell .admin-services__row > .sphere-svc-info-col {
    grid-column: auto;
  }
}
