/* ===== Адаптив лендингов Виктории Батынской =====
   1) Заголовки разделов: размер падает по ступеням, остаётся заметно крупнее текста.
      !important нужен: в части блоков 40px зашито прямо в текст заголовка.
   2) Вертикальные отступы между блоками: единый ритм вместо 90px на любом экране.
   3) Отступы внутри блока: заголовок, подзаголовок, содержание. Одинаково везде.
   4) Расстояние между пунктами списков.
   5) Кнопки на телефоне: не растягиваются на всю ширину.
   6) Лента отзывов (блок #rec5703242101 на странице «Турбо очищение»).
   7) Окна оплаты: текст и ссылки внизу формы. */

.t-section__title [style*="font-size"],
.t795__title [style*="font-size"],
.t544__title [style*="font-size"] {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* --- Отступы внутри блока: заголовок -> подзаголовок -> содержание --- */
.t-section__title {
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
}
.t-section__descr {
  margin-top: 0 !important;
  padding-bottom: 44px !important;
}
.t-section__container:not(:has(.t-section__descr)) .t-section__title {
  margin-bottom: 0 !important;
  padding-bottom: 44px !important;
}
.t795__title { margin-bottom: 16px !important; }
.t795__descr { padding-bottom: 0 !important; }

/* Первая страница: «Система «Погружение»», абзац, кнопка: одинаковые зазоры */
#rec3063244701 { padding-bottom: 10px !important; }
#rec3063351101 { padding-bottom: 18px !important; }

/* --- Окна оплаты: ссылки внизу формы в цвет акцента, подчёркнуты им же --- */
.t702__form-bottom-text a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
/* «Турбо очищение» (зелёный акцент) */
#rec5704036801 .t702__form-bottom-text a {
  color: #315b49 !important;
  text-decoration-color: #315b49 !important;
}
/* «Диагностическая встреча» (коричневый акцент) */
#rec5704036901 .t702__form-bottom-text a {
  color: #473726 !important;
  text-decoration-color: #473726 !important;
}
/* «Глубинная трансформация» (тёмный фон: белый текст, светло-красный акцент) */
#rec5704037201 .t702__form-bottom-text { color: #ffffff !important; }
#rec5704037201 .t702__form-bottom-text a {
  color: #ff4d63 !important;
  text-decoration-color: #ff4d63 !important;
}

@media screen and (max-width: 960px) {
  .t-section__title,
  .t795__title,
  .t544__title { font-size: 38px !important; line-height: 1.15 !important; }

  .t-section__descr { padding-bottom: 36px !important; }
  .t-section__container:not(:has(.t-section__descr)) .t-section__title { padding-bottom: 36px !important; }

  .t-rec_pt_90 { padding-top: 64px !important; }
  .t-rec_pb_90 { padding-bottom: 64px !important; }
  .t-rec_pb_150 { padding-bottom: 80px !important; }
  .t-rec_pt_45 { padding-top: 32px !important; }
  .t-rec_pb_45 { padding-bottom: 32px !important; }
  .t-rec_pt_30 { padding-top: 22px !important; }
  .t-rec_pb_30 { padding-bottom: 22px !important; }
  .t-rec_pb_15 { padding-bottom: 12px !important; }

  #allrecords .t-rec .t-list__item,
  #allrecords .t-rec .t-list__item:nth-child(-n + 2) { margin-top: 24px !important; }
  #allrecords .t-rec .t-list__item:first-child { margin-top: 0 !important; }
}

@media screen and (max-width: 640px) {
  .t-section__title,
  .t795__title,
  .t544__title { font-size: 32px !important; line-height: 1.18 !important; }

  .t-section__title { margin-bottom: 12px !important; }
  .t795__title { margin-bottom: 12px !important; }
  .t-section__descr { padding-bottom: 28px !important; }
  .t-section__container:not(:has(.t-section__descr)) .t-section__title { padding-bottom: 28px !important; }

  .t-rec_pt_90 { padding-top: 52px !important; }
  .t-rec_pb_90 { padding-bottom: 52px !important; }
  .t-rec_pb_150 { padding-bottom: 64px !important; }
  .t-rec_pt_45 { padding-top: 26px !important; }
  .t-rec_pb_45 { padding-bottom: 26px !important; }
  .t-rec_pt_30 { padding-top: 18px !important; }
  .t-rec_pb_30 { padding-bottom: 18px !important; }
  .t-rec_pb_15 { padding-bottom: 10px !important; }

  #allrecords .t-rec .t-list__item,
  #allrecords .t-rec .t-list__item:nth-child(-n + 2) { margin-top: 18px !important; }
  #allrecords .t-rec .t-list__item:first-child { margin-top: 0 !important; }
}

@media screen and (max-width: 480px) {
  .t-section__title,
  .t795__title,
  .t544__title { font-size: 30px !important; line-height: 1.2 !important; }

  .t-rec_pt_90 { padding-top: 44px !important; }
  .t-rec_pb_90 { padding-bottom: 44px !important; }
  .t-rec_pb_150 { padding-bottom: 52px !important; }
  .t-rec_pt_45 { padding-top: 22px !important; }
  .t-rec_pb_45 { padding-bottom: 22px !important; }
  .t-rec_pt_30 { padding-top: 16px !important; }
  .t-rec_pb_30 { padding-bottom: 16px !important; }
  .t-rec_pb_15 { padding-bottom: 8px !important; }

  .t-btnflex.t-btnflex_type_button {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

@media screen and (max-width: 359px) {
  .t-section__title,
  .t795__title,
  .t544__title { font-size: 24px !important; }

  .t-btnflex.t-btnflex_type_button {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .t-btnflex.t-btnflex_type_button .t-btnflex__text { font-size: 14px !important; }
}

/* --- Лента отзывов: горизонтальная прокрутка, три карточки на экране --- */
#rec5703242101 .t827__container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
#rec5703242101 .t827__grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #315b49 #e4e8e2;
}
#rec5703242101 .t827__grid::after { display: none !important; }
#rec5703242101 .t827__grid-sizer,
#rec5703242101 .t827__gutter-sizer { display: none !important; }
#rec5703242101 .t827__grid-item {
  position: static !important;
  float: none !important;
  flex: 0 0 calc((100% - 32px) / 3) !important;
  width: calc((100% - 32px) / 3) !important;
  height: 560px;
  margin: 0 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  background: transparent !important;
  overflow: hidden;
  scroll-snap-align: start;
}
#rec5703242101 .t827__grid-item img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
#rec5703242101 .t827__grid::-webkit-scrollbar { height: 6px; }
#rec5703242101 .t827__grid::-webkit-scrollbar-thumb { background: #315b49; border-radius: 3px; }
#rec5703242101 .t827__grid::-webkit-scrollbar-track { background: #e4e8e2; border-radius: 3px; }

@media screen and (max-width: 960px) {
  #rec5703242101 .t827__grid-item {
    flex: 0 0 calc((100% - 16px) / 2) !important;
    width: calc((100% - 16px) / 2) !important;
    height: 520px;
  }
}
@media screen and (max-width: 640px) {
  #rec5703242101 .t827__grid-item {
    flex: 0 0 82% !important;
    width: 82% !important;
    height: 480px;
  }
}
