﻿/* SMMsphere modern UI — поверх style.min.css
   Цвета/градиент SMMsphere. Иконки (img/svg paths) не трогаем. */

:root {
  --s2-text: #282c4b;
  --s2-muted: #8181a5;
  --s2-muted-2: #9a9bb2;
  --s2-accent: #7874fe;
  --s2-accent-soft: #5b56d6;
  --s2-grad: linear-gradient(90deg, #b224ef 0%, #7579ff 100%);
  --s2-border: #e8e9f2;
  --s2-border-soft: #eef0f6;
  --s2-bg: #f8f9fc;
  --s2-bg-soft: #f7f6ff;
  --s2-card: #ffffff;
  --s2-radius: 12px;
  --s2-radius-lg: 16px;
  --s2-radius-pill: 999px;
  --s2-btn-radius: 999px;
  --s2-shadow: 0 8px 24px rgba(90, 80, 200, 0.1);
  --s2-shadow-hover: 0 12px 28px rgba(90, 80, 200, 0.14);
  --s2-focus: 0 0 0 3px rgba(120, 116, 254, 0.14);
  --s2-ok-bg: #eaf8f0;
  --s2-ok: #1f9d57;
  --s2-err-bg: #fdeeee;
  --s2-err: #d14343;
}

/* ---------- Buttons ---------- */
.btn,
.form-btn,
.form-submit,
.btn--sign-in,
.btn--sign-up,
.btn--quick-order,
button.btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--s2-btn-radius) !important;
  box-shadow: 0 10px 22px -12px rgba(117, 121, 255, 0.7);
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.form-btn:hover,
.form-submit:hover,
.btn--sign-in:hover,
.btn--sign-up:hover,
.btn--quick-order:hover {
  opacity: 0.95;
  box-shadow: var(--s2-shadow-hover);
}

/* «Подробнее о тарифе» — текстовая ссылка без тени и без стиля большой кнопки */
.btn-more {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7874fe !important;
}

.btn-more:hover,
.btn-more:focus,
.btn-more:active {
  box-shadow: none !important;
  opacity: 1;
  transform: none;
}

.btn:active,
.form-btn:active {
  transform: translateY(1px);
}

.btn-gray,
.btn.btn-gray {
  color: var(--s2-text) !important;
  background: #f3f4f8 !important;
  border: 1px solid var(--s2-border) !important;
  box-shadow: none;
}

.btn-gray:hover,
.btn.btn-gray:hover {
  color: var(--s2-accent) !important;
  border-color: #d8d7ff !important;
  background: var(--s2-bg-soft) !important;
}

.btn-outline,
.btn.btn-outline {
  color: var(--s2-accent) !important;
  background: #fff !important;
  border: 1px solid var(--s2-border) !important;
  box-shadow: none;
}

.btn-outline:hover,
.btn.btn-outline:hover {
  border-color: var(--s2-accent) !important;
  background: var(--s2-bg-soft) !important;
}

a.btn,
button.btn,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---------- Forms ---------- */
.form-control,
input.form-control,
textarea.form-control,
select.form-control,
.form-group--outline .form-control,
.form-control--gray,
.form-control--center,
.form-control--price {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--s2-border) !important;
  border-radius: var(--s2-radius) !important;
  background: #fff !important;
  color: var(--s2-text) !important;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-control:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  outline: none !important;
  border-color: var(--s2-accent) !important;
  box-shadow: var(--s2-focus) !important;
  background: #fff !important;
}

.form-control::placeholder,
textarea.form-control::placeholder {
  color: var(--s2-muted-2);
  opacity: 1;
}

