/**
 * WeLUX: стили страниц услуг и программ (product) — Pixel-Perfect Figma Edition
 */

/* =========================================================
   1. HERO (desktop & mobile)
   ========================================================= */

.detox-hero,
.complex-hero {
  position: relative;
  width: 100%;
  background: #ccaf83;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  isolation: isolate;
  min-height: 580px;
}

.complex-hero {
  background: #f7f4ea;
}

.detox-hero__inner,
.complex-hero__inner {
  display: grid;
  grid-template-columns: 38% 62%;
  min-height: 580px;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Левая колонка hero */
.detox-hero__left,
.complex-hero__left {
  background: #c5a982;
  padding: 56px 48px 36px clamp(24px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  color: #ffffff;
  position: static;
  z-index: 2;
  box-sizing: border-box;
}

.complex-hero__left {
  background: #f7f4ea;
  color: #1c1c1c;
}

/* Теги hero */
.detox-hero__tags,
.complex-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.detox-hero__tags li {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 12px;
  color: #2d2d2d;
  line-height: 1.25;
}
.complex-hero__tags li {
  background: #ffffff;
  border: 1px solid #e6d9bf;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #444444;
}

/* Заголовок и тексты hero */
.detox-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  color: #ffffff !important;
  margin: 0;
  text-transform: uppercase;
}
.complex-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  color: #1a1a1a !important;
  margin: 0;
}

.detox-hero__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #ffffff !important;
  margin: 0;
  max-width: 440px;
}
.complex-hero__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #444444 !important;
  margin: 0;
  max-width: 440px;
}
.detox-hero__desc-em {
  color: #ffffff !important;
  font-weight: 500;
}

