/* ============ ПЛАШКА ЦЕНЫ + ТАЙМЕР ============ */
/* Мобильный: компактно — слева цена, справа бейдж акции, таймер строкой ниже (чтобы кнопка влезла в 360×640) */
.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.price-card__offer {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-card__label {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: var(--c-muted);
}

.price-card__price {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price-card__promo {
  display: contents;
}

.price-card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-self: end;
  min-width: 0;
}

/* На узких экранах бейдж акции переносится на 2 строки, а не растягивает карточку */
.price-card__badges .badge {
  white-space: normal;
  text-align: center;
  max-width: 150px;
  line-height: 14px;
}

.price-card .timer {
  grid-column: 1 / -1;
}

/* Планшет и десктоп: карточка по содержимому, цена и таймер рядом (правка клиента) */
@media (min-width: 560px) {
  .price-card {
    grid-template-columns: auto auto;
    justify-content: start;
    width: max-content;
    max-width: 100%;
    gap: 16px 28px;
    padding: 16px 20px;
  }
  .price-card__price {
    font-size: 32px;
    line-height: 38px;
  }
  .price-card__promo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .price-card__badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .price-card__badges .badge {
    white-space: nowrap;
    max-width: none;
    line-height: 16px;
  }
  .price-card .timer {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .price-card__price {
    font-size: 40px;
    line-height: 46px;
  }
}

/* Таймер в рамке (правка клиента) */
.timer {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-white);
  font-variant-numeric: tabular-nums;
}

.timer__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.timer__cell b {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: var(--c-text);
}

.timer__cell small {
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.timer__sep {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--c-strike);
}

.timer--lg {
  justify-content: center;
  width: 100%;
  margin: 20px 0 24px;
}

.timer--lg .timer__cell {
  min-width: 56px;
}

.timer--lg .timer__cell b {
  font-size: 34px;
  line-height: 40px;
  color: var(--c-main);
}

.timer--lg .timer__sep {
  font-size: 30px;
  line-height: 40px;
}

/* ============ КАРТОЧКИ «ЧТО ВХОДИТ» ============ */
.cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card--accent {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent);
}

.card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
}

.card__icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background-color: var(--c-light);
  position: relative;
}

.card__icon::after {
  content: '';
  position: absolute;
  inset: 12px;
  background: var(--c-main);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.card__icon[data-icon='scan'] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8V6a2 2 0 0 1 2-2h2M16 4h2a2 2 0 0 1 2 2v2M20 16v2a2 2 0 0 1-2 2h-2M8 20H6a2 2 0 0 1-2-2v-2'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E");
}

.card__icon[data-icon='plan'] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M8.5 12.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}

.card__icon[data-icon='gift'] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M5 12v9h14v-9M12 8c-1.5-4-6-3.5-6-1.5S9.5 8 12 8zm0 0c1.5-4 6-3.5 6-1.5S14.5 8 12 8z'/%3E%3C/svg%3E");
}

.card__title {
  margin-bottom: 10px;
}

.card__text {
  margin-top: auto;
  padding-top: 10px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 1024px) {
  .card__text {
    font-size: 17px;
    line-height: 26px;
  }
}

/* ============ ФОРМЫ ============ */
.form {
  display: grid;
  gap: 14px;
}

.form__title {
  font-size: 18px;
  line-height: 24px;
}

.form__row {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .form__row {
    grid-template-columns: 1fr auto;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
}

.input {
  width: 100%;
  min-height: var(--btn-h);
  padding: 0 18px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-btn);
  background: var(--c-white);
  font-size: 18px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input:focus {
  outline: none;
  border-color: var(--c-main);
  box-shadow: 0 0 0 4px var(--c-main-15);
}

.input::placeholder {
  color: var(--c-strike);
}

/* Согласие текстом под кнопкой, без чекбокса (правка клиента) */
.form__consent {
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  color: var(--c-muted);
}

.form__consent a {
  color: var(--c-main);
}

.form__error {
  margin: 0;
  color: var(--c-error);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.form.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

/* ============ МОДАЛЬНЫЕ ОКНА ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
    padding: 24px;
  }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 46, 0.6);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 32px 20px 24px;
  background: var(--c-white);
  border-radius: var(--r-card) var(--r-card) 0 0;
  box-shadow: var(--shadow-float);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (min-width: 640px) {
  .modal__dialog {
    border-radius: var(--r-card);
    padding: 36px 32px 28px;
    max-height: calc(100vh - 48px);
  }
}

.modal.is-open .modal__backdrop,
.modal.is-open .modal__dialog {
  opacity: 1;
  transform: none;
}

.modal__dialog--promo {
  text-align: center;
  background: linear-gradient(180deg, var(--c-light) 0%, var(--c-white) 42%);
}

.modal__dialog--promo .form {
  text-align: left;
}

.modal__dialog--promo .legal-note {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
}

.modal__dialog--wide {
  max-width: 960px;
  padding: 24px 16px;
}

@media (min-width: 640px) {
  .modal__dialog--wide {
    padding: 28px;
  }
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-muted);
  box-shadow: var(--shadow-card);
}

.modal__close:hover {
  color: var(--c-text);
  background: var(--c-light);
}

.modal__title {
  font-size: 24px;
  line-height: 30px;
  padding-right: 40px;
}

.modal__dialog--promo .modal__title {
  padding-right: 0;
  font-size: 28px;
  line-height: 34px;
}

.modal__text {
  margin: 10px 0 20px;
  color: var(--c-muted);
}

.modal__last-days {
  margin-bottom: 12px;
}

/* ============ COOKIE ============ */
.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--mobile-bar-h) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--c-border);
}