/* iOS/Android: не зумить страницу при фокусе на поле (нужен font-size ≥ 16px) */
@media (max-width: 1024px) {
  input.form-control,
  textarea.form-control,
  select.form-control,
  .form-control,
  .form-group--outline .form-control,
  .form-control--gray,
  .form-control--center,
  .form-control--price,
  .bootstrap-select > .dropdown-toggle,
  .bootstrap-select .dropdown-toggle .filter-option-inner-inner,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

.form-group > label,
.form-group--outline > label,
.form-group label {
  color: var(--s2-muted) !important;
  font-weight: 500 !important;
  font-size: 13px;
  margin-bottom: 8px;
}

.form-group--outline {
  margin-bottom: 16px;
}

.group-validation .form-control {
  width: 100%;
}

.validation-error,
.error-message,
.order-error {
  border-radius: 10px;
}

.order-error:before,
.order-error::before {
  display: none !important;
  content: none !important;
}

/* ---------- Bootstrap-select ---------- */
.bootstrap-select > .dropdown-toggle,
.bootstrap-select > .dropdown-toggle.btn,
.bootstrap-select > .dropdown-toggle.btn-default,
.platform-select .bootstrap-select > .dropdown-toggle {
  min-height: 48px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--s2-border) !important;
  border-radius: var(--s2-radius) !important;
  background: #fff !important;
  color: var(--s2-text) !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select > .dropdown-toggle:hover,
.bootstrap-select.open > .dropdown-toggle,
.bootstrap-select.show > .dropdown-toggle {
  border-color: var(--s2-accent) !important;
  box-shadow: var(--s2-focus) !important;
  outline: none !important;
}

.bootstrap-select .dropdown-menu {
  border: 1px solid var(--s2-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--s2-shadow) !important;
  padding: 0 !important;
  margin-top: 6px !important;
  background: #fff !important;
  overflow: hidden !important;
}

/* Убираем «сетку на сетке»: внутренний .inner без своей рамки */
.bootstrap-select .dropdown-menu > .inner,
.bootstrap-select .dropdown-menu .inner.open,
.bootstrap-select .dropdown-menu.inner {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.bootstrap-select .dropdown-menu li {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(40, 44, 75, 0.06) !important;
}

.bootstrap-select .dropdown-menu li:first-child {
  border-top: 0 !important;
}

.bootstrap-select .dropdown-menu li a,
.bootstrap-select .dropdown-menu .dropdown-item {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  color: var(--s2-text) !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.bootstrap-select .dropdown-menu li a span.text,
.bootstrap-select .dropdown-menu li a span {
  font-weight: 400 !important;
}

.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu .dropdown-item.active,
.bootstrap-select .dropdown-menu .dropdown-item:active,
.bootstrap-select .dropdown-menu .dropdown-item:hover {
  background: var(--s2-bg-soft) !important;
  color: var(--s2-accent) !important;
  font-weight: 400 !important;
}

.bootstrap-select .filter-option-inner-inner {
  color: var(--s2-text);
  font-weight: 400 !important;
}

/* ---------- Modals ---------- */
.modal-backdrop {
  background: rgba(40, 44, 75, 0.45) !important;
}

.modal-backdrop.show,
.modal-backdrop.in {
  opacity: 1 !important;
}

.modal-dialog {
  margin: 1.25rem auto;
}

.modal-content,
.modal .modal-content {
  border: 1px solid var(--s2-border) !important;
  border-radius: var(--s2-radius-lg) !important;
  box-shadow: 0 24px 48px rgba(40, 44, 75, 0.18) !important;
  background: var(--s2-card) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--s2-border-soft) !important;
  padding: 18px 22px !important;
}

.modal-body {
  padding: 20px 22px !important;
  color: var(--s2-text);
}

.modal-footer {
  border-top: 1px solid var(--s2-border-soft) !important;
  padding: 14px 22px !important;
}

.modal-title,
.modal-header .tit,
.modal-header h2,
.modal-header h3 {
  color: var(--s2-text) !important;
  font-weight: 700;
}

.modal-close,
.modal .close,
.modal-header .close {
  opacity: 0.55;
  border-radius: 8px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.modal-close:hover,
.modal .close:hover,
.modal-header .close:hover {
  opacity: 1;
  background: var(--s2-bg-soft);
}

.modal--service .modal-content,
.modal--order-info .modal-content,
.modal--ordering .modal-content,
.modal--new-message .modal-content {
  border-radius: var(--s2-radius-lg) !important;
}

/* ---------- Flash / toast alerts ---------- */
.s2-toast-stack {
  --s2-toast-top: 88px;
  position: fixed;
  z-index: 1000001;
  top: var(--s2-toast-top);
  right: 16px;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
  box-sizing: border-box;
}

.s2-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 14px 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--s2-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(40, 44, 75, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate3d(18px, -6px, 0);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  box-sizing: border-box;
}

.s2-toast.is-show {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.s2-toast.is-hide {
  transform: translate3d(12px, -4px, 0);
  opacity: 0;
}

.s2-toast__ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f3ff center / 16px 16px no-repeat;
}

.s2-toast--ok {
  border-color: rgba(31, 157, 87, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 100%);
}

.s2-toast--ok .s2-toast__ico {
  background-color: #e8f7ef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='13' fill='none'%3E%3Cpath d='M14.9.8l-9.7 9.7-4.1-4.1-.8.8 4.5 4.5.4.4.4-.4L15.7 1.6l-.8-.8z' fill='%231f9d57'/%3E%3C/svg%3E");
}

.s2-toast--err {
  border-color: rgba(209, 67, 67, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.s2-toast--err .s2-toast__ico {
  background-color: #fdeced;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M7 .5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zm-.56 2.25v4.5h1.12v-4.5H6.44zm0 5.63v1.12h1.12V8.38H6.44z' fill='%23d14343'/%3E%3C/svg%3E");
}

.s2-toast__body {
  min-width: 0;
  padding-top: 1px;
}

.s2-toast__title {
  margin: 0 0 3px;
  font-family: Poppins, Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--s2-text);
}

.s2-toast__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--s2-muted);
  word-break: break-word;
}

.s2-toast__close {
  width: 28px;
  height: 28px;
  margin: -2px -2px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent center / 10px 10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%239a9bb2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  cursor: pointer;
  opacity: 0.7;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.s2-toast__close:hover {
  opacity: 1;
  background-color: rgba(40, 44, 75, 0.06);
}

@media (max-width: 576px) {
  .s2-toast-stack {
    right: 12px;
    left: 12px;
    width: auto;
    align-items: stretch;
  }
}

/* ---------- Form alerts (промокод / ошибки заказа) ---------- */
.sphere-form-alert,
.qo-promo-msg,
.sphere-qo-form .order-error,
.sphere-acc-create .order-error,
.sphere-svc-page .order-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--s2-border);
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--s2-text);
  box-sizing: border-box;
  box-shadow: none;
}