/* Кнопка hero */
.detox-hero__btn,
.complex-hero__btn {
  align-self: flex-start;
  margin-top: 4px;
  background: #4c523e !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.detox-hero__btn:hover,
.complex-hero__btn:hover {
  background: #3a3f31 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Разделительная линия на ВСЮ ширину hero (desktop) */
.detox-hero__divider-full,
.complex-hero__divider-full {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 153px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  z-index: 6;
  pointer-events: none;
}
.complex-hero__divider-full {
  background: rgba(180, 160, 130, 0.35);
}
.complex-hero__divider {
  display: none !important;
}

/* Подзаголовок под линией */
.detox-hero__note {
  font-size: 13.5px;
  line-height: 1.5;
  color: #ffffff !important;
  margin-top: auto;
  padding-bottom: 6px;
  max-width: 420px;
}
.complex-hero__note {
  font-size: 13.5px;
  line-height: 1.5;
  color: #1c1c1c !important;
  margin-top: auto;
  padding-bottom: 6px;
  max-width: 420px;
}

/* Правая часть hero — фото ВПРИТЫК на всю высоту */
.detox-hero__right,
.complex-hero__right {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
  overflow: hidden;
}
.detox-hero__media,
.complex-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.detox-hero__media img,
.complex-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Стеклянные карточки поверх фото (desktop) */
.detox-hero__cards,
.complex-hero__cards {
  position: absolute;
  left: calc(38% + 36px);
  bottom: 16px;
  display: flex;
  gap: 16px;
  z-index: 7;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detox-card,
.complex-hero__card {
  width: 175px;
  min-height: 125px;
  background: rgba(30, 30, 30, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.complex-hero__card {
  background: rgba(30, 30, 30, 0.52);
}

.detox-card__icon,
.complex-hero__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.detox-card__icon img,
.complex-hero__card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.detox-card__text,
.complex-hero__card p {
  font-size: 13px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
}

/* Бегущая строка hero — оливковый фон #5a5a43 */
.detox-hero__marquee {
  position: relative;
  background: #5a5a43 !important;
  color: #ffffff !important;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}
.detox-hero__marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: detox-marquee 32s linear infinite;
  padding-left: 40px;
}
.detox-hero__marquee-track span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  position: relative;
  padding-right: 40px;
}
.detox-hero__marquee-track span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------
   Hero Mobile (<= 860px)
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .detox-hero,
  .complex-hero {
    background: transparent;
    /* Шапка на страницах товара sticky (не поверх героя) — отдельный отступ под неё не нужен. */
    padding-top: 0 !important;
    min-height: auto;
  }
  .detox-hero__inner,
  .complex-hero__inner {
    display: flex;
    flex-direction: column;
    min-height: auto;
    position: relative;
  }
  .detox-hero__right,
  .complex-hero__right {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    z-index: 0;
  }
  .detox-hero__media,
  .complex-hero__photo {
    position: absolute;
    inset: 0;
  }
  .detox-hero__media::after,
  .complex-hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
  }
  .detox-hero__left,
  .complex-hero__left {
    position: relative !important;
    background: transparent !important;
    padding: 32px 20px 24px;
    max-width: 100%;
    gap: 16px;
    z-index: 2;
    color: #ffffff !important;
  }
  .detox-hero__title,
  .complex-hero__title {
    font-size: 32px;
    color: #ffffff !important;
  }
  .detox-hero__desc,
  .complex-hero__desc {
    font-size: 14px;
    color: #ffffff !important;
  }
  .detox-hero__btn,
  .complex-hero__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    margin-top: 6px;
  }
  .detox-hero__divider-full,
  .complex-hero__divider-full {
    display: none !important;
  }
  .detox-hero__note,
  .complex-hero__note {
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding-top: 14px !important;
    margin-top: 4px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }
  .detox-hero__cards,
  .complex-hero__cards {
    position: static;
    left: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    z-index: 2;
    width: 100%;
    padding: 0;
  }
  .detox-card,
  .complex-hero__card {
    width: 100%;
    min-height: 110px;
    padding: 14px 12px;
    box-sizing: border-box;
  }
  .detox-card__text,
  .complex-hero__card p {
    font-size: 12px;
  }
}

/* =========================================================
   2. ЭФФЕКТ ПРОЦЕДУРЫ (desktop & mobile Figma)
   ========================================================= */

.detox-effect {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  isolation: isolate;
  background: #2a2a22;
}

.detox-effect__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.detox-effect__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detox-effect__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.detox-effect__inner {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detox-effect__title {
  color: #ffffff !important;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  max-width: 420px;
  white-space: normal !important;
  margin: 0;
}

/* Стеклянные плашки эффекта на десктопе */
.detox-chip {
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  position: absolute;
  z-index: 6;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  user-select: none;
  outline: none;
  white-space: nowrap;
}
.detox-chip:hover,
.detox-chip:focus-visible,
.detox-chip.is-active {
  background: rgba(18, 18, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
}
.detox-chip__sign {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

/* Раскладка плашек по умолчанию (как в Figma d/186-256.jpg) */
.detox-chip--tl {
  left: 12% !important;
  top: 34% !important;
}
.detox-chip--tr {
  right: 12% !important;
  top: 32% !important;
}
.detox-chip--mr {
  right: 6% !important;
  top: 54% !important;
  transform: none !important;
}
.detox-chip--bl {
  left: 14% !important;
  bottom: 18% !important;
  transform: none !important;
}
.detox-chip--bc {
  left: auto !important;
  right: 16% !important;
  bottom: 18% !important;
  transform: none !important;
  text-align: left !important;
}

/* На десктопе поповер внутри плашки скрыт */
.detox-chip__popover {
  display: none !important;
}

/* Центральная белая карточка-поповер и backdrop затемнения из Figma (d/186-256.jpg) */
.detox-effect__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: detox-fade-in 0.2s ease-out;
}
.detox-effect__backdrop.is-active {
  display: block;
}

body.has-detox-modal-open .detox-effect {
  z-index: 9990 !important;
}

@keyframes detox-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detox-effect__modal {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 440px;
  background: #ffffff;
  color: #2d2d2d;
  border-radius: 16px;
  padding: 28px 32px 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  text-align: left;
  animation: detox-modal-in 0.2s ease-out;
}
.detox-effect__modal.is-active {
  display: block;
}
.detox-effect__modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #777777;
  cursor: pointer;
  padding: 4px;
}
.detox-effect__modal-close:hover {
  color: #111111;
}
.detox-effect__modal-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #333333;
  margin: 0;
}
@keyframes detox-modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ---------------------------------------------------------
   Effect Mobile (<= 860px) — макет m/581-5252.jpg
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .detox-effect {
    background: #55553e !important;
    padding: 44px 16px 0 !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .detox-effect__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    position: static !important;
    min-height: auto !important;
    order: 1 !important;
    padding-bottom: 28px !important;
  }
  .detox-effect__title {
    font-family: var(--font-base), sans-serif !important;
    text-align: left !important;
    margin: 0 0 16px 0 !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    max-width: 100% !important;
    text-shadow: none !important;
  }
  .detox-chip {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 14px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
  }
  .detox-chip__header {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  .detox-chip__label {
    display: inline !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
  }
  .detox-chip__sign {
    display: inline-block !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    margin-left: 5px !important;
    vertical-align: baseline !important;
  }
  .detox-chip__popover {
    display: none !important;
    margin-top: 10px !important;
    padding: 10px 12px !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: left !important;
  }
  .detox-chip.is-active .detox-chip__popover {
    display: block !important;
  }
  .detox-effect__modal,
  .detox-effect__backdrop {
    display: none !important;
  }
  /* Фото строго под секцией плашек */
  .detox-effect__media {
    position: static !important;
    order: 2 !important;
    margin: 0 -16px !important;
    width: calc(100% + 32px) !important;
    max-width: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    height: 270px !important;
  }
  .detox-effect__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }
  .detox-effect__media::after {
    display: none !important;
  }
}