@media (min-width: 1024px) {
  .cookie {
    left: 24px;
    right: auto;
    bottom: 24px;
    max-width: 560px;
    padding: 20px;
  }
}

.cookie__text {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-muted);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ ПЛАВАЮЩИЕ КНОПКИ ============ */
.float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .float {
    display: flex;
  }
}

.float__btn {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-white);
  box-shadow: var(--shadow-float);
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.float__btn svg {
  width: 28px;
  height: 28px;
}

.float__btn:hover {
  transform: translateY(-2px);
  color: var(--c-white);
  filter: brightness(1.08);
}

/* Кнопка-трубка: открывает попап «Заказать звонок» (правка клиента) */
.float__btn--call {
  border: 0;
  background: var(--c-main);
  animation: float-pulse 2.4s ease-out infinite;
}

.float__btn--call .ico {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}

.float__btn--call:hover {
  background: var(--c-main-hover);
  animation: none;
}

@keyframes float-pulse {
  0% {
    box-shadow: var(--shadow-float), 0 0 0 0 rgba(0, 143, 139, 0.45);
  }
  70% {
    box-shadow: var(--shadow-float), 0 0 0 16px rgba(0, 143, 139, 0);
  }
  100% {
    box-shadow: var(--shadow-float), 0 0 0 0 rgba(0, 143, 139, 0);
  }
}

/* ============ МОБИЛЬНАЯ ПАНЕЛЬ ============ */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* «Позвонить | Рассчитать» — кнопку «Заказать звонок» убрали (правка клиента) */
  height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 16px rgba(31, 42, 46, 0.06);
}

@media (min-width: 1024px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--c-text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bar__item .ico {
  width: 24px;
  height: 24px;
  color: var(--c-main);
}

.mobile-bar__item--accent {
  background: var(--c-main);
  color: var(--c-white);
}

.mobile-bar__item--accent .ico {
  color: var(--c-white);
}

/* ============ КВИЗ ============ */
.quiz-host {
  min-height: 420px;
}

.quiz {
  display: grid;
  gap: 20px;
  padding: 20px 16px;
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.quiz > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .quiz {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
  }
}

.quiz-host--popup .quiz {
  box-shadow: none;
  padding: 0;
}

@media (min-width: 1024px) {
  .quiz-host--popup .quiz {
    grid-template-columns: 280px minmax(0, 1fr);
    padding: 8px 0 0;
  }
}

.quiz__gifts {
  padding: 18px;
  background: var(--c-light);
  border-radius: 12px;
}

.quiz__gifts-title {
  font-size: 16px;
  line-height: 22px;
}

.quiz__gifts-benefit {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 700;
}

.gift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(0, 143, 139, 0.3);
  font-size: 15px;
  line-height: 20px;
}

.gift__name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift__name .ico {
  width: 18px;
  height: 18px;
  color: var(--c-main);
}

.gift__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}

.gift__price {
  font-weight: 700;
  color: var(--c-accent);
}

.gift__old {
  font-size: 13px;
  color: var(--c-strike);
  text-decoration: line-through;
}

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--c-muted);
}

.quiz__bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--c-light);
  overflow: hidden;
}

.quiz__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--c-main);
  transition: width 0.35s var(--ease);
}

.quiz__question {
  margin: 16px 0 18px;
  font-size: 22px;
  line-height: 28px;
}

@media (min-width: 1024px) {
  .quiz__question {
    font-size: 26px;
    line-height: 32px;
  }
}

.quiz__options {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .quiz__options {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-btn);
  background: var(--c-white);
  text-align: left;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.quiz__option::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-white);
  transition: inherit;
}

.quiz__option:hover {
  border-color: var(--c-main);
}

.quiz__option.is-selected {
  border-color: var(--c-main);
  background: var(--c-light);
}