.sphere-form-alert[hidden],
.qo-promo-msg[hidden],
.sphere-qo-form .order-error[hidden],
.sphere-acc-create .order-error[hidden],
.sphere-svc-page .order-error[hidden] {
  display: none !important;
}

.sphere-form-alert__badge {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-block;
  background: #f4f3ff center / 12px 12px no-repeat;
}

.qo-promo-msg__ico {
  display: none !important;
}

.qo-promo-msg--error::before,
.qo-promo-msg--ok::before {
  content: "";
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  background: center / 12px 12px no-repeat;
}

.sphere-form-alert__text,
.qo-promo-msg__text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.sphere-form-alert--error,
.qo-promo-msg--error,
.sphere-qo-form .order-error.sphere-form-alert--error,
.sphere-acc-create .order-error.sphere-form-alert--error,
.sphere-svc-page .order-error.sphere-form-alert--error {
  border-color: rgba(209, 67, 67, 0.16);
  background: #fff8f8;
  color: #b42318;
}

.sphere-form-alert--error .sphere-form-alert__badge,
.qo-promo-msg--error::before {
  background-color: #fdeced !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M7 .5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zm-.56 2.25v4.5h1.12v-4.5H6.44zm0 5.63v1.12h1.12V8.38H6.44z' fill='%23d14343'/%3E%3C/svg%3E") !important;
}

.sphere-form-alert--ok,
.qo-promo-msg--ok,
.sphere-qo-form .order-error.sphere-form-alert--ok,
.sphere-acc-create .order-error.sphere-form-alert--ok,
.sphere-svc-page .order-error.sphere-form-alert--ok {
  border-color: rgba(31, 157, 87, 0.16);
  background: #f7fcf9;
  color: #147a45;
}

.sphere-form-alert--ok .sphere-form-alert__badge,
.qo-promo-msg--ok::before {
  background-color: #e8f7ef !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' fill='none'%3E%3Cpath d='M12.7.7L4.8 8.6 1.3 5.1.5 5.9l3.9 3.9.4.4.4-.4L13.5 1.5 12.7.7z' fill='%231f9d57'/%3E%3C/svg%3E") !important;
}

/* ---------- Loyalty note under price ---------- */
.s2-loy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 157, 87, 0.16);
  background: linear-gradient(180deg, #f7fcf9 0%, #ffffff 100%);
  box-sizing: border-box;
}

.s2-loy-note[hidden] {
  display: none !important;
}