/* =========================================================
   3. РЕКОМЕНДУЕТСЯ ПРИ (бесконечный бегущий скролл)
   ========================================================= */

.detox-problems {
  overflow: hidden;
  padding: 60px 0 80px;
  text-align: center;
}

.detox-problems__rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.detox-problems__row {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.detox-problems__track {
  display: inline-flex;
  gap: 14px;
  white-space: nowrap;
  will-change: transform;
}

.detox-problems__track--left {
  animation: problems-left 36s linear infinite;
}
.detox-problems__track--right {
  animation: problems-right 42s linear infinite;
}
.detox-problems__track--left-slow {
  animation: problems-left 46s linear infinite;
}

.detox-problems__track:hover {
  animation-play-state: paused;
}

@keyframes problems-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes problems-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.detox-problems__list {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  .detox-problems__track {
    animation: none !important;
  }
  .detox-problems__track [aria-hidden="true"] {
    display: none !important;
  }
  .detox-problems__rows {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .detox-problems__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================================
   4. ЧТО ИЗ СЕБЯ ПРЕДСТАВЛЯЕТ ПРОЦЕДУРА (Figma d/117-4030)
   ========================================================= */

.detox-proc {
  background: #ffffff;
  padding: 70px 0 90px;
}

.detox-proc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detox-proc__card {
  border-radius: 20px;
  padding: 32px 28px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.detox-proc__card:nth-child(1) {
  background: #f3f0dc !important;
  color: #2d2d2d !important;
}
.detox-proc__card:nth-child(2) {
  background: #9e9e7b !important;
  color: #ffffff !important;
}
.detox-proc__card:nth-child(3) {
  background: #6e6e52 !important;
  color: #ffffff !important;
}
.detox-proc__card:nth-child(4) {
  background: #4e503a !important;
  color: #ffffff !important;
}

.detox-proc__icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 1.5px solid currentColor !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-bottom: 24px !important;
  color: inherit !important;
  background: transparent !important;
}
.detox-proc__icon svg {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}
.detox-proc__icon img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: block !important;
}

.detox-proc__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: inherit !important;
}

.detox-proc__text {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  color: inherit !important;
}

@media (max-width: 1024px) {
  .detox-proc__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detox-history__inner,
  .complex-unique__inner {
    display: flex !important;
    flex-direction: column !important;
  }
  .detox-history__content,
  .complex-unique__content {
    order: 1 !important;
  }
  .detox-history__media,
  .complex-unique__media {
    order: 2 !important;
    margin-top: 24px !important;
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  .detox-proc__grid[data-slider-track] {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 16px !important;
  }
  .detox-proc__grid[data-slider-track]::-webkit-scrollbar {
    display: none !important;
  }
  .detox-proc__grid[data-slider-track] > * {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 560px) {
  .detox-proc__card {
    min-height: auto;
    padding: 24px 20px;
  }
}

/* =========================================================
   5. СРАВНЕНИЕ (Figma d/117-3256)
   ========================================================= */

.detox-compare {
  background: #ffffff;
  padding: 60px 0 80px;
}

.detox-compare__head {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 12px !important;
}

.detox-compare__th {
  background: #ccaf83 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  text-align: center !important;
}

.detox-compare__row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 10px !important;
  border: none !important;
}

.detox-compare__cell {
  background: #ffffff !important;
  border: 1px solid #dcd7c5 !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  font-size: 13.5px !important;
  color: #333333 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .detox-compare__table {
    --detox-gap: 8px;
    --detox-peek: 36px;
    --detox-col: calc((100cqi - var(--detox-gap) - var(--detox-peek)) / 2);
    position: relative;
    container-type: inline-size;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .detox-compare__table::-webkit-scrollbar {
    display: none;
  }
  .detox-compare__table::before {
    content: "";
    position: sticky;
    top: 0;
    left: calc(100% - 28px);
    z-index: 2;
    width: 28px;
    height: 28px;
    margin-bottom: -28px;
    pointer-events: none;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 6.7L13.3 12 8 17.3' stroke='%232d2d2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 16px 16px no-repeat,
      linear-gradient(270deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  }
  .detox-compare__head,
  .detox-compare__row {
    width: calc(var(--detox-col) * 3 + var(--detox-gap) * 2) !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, var(--detox-col)) !important;
    gap: var(--detox-gap) !important;
  }
  .detox-compare__th,
  .detox-compare__cell {
    min-width: 0 !important;
    padding: 10px 6px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: manual !important;
    text-wrap: pretty;
    scroll-snap-align: start;
  }
  .detox-compare__cell {
    display: block !important;
    text-align: center !important;
  }
  .detox-compare__head .detox-compare__th:first-child,
  .detox-compare__head .detox-compare__th:last-child {
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .detox-compare__table {
    scroll-behavior: auto;
  }
}

/* =========================================================
   6. ТАБЛИЦА УСЛУГ (десктоп и мобильный по Figma)
   ========================================================= */

.detox-srv__prices {
  display: contents;
}

.detox-srv__dur-inline {
  display: none;
}

.detox-srv__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detox-srv__more:hover {
  text-decoration: none;
}

.detox-srv__dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ccaf83 url('../../img/icons/icon-arrow-up-right.svg') center/contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .detox-services {
    padding-block: 40px 50px !important;
  }
  .detox-services__title {
    font-size: 32px !important;
    margin-bottom: 20px !important;
  }
  .detox-services__card {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-shadow: none !important;
  }
  .detox-services__head {
    background: #f4f1df !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 10px 14px !important;
    margin-bottom: 6px !important;
  }
  .detox-services__name {
    font-family: var(--font-base), sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #2d2d2d !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
  .detox-services__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .detox-srv {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    border: none !important;
    border-bottom: 1px solid #efefea !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 18px 0 20px !important;
    gap: 10px !important;
    box-shadow: none !important;
  }
  .detox-srv:last-child {
    border-bottom: 1px solid #efefea !important;
  }
  .detox-srv__name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    line-height: 1.35 !important;
    margin-bottom: 2px !important;
    text-align: left !important;
  }
  .detox-srv__dur-inline {
    display: inline !important;
  }
  .detox-srv__prices {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 28px !important;
    margin: 2px 0 !important;
  }
  .detox-srv__col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
  }
  .detox-srv__col--dur,
  .detox-srv__col--empty {
    display: none !important;
  }
  .detox-srv__label {
    font-size: 11.5px !important;
    color: #767676 !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
  }
  .detox-srv__value {
    font-size: 21px !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
    line-height: 1.15 !important;
  }
  .detox-srv__value--old {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #b5b5b5 !important;
    margin-top: 5px !important;
    align-self: flex-start !important;
  }
  .detox-srv__value--old s {
    text-decoration: line-through !important;
  }
  .detox-srv__more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    align-self: flex-start !important;
    margin-top: 6px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #2d2d2d !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    background: none !important;
    padding: 0 !important;
  }
}