.quiz__option.is-selected::before {
  border-color: var(--c-main);
  background: radial-gradient(var(--c-main) 45%, var(--c-white) 50%);
}

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--c-muted);
  font-weight: 700;
}

.quiz__back:hover {
  color: var(--c-main);
}

.quiz__back:disabled {
  visibility: hidden;
}

.quiz__hint {
  font-size: 13px;
  color: var(--c-strike);
}

/* Отступ от строки «Последний шаг», чтобы фото не сливалось с прогрессом (правка клиента) */
.quiz__final {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .quiz__final {
    grid-template-columns: 150px 1fr;
    align-items: start;
    margin-top: 28px;
  }
}

.quiz__final-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--c-light);
}

.quiz__final-title {
  font-size: 24px;
  line-height: 30px;
}

.quiz__final-text {
  margin: 8px 0 16px;
  color: var(--c-muted);
}

.quiz__final-doctor {
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
}

/* ============ ДО / ПОСЛЕ ============ */
.cases {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.cases__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
  margin: -4px;
}

.cases__track::-webkit-scrollbar {
  display: none;
}

.case {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-light);
  user-select: none;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__img--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(31, 42, 46, 0.65);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.ba__tag--before {
  left: 12px;
}

.ba__tag--after {
  right: 12px;
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--c-white);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Ручка на уровне груди: на портретах рот по центру кадра, ручка не должна его закрывать */
.ba__handle::after {
  content: '';
  position: absolute;
  top: 80%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008F8B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-card);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
  -webkit-appearance: none;
  appearance: none;
}

.ba__range:focus-visible {
  opacity: 1;
  outline: none;
  box-shadow: inset 0 0 0 3px var(--c-accent);
  background: transparent;
}

/* Мобильный: без ползунка — две статичные фотографии с подписями «До» и «После» (правка клиента) */
@media (max-width: 767px) {
  .ba {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .ba__img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    clip-path: none;
  }

  .ba__img--before {
    order: 1;
  }

  .ba__img--after {
    order: 3;
  }

  .ba__tag {
    position: static;
    justify-self: start;
    padding: 5px 12px;
    background: var(--c-light);
    color: var(--c-main);
    font-size: 13px;
  }

  .ba__tag--before {
    order: 0;
  }

  .ba__tag--after {
    order: 2;
    margin-top: 6px;
  }

  .ba__handle,
  .ba__range {
    display: none;
  }
}

.case__patient {
  margin-top: 14px;
  text-align: center;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: var(--c-text);
}

.case__patient + .case__caption {
  margin-top: 4px;
  font-weight: 400;
  color: var(--c-muted);
}

.case__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
}

.case__caption i {
  font-style: normal;
  color: var(--c-main);
}

.cases__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.cases__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-main);
}

.cases__btn:hover {
  border-color: var(--c-main);
  background: var(--c-light);
}

.cases__dots {
  display: flex;
  gap: 8px;
}

.cases__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-border);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cases__dot.is-active {
  background: var(--c-main);
  transform: scale(1.2);
}

/* ============ СЛАЙДЕР ОТЗЫВОВ ============ */
.reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
  margin: -4px;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.review {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}

@media (min-width: 640px) {
  .review {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .reviews__track {
    gap: 20px;
  }
  .review {
    flex-basis: calc((100% - 40px) / 3);
  }
}

.review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-light);
  color: var(--c-main);
}

.review__name {
  display: block;
  font-size: 16px;
  line-height: 20px;
}

.review__meta {
  font-size: 13px;
  color: var(--c-muted);
}

.review__stars {
  color: var(--c-accent);
  font-size: 16px;
  letter-spacing: 2px;
}

.review__text {
  font-size: 15px;
  line-height: 23px;
}

/* ============ РЕЙТИНГИ / ДОКУМЕНТЫ / ФИЛИАЛЫ ============ */
.rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  color: var(--c-text);
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.rating:hover {
  color: var(--c-text);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.rating__service {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
}

.rating__value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}

.rating__value .ico {
  width: 24px;
  height: 24px;
  color: var(--c-accent);
  fill: var(--c-accent);
}

.rating__count {
  font-size: 14px;
  color: var(--c-muted);
}

.docs__title {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 12px;
}

.docs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 96px;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  text-decoration: none;
}

.docs__item img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.docs__item:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.branches {
  display: grid;
  gap: 14px;
}

.branch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.branch .ico {
  color: var(--c-main);
  margin-top: 2px;
}

.branch div {
  display: grid;
}

.branch b {
  font-size: 17px;
  line-height: 24px;
}

.branch span {
  font-size: 14px;
  color: var(--c-muted);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: var(--c-muted);
  font-size: 14px;
}

.map-placeholder .ico {
  width: 36px;
  height: 36px;
  color: var(--c-main);
}