.s2-loy-note__ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e8f7ef center / 14px 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M7 1.2l1.6 3.3 3.6.5-2.6 2.5.6 3.6L7 9.4 3.8 11.1l.6-3.6L1.8 5l3.6-.5L7 1.2z' fill='%231f9d57'/%3E%3C/svg%3E");
}

.s2-loy-note__body {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  flex: 1 1 auto;
}

.s2-loy-note__title {
  font-size: 12.5px;
  line-height: 1.35;
  color: #147a45;
  font-weight: 600;
}

.s2-loy-note__title b {
  font-weight: 700;
  color: #0f6a3b;
}

.s2-loy-note__save {
  font-size: 12.5px;
  font-weight: 700;
  color: #1f9d57;
  white-space: nowrap;
}

.price_total .cs-price-old,
.form-control--price .cs-price-old {
  margin-left: 8px;
  text-decoration: line-through;
  color: #9a9bb2;
  font-weight: 500;
  font-size: 14px;
}

/* ---------- Cards / panels ---------- */
.reviews-item,
.admin-main .block,
.order-history,
.confirm-order__main,
.services-item,
.service-card,
.qo-panel,
.ordering,
.last-operations__item,
.account-card,
.admin-content > .block-rounded {
  border: 1px solid var(--s2-border-soft) !important;
  border-radius: var(--s2-radius-lg) !important;
  box-shadow: 0 8px 20px rgba(90, 80, 200, 0.06) !important;
  background: var(--s2-card);
}

/* ПК: без общей рамки вокруг всего быстрого заказа */
@media (min-width: 1025px) {
  #quick-order .quick-order {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
}

.reviews-item:hover,
.last-operations__item:hover {
  box-shadow: var(--s2-shadow-hover) !important;
}

.section-title .pre-title {
  color: var(--s2-accent);
  font-weight: 600;
}

.section-title h1,
.section-title h2 {
  color: var(--s2-text);
}