/* =========================================================
   7. КАРТОЧКИ ПРОГРАММ & ЧТО ВХОДИТ В ПРОГРАММУ
   ========================================================= */

.complex-includes {
  background: #f7f4ea !important;
  padding: 60px 0 90px;
}

.complex-includes__row {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr 1fr;
  align-items: center;
  gap: 20px;
}

.complex-includes__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d2d2d;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.complex-includes__more-circle {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.complex-total {
  background: #969b7f !important;
  border-radius: 20px;
  padding: 36px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}

.complex-total__btn {
  background: #ccaf83 !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 14px 36px;
}

.complex-total__ask {
  background: #333928 !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 10px 24px;
}

.program-card__name a,
.program-card__name a:visited {
  color: inherit;
  text-decoration: none;
}
.program-card__name a:hover {
  text-decoration: underline;
}

.program-card__photo-link {
  display: block;
  width: 100%;
  height: 100%;
}
.program-card__photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1025px) {
  .programs-home .offers__nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .programs-home__head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .programs-home__head > span:first-child {
    display: none !important;
  }
  .complex-includes__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Доступность: видимый фокус */
.detox-srv__more:focus-visible,
.complex-includes__more:focus-visible,
.detox-faq__head:focus-visible,
.detox-chip:focus-visible {
  outline: 2px solid #565541;
  outline-offset: 2px;
}

/* Теги героя программы на мобильном — компактные полупрозрачные плашки поверх фото (m/581-4173). */
@media (max-width: 860px) {
  .complex-hero__tags {
    align-items: flex-start;
    align-content: flex-start;
    height: auto;
  }
  .complex-hero__tags li {
    display: inline-flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
  }
}