/* ---------- Tabs / chips / pills ---------- */
/* Не трогаем FAQ: там вертикальный список вопросов, не «пилюли» */
.column-tabs .tabs-nav__link,
.nav-pills .nav-link,
.filter-chip,
.chip {
  border-radius: var(--s2-radius-pill) !important;
  border: 1px solid var(--s2-border);
  color: var(--s2-muted);
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.column-tabs .tabs-nav__link:hover {
  color: var(--s2-accent);
  border-color: #d8d7ff;
  background: var(--s2-bg-soft);
}

.column-tabs .tabs-nav__link.active,
.column-tabs .tabs-nav__item.active .tabs-nav__link,
.nav-pills .nav-link.active {
  color: #fff !important;
  background: var(--s2-grad) !important;
  border-color: transparent !important;
}

/* ---------- FAQ (главная) ---------- */
.faq-tabs {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-tabs .tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-tabs .tabs-nav__item {
  margin: 0;
  width: 100%;
}

.faq-tabs .tabs-nav__link,
.faq-tabs .tabs-nav__item.active .tabs-nav__link {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px 16px !important;
  border: 1px solid var(--s2-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--s2-text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.faq-tabs .tabs-nav__link::before {
  content: "" !important;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0 !important;
  padding: 0;
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block !important;
  border-radius: 50%;
  background-color: #f0f1f8;
  background-image:
    linear-gradient(#7874fe, #7874fe),
    linear-gradient(#7874fe, #7874fe);
  background-size: 10px 2px, 2px 10px;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0 !important;
  line-height: 0 !important;
}

.faq-tabs .tabs-nav__item.active .tabs-nav__link::before {
  background-color: rgba(255, 255, 255, 0.22);
  background-image: linear-gradient(#fff, #fff);
  background-size: 10px 2px;
  background-position: center;
  background-repeat: no-repeat;
}

.faq-tabs .tabs-nav__link:hover {
  border-color: #d8d7ff !important;
  background: var(--s2-bg-soft) !important;
  color: var(--s2-accent-soft) !important;
}

.faq-tabs .tabs-nav__item.active .tabs-nav__link,
.faq-tabs .tabs-nav__item.active .tabs-nav__link:hover {
  border-color: transparent !important;
  background: var(--s2-grad) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.faq-tabs .tab-content {
  padding: 28px 30px !important;
  border: 1px solid var(--s2-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  min-height: 180px;
  box-shadow: none !important;
}

.faq-tabs .tab-content__item h3 {
  margin: 0 0 12px;
  color: var(--s2-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.faq-tabs .tab-content__item p {
  margin: 0;
  color: var(--s2-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .faq-tabs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Pagination ---------- */
.pagination__link,
.pagination-btn,
.orders-pager__btn,
.opay-mini-pager__btn {
  border-radius: 10px !important;
  border: 1px solid var(--s2-border) !important;
  background: #fff !important;
  color: var(--s2-text) !important;
  font-weight: 600;
}

.pagination__link:hover,
.pagination-btn:hover,
.orders-pager__btn:hover,
.opay-mini-pager__btn:hover {
  border-color: var(--s2-accent) !important;
  color: var(--s2-accent) !important;
}

.pagination__link--active,
.pagination__link.active,
.orders-pager__btn.is-active,
.opay-mini-pager__btn.is-active {
  color: #fff !important;
  border-color: transparent !important;
  background: var(--s2-grad) !important;
}

/* ---------- Header / menu chrome (not icons) ---------- */
.header {
  backdrop-filter: saturate(1.1) blur(8px);
}

.menu__link {
  border-radius: 8px;
}

.menu__link:hover,
.menu__link.active {
  color: var(--s2-accent);
}

.header .btn--sign-in,
.header .btn--sign-up {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--s2-btn-radius) !important;
}

/* ---------- Account aside ---------- */
.admin-aside,
.admin-menu {
  border-radius: var(--s2-radius-lg);
}

.admin-aside .user-profile .user {
  align-items: center;
}

.admin-menu__link {
  border-radius: 10px !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-menu__link:hover,
.admin-menu__link.active {
  background: var(--s2-bg-soft) !important;
  color: var(--s2-accent) !important;
}

.tg-link {
  border: 1px solid var(--s2-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: #fff;
}

/* ---------- Quick order / services shells ---------- */
.quick-order .form-control,
.ordering .form-control,
.svc-order-shell .form-control,
.sphere-qo .form-control {
  border-radius: var(--s2-radius) !important;
}

/* Промокод (быстрый заказ / услуги / ЛК): одна обводка, слева скругление, справа огибает кнопку */
.sphere-qo-form .form-promocode,
.sphere-acc-create .form-promocode,
.sphere-svc-page .form-promocode {
  position: relative;
  display: flex !important;
  align-items: stretch;
  width: 100%;
  min-height: 50px;
  padding: 0;
  border: 1px solid var(--s2-border);
  border-radius: var(--s2-radius) !important;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sphere-qo-form .form-promocode:focus-within,
.sphere-acc-create .form-promocode:focus-within,
.sphere-svc-page .form-promocode:focus-within {
  border-color: var(--s2-accent);
  box-shadow: var(--s2-focus);
}

.sphere-qo-form .form-promocode .form-control,
.sphere-acc-create .form-promocode .form-control,
.sphere-svc-page .form-promocode .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.sphere-qo-form .form-promocode .form-control:hover,
.sphere-qo-form .form-promocode .form-control:focus,
.sphere-acc-create .form-promocode .form-control:hover,
.sphere-acc-create .form-promocode .form-control:focus,
.sphere-svc-page .form-promocode .form-control:hover,
.sphere-svc-page .form-promocode .form-control:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.sphere-qo-form .form-promocode .btn,
.sphere-qo-form .form-promocode #sphere-qo-promo-btn,
.sphere-acc-create .form-promocode .btn,
.sphere-acc-create .form-promocode #acc-promo-apply,
.sphere-svc-page .form-promocode .btn,
.sphere-svc-page .form-promocode #svc-promo-apply {
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--s2-grad) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.sphere-qo-form .form-promocode .btn:hover,
.sphere-qo-form .form-promocode #sphere-qo-promo-btn:hover,
.sphere-acc-create .form-promocode .btn:hover,
.sphere-acc-create .form-promocode #acc-promo-apply:hover,
.sphere-svc-page .form-promocode .btn:hover,
.sphere-svc-page .form-promocode #svc-promo-apply:hover {
  opacity: 0.92;
  box-shadow: none !important;
  transform: none !important;
}

.counter,
.qty-control,
.input-counter {
  border: 1px solid var(--s2-border);
  border-radius: var(--s2-radius);
  background: #fff;
  overflow: hidden;
}

/* ---------- Login / signup panels ---------- */
.sign-in,
.sign-up,
.auth-form,
.login,
.registration {
  border-radius: var(--s2-radius-lg);
}

.sign-in .form-control,
.sign-up .form-control,
.login .form-control {
  min-height: 48px;
}

/* ---------- Cookie / misc toasts ---------- */
.cookie-consent,
.cookie-banner {
  border-radius: 14px !important;
  border: 1px solid var(--s2-border) !important;
  box-shadow: var(--s2-shadow) !important;
}

/* ---------- Tables (generic modern row feel) ---------- */
.table thead th {
  color: var(--s2-muted-2);
  font-weight: 600;
  border-bottom-color: var(--s2-border-soft);
}

.table tbody td {
  color: var(--s2-text);
  border-color: var(--s2-border-soft);
}

/* ---------- Links ---------- */
a.link,
.reviews-guest a,
.od-empty a,
.form a:not(.btn) {
  color: var(--s2-accent);
}

/* ---------- Status pills (shared) ---------- */
.od-status,
.status-pill,
.badge-status {
  border-radius: var(--s2-radius-pill);
  font-weight: 600;
}

/* ---------- Modern checkboxes / radio marks (quick order) ---------- */
.quick-order .radio,
.ordering .radio,
.svc-order-shell .radio,
#step1_list .radio,
#step2_services .radio {
  height: auto !important;
  min-height: 44px;
  padding: 8px 44px 8px 10px;
  margin: 0 0 6px;
  border: 0;
  border-radius: 12px;
  transition: background 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* Клик по всему фону выделения (не только по тексту) */
#step1_list .radio label,
#step2_services .radio label,
.quick-order #step1_list .radio label,
.quick-order #step2_services .radio label {
  position: absolute;
  inset: 0;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 44px 8px 10px;
  margin: 0;
  box-sizing: border-box;
  z-index: 3;
  cursor: pointer;
}

#step1_list .radio-mark,
#step2_services .radio-mark,
.quick-order #step1_list .radio-mark,
.quick-order #step2_services .radio-mark {
  pointer-events: none;
  z-index: 1;
}

.quick-order .radio:hover,
.ordering .radio:hover,
#step1_list .radio:hover,
#step2_services .radio:hover {
  background: var(--s2-bg-soft);
  border: 0;
}

.quick-order .radio:has(input:checked),
.ordering .radio:has(input:checked),
#step1_list .radio:has(input:checked),
#step2_services .radio:has(input:checked) {
  background: var(--s2-bg-soft);
  border: 0;
  box-shadow: none;
}

.quick-order .radio-mark,
.ordering .radio-mark,
#step1_list .radio-mark,
#step2_services .radio-mark {
  right: 10px !important;
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #ececf2 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.quick-order .radio-mark:after,
.ordering .radio-mark:after,
#step1_list .radio-mark:after,
#step2_services .radio-mark:after {
  content: "" !important;
  color: transparent !important;
  opacity: 0;
  width: 12px !important;
  height: 10px !important;
  background: url(/static/design/img/ico/radio-mark-white.svg) no-repeat center !important;
  background-size: 11px 8px !important;
  transition: opacity 0.12s ease;
}

.quick-order .radio input:hover ~ .radio-mark,
.ordering .radio input:hover ~ .radio-mark,
#step1_list .radio input:hover ~ .radio-mark,
#step2_services .radio input:hover ~ .radio-mark {
  background: #e0e0f5 !important;
}

.quick-order .radio input:checked ~ .radio-mark,
.ordering .radio input:checked ~ .radio-mark,
#step1_list .radio input:checked ~ .radio-mark,
#step2_services .radio input:checked ~ .radio-mark {
  background: #7874fe !important;
  border-color: transparent !important;
  box-shadow: none;
  transform: none;
}

.quick-order .radio input:checked ~ .radio-mark:after,
.ordering .radio input:checked ~ .radio-mark:after,
#step1_list .radio input:checked ~ .radio-mark:after,
#step2_services .radio input:checked ~ .radio-mark:after {
  opacity: 1 !important;
  display: block !important;
  color: transparent !important;
}

.quick-order .radio label .tit,
#step1_list .radio label .tit,
#step2_services .radio label .tit {
  font-weight: 500;
  color: var(--s2-text);
}

.quick-order .radio:has(input:checked) label .tit,
#step1_list .radio:has(input:checked) label .tit,
#step2_services .radio:has(input:checked) label .tit {
  color: var(--s2-accent-soft);
  font-weight: 600;
}

/* Классические .checkbox (вход «запомнить» и т.п.) */
.checkbox {
  min-height: 22px;
  gap: 10px;
}

.checkbox-mark {
  width: 20px !important;
  height: 20px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #ececf2 !important;
  left: 0;
}

.checkbox-mark:after {
  width: 10px !important;
  height: 8px !important;
  border-radius: 0 !important;
  background: url(/static/design/img/ico/radio-mark-white.svg) no-repeat center !important;
  background-size: 10px 7px !important;
}

.checkbox input:checked ~ .checkbox-mark {
  background: #7874fe !important;
  border-color: transparent !important;
}

.checkbox input:checked ~ .checkbox-mark:after {
  display: block !important;
}

.checkbox:hover .checkbox-mark {
  background: #e0e0f5 !important;
}


/* ---------- Tariff modal v2 — спокойная карточка без градиент-hero ---------- */
.s2-tariff-modal .modal-dialog {
  margin: 28px auto;
  width: min(520px, calc(100vw - 28px));
}

.s2-tariff-modal__shell,
.s2-tariff-modal .modal-content.s2-tariff-modal__shell {
  position: relative;
  padding: 0 !important;
  border: 1px solid #e6e7f0 !important;
  border-radius: 20px !important;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(178, 36, 239, 0.07), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(117, 121, 255, 0.08), transparent 50%),
    #ffffff !important;
  box-shadow: 0 30px 70px rgba(40, 44, 75, 0.2) !important;
}

.s2-tariff-modal .modal-body.s2-tariff-modal__body,
.s2-tariff-modal__body {
  padding: 0 !important;
  text-align: left;
  color: #282c4b;
}

.s2-tariff-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.s2-tariff-modal__top-text {
  min-width: 0;
  flex: 1;
}

.s2-tariff-modal__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7874fe;
}

.s2-tariff-modal__title {
  margin: 0 !important;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #282c4b !important;
}

.s2-tariff-modal__close.close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e9f2 !important;
  border-radius: 10px !important;
  background: #f8f9fc !important;
  color: #8181a5;
  opacity: 1 !important;
  text-shadow: none;
  box-shadow: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.s2-tariff-modal__close.close:hover {
  color: #282c4b;
  background: #fff !important;
  border-color: #d8d7ff !important;
  opacity: 1 !important;
}

.s2-tariff-modal__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 18px 0 22px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(178, 36, 239, 0.08), rgba(117, 121, 255, 0.1));
  border: 1px solid rgba(120, 116, 254, 0.14);
}

.s2-tariff-modal__price-caption {
  font-size: 13px;
  font-weight: 500;
  color: #8181a5;
}

.s2-tariff-modal__price-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #5b56d6;
  white-space: nowrap;
}

.s2-tariff-modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 18px 22px 0;
  padding: 0;
  border: 1px solid #eceef5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.s2-tariff-modal__meta-item {
  margin: 0;
  padding: 14px 16px;
  border-right: 1px solid #eceef5;
  border-bottom: 0;
  background: #fff;
}

.s2-tariff-modal__meta-item:nth-child(2n) {
  border-right: 0;
}

.s2-tariff-modal__meta-item dt {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9bb2;
}

.s2-tariff-modal__meta-item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #282c4b;
}

.s2-tariff-modal__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 22px 22px;
}

.s2-tariff-modal__block {
  margin: 0;
  padding: 0;
  border-left: 0;
}

.s2-tariff-modal__block-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #7874fe;
}

.s2-tariff-modal__block-text {
  font-size: 14px;
  line-height: 1.55;
  color: #667085;
  white-space: pre-line;
  padding-left: 10px;
}

.s2-tariff-modal__block--note .s2-tariff-modal__block-title {
  color: #c47a00;
}

.s2-tariff-modal__block--note .s2-tariff-modal__block-text {
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  background: #fff8eb;
  border: 1px solid rgba(217, 145, 32, 0.28);
  color: #8a5a00;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

.s2-tariff-modal__example {
  margin-top: 2px;
  margin-left: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f5fb;
  border: 1px dashed #d7d9ea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  color: #5b56d6;
  word-break: break-all;
  white-space: pre-line;
}

@media (min-width: 601px) {
  .s2-tariff-modal.modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
  }

  .s2-tariff-modal .modal-dialog {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0;
    max-height: calc(100vh - 48px);
    flex-shrink: 0;
  }

  .s2-tariff-modal__shell {
    max-height: calc(100vh - 48px);
    overflow: auto;
  }
}

@media (max-width: 600px) {
  .s2-tariff-modal__title {
    font-size: 20px;
  }

  .s2-tariff-modal__meta {
    grid-template-columns: 1fr;
  }

  .s2-tariff-modal__meta-item {
    border-right: 0;
    border-bottom: 1px solid #eceef5;
  }

  .s2-tariff-modal__meta-item:last-child {
    border-bottom: 0;
  }

  .s2-tariff-modal__top,
  .s2-tariff-modal__price-row,
  .s2-tariff-modal__meta,
  .s2-tariff-modal__stack {
    margin-left: 20px;
    margin-right: 16px;
  }

  .s2-tariff-modal__top {
    padding-left: 20px;
    padding-right: 16px;
  }

  .s2-tariff-modal__price-row,
  .s2-tariff-modal__meta,
  .s2-tariff-modal__stack {
    margin-left: 20px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .btn,
  .form-btn,
  .form-submit {
    min-height: 46px;
  }

  .modal-content,
  .modal .modal-content {
    border-radius: 14px !important;
  }

  .modal-body {
    padding: 16px !important;
  }

  .s2-tariff-modal .modal-body.s2-tariff-modal__body {
    padding: 0 !important;
  }

  .s2-tariff-modal__shell {
    border-radius: 16px !important;
  }
}

/* ---------- Home: блок «Почему нас выбирают» (цифры) ---------- */
.s2-stats {
  position: relative;
  margin: 40px 0 48px;
  padding: 56px 0 60px;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Короткие еле заметные линии: изобилие ↔ цифры ↔ партнёрка */
.about .s2-stats::before,
.about .s2-stats::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: min(160px, 26vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(40, 44, 75, 0.1) 22%,
    rgba(40, 44, 75, 0.14) 50%,
    rgba(40, 44, 75, 0.1) 78%,
    transparent 100%
  );
  pointer-events: none;
}

.about .s2-stats::before {
  top: 0;
}

.about .s2-stats::after {
  bottom: 0;
}

.s2-stats .section-title h2 {
  margin-bottom: 8px;
}

.s2-stats__lead {
  margin: 0 auto;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--s2-muted);
}

.s2-stats__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
}

.s2-stats__item {
  position: relative;
  text-align: center;
  padding: 8px 18px 4px;
  animation: s2-stats-in 0.55s ease both;
  animation-delay: calc(var(--s2-stats-i, 0) * 0.08s);
}

.s2-stats__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 0;
  width: 1px;
  height: 72%;
  background: linear-gradient(180deg, transparent, rgba(120, 116, 254, 0.22) 25%, rgba(120, 116, 254, 0.22) 75%, transparent);
}

.s2-stats__num {
  font-family: Poppins, Lato, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--s2-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.s2-stats__title {
  margin: 0 auto;
  max-width: 11.5em;
  font-family: Poppins, Lato, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--s2-text);
}

@keyframes s2-stats-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .s2-stats {
    margin: 32px 0 36px;
    padding: 44px 0 48px;
  }

  .s2-stats__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 0;
  }

  .s2-stats__item:nth-child(2n)::after {
    display: none;
  }

  .s2-stats__item:nth-child(-n + 2) {
    padding-bottom: 22px;
  }

  .s2-stats__item:nth-child(-n + 2)::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 116, 254, 0.2) 15%, rgba(120, 116, 254, 0.2) 85%, transparent);
  }
}

@media (max-width: 575.98px) {
  .s2-stats {
    margin: 24px 0 28px;
    padding: 36px 0 40px;
  }

  .s2-stats__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .s2-stats__item {
    padding: 16px 8px;
  }

  .s2-stats__item::after,
  .s2-stats__item::before {
    display: none !important;
  }

  .s2-stats__item:not(:last-child) {
    border-bottom: 1px solid var(--s2-border-soft);
  }

  .s2-stats__num {
    font-size: 2.15rem;
  }
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.footer__ip {
  text-align: right;
  margin-left: auto;
}

.footer .ps {
  flex-wrap: wrap;
  gap: 10px !important;
}

.footer .ps .img img {
  max-width: 36px;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
  }
  .footer__ip {
    text-align: left;
    margin-left: 0;
  }
}
