/*
Theme Name: Pro Integry TouchQueen
Author: Pro Integry
Version: 1.0.0
Text Domain: pro-integry-touchqueen
*/
/* /free/: the explicit Telegram and Max review buttons replace the old
   composite Zero Block CTA. Hide only the obsolete CTA pieces while
   preserving the reviews heading and the two current buttons. */
#rec2376218831 .tn-elem[data-elem-id="176103704756475470"],
#rec2376218831 .tn-elem[data-elem-id="176103704757559420"],
#rec2376218831 .tn-elem[data-elem-id="176103704757095690"],
#rec2376218831 .tn-elem[data-elem-id="176103704758037640"],
#rec2376219551 .tn-elem[data-elem-id="176103704756475470"],
#rec2376219551 .tn-elem[data-elem-id="176103704757559420"],
#rec2376219551 .tn-elem[data-elem-id="176103704757095690"],
#rec2376219551 .tn-elem[data-elem-id="176103704758037640"] {
  display: none !important;
}

/* /free/: WordPress can detach Tilda's decorative ripple and animated
   pseudo-layers from their parent buttons on narrow screens. The detached
   layers look like empty red, green, or gradient pills. Keep the actual
   links and labels; remove only non-functional decoration and stabilize the
   two footer CTAs. The second record is the same footer on /free/accessyes/. */
#rec1467333281 .t-btn_wrap-effects,
#rec1467333281 .t-btn_inner-effects,
#rec1467333281 .t-btn_effects {
  display: none !important;
}

/* /free/: the review and course CTA rows use the same legacy Tilda button
   animation. On some mobile browsers its pseudo/effect layers are painted as
   separate empty pills beside or below the real link. Keep the complete
   clickable button and remove only those decorative layers. */
#rec2377332271 .t-btn_wrap-effects,
#rec2377332271 .t-btn_inner-effects,
#rec2377332271 .t-btn_effects,
#rec1466504801 .t-btn_wrap-effects,
#rec1466504801 .t-btn_inner-effects,
#rec1466504801 .t-btn_effects,
#rec1466510071 .t-btn_wrap-effects,
#rec1466510071 .t-btn_inner-effects,
#rec1466510071 .t-btn_effects {
  display: none !important;
}

#rec2377332271 a.t-btnflex::before,
#rec2377332271 a.t-btnflex::after,
#rec1466504801 a.t-btnflex::before,
#rec1466504801 a.t-btnflex::after,
#rec1466510071 a.t-btnflex::before,
#rec1466510071 a.t-btnflex::after {
  content: none !important;
  display: none !important;
}

#rec2377332271 a.t-btnflex,
#rec1466504801 a.t-btnflex,
#rec1466510071 a.t-btnflex {
  animation: none !important;
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  min-height: 60px !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

#rec1466543351 .t580__buttons-wrapper > a::before,
#rec1466543351 .t580__buttons-wrapper > a::after,
#rec2377918651 .t580__buttons-wrapper > a::before,
#rec2377918651 .t580__buttons-wrapper > a::after {
  content: none !important;
  display: none !important;
}

#rec1466543351 .t580__buttons-wrapper > a,
#rec2377918651 .t580__buttons-wrapper > a {
  animation: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  transform: none !important;
}

@media (max-width: 640px) {
  #rec1466543351 .t580__buttons-wrapper,
  #rec2377918651 .t580__buttons-wrapper {
    display: grid !important;
    gap: 16px !important;
    width: min(100%, 360px) !important;
  }

  #rec1466543351 .t580__buttons-wrapper > a,
  #rec2377918651 .t580__buttons-wrapper > a {
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

/* SexQueen: the hero contains its own compact logo/menu decoration for tablet and
 * mobile layouts.  Tilda also keeps the desktop navigation visible above 980px,
 * so the two headers overlapped in the 981–1199px range. */
@media (min-width: 981px) {
  .pi-site-touchqueen-sexqueen-ru #rec2472686341 .tn-elem[data-elem-id="1761927919953"],
  .pi-site-touchqueen-sexqueen-ru #rec2472686341 .tn-elem[data-elem-id="1761929490803"],
  .pi-site-touchqueen-sexqueen-ru #rec2472686341 .tn-elem[data-elem-id="1761929394810"] {
    display: none !important;
  }
}

/* Imported source footer; the public WordPress version must not advertise
   the previous site builder. */
.pi-imported-page .t-tildalabel,
.pi-imported-page #tildacopy {
  display: none !important;
}
:root{--pi-ink:#17131b;--pi-paper:#f7f3f5;--pi-red:#bb263e}
*{box-sizing:border-box}html{margin:0!important;scroll-behavior:smooth}body{margin:0;color:var(--pi-ink);background:var(--pi-paper);font-family:Montserrat,Arial,sans-serif}.pi-site-main{min-height:100vh}.pi-native-article{width:min(880px,calc(100% - 32px));margin:44px auto;padding:clamp(24px,5vw,64px);background:#fff;border-radius:28px;box-shadow:0 24px 80px rgba(45,25,37,.1)}.pi-native-article h1{font-size:clamp(36px,6vw,64px);line-height:1.05}.pi-native-article p,.pi-native-article li{font-size:18px;line-height:1.7}.pi-native-article img{max-width:100%;height:auto;border-radius:18px}.pi-imported-page .pi-site-main{overflow:visible}.pi-imported-page .entry-content{margin:0}.pi-imported-page .entry-content>.wp-block-html{margin:0}.pi-imported-page #wpadminbar{display:none}@media(max-width:782px){.pi-imported-page{padding-top:0!important}}

/* Shared QA hardening for imported sites. */
.pi-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pi-anchor-target {
  display: block;
  height: 0;
  pointer-events: none;
  scroll-margin-top: 96px;
}

/* Подсветка фокуса. Синяя рамка на полях ввода читалась как ошибка: клиент
   попросила её убрать. Оставляем видимую подсказку, но в цвете сайта: у полей
   это рамка и мягкое кольцо, у ссылок и кнопок тонкий контур. */
.pi-imported-page :where(a, button, select, [role="button"]):focus-visible {
  outline: 2px solid rgba(167, 20, 45, .55) !important;
  outline-offset: 3px !important;
}

.pi-imported-page :where(input, textarea, .t-input, .t-input-phonemask):focus,
.pi-imported-page :where(input, textarea, .t-input, .t-input-phonemask):focus-visible {
  outline: none !important;
  border-color: #a7142d !important;
  box-shadow: 0 0 0 3px rgba(167, 20, 45, .28) !important;
}


/* The importer preserves source width/height attributes. Tilda normally
   replaces the placeholder and recalculates the image height, but that step
   is not reliable after migration. Keep the rendered aspect ratio tied to
   the real image width so hero art, thumbnails and form illustrations cannot
   be stretched vertically. */
.pi-imported-page img.t-img,
.pi-imported-page img.tn-atom__img {
  display: block;
  max-width: 100%;
  height: auto !important;
}

/* Слои зеро-блока — это таблицы (display:table), а при автоматической
   табличной раскладке заданная ширина работает лишь как пожелание: если
   min-content содержимого больше, таблица растягивается под него. У картинок
   с высотой «по содержимому» (heightmode=hug) min-content равен натуральному
   размеру файла, поэтому стрелки в кнопках рисовались в свои 43x24 вместо
   заданных макетом 27x15 и вылезали за пределы кнопки (жалоба 07.08 по блоку
   «Подпишитесь на наши каналы» и по карточкам разделов). Фиксированная
   раскладка заставляет слой держать ширину из макета.
   Затрагивает только слои с картинкой внутри: замер до/после на 5 страницах
   x 2 ширины показал изменения ровно у раздутых стрелок, переполнений 0,
   высота документа не изменилась. */
.pi-imported-page .t396 .tn-elem:has(> .tn-atom > img.tn-atom__img) {
  table-layout: fixed;
}

/* Та же болезнь у слоёв-фигур: кружок-крестик закрытия в блоке с чек-листом
   (rec2478718031, задан 32x32) растягивался на мобильном до 88x39 и вылезал
   за правый край подложки — заказчица описала его как «овал сверху справа
   формы, не пойму откуда». Палочки крестика раздувало так же: 17x1 -> 72x1.
   Фигуры Тильды всегда объявлены с явными width/height (data-field-*-value),
   подгонять их по содержимому не нужно.
   Замер на бою (iPhone 13 + 1440): из 168 слоёв-фигур изменились 8 — крестик
   39x39 вместо 88x39, обе палочки 21x1 вместо 72x1 и 5 таких же раздутых
   фигур вернулись к своей ширине; переполнений 0, высота документа та же,
   на десктопе не изменилось ничего. */
.pi-imported-page .t396 .tn-elem[data-elem-type="shape"] {
  table-layout: fixed;
}

/* Сам крестик на главной убираем совсем (Евгений 07.08: «он не нужен», «там
   же нет попапа, он прямо на странице»). Проверено по разметке: блок с
   чек-листом rec2478718031 — обычная секция страницы внутри #allrecords, а не
   попап, но внутри лежит кнопка закрытия попапа Тильды `<a href="#close">`
   (кружок 31x31, elem 1761719329931) и две палочки крестика 17x1
   (1761719387131 и 176171942637281770). Закрывать ей нечего — при переносе с
   Тильды содержимое попапа было развёрнуто в страницу, а кнопка осталась.
   Скрываем все три слоя; правило скоупнуто на этот блок, чтобы не задеть
   настоящие попапы на других страницах. */
/* 08.08.2026: блок снова стал попапом (см. setupChecklistPopup в site-runtime),
   и крестику опять есть что закрывать — поэтому прячем его только тогда, когда
   попап НЕ включён, то есть если скрипт почему-то не отработал. */
.pi-imported-page #rec2478718031:not(.pi-checklist-popup) .tn-elem[data-elem-id="1761719329931"],
.pi-imported-page #rec2478718031:not(.pi-checklist-popup) .tn-elem[data-elem-id="1761719387131"],
.pi-imported-page #rec2478718031:not(.pi-checklist-popup) .tn-elem[data-elem-id="176171942637281770"] {
  display: none !important;
}

/* Кнопка play на главной («Преимущества обучения — в коротком видео»,
   rec2478717711) на мобильном превращалась в вертикальный овал: макет задаёт
   слой 31x31, а рисовалась она 31x44. Причина — наше же правило доступности
   `a[aria-label]{min-width:44px;min-height:44px}` из блока мобильных тач-зон.
   Ссылка внутри слоя — это `display:table-cell` с `width:100%`, поэтому
   min-height 44px растягивает картинку (у неё `width:100%` и `height:auto`),
   а слой объявлен с высотой «по содержимому» и тянется следом.
   Снимаем минимум только у атомов-картинок внутри зеро-блоков: это иконки,
   нарисованные в размер макета и позиционированные абсолютно, увеличение
   ломает вёрстку. У текстовых кнопок и соцссылок 44px остаются. */
@media (max-width: 980px) {
  .pi-imported-page .t396 .tn-elem a.tn-atom:has(> img.tn-atom__img),
  .pi-imported-page .t396 .tn-elem button.tn-atom:has(> img.tn-atom__img) {
    min-width: 0 !important;
    min-height: 0 !important;
  }

  /* То же самое, но для значков, нарисованных вектором, а не картинкой.
     Кружки «личный кабинет» и «меню» в шапке touchqueen.ru раздувались с
     36px до 44px и вылезали за розовую плашку, а полоска меню из 21x2
     превращалась в квадрат 44x44 и накрывала вторую полоску — та гасилась
     как дубль. `:has()` тут не годится: у кружка вложен не svg, а span,
     поэтому перечисляем сами слои. Тач-зона у текстовых кнопок и соцссылок
     не меняется. */
  .pi-imported-page .t396 .tn-elem a.tn-atom__vector,
  .pi-imported-page .t396 .tn-elem a.tn-atom:has(> svg),
  .pi-imported-page .tn-elem[data-elem-id="176104303663090960"] .tn-atom,
  .pi-imported-page .tn-elem[data-elem-id="176171363989659050"] .tn-atom,
  .pi-imported-page .tn-elem[data-elem-id="176171383652856330"] .tn-atom,
  .pi-imported-page .tn-elem[data-elem-id="176171383653442740"] .tn-atom {
    min-width: 0 !important;
    min-height: 0 !important;
  }
}

/* На мобильном поля формы «Поможем в выборе» шли ровно по краю красной
   подложки (замер: отступ слева 0, справа 0) — заказчица просила вернуть
   небольшие боковые отступы, как было в Тильде. На десктопе форма и так
   лежит с большими полями, поэтому правка только для узких экранов.
   После правки: отступы 20 и 19 px, ширина подложки не изменилась. */
@media (max-width: 479px) {
  .pi-imported-page #rec2480680921 .tn-elem .t-form,
  .pi-imported-page #rec2480680921 .tn-elem form {
    box-sizing: border-box !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

.pi-imported-page .pi-field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.pi-imported-page .pi-field-label {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.pi-imported-page .pi-managed-field :where(input:not([type="checkbox"]):not([type="submit"]), select, textarea) {
  box-sizing: border-box;
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: #fff;
  color: #17131b;
  font: inherit;
}

.pi-imported-page .pi-field--consent label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.45;
}

.pi-imported-page .pi-field--consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

/* Restored controls for imported Tilda forms. The original export sometimes
   contains the form container and button but omits its input markup.

   pi-fix-1408-tilda-form-layout: раскладку задаём ТОЛЬКО формам, поля которых
   дорисовали мы (класс pi-tilda-restored-fields вешает ensureImportedTildaFields).
   Раньше эти правила шли по pi-tilda-restored, а он висит на КАЖДОЙ
   импортированной форме — и наш grid переклеивал раскладку Тильды там, где она
   приехала целиком: галочка согласия вставала в один ряд с телефоном, форма
   становилась на 53px короче, а декоративная стрелка с абсолютными
   координатами артборда падала под кнопку. Формы с родной разметкой теперь
   раскладывает собственный flex Тильды — ровно как было на самой Тильде. */
.pi-imported-page .pi-tilda-restored-fields .t-form__inputsbox {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  width: 100%;
}

.pi-imported-page .pi-tilda-restored-fields .t-input-group,
.pi-imported-page .pi-tilda-restored-fields .tn-form__submit {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pi-imported-page .pi-tilda-restored-fields :where(.pi-restored-tilda-field--phone, .pi-restored-tilda-field--consent, .tn-form__submit, .t-form__errorbox-middle) {
  grid-column: 1 / -1;
}

.pi-imported-page .pi-tilda-restored .t-input {
  box-sizing: border-box !important;
  display: block;
  width: 100% !important;
  height: var(--pi-tilda-height, 50px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid var(--pi-tilda-border, currentColor) !important;
  border-radius: var(--pi-tilda-radius, 30px) !important;
  background: var(--pi-tilda-background, #fff) !important;
  color: var(--pi-tilda-color, #17131b) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1 !important;
  outline: none;
}

.pi-imported-page .pi-tilda-restored .t-input::placeholder {
  color: var(--pi-tilda-color, #17131b);
  opacity: .74;
}

/* Tilda applies the generic .t-input class to both the real phone control and
   its structural wrapper. Keep one border and one line of content so the
   country selector never creates a second, overlapping input. */
.pi-imported-page .pi-tilda-restored .t-input-phonemask__wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: var(--pi-tilda-height, 50px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.pi-imported-page .pi-tilda-restored .t-input-phonemask__select {
  position: absolute !important;
  inset-inline-start: 18px !important;
  top: 50% !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  transform: translateY(-50%) !important;
  white-space: nowrap !important;
}

.pi-imported-page .pi-tilda-restored .t-input-phonemask__wrap > input.t-input-phonemask {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  padding-inline: 92px 18px !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
}

.pi-imported-page .pi-tilda-restored .t-checkbox__control {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  margin: 0 !important;
  color: var(--pi-tilda-elements, inherit) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-align: left;
}

.pi-imported-page .pi-tilda-restored .t-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pi-imported-page .pi-tilda-restored .t-checkbox__indicator {
  position: relative;
  box-sizing: border-box;
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 0;
  border: 1px solid var(--pi-tilda-elements, currentColor);
  border-radius: 2px;
  background: transparent;
}

.pi-imported-page .pi-tilda-restored .t-checkbox:checked + .t-checkbox__indicator::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--pi-tilda-elements, currentColor);
  border-width: 0 2px 2px 0;
  content: '';
  transform: rotate(45deg);
}

.pi-imported-page .pi-tilda-restored .t-checkbox__control a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pi-imported-page .pi-tilda-restored .tn-form__submit button,
.pi-imported-page .pi-tilda-restored .tn-form__submit .t-submit {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 50px;
  margin: 0 !important;
}

.pi-imported-page .pi-tilda-restored > .pi-form-status:empty {
  display: none;
}

@media (max-width: 640px) {
  .pi-imported-page .pi-tilda-restored-fields .t-form__inputsbox {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pi-imported-page .pi-tilda-restored-fields :where(.pi-restored-tilda-field, .tn-form__submit, .t-form__errorbox-middle) {
    grid-column: 1;
  }
}

/* The source desktop artboard placed the third YouTube card outside its
   1200px grid. Keep all three cards visible at common desktop widths. */
@media (min-width: 961px) {
  #rec2478717811 .tn-elem[data-elem-id="176218035263253280"],
  #rec2478717811 .tn-elem[data-elem-id="176218036513056780"],
  #rec2478717811 .tn-elem[data-elem-id="1762180333655"] {
    top: 112px !important;
    width: 30.5% !important;
    height: auto !important;
    aspect-ratio: 462 / 260;
  }

  #rec2478717811 .tn-elem[data-elem-id="176218035263253280"] { left: 2% !important; }
  #rec2478717811 .tn-elem[data-elem-id="176218036513056780"] { left: 34.75% !important; }
  #rec2478717811 .tn-elem[data-elem-id="1762180333655"] { left: 67.5% !important; }

  #rec2478717811 .tn-elem[data-elem-id="176218035263253280"] .tn-atom,
  #rec2478717811 .tn-elem[data-elem-id="176218036513056780"] .tn-atom,
  #rec2478717811 .tn-elem[data-elem-id="1762180333655"] .tn-atom,
  #rec2478717811 .tn-elem[data-elem-id="176218035263253280"] img,
  #rec2478717811 .tn-elem[data-elem-id="176218036513056780"] img,
  #rec2478717811 .tn-elem[data-elem-id="1762180333655"] img {
    width: 100% !important;
    height: auto !important;
  }

  #rec2478717811 .tn-elem[data-elem-id="176110878352759910"],
  #rec2478717811 .tn-elem[data-elem-id="1761108650956"],
  #rec2478717811 .tn-elem[data-elem-id="176110877602636010"] {
    top: 355px !important;
    width: 30.5% !important;
  }

  #rec2478717811 .tn-elem[data-elem-id="176110878352759910"] { left: 2% !important; }
  #rec2478717811 .tn-elem[data-elem-id="1761108650956"] { left: 34.75% !important; }
  #rec2478717811 .tn-elem[data-elem-id="176110877602636010"] { left: 67.5% !important; }

  #rec2478717811 .tn-elem[data-elem-id="176218032924089800"],
  #rec2478717811 .tn-elem[data-elem-id="176218033034528900"],
  #rec2478717811 .tn-elem[data-elem-id="1762180265072"] {
    top: calc(112px + (30.5vw * .56277 - 60px) / 2) !important;
    width: 60px !important;
    height: 60px !important;
  }

  #rec2478717811 .tn-elem[data-elem-id="176218032924089800"] { left: calc(17.25% - 30px) !important; }
  #rec2478717811 .tn-elem[data-elem-id="176218033034528900"] { left: calc(50% - 30px) !important; }
  #rec2478717811 .tn-elem[data-elem-id="1762180265072"] { left: calc(82.75% - 30px) !important; }
}

.pi-imported-page .pi-field-error {
  color: #a20e24;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.pi-imported-page .pi-form-status {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

/* Клиент просил белую надпись об успешной отправке вместо зелёной:
   формы стоят на тёмных экранах, зелёный на них читался плохо. */
/* Цвет надписи об отправке выбирает applyStatusContrast() в site-runtime.js:
   белый на тёмном фоне, почти чёрный на светлом. Здесь только запасной
   вариант и перенос строк — в тексте клиента два абзаца. */
.pi-imported-page .pi-managed-form.is-success .pi-form-status {
  color: #14161a;
  white-space: pre-line;
}
.pi-imported-page .pi-managed-form.is-error .pi-form-status { color: #a20e24; }
.pi-imported-page .pi-managed-form.is-loading { opacity: .82; }
.pi-imported-page .pi-managed-form :where(button, input[type="submit"], .t-submit):disabled { cursor: wait; opacity: .65; }
.pi-imported-page .pi-success-link { color: inherit; text-decoration: underline; }

.pi-legal-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px max(20px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #17131b;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.pi-legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pi-legal-footer__links,
.pi-legal-footer__contacts,
.pi-legal-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  width: min(100%, 1120px);
}

.pi-legal-footer__contacts strong {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 999px;
}

.pi-legal-footer__legal {
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
}

@media (max-width: 640px) {
  .pi-legal-footer {
    padding-top: 20px;
    font-size: 13px;
  }

  .pi-legal-footer__links,
  .pi-legal-footer__contacts {
    flex-direction: column;
    gap: 2px;
  }

  .pi-legal-footer a {
    justify-content: center;
    min-height: 40px;
  }
}

.pi-age-gate--generated {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(19 15 20 / 88%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pi-age-gate--generated[hidden] { display: none !important; }

.pi-age-gate__dialog {
  display: grid;
  gap: 16px;
  box-sizing: border-box !important;
  width: min(100%, 420px);
  padding: clamp(28px, 7vw, 44px);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 24px;
  background: #21161b;
  box-shadow: 0 28px 80px rgb(0 0 0 / 48%);
  color: #fff;
  text-align: center;
}

.pi-age-gate__eyebrow {
  justify-self: center;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  color: #f4b7c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.pi-age-gate__dialog h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.05;
}

.pi-age-gate__dialog p {
  margin: 0;
  color: #eadde2;
  font-size: 16px;
  line-height: 1.55;
}

.pi-age-gate__dialog :where(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.pi-age-gate__dialog button {
  border: 0;
  background: linear-gradient(135deg, #b51f45, #7f1539);
  color: #fff;
  cursor: pointer;
}

.pi-age-gate__dialog a {
  border: 1px solid rgb(255 255 255 / 22%);
  color: #fff;
}

/* Tilda's fixed-size hero icons keep the bitmap's intrinsic height after the
   WordPress import. Constrain only the two raster social icons so they retain
   their intended square pictogram geometry on desktop and mobile. */
.pi-site-touchqueen-ru #rec2478717651 img[alt="MAX TouchQueen"],
.pi-site-touchqueen-ru #rec2478717651 img[alt="Instagram TouchQueen"] {
  width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* Remove the superseded oralqueen copy layers; the corrected marathon copy
   remains in the same exported record. */
.pi-site-oralqueen-ru .tn-elem[data-elem-id="1654607913862"],
.pi-site-oralqueen-ru .tn-elem[data-elem-id="1654612315561"],
/* The export kept an old blurred slogan with different wording and a dated
 * campaign label on top of the current hero copy. They are not decorative
 * duplicates: at tablet widths their text remains readable and collides. */
.pi-site-oralqueen-ru .tn-elem[data-elem-id="1654606155560"],
.pi-site-oralqueen-ru .tn-elem[data-elem-id="1684145713611"] {
  display: none !important;
}

/* The remaining OralQueen hero slogan needs its own tablet position. In the
 * original 960-grid export it shared the price block's vertical range. */
@media (min-width: 981px) and (max-width: 1199px) {
  /* The imported 960px grid starts this heading at x=0; the leading glyph is
   * visibly clipped. Add the same inner gutter used by the cards below. */
  .pi-site-touchqueen-ru #rec2478717681 .tn-elem[data-elem-id="1760889260752"] {
    left: calc(50% - 480px + 24px) !important;
  }

  .pi-site-touchqueen-ru #rec2478717681 .tn-elem[data-elem-id="176088937824940710"] {
    left: calc(50% - 480px + 314px) !important;
  }

  /* At Tilda's 960px breakpoint the Day 2 heading wraps to a third line and
   * covers the first programme bullet. Two compact lines restore the card's
   * original spacing without moving the following content. */
  .pi-site-woman-love-ru #rec2470260001 .tn-elem[data-elem-id="1685963795059"] .tn-atom {
    font-size: 36px !important;
    line-height: 1.1 !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654606104391"] {
    top: 675px !important;
    width: 640px !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654606104391"] .tn-atom {
    font-size: 34px !important;
    line-height: 1.2 !important;
  }

  /* Restore the sequence that exists in the correct 1200px artboard. The
   * exported 960px breakpoint assigned the video, audience cards and all
   * lower programme rows almost the same top coordinate. */
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612091789"] { top: 2414px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612266963"] { top: 2475px !important; }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612645710"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612664859"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612669308"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612714370"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612719317"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612909222"] { top: 2583px !important; }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612966657"] { top: 2604px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612738223"] { top: 2609px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612794698"] { top: 2610px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612860254"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612875519"] { top: 2619px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654612990548"] { top: 2628px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654608012405"] { top: 2750px !important; }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654608526775"] { top: 2891px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654689008318"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654691910896"] { top: 2887px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654608202055"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654688329256"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654688359652"] { top: 2970px !important; }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662892283481"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499113735"] { top: 3595px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499122438"] { top: 3598px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662892275649"] { top: 3678px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499095250"] { top: 3681px !important; }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499103594"] { top: 3682px !important; }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499113735"] {
    left: calc(50% - 480px + 383px) !important;
  }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499122438"] {
    left: calc(50% - 480px + 725px) !important;
  }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499095250"] {
    left: calc(50% - 480px + 350px) !important;
  }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1684499103594"] {
    left: calc(50% - 480px + 690px) !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662892861310"] {
    top: 4181px !important;
    left: calc(50% - 480px + 62px) !important;
  }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662892937654"] {
    top: 4281px !important;
    left: calc(50% - 480px + 20px) !important;
  }
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654695655649"] {
    top: 4982px !important;
    left: calc(50% - 250px) !important;
  }

  /* This framed note and its warning icon belong to the end of the programme.
   * The 960px export left both decorations at 3275px, across blocks 1–3. */
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654695636779"],
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654696011938"] {
    top: 4960px !important;
  }
}

/* Tilda's 640-grid version is also used by 641–959px screens. Its long
 * description was placed over the bottom of the hero photo, while the price,
 * CTA and slogan all occupied the same 120px band. Keep the essential offer
 * and price, but use the clean visual hierarchy already present on mobile. */
@media (min-width: 641px) and (max-width: 959px) {
  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662891051367"] {
    display: none !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662891543379"] {
    top: 940px !important;
    left: calc(50% - 160px) !important;
    width: 320px !important;
    text-align: center !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1662891543379"] .tn-atom {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654606104391"] {
    top: 1055px !important;
    left: calc(50% - 315px) !important;
    width: 630px !important;
  }

  .pi-site-oralqueen-ru #rec2472380931 .tn-elem[data-elem-id="1654606104391"] .tn-atom {
    font-size: 27px !important;
    line-height: 1.2 !important;
  }

  /* The exported 768px layout placed the post-submit reminder on the
   * bottom edge of the CTA. Preserve the original coordinates and add the
   * missing visual gap without moving the following gift card. */
  .pi-site-relationstroy-ru #rec2470303431 .tn-elem[data-elem-id="1731899462669"] {
    transform: translateY(12px) !important;
  }
}

/* Keep the live-time badge on one line at the 960-grid/tablet breakpoint. */
@media (min-width: 768px) and (max-width: 1199px) {
  .pi-site-woman-love-ru .tn-elem[data-elem-id="1776626163016000001"],
  .pi-site-relationstroy-ru .tn-elem[data-elem-id="1731899462703"] {
    width: 130px !important;
    margin-left: -6px !important;
  }

  .pi-site-woman-love-ru .tn-elem[data-elem-id="1776626163016000001"] .tn-atom,
  .pi-site-relationstroy-ru .tn-elem[data-elem-id="1731899462703"] .tn-atom {
    white-space: nowrap !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
  }
}

.pi-site-woman-love-ru :where(label, .t-input-title) {
  min-height: max-content;
  overflow: visible !important;
  line-height: 1.35 !important;
}

/* Woman Love lead forms: readable consent and predictable validation/status
   surfaces. Desktop keeps two equal compact fields plus a full-width phone;
   the shared mobile rule above stacks everything into one column. */
.pi-site-woman-love-ru .pi-tilda-restored .pi-restored-tilda-field--consent {
  box-sizing: border-box;
  padding: 10px 12px !important;
  border: 1px solid rgb(98 25 48 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 96%);
  color: #2b1820 !important;
}

.pi-site-woman-love-ru .pi-tilda-restored .pi-restored-tilda-field--consent a {
  color: #7d1733 !important;
}

.pi-site-woman-love-ru .pi-tilda-restored .pi-form-status {
  padding-top: 4px;
  color: #fff;
}

@media (min-width: 641px) {
  .pi-site-woman-love-ru .pi-tilda-restored .t-form__inputsbox {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 14px !important;
  }

  .pi-site-woman-love-ru .pi-tilda-restored .t-input-group_em {
    grid-column: 1 !important;
  }

  .pi-site-woman-love-ru .pi-tilda-restored .t-input-group_nm {
    grid-column: 2 !important;
  }

  .pi-site-woman-love-ru .pi-tilda-restored :where(
    .pi-restored-tilda-field--phone,
    .pi-restored-tilda-field--consent,
    .tn-form__submit
  ) {
    grid-column: 1 / -1 !important;
  }

  .pi-site-woman-love-ru .pi-tilda-restored .t-form__errorbox-middle {
    display: none !important;
  }

  .pi-site-woman-love-ru .pi-tilda-restored .pi-restored-tilda-field--consent {
    padding: 4px 8px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .pi-site-woman-love-ru .pi-tilda-restored .tn-form__submit button {
    height: 50px !important;
    min-height: 50px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 :is(
    .tn-elem[data-elem-id="1776794554997"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"]
  ) {
    translate: 0 56px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 640px) {
  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462669"] {
    top: 1221px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 :is(
    .tn-elem[data-elem-id="1776794554997"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"]
  ) {
    translate: 0 274px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .pi-site-woman-love-ru #rec2470259891 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1765px !important;
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462669"] {
    top: 1053px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1387px !important;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462674"] {
    width: 600px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462674"] .tn-atom {
    font-size: 54px !important;
    line-height: 1 !important;
  }

  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1732627293199"] {
    top: 550px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462669"] {
    top: 784px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1116px !important;
  }
}

@media (min-width: 1200px) {
  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462669"] {
    top: 812px !important;
  }

  .pi-site-woman-love-ru #rec2470259891 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1238px !important;
  }
}

/* woman-love.ru: stabilize the imported marathon layout after the WordPress
   migration. Tilda's wide-screen coordinates gave the CTA record an empty
   200px canvas, let the gift headline overlap its description, and pushed
   long day titles outside their white cards. Keep mobile's original stacked
   composition, but give every breakpoint predictable text and canvas sizes. */
.pi-site-woman-love-ru .tn-elem[data-elem-id="1776626163016000001"] {
  width: 140px !important;
}

.pi-site-woman-love-ru .tn-elem[data-elem-id="1776626163016000001"] .tn-atom {
  white-space: nowrap !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
}

@media (max-width: 640px) {
  .pi-site-woman-love-ru .tn-elem[data-elem-id="1776626163016000001"] {
    width: 120px !important;
  }

  .pi-site-woman-love-ru .tn-elem[data-elem-id="1776626163016000001"] .tn-atom {
    font-size: 18px !important;
  }
}

@media (min-width: 960px) {
  .pi-site-woman-love-ru #rec2470259961 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .pi-site-woman-love-ru #rec2470259961 :is(
    .t396__artboard,
    .t396__carrier,
    .t396__filter
  ) {
    height: 60px !important;
  }

  .pi-site-woman-love-ru #rec2470259971 .tn-elem[data-elem-id="1685979806430"] .tn-atom {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  .pi-site-woman-love-ru #rec2470259971 .tn-elem[data-elem-id="1685979806433"] {
    top: 326px !important;
  }

  .pi-site-woman-love-ru :is(
    #rec2470259991,
    #rec2470260001,
    #rec2470260021,
    #rec2470260051
  ) .tn-elem[data-elem-id="1685963795059"] {
    width: 920px !important;
  }

  .pi-site-woman-love-ru :is(
    #rec2470259991,
    #rec2470260001,
    #rec2470260021,
    #rec2470260051
  ) .tn-elem[data-elem-id="1685963795059"] .tn-atom {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
}

.pi-cookie-consent[hidden] { display: none !important; }

.pi-cookie-consent {
  position: fixed;
  z-index: 2147483200;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(540px, calc(100vw - 36px));
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 20px;
  background: #24171d;
  box-shadow: 0 20px 60px rgb(38 14 24 / 30%);
  color: #fff;
  font-family: Arial, sans-serif;
}

.pi-cookie-consent p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
}

.pi-cookie-consent a { color: #ffd9e3; }

.pi-cookie-consent > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pi-cookie-consent button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 14px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.pi-cookie-consent button:last-child {
  border-color: #bd3153;
  background: #bd3153;
}

/* Раньше здесь резервировались 220px под последней формой: она вылезала за низ
 * своего зеро-блока и подлезала под правовой подвал. Из-за этого под подвалом
 * на десктопе оставалась светлая полоса — её и заметил заказчик 08.08.2026.
 * Причину убрали: полотна блоков с формами теперь рассчитаны на наши поля
 * (см. правку 5 в конце файла), поэтому костыль снят. */

.pi-modal-active { overflow: hidden; }
.pi-popup-open { z-index: 2147483000 !important; }

/* TouchQueen certificate gallery: clear carousel controls and a full-size,
   keyboard-accessible preview. The original exported record remains the
   fallback until the runtime has all certificate URLs available. */
.pi-site-touchqueen-ru .pi-certificate-record {
  background: #f4f0f1;
}

.pi-site-touchqueen-ru .pi-certificate-gallery {
  padding-block: 32px 56px;
  padding-inline: clamp(16px, 3vw, 48px);
  background: #f4f0f1;
}

.pi-certificate-gallery__viewport {
  position: relative;
  max-width: 1600px;
  margin-inline: auto;
}

.pi-certificate-gallery__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding-block: 8px 16px;
  padding-inline: 0;
}

.pi-certificate-gallery__track::-webkit-scrollbar {
  display: none;
}

.pi-certificate-gallery__track:focus-visible {
  outline: 2px solid #bd3148;
  outline-offset: 6px;
}

.pi-certificate-gallery__card {
  flex: 0 0 min(42vw, 520px);
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgb(37 24 28 / 12%);
  border-radius: 32px;
  background: #faf8f8;
  box-shadow: 0 1px 2px rgb(74 32 42 / 6%), 0 12px 32px rgb(74 32 42 / 8%);
  cursor: zoom-in;
  transition: transform 180ms cubic-bezier(0, 0, .2, 1), box-shadow 180ms cubic-bezier(0, 0, .2, 1);
}

.pi-certificate-gallery__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(74 32 42 / 8%), 0 16px 40px rgb(74 32 42 / 12%);
}

.pi-certificate-gallery__card:active {
  transform: translateY(-1px);
}

.pi-certificate-gallery__card:focus-visible,
.pi-certificate-gallery__arrow:focus-visible,
.pi-certificate-lightbox button:focus-visible {
  outline: 3px solid #bd3148;
  outline-offset: 3px;
}

.pi-certificate-gallery__card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #faf8f8;
}

.pi-certificate-gallery__arrow,
.pi-certificate-lightbox__arrow,
.pi-certificate-lightbox__close {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  color: #fafafa;
  background: #a52b40;
  box-shadow: 0 8px 24px rgb(61 18 28 / 24%);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0, 0, .2, 1), opacity 180ms cubic-bezier(0, 0, .2, 1);
}

.pi-certificate-gallery__arrow {
  position: absolute;
  z-index: 3;
  inset-block-start: 50%;
  transform: translateY(-50%);
}

.pi-certificate-gallery__arrow--previous {
  inset-inline-start: 16px;
}

.pi-certificate-gallery__arrow--next {
  inset-inline-end: 16px;
}

.pi-certificate-gallery__arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.pi-certificate-lightbox__arrow:hover,
.pi-certificate-lightbox__close:hover {
  transform: scale(1.06);
}

.pi-certificate-gallery__arrow[disabled] {
  opacity: .38;
  cursor: default;
}

.pi-certificate-gallery__arrow[disabled]:hover {
  transform: translateY(-50%);
}

.pi-certificate-lightbox[hidden] {
  display: none !important;
}

.pi-certificate-lightbox {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgb(19 16 17 / 92%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pi-certificate-lightbox__surface {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  width: min(1280px, 100%);
  height: min(820px, calc(100dvh - 64px));
  gap: 16px;
}

.pi-certificate-lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.pi-certificate-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
}

.pi-certificate-lightbox__counter {
  padding-block-start: 16px;
  color: #f5f5f5;
  font: 600 16px/1.5 Arial, sans-serif;
  text-align: center;
}

.pi-certificate-lightbox__close {
  position: absolute;
  z-index: 2;
  inset-block-start: 0;
  inset-inline-end: 0;
  color: #f5f5f5;
  background: rgb(40 36 37 / 82%);
  font: 300 36px/1 Arial, sans-serif;
}

.pi-certificate-lightbox__arrow {
  position: relative;
  justify-self: center;
  background: rgb(165 43 64 / 92%);
}

@media (max-width: 640px) {
  .pi-site-touchqueen-ru .pi-certificate-gallery {
    padding-block: 16px 40px;
    padding-inline: 16px;
  }

  .pi-certificate-gallery__track {
    gap: 16px;
    padding-inline: 4px;
  }

  .pi-certificate-gallery__card {
    flex-basis: calc(100vw - 64px);
    min-height: 220px;
    border-radius: 24px;
  }

  .pi-certificate-gallery__card img {
    max-height: 300px;
  }

  .pi-certificate-gallery__arrow,
  .pi-certificate-lightbox__arrow,
  .pi-certificate-lightbox__close {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .pi-certificate-gallery__arrow--previous {
    inset-inline-start: 8px;
  }

  .pi-certificate-gallery__arrow--next {
    inset-inline-end: 8px;
  }

  .pi-certificate-lightbox {
    padding: 8px;
  }

  .pi-certificate-lightbox__surface {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 16px);
    gap: 0;
  }

  .pi-certificate-lightbox__close {
    inset-block-start: 8px;
    inset-inline-end: 8px;
  }

  .pi-certificate-lightbox__arrow {
    position: absolute;
    z-index: 2;
    inset-block-start: 50%;
    transform: translateY(-50%);
  }

  .pi-certificate-lightbox__arrow--previous {
    inset-inline-start: 0;
  }

  .pi-certificate-lightbox__arrow--next {
    inset-inline-end: 0;
  }

  .pi-certificate-lightbox__arrow:hover {
    transform: translateY(-50%) scale(1.06);
  }
}

/* TouchQueen homepage video: the exported SVG play icon has no usable
   intrinsic height after the WordPress import, so its Zero Block wrapper
   collapses to 0px. Keep the original responsive width and derive an equal
   height from it, preserving the intended centred play control. */
.pi-site-touchqueen-ru.pi-path-home #rec2478717711
  .tn-elem[data-elem-id="1761118850375"] {
  display: block !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  z-index: 20 !important;
}

.pi-site-touchqueen-ru.pi-path-home #rec2478717711
  .tn-elem[data-elem-id="1761118850375"] > a.tn-atom,
.pi-site-touchqueen-ru.pi-path-home #rec2478717711
  .tn-elem[data-elem-id="1761118850375"] .tn-atom__img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Телефоны и планшеты: квадрат задаётся отношением padding-top:100%, а не
   aspect-ratio. В WebKit (Safari на iPhone) у SVG без viewBox остаётся
   собственная высота 68px, и aspect-ratio на заменяемом элементе её не
   перебивает — при ширине слоя меньше 68px круг превращался в вертикальный
   овал 31x68. Высота от собственной ширины ссылки не зависит ни от
   «интринсика» картинки, ни от поддержки aspect-ratio. Ссылка лежит внутри
   .tn-atom__sbs-anim-wrapper, поэтому прямой потомок слоя не подходит.
   На десктопе слой шире 68px, овала там нет — ширины ≥981px не трогаем,
   иначе кнопка вырастает с 82 до 90px без всякой причины. */
@media (max-width: 980px) {
  .pi-site-touchqueen-ru.pi-path-home #rec2478717711
    .tn-elem[data-elem-id="1761118850375"] {
    aspect-ratio: auto !important;
  }

  .pi-site-touchqueen-ru.pi-path-home #rec2478717711
    .tn-elem[data-elem-id="1761118850375"] > a.tn-atom,
  .pi-site-touchqueen-ru.pi-path-home #rec2478717711
    .tn-elem[data-elem-id="1761118850375"] .tn-atom__sbs-anim-wrapper > a.tn-atom {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 100% !important;
    box-sizing: border-box !important;
  }

  .pi-site-touchqueen-ru.pi-path-home #rec2478717711
    .tn-elem[data-elem-id="1761118850375"] .tn-atom__img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

.pi-site-touchqueen-ru.pi-path-home #rec2478717711
  .tn-elem[data-elem-id="1761118850375"] > a.tn-atom {
  border-radius: 50%;
  box-shadow: 0 12px 32px rgb(96 21 48 / 24%);
  transition: opacity 180ms cubic-bezier(0, 0, .2, 1),
              transform 180ms cubic-bezier(0, 0, .2, 1);
}

.pi-site-touchqueen-ru.pi-path-home #rec2478717711
  .tn-elem[data-elem-id="1761118850375"] > a.tn-atom:hover {
  opacity: .92;
  transform: scale(1.04);
}

.pi-site-touchqueen-ru.pi-path-home #rec2478717711
  .tn-elem[data-elem-id="1761118850375"] > a.tn-atom:focus-visible {
  outline: 3px solid #9e2742;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .pi-certificate-gallery__track {
    scroll-behavior: auto;
  }

  .pi-certificate-gallery__card,
  .pi-certificate-gallery__arrow,
  .pi-certificate-lightbox__arrow,
  .pi-certificate-lightbox__close {
    transition-duration: .01ms !important;
  }
}

/* Relationstroy 2026-08-05: compact forms and restore the spacing hierarchy
   lost when the Tilda Zero Blocks were moved into WordPress. */
.pi-site-relationstroy-ru .pi-tilda-restored .t-form__errorbox-middle:not(.t-form__errorbox-middle_show) {
  display: none !important;
}

.pi-site-relationstroy-ru .pi-tilda-restored .t-form__inputsbox {
  gap: 8px 14px !important;
}

.pi-site-relationstroy-ru .pi-tilda-restored .t-input,
.pi-site-relationstroy-ru .pi-tilda-restored .t-input-phonemask__wrap,
.pi-site-relationstroy-ru .pi-tilda-restored .tn-form__submit button {
  height: 52px !important;
  min-height: 52px !important;
}

.pi-site-relationstroy-ru .pi-tilda-restored .pi-restored-tilda-field--consent,
.pi-site-relationstroy-ru .pi-tilda-restored .t-checkbox__control,
.pi-site-relationstroy-ru .pi-tilda-restored .t-checkbox__control span,
.pi-site-relationstroy-ru .pi-tilda-restored .t-checkbox__control a,
.pi-site-relationstroy-ru .pi-tilda-restored .t-checkbox__labeltext,
.pi-site-relationstroy-ru .pi-tilda-restored .t-checkbox__labeltext a {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

.pi-site-relationstroy-ru .pi-tilda-restored .t-checkbox__indicator {
  border-color: #f5f5f5 !important;
  opacity: 1 !important;
}

/* The imported Tilda animation observer sometimes leaves the elements below
   the first form in its waiting state after a long visit or a direct scroll.
   These elements must remain readable even when that observer does not fire. */
.pi-site-relationstroy-ru #rec2470303431 :is(
  [data-elem-id="1731899462669"],
  [data-elem-id="1731899462725"],
  [data-elem-id="1731899462697"],
  [data-elem-id="1731899462719"],
  [data-elem-id="1754041611114"],
  [data-elem-id="1732590998817"],
  [data-elem-id="1749818771905"]
),
.pi-site-relationstroy-ru #rec2470303671 [data-elem-id="1731903855450"] {
  opacity: 1 !important;
  transition: none !important;
}

@media (min-width: 641px) {
  .pi-site-relationstroy-ru .pi-tilda-restored .t-input-group_em {
    grid-column: 1 !important;
  }

  .pi-site-relationstroy-ru .pi-tilda-restored .pi-restored-tilda-field--name {
    grid-column: 2 !important;
  }

  .pi-site-relationstroy-ru .pi-tilda-restored :is(
    .pi-restored-tilda-field--phone,
    .pi-restored-tilda-field--consent,
    .tn-form__submit
  ) {
    grid-column: 1 / -1 !important;
  }
}

@media (min-width: 1200px) {
  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462669"] {
    top: 817px !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462697"],
    [data-elem-id="1732524070768"],
    [data-elem-id="1731899462687"],
    [data-elem-id="1731899462719"],
    [data-elem-id="1754041611114"],
    [data-elem-id="1732590998817"],
    [data-elem-id="1749818771905"]
  ) {
    transform: translateY(40px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1130px !important;
  }

  .pi-site-relationstroy-ru #rec2470303671 [data-elem-id="1731903855450"] {
    width: 1100px !important;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462669"] {
    top: 782px !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462697"],
    [data-elem-id="1732524070768"],
    [data-elem-id="1731899462687"],
    [data-elem-id="1731899462719"],
    [data-elem-id="1754041611114"],
    [data-elem-id="1732590998817"],
    [data-elem-id="1749818771905"]
  ) {
    transform: translateY(52px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1110px !important;
  }

  .pi-site-relationstroy-ru #rec2470303671 [data-elem-id="1731903855450"] {
    width: min(900px, calc(100vw - 80px)) !important;
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462669"] {
    top: 1060px !important;
    transform: none !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462697"],
    [data-elem-id="1732524070768"],
    [data-elem-id="1731899462687"],
    [data-elem-id="1731899462719"],
    [data-elem-id="1754041611114"],
    [data-elem-id="1732590998817"],
    [data-elem-id="1749818771905"]
  ) {
    transform: translateY(100px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1335px !important;
  }

  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1055px !important;
  }

  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 565px !important;
  }
}

@media (max-width: 640px) {
  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462669"] {
    top: 995px !important;
    transform: none !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462697"],
    [data-elem-id="1732524070768"],
    [data-elem-id="1731899462687"],
    [data-elem-id="1731899462719"],
    [data-elem-id="1754041611114"],
    [data-elem-id="1732590998817"],
    [data-elem-id="1749818771905"]
  ) {
    transform: translateY(210px) !important;
  }

  /* Stack the registration gift card in reading order on phones. The small
     decorative portrait is intentionally omitted here so it cannot cover the
     title on narrow screens. */
  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462725"] {
    display: none !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462719"] {
    transform: translateY(177px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1754041611114"] {
    transform: translateY(185px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1732590998817"] {
    transform: translateY(185px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1749818771905"] {
    transform: translateY(204px) !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462697"] {
    height: 230px !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462697"] > .tn-atom {
    height: 100% !important;
  }

  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1605px !important;
  }

  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1340px !important;
  }

  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 835px !important;
  }
}

/* Restored lead form used only on selling pages whose export contains no
   usable form. It follows the existing burgundy TouchQueen palette and stays
   in normal document flow, so the chat widget cannot cover the consent row. */
.pi-lead-fallback {
  position: relative;
  z-index: 4;
  padding: clamp(48px, 7vw, 96px) max(20px, calc((100vw - 1180px) / 2));
  padding-bottom: max(clamp(72px, 9vw, 112px), calc(86px + env(safe-area-inset-bottom)));
  background: #f5eff1;
  color: #24181c;
}

.pi-lead-fallback__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(135deg, #b62942, #8d1f37);
  box-shadow: 0 24px 70px rgb(96 23 42 / 18%);
  color: #fff;
}

.pi-lead-fallback__copy > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.pi-lead-fallback__copy h2 {
  margin: 12px 0 14px;
  color: inherit;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
}

.pi-lead-fallback__copy p {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}

.pi-lead-fallback__form,
.pi-lead-fallback__form label {
  display: grid;
  gap: 8px;
}

.pi-lead-fallback__form {
  gap: 14px;
}

.pi-lead-fallback__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pi-lead-fallback__form label {
  font-size: 13px;
  font-weight: 700;
}

/* Ширина 100% считалась без внутренних отступов и рамки, поэтому поля
   выступали на 34px вправо за красную панель — на мобильной почти до края
   экрана. Селектор с обычной специфичностью, чтобы правило не перебивалось
   глобальными стилями Тильды. */
.pi-lead-fallback__form input,
.pi-lead-fallback__form select,
.pi-lead-fallback__form textarea,
.pi-lead-fallback__form button {
  box-sizing: border-box;
}

.pi-lead-fallback__form :where(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 14px;
  background: #fff;
  color: #21161a;
  font: 500 16px/1.35 Montserrat, Arial, sans-serif;
}

.pi-lead-fallback__consent {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px !important;
  align-items: start;
  line-height: 1.45;
}

.pi-lead-fallback__consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

.pi-lead-fallback__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pi-lead-fallback__form button[type="submit"] {
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid rgb(255 255 255 / 46%);
  border-radius: 999px;
  background: #fff;
  color: #9e243b;
  font: 800 15px/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}

/* Canonical privacy and thank-you pages. The source exports did not provide
   a dependable site wrapper, so these two system pages use one small branded
   shell on all six domains. */
/* Обёртка не должна вылезать за родителя: иначе на телефоне появлялась
   горизонтальная прокрутка на страницах политики и оферты. */
.pi-system-page {
  max-width: 100%;
  /* Safari на iPhone до версии 16 не знает overflow:clip и откатывалась на
     visible — на телефоне возвращалась горизонтальная прокрутка. Сначала
     даём hidden, следом clip: браузеры поновее возьмут вторую строку. */
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(circle at 12% 10%, rgb(188 45 71 / 10%), transparent 30%), #f8f4f5;
  color: #24181c;
}

.pi-system-page,
.pi-system-page *,
.pi-system-page *::before,
.pi-system-page *::after {
  box-sizing: border-box;
}

/* 100vw включает полосу прокрутки, поэтому расчёт делал блок шире экрана и
   давал горизонтальное переполнение ~10px на телефоне. Считаем от ширины
   самого блока: результат тот же, но без выхода за экран. */
.pi-system-page__header,
.pi-system-page__footer {
  box-sizing: border-box;
  padding: 20px max(20px, calc((100% - 1040px) / 2));
}

.pi-system-page__header {
  border-bottom: 1px solid rgb(97 41 57 / 12%);
  background: rgb(255 255 255 / 88%);
}

.pi-system-page__header a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.pi-system-page__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ad2942;
  color: #fff;
  font-size: 13px;
}

.pi-system-page__content {
  width: min(100% - 40px, 1040px);
  margin: clamp(36px, 8vw, 96px) auto;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid rgb(97 41 57 / 12%);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(70 30 44 / 10%);
}

.pi-system-page__eyebrow {
  margin: 0 0 12px;
  color: #ad2942;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.pi-system-page__content h1 {
  max-width: 18ch;
  margin: 0 0 32px;
  color: inherit;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
}

.pi-system-page__prose :where(h2, h3) {
  margin: 32px 0 10px;
  color: inherit;
  line-height: 1.2;
}

.pi-system-page__prose :where(p, li) {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

.pi-system-page__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ad2942;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.pi-system-page__footer {
  background: #20171a;
  color: #fff;
  text-align: center;
}

.pi-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 32px 20px;
  background: radial-gradient(circle at 15% 15%, rgb(189 49 83 / 18%), transparent 34%), #f8f4f5;
  color: #24181c;
  font-family: Arial, sans-serif;
}

.pi-404__card {
  width: min(100%, 720px);
  box-sizing: border-box;
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid rgb(97 41 57 / 12%);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(70 30 44 / 12%);
  text-align: center;
}

.pi-404__code {
  color: #ad2942;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
}

.pi-404__card h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.02;
}

.pi-404__card p {
  max-width: 54ch;
  margin: 0 auto;
  color: #66555c;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.pi-404__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ad2942;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 760px) {
  .pi-lead-fallback__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
    border-radius: 24px;
  }

  .pi-lead-fallback__contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .pi-system-page__content {
    width: min(100% - 24px, 1040px);
    padding: 28px 20px;
    border-radius: 22px;
  }
}

/* The source pairs the Fitness Kama accordion with a large empty outline
   circle. It reads as a missing photo at every breakpoint, so remove only
   that decoration without changing the authored content. */
.pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898001 .tn-elem[data-elem-id="1747820783945"] {
  display: none !important;
}

/* Fitness Kama: the exported desktop heading is a single unbreakable line.
   Let it wrap inside the hero so narrower laptop/browser panes do not crop it. */
@media (min-width: 960px) {
  /* pi-fix-1108-fitneskama-gap. Раньше здесь стояло height:220px — холст
     нулевой высоты «раздували» под заголовок. Из-за этого между подписью
     «Интенсивный, горячий фитнес…» и первым пунктом аккордеона появлялась
     пустая серая полоса 272px вместо авторских 52px (Катя, 11.08: «серый
     отступ удалите пожалуйста между блоками»). В экспорте Тильды холст
     объявлен height:0 и содержимое штатно выходит за него (overflow:visible),
     попадая в верхний отступ аккордеона. Возвращаем авторское поведение:
     самый низкий слой блока кончается на 168px, первый пункт аккордеона
     начинается на 220px — перекрытия нет ни на одной ширине от 960px. */

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898001 .t396__artboard,
  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898001 .t396__filter,
  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898001 .t396__carrier {
    height: 0 !important;
  }

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898001 .tn-elem[data-elem-id="1747820783938"],
  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898001 .tn-elem[data-elem-id="1747820783942"] {
    left: 50% !important;
    width: min(1040px, calc(100vw - 64px)) !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
  }

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1797898591 .t668__col {
    box-sizing: border-box !important;
    float: none !important;
    width: min(900px, calc(100% - 48px)) !important;
    max-width: 900px !important;
    padding-left: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1809158511 .tn-elem[data-elem-id="1768823631093"] {
    width: min(760px, calc(100vw - 48px)) !important;
    height: auto !important;
  }

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1809158511 .tn-elem[data-elem-id="1768823631093"] .tn-atom {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: clamp(40px, 3vw, 52px) !important;
    line-height: 1.08 !important;
  }

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1809158511 .tn-elem[data-elem-id="1768823553148"] {
    width: min(720px, calc(100vw - 48px)) !important;
    height: auto !important;
  }

  .pi-site-touchqueen-ru.pi-path-fitneskama #rec1809158511 .tn-elem[data-elem-id="1768823553148"] .tn-atom {
    overflow-wrap: anywhere;
    font-size: clamp(18px, 1.35vw, 20px) !important;
    line-height: 1.45 !important;
  }

}

.pi-video-modal[hidden] {
  display: none !important;
}

.pi-video-modal {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgb(12 12 14 / 86%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pi-video-modal__surface {
  width: min(1100px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 22px;
  background: #111;
  box-shadow: 0 30px 90px rgb(0 0 0 / 55%);
}

.pi-video-modal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 12px 10px 22px;
  color: #fff;
  background: #18181b;
}

.pi-video-modal__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font: 600 clamp(16px, 2vw, 22px) / 1.25 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pi-video-modal__close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 10%);
  font: 400 32px / 40px Arial, sans-serif;
  cursor: pointer;
}

.pi-video-modal__close:hover {
  background: #bf2944;
}

.pi-video-modal__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.pi-video-modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: calc(100dvh - 112px);
  background: #000;
}

.pi-video-modal__player :where(iframe, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

@media (max-width: 640px) {
  .pi-video-modal {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .pi-video-modal__surface {
    border-radius: 16px;
  }

  .pi-video-modal__header {
    min-height: 56px;
    padding-left: 16px;
  }

  .pi-video-modal__title {
    font-size: 16px;
  }
}

.pi-imported-page .t658__popup_container {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

/* A visible hero is more important than entrance animation. These exported
   blocks previously painted a white first screen until Tilda JS completed. */
.pi-site-touchqueen-sexqueen-ru .t-animate,
.pi-site-touchqueen-sexqueen-ru [data-animate-style] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.pi-site-touchqueen-sexqueen-ru #allrecords,
.pi-site-touchqueen-sexqueen-ru .t-records,
.pi-site-touchqueen-sexqueen-ru .t396__artboard {
  max-width: 100%;
}

/* The offer layer on the Amour hero must remain above its decorative photo. */
.pi-site-touchqueen-amour-ru #rec1447938281 :where(h1, .t-title, .t-descr, .t-btn, .t-btnflex, a[href="#popup:myform"]) {
  position: relative;
  z-index: 30 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pi-site-touchqueen-amour-ru #rec1447938281 .t-animate {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.pi-site-touchqueen-amour-ru #rec1447938281 h1,
.pi-site-touchqueen-amour-ru #rec1447938281 h1 * {
  color: #fff !important;
  text-shadow: 0 2px 12px rgb(0 0 0 / 58%);
}

/* Amour contact form: the export split one visual form across three Tilda
   fragments and exposed the damaged synchronisation script as page text.
   The managed runtime renders one semantic form; these legacy records must
   never participate in layout at any viewport width. */
.pi-site-touchqueen-amour-ru :is(#rec1447938341, #rec1447938351, #rec1447938361) {
  display: none !important;
}

/* Блок «Остались вопросы?» — повторяем экспорт Тильды (rec1447938341)
   целиком, а не только палитру: заказчица сверяет наш блок с оригиналом
   («вы же копировали всё, когда делали экспорт»).
   Что взято из оригинала: полотно #101010 с той же красной подложкой-
   картинкой; карточка #101010 радиус 20px без рамки и тени; вся типографика
   на Raleway (заголовок 500/60, второе слово #4b4b4b; подпись 500/20 белая;
   согласие 500/16 #4b4b4b); поля — белые «таблетки» 50px, радиус 30,
   рамка 1px чёрная, Raleway 400/16; кнопка плоская #c20e0e радиус 30,
   Raleway 500/18 капсом. Раскладка тоже оригинала: заголовок и подпись
   сверху карточки, поля одной строкой под ними, согласие слева и кнопка
   справа. Брейкпоинты — тильдовские (1200 / 960 / 640 / 480).
   Хексы старой палитры тут намеренно не повторяются: деплой-скрипт
   проверяет, что их не осталось в файле. */
.pi-site-touchqueen-amour-ru .pi-amour-contact {
  box-sizing: border-box;
  padding: 44px 20px;
  background: #101010 url("/wp-content/uploads/sites/2/pro-integry-assets/touchqueen-amour.ru/images/tild6432-6666-4631-b535-616536316632__a9d02acf-c334-458e-a.png") center center / cover no-repeat;
  color: #fff;
}

/* Карточка оригинала — ровно 1160×399 внутри полотна 487px. */
.pi-site-touchqueen-amour-ru .pi-amour-contact__surface {
  box-sizing: border-box;
  max-width: 1160px;
  min-height: 399px;
  margin-inline: auto;
  padding: 25px 50px 44px;
  border-radius: 20px;
  background: #101010;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__copy h2 {
  margin: 0;
  max-width: 570px;
  color: #fff;
  font: 500 60px/1.15 Raleway, Arial, sans-serif;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__copy h2 span {
  color: #4b4b4b;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__copy > p:last-child {
  max-width: 650px;
  margin: 12px 0 0;
  color: #fff;
  font: 500 20px/1.45 Raleway, Arial, sans-serif;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px 8px;
  margin-top: 39px;
}

/* В оригинале над полями подписей нет — только плейсхолдеры. Подписи
   остаются в разметке для скринридеров и прячутся визуально. */
.pi-site-touchqueen-amour-ru .pi-amour-contact__form > label:not(.pi-amour-contact__consent) > span:not(.pi-field-error) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__form input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border: 1px solid #000;
  border-radius: 30px;
  outline: 0;
  background: #fff;
  color: #000;
  font: 400 16px/1.2 Raleway, Arial, sans-serif;
}

/* В оригинале плейсхолдер — тот же чёрный, но полупрозрачный (opacity .5). */
.pi-site-touchqueen-amour-ru .pi-amour-contact__form input:not([type="checkbox"])::placeholder {
  color: #000;
  opacity: .5;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__form input:not([type="checkbox"]):focus {
  border-color: #c20e0e;
  box-shadow: 0 0 0 3px rgb(194 14 14 / 28%);
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__consent {
  display: flex;
  grid-column: 1;
  gap: 10px;
  align-items: flex-start;
  align-self: center;
  max-width: 538px;
  color: #4b4b4b;
  font: 500 16px/1.45 Raleway, Arial, sans-serif;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #c20e0e;
  flex: 0 0 auto;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__consent a {
  color: #4b4b4b;
  text-underline-offset: 3px;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__form button[type="submit"] {
  grid-column: -2 / -1;
  align-self: center;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 30px;
  background: #c20e0e;
  color: #fff;
  font: 500 18px/1.2 Raleway, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 160ms ease;
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__form button[type="submit"]:hover {
  filter: brightness(1.12);
}

.pi-site-touchqueen-amour-ru .pi-amour-contact__form .pi-form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
}

@media (max-width: 1199px) {
  .pi-site-touchqueen-amour-ru .pi-amour-contact__surface {
    padding: 25px 40px 40px;
  }
}

@media (max-width: 959px) {
  .pi-site-touchqueen-amour-ru .pi-amour-contact__surface {
    min-height: 0;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__copy h2 {
    font-size: 48px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__copy > p:last-child {
    font-size: 18px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__form {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 32px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__form > * {
    grid-column: 1 !important;
  }

  /* В оригинале на узких экранах согласие уходит под кнопку. */
  .pi-site-touchqueen-amour-ru .pi-amour-contact__form button[type="submit"] {
    order: 1;
    margin-top: 12px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__consent {
    order: 2;
    max-width: none;
    margin-top: 12px;
    font-size: 12px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__form .pi-form-status {
    order: 3;
  }
}

@media (max-width: 639px) {
  .pi-site-touchqueen-amour-ru .pi-amour-contact {
    padding: 30px 9px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__surface {
    padding: 20px 18px 30px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__copy h2 {
    max-width: none;
    font-size: 30px;
    text-align: center;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__copy > p:last-child {
    max-width: none;
    font-size: 14px;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .pi-site-touchqueen-amour-ru .pi-amour-contact {
    padding: 25px 10px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__copy h2 {
    font-size: 24px;
  }

  .pi-site-touchqueen-amour-ru .pi-amour-contact__form input:not([type="checkbox"]),
  .pi-site-touchqueen-amour-ru .pi-amour-contact__form button[type="submit"] {
    height: 45px;
  }
}

.pi-site-oralqueen-ru .t-slds__bullet,
.pi-site-woman-love-ru .t-slds__bullet {
  display: inline-grid !important;
  place-items: center;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 2px !important;
}

.pi-site-oralqueen-ru .t-slds__bullet_body,
.pi-site-woman-love-ru .t-slds__bullet_body {
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  min-height: 9px !important;
}

/* OralQueen desktop tariff cards: the imported Zero Block positions the
   83px black access headers over the first feature line. Move only those
   three header pairs into the free gap below the section title. */
@media (min-width: 1200px) {
  .pi-site-oralqueen-ru #rec2472380991 :is(
    .tn-elem[data-elem-id="1712319612404"],
    .tn-elem[data-elem-id="1692198125488"],
    .tn-elem[data-elem-id="176163961077330940"],
    .tn-elem[data-elem-id="176163961078611200"],
    .tn-elem[data-elem-id="176163961077961100"],
    .tn-elem[data-elem-id="176163961079457850"]
  ) {
    transform: translateY(-25px) !important;
  }
}

@media (max-width: 640px) {
  .pi-imported-page :where(.t-btn, .t-btnflex, .t-submit, button, input[type="submit"], [role="button"]) {
    min-height: 44px;
  }

  .pi-site-touchqueen-amour-ru :where(a, button, [role="button"]),
  .pi-site-touchqueen-ru :where(a.t-btn, a.t-btnflex, button, [role="button"]) {
    min-height: 44px;
  }

  .pi-site-touchqueen-ru #rec2478717651 a[href] {
    position: relative;
  }

  .pi-site-touchqueen-ru #rec2478717651 a[href]::before {
    content: "";
    position: absolute;
    inset: -8px -6px;
  }

  /* Keep the original Tilda social pictogram geometry on the mobile hero.
     The enlarged hit area above provides accessibility without stretching
     the tiny artwork itself into a 44px block. */
  .pi-site-touchqueen-ru #rec2478717651 .tn-elem[data-elem-type="image"] > a.tn-atom,
  .pi-site-touchqueen-ru #rec2478717651 .tn-elem[data-elem-type="shape"] > a.tn-atom,
  .pi-site-touchqueen-ru #rec2478717651 .tn-elem[data-elem-type="vector"] > a.tn-atom {
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .pi-site-touchqueen-ru .t450__list_item,
  .pi-site-touchqueen-amour-ru .t450__list_item {
    margin: 0 !important;
  }

  /* The Amour header is one Zero Block containing both the desktop links and
     the mobile logo/hamburger. Hide only the desktop-only elements so their
     1200px coordinates cannot widen the 360-414px viewport. */
  .pi-site-touchqueen-amour-ru #rec1461406141 :is(
    [data-elem-id="1712320770609"],
    [data-elem-id="1712320770610"],
    [data-elem-id="1712320770612"],
    [data-elem-id="1712320770613"],
    [data-elem-id="1712320770614"],
    [data-elem-id="1712320770615"],
    [data-elem-id="1712320770617"],
    [data-elem-id="1712320770619"],
    [data-elem-id="1712320770620"],
    [data-elem-id="1712320770622"]
  ) {
    display: none !important;
  }

  .pi-site-touchqueen-amour-ru .t450:not(.t450__menu_show) {
    display: none !important;
  }

  .pi-site-touchqueen-amour-ru .t450.t450__menu_show {
    display: block !important;
  }

  /* A damaged legacy Tilda form-modifier record was imported as visible
     source text. The managed WordPress form runtime already replaces it. */
  .pi-site-touchqueen-amour-ru #rec1447938361 {
    display: none !important;
  }

  .pi-site-touchqueen-ru .t-menu__link-item,
  .pi-site-touchqueen-amour-ru .t-menu__link-item {
    display: flex !important;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 6px;
  }

  .pi-site-touchqueen-sexqueen-ru #allrecords,
  .pi-site-touchqueen-sexqueen-ru .t-records,
  .pi-site-touchqueen-sexqueen-ru .r,
  .pi-site-touchqueen-sexqueen-ru .t396,
  .pi-site-touchqueen-sexqueen-ru .t396__artboard {
    max-width: 100vw !important;
  }

  .pi-site-woman-love-ru .t-title,
  .pi-site-relationstroy-ru .t-title { font-size: clamp(24px, 8vw, 42px) !important; }
  .pi-site-woman-love-ru .t-descr,
  .pi-site-relationstroy-ru .t-descr { font-size: max(16px, 1rem) !important; line-height: 1.45 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pi-imported-page *,
  .pi-imported-page *::before,
  .pi-imported-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* woman-love.ru, мобильные ширины: импортированный подзаголовок «Бесплатный
   4-х дневный марафон» рендерится на 9px шире розовой подложки под ним
   (текст до 387px, подложка до 378px при вьюпорте 390), из-за чего последняя
   буква «Н» выходила за скруглённый край. Уменьшаем кегль только этого
   элемента и только на мобильных: десктоп укладывается штатно и не трогается.
   Селектор повторяет id записи, потому что импортированное правило Тильды
   идёт через `#rec…` и иначе выигрывает по специфичности. Блок на странице
   встречается дважды — вверху и внизу, поэтому перечислены обе записи. */
@media screen and (max-width: 479px) {
  .pi-site-woman-love-ru #rec2470259891 .tn-elem[data-elem-id="1731899462666"] .tn-atom,
  .pi-site-woman-love-ru #rec2470260191 .tn-elem[data-elem-id="1731899462666"] .tn-atom {
    font-size: 13px;
  }
}

/* Окно 18+ по требованиям клиента: на touchqueen.ru — исходная красно-белая
   гамма, на touchqueen-amour.ru — бордово-красная (именно не розовая).
   Базовое тёмное оформление выше остаётся для остальных четырёх доменов —
   по ним требований не было, и менять их вид без запроса не нужно. */
.pi-site-touchqueen-ru .pi-age-gate--generated { background: rgb(88 10 26 / 82%); }
.pi-site-touchqueen-ru .pi-age-gate__dialog {
  border-color: rgb(167 20 45 / 20%);
  background: #fff;
  box-shadow: 0 28px 80px rgb(88 10 26 / 38%);
  color: #2a1116;
}
.pi-site-touchqueen-ru .pi-age-gate__eyebrow { border-color: rgb(167 20 45 / 35%); color: #a7142d; }
.pi-site-touchqueen-ru .pi-age-gate__dialog h2 { color: #a7142d; }
.pi-site-touchqueen-ru .pi-age-gate__dialog p { color: #4a3238; }
.pi-site-touchqueen-ru .pi-age-gate__dialog button { background: linear-gradient(135deg, #c80131, #a7142d); }
.pi-site-touchqueen-ru .pi-age-gate__dialog a { border-color: rgb(167 20 45 / 40%); color: #a7142d; }

/* Исходное оформление плашки 18+ из Тильды (блок rec2480681001):
   белая карточка 500x399 со скруглением 30px, значок 18+ 110px,
   текст 25px Gilroy с красной третьей строкой и круглая кнопка 300x64. */
.pi-age-gate--tilda { background: rgb(0 0 0 / 55%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pi-age-gate--tilda .pi-age-gate__dialog {
  box-sizing: border-box;
  width: min(500px, calc(100vw - 32px));
  min-height: 399px;
  padding: 33px 24px 40px;
  border: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(0 0 0 / 32%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.pi-age-gate--tilda .pi-age-gate__badge {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 0 34px;
}
.pi-age-gate--tilda .pi-age-gate__dialog p {
  margin: 0 0 30px;
  color: #000;
  font: 400 25px/1.15 Gilroy, Montserrat, Arial, sans-serif;
}
.pi-age-gate--tilda .pi-age-gate__dialog p span { color: #d01e3e; }
.pi-age-gate--tilda .pi-age-gate__dialog button {
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  height: 64px;
  margin: auto 0 0;
  border: 0;
  border-radius: 50px;
  background: #cb2443;
  color: #fff;
  font: 500 17px/1.55 Gilroy, Montserrat, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.pi-age-gate--tilda .pi-age-gate__dialog button:hover { background: #a7142d; }
/* Общее правило для импортированных страниц рисует фиолетовое кольцо фокуса
   с !important — на этой плашке оно выбивалось из оформления. Кольцо
   оставляем видимым для клавиатуры, но в фирменном цвете. */
/* Шапка touchqueen.ru на мобильной: у кнопок «личный кабинет» и «меню»
   сам кружок (.tn-atom) задан в 44px, а его рамка — в 36px. Кружок растёт
   вниз-вправо от левого верхнего угла, поэтому центр иконок оказывался на
   6px ниже центра розовой плашки, а кружок меню вылезал за её правый край.
   Размер кружка задан не свойством width, поэтому сдвигаем его на половину
   разницы (доля от рамки, чтобы работало на любой ширине экрана) — кружок
   встаёт по центру своей рамки и, значит, по центру плашки.
   Сдвиг больше не нужен: раздувала кружок наша же тач-зона min-width:44px,
   теперь она с этих слоёв снята и кружок сам встаёт по размеру рамки. */

.pi-age-gate--tilda .pi-age-gate__dialog button:focus { outline: none !important; }
.pi-age-gate--tilda .pi-age-gate__dialog button:focus-visible {
  outline: 3px solid rgb(203 36 67 / 45%) !important;
  outline-offset: 3px !important;
}

@media (max-width: 479px) {
  .pi-age-gate--tilda .pi-age-gate__dialog {
    width: calc(100vw - 32px);
    min-height: 276px;
    padding: 22px 16px 30px;
  }
  .pi-age-gate--tilda .pi-age-gate__badge { width: 93px; margin-bottom: 22px; }
  .pi-age-gate--tilda .pi-age-gate__dialog p { margin-bottom: 22px; font-size: 18px; }
  .pi-age-gate--tilda .pi-age-gate__dialog button { width: 196px; height: 50px; font-size: 15px; }
}

.pi-site-touchqueen-amour-ru .pi-age-gate--generated { background: rgb(40 5 14 / 88%); }
.pi-site-touchqueen-amour-ru .pi-age-gate__dialog {
  border-color: rgb(255 255 255 / 14%);
  background: #5c0f22;
  color: #fff;
}
.pi-site-touchqueen-amour-ru .pi-age-gate__eyebrow { border-color: rgb(255 255 255 / 28%); color: #f0c4cd; }
.pi-site-touchqueen-amour-ru .pi-age-gate__dialog h2 { color: #fff; }
.pi-site-touchqueen-amour-ru .pi-age-gate__dialog p { color: #f2dde1; }
.pi-site-touchqueen-amour-ru .pi-age-gate__dialog button { background: linear-gradient(135deg, #9e1e3c, #6d0d24); }
.pi-site-touchqueen-amour-ru .pi-age-gate__dialog a { border-color: rgb(255 255 255 / 26%); color: #fff; }

/* Служебный якорь для адресов вида /free/accessyes/#uroki: ничего не рисует,
   но уводит прокрутку ниже липкой шапки. */
.pi-anchor {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}

/* ---- Статьи блога touchqueen-amour.ru ----------------------------------
   Импорт из Тильды хранил в тексте статьи целую страницу: шапку, меню,
   подвал и 35 блоков стилей вокруг ~5 КБ реального текста. Теперь в записи
   лежит только текст, а обвязка приходит из общего шаблона. Эти правила
   отвечают за читаемость самого текста; оформление шапки и подвала
   по-прежнему берётся из импортированных стилей Тильды. */
/* До миграции статьи блога были чёрными: фон #101010, белый текст, сетка
   Тильды 1200px — как на информационных страницах. Обвязка чистой статьи
   отдавала их белыми и в колонке 800px, и клиент попросил вернуть прежний
   вид. Палитра взята из исходного экспорта: #101010 / #ffffff / #c20e0e. */
.pi-article-shell {
  background: #101010;
  padding: 0 20px 64px;
}
.pi-article-shell__inner {
  /* 1160px — ровно ширина .t-col_12 внутри .t-container на информационных
     страницах, чтобы текст статьи начинался и кончался там же, где у них. */
  max-width: 1160px;
  margin: 0 auto;
}
.pi-article-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 8px;
  color: #a7a7a7;
  font-size: 14px;
}
.pi-article-crumbs a { color: #a7a7a7; text-decoration: none; }
.pi-article-crumbs a:hover { color: #c20e0e; }
.pi-article-crumbs__current { color: #fff; }

.pi-article__title {
  margin: 8px 0 24px;
  color: #fff;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
}

.pi-article {
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
}
.pi-article p { margin: 0 0 18px; }
.pi-article h2 {
  margin: 36px 0 14px;
  color: #fff;
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.25;
}
.pi-article h3 {
  margin: 26px 0 10px;
  color: #fff;
  font-size: clamp(18px, 2.8vw, 22px);
  line-height: 1.3;
}
.pi-article ul,
.pi-article ol { margin: 0 0 18px; padding-left: 22px; }
.pi-article li { margin: 0 0 10px; }
.pi-article a { color: #c20e0e; }
.pi-article a:hover { color: #9f0e0e; }
.pi-article strong { color: #fff; }
/* Ширину обёртке проставляет скрипт по размеру из редактора; шире колонки
   она не станет. Без этого маленькие снимки растягивались на всю ширину и
   выглядели размытыми. */
.pi-article__figure {
  margin: 24px 0;
  max-width: 100%;
}
.pi-article__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Обтекание картинок текстом на десктопе. Выравнивание задаётся в редакторе
   и приезжает классом на самой картинке; скрипт переносит класс на <figure>,
   а обтекает уже обёртка. Ширину для таких картинок не растягиваем на всю
   колонку — берём ту, что выставлена в редакторе, но не больше половины
   ширины текста, иначе обтекать будет нечем. */
.pi-article__figure.alignright,
.pi-article__figure.alignleft {
  width: auto;
  max-width: 50%;
}

.pi-article__figure.alignright img,
.pi-article__figure.alignleft img {
  width: auto;
  max-width: 100%;
}

.pi-article__figure.alignright {
  float: right;
  margin: 6px 0 18px 28px;
}

.pi-article__figure.alignleft {
  float: left;
  margin: 6px 28px 18px 0;
}

.pi-article__figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* Часть статей хранит картинку без обёртки <figure>: так её кладёт обычный
   редактор WordPress, класс выравнивания стоит прямо на <img>. Правила выше
   на такую картинку не попадали, и фото вставало в строку без обтекания.
   Ширину берём ту, что задана в редакторе атрибутом, но не больше половины
   колонки, иначе обтекать будет нечем. */
.pi-article img.alignright,
.pi-article img.alignleft {
  max-width: 50%;
  height: auto;
  border-radius: 14px;
}

.pi-article img.alignright {
  float: right;
  margin: 6px 0 18px 28px;
}

.pi-article img.alignleft {
  float: left;
  margin: 6px 28px 18px 0;
}

.pi-article img.aligncenter {
  display: block;
  height: auto;
  margin: 24px auto;
}

.pi-article img.alignnone {
  height: auto;
}

/* Обёртка у картинки может быть не только наша: с подписью WordPress сам
   заворачивает фото в <figure class="wp-caption">, блочный редактор — в
   <figure class="wp-block-image">. Классы выравнивания в обоих случаях
   стоят на обёртке. Чтобы обтекание работало при любом способе вставки,
   правила задаём для любой <figure> внутри статьи. */
.pi-article figure.alignright,
.pi-article figure.alignleft {
  width: auto;
  max-width: 50%;
}

.pi-article figure.alignright img,
.pi-article figure.alignleft img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.pi-article figure.alignright {
  float: right;
  margin: 6px 0 18px 28px;
}

.pi-article figure.alignleft {
  float: left;
  margin: 6px 28px 18px 0;
}

.pi-article figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* Чтобы плавающая картинка не вылезала за пределы статьи и не наезжала на
   следующие блоки. */
.pi-article::after {
  content: "";
  display: table;
  clear: both;
}

/* Заголовки обтекают плавающую картинку наравне с текстом. Раньше здесь стоял
   clear: both, и заголовок спрыгивал под картинку: при коротких абзацах слева
   от картинки оставалась пустая дыра в половину экрана. */
.pi-article h2,
.pi-article h3 {
  clear: none;
}

/* На телефоне обтекание не нужно: колонка узкая, текст рядом с картинкой
   рвался бы на два-три слова в строке. Возвращаем картинку на всю ширину. */
@media (max-width: 720px) {
  /* Ширину из редактора скрипт ставит обёртке инлайном, поэтому здесь нужен
     !important — иначе на телефоне картинка осталась бы узкой. */
  .pi-article__figure.alignright,
  .pi-article__figure.alignleft {
    float: none;
    width: auto !important;
    max-width: 100%;
    margin: 24px 0;
  }
  .pi-article__figure.alignright img,
  .pi-article__figure.alignleft img {
    width: 100%;
  }

  /* То же для картинок без обёртки. */
  .pi-article img.alignright,
  .pi-article img.alignleft {
    float: none;
    display: block;
    max-width: 100%;
    margin: 24px 0;
  }

  /* И для подписей и блочного редактора. */
  .pi-article figure.alignright,
  .pi-article figure.alignleft {
    float: none;
    width: auto !important;
    max-width: 100%;
    margin: 24px 0;
  }
}

@media (max-width: 600px) {
  .pi-article-shell { padding: 0 16px 40px; }
  .pi-article { font-size: 16px; }
}

/* Импортированное окно 18+ на touchqueen.ru и touchqueen-amour.ru заменено
   единым окном плагина. Скрипт Тильды переоткрывает своё окно по таймеру и
   перезаписывает инлайновый display, поэтому гасим его правилом с !important
   из таблицы стилей — оно сильнее инлайнового стиля. Класс проставляет
   enforceManagedGate() и только после того, как наше окно уже в DOM. */
.pi-gate-suppressed,
.pi-gate-suppressed.t-popup_show,
.pi-gate-suppressed.t-popup__bg-active {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* relationstroy.ru: заголовок «ЭТОТ МАСТЕР-КЛАСС СОЗДАН ДЛЯ ТЕБЯ, ЕСЛИ ТЫ:»
   свёрстан под две строки (заявленная высота 136px при кегле 68px), но в
   Montserrat он переносится на три, и третья строка уходила под карточки.
   Расширяем контейнер — кегль и вид заголовка при этом сохраняются.
   Только на широких экранах: на планшете и телефоне блок и так перестраивается. */
@media screen and (min-width: 1240px) {
  /* !important нужен: ширину элементам зеро-блока проставляет инлайном
     скрипт Тильды, и правило из таблицы стилей иначе проигрывает. */
  .pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326797"] {
    width: 1180px !important;
  }
}

/* relationstroy.ru: подпись «Не забудьте проверить папки "СПАМ" и "РАССЫЛКИ"»
   лежала ровно поверх кнопки «ПОЛУЧИТЬ ДОСТУП» — кнопка переставала
   нажиматься. Опускаем подпись под кнопку. Только десктоп: на мобильном
   блоки перестраиваются и наложения нет. !important нужен, потому что
   координаты элементам зеро-блока проставляет инлайном скрипт Тильды. */
@media screen and (min-width: 960px) {
  .pi-site-relationstroy-ru #rec2470303701 .tn-elem[data-elem-id="1781158100842000001"] {
    top: 795px !important;
  }
  .pi-site-relationstroy-ru #rec2470303781 .tn-elem[data-elem-id="1733049754797"] {
    top: 656px !important;
  }
}

/* relationstroy.ru — планшет и телефон: подпись под формой и заголовки не наезжают на текст.
   Причина: Visby в экспорте Тильды нет, подставлен Montserrat (шире) — заголовки берут лишнюю
   строку; плюс наша форма выше тильдовской, поэтому подпись «Не забудьте…» попадала на кнопку.
   !important нужен: координаты слоям зеро-блока проставляет инлайном скрипт Тильды. */

/* --- подпись «Не забудьте проверить папки» — строго под форму --- */
@media screen and (max-width: 479px) {
  .pi-site-relationstroy-ru #rec2470303701 .tn-elem[data-elem-id="1781158100842000001"] { top: 1091px !important; }
  .pi-site-relationstroy-ru #rec2470303781 .tn-elem[data-elem-id="1733049754797"] { top: 676px !important; }
}
/* первый экран: до 640px Тильда отдаёт «узкую» раскладку, там подпись выше формы */
@media screen and (min-width: 480px) and (max-width: 640px) {
  .pi-site-relationstroy-ru #rec2470303431 .tn-elem[data-elem-id="1731899462669"] { top: 1199px !important; }
}
@media screen and (min-width: 480px) and (max-width: 639px) {
  .pi-site-relationstroy-ru #rec2470303701 .tn-elem[data-elem-id="1781158100842000001"] { top: 1079px !important; }
  .pi-site-relationstroy-ru #rec2470303781 .tn-elem[data-elem-id="1733049754797"] { top: 617px !important; }
}
@media screen and (min-width: 640px) and (max-width: 767px) {
  .pi-site-relationstroy-ru #rec2470303701 .tn-elem[data-elem-id="1781158100842000001"] { top: 1110px !important; }
  .pi-site-relationstroy-ru #rec2470303781 .tn-elem[data-elem-id="1733049754797"] { top: 624px !important; }
}
@media screen and (min-width: 768px) and (max-width: 959px) {
  .pi-site-relationstroy-ru #rec2470303701 .tn-elem[data-elem-id="1781158100842000001"] { top: 1050px !important; }
  .pi-site-relationstroy-ru #rec2470303781 .tn-elem[data-elem-id="1733049754797"] { top: 564px !important; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  .pi-site-relationstroy-ru #rec2470303701 .tn-elem[data-elem-id="1781158100842000001"] { top: 895px !important; }
}

/* --- высота блоков с формой: наша форма выше тильдовской, полотно должно её вместить.
   Тильда задаёт высоту сразу трём слоям в отрисованных пикселях, а координаты слоёв —
   в макетных, поэтому запас считаем через её же переменную --zoom. --- */
@media screen and (max-width: 479px) {
  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(1140px * var(--zoom, 1)) !important; }
  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(725px * var(--zoom, 1)) !important; }
}
@media screen and (min-width: 641px) and (max-width: 767px) {
  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(1140px * var(--zoom, 1)) !important; }
  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(655px * var(--zoom, 1)) !important; }
}
@media screen and (min-width: 768px) and (max-width: 959px) {
  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(1090px * var(--zoom, 1)) !important; }
  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(600px * var(--zoom, 1)) !important; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(950px * var(--zoom, 1)) !important; }
  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(690px * var(--zoom, 1)) !important; }
}
/* Десктоп от 1200px. Правило выше (min-width: 960px) опускает подпись «Не забудьте…»
   на 795px/656px, а компенсирующая высота полотна была задана только до 1199px —
   поэтому на обычных десктопных ширинах подпись вываливалась за нижний край блока
   и налезала на следующий экран («Подарок за регистрацию»). Замерено на боевом:
   низ подписи 835px при полотне 803px (rec…701) и 700px при 673px (rec…781). */
@media screen and (min-width: 1200px) {
  .pi-site-relationstroy-ru #rec2470303701 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(850px * var(--zoom, 1)) !important; }
  .pi-site-relationstroy-ru #rec2470303781 :is(.t396__artboard, .t396__carrier, .t396__filter) { min-height: calc(715px * var(--zoom, 1)) !important; }
}

/* --- абзацы под заголовками, которые Montserrat раздул на лишнюю строку --- */
@media screen and (max-width: 479px) {
  .pi-site-relationstroy-ru #rec2470303621 .tn-elem[data-elem-id="1685979806433"] { top: 186px !important; }
  .pi-site-relationstroy-ru #rec2470303761 .tn-elem[data-elem-id="1685979806433"] { top: 176px !important; }
}
@media screen and (min-width: 480px) and (max-width: 639px) {
  .pi-site-relationstroy-ru #rec2470303471 .tn-elem[data-elem-id="1685979806433"] { top: 300px !important; }
  .pi-site-relationstroy-ru #rec2470303621 .tn-elem[data-elem-id="1685979806433"] { top: 246px !important; }
  .pi-site-relationstroy-ru #rec2470303761 .tn-elem[data-elem-id="1685979806433"] { top: 315px !important; }
}
@media screen and (min-width: 640px) and (max-width: 959px) {
  .pi-site-relationstroy-ru #rec2470303621 .tn-elem[data-elem-id="1685979806433"] { top: 261px !important; }
  .pi-site-relationstroy-ru #rec2470303761 .tn-elem[data-elem-id="1685979806433"] { top: 273px !important; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  .pi-site-relationstroy-ru #rec2470303471 .tn-elem[data-elem-id="1685979806433"] { top: 284px !important; }
  .pi-site-relationstroy-ru #rec2470303721 .tn-elem[data-elem-id="1685979806433"] { top: 205px !important; }
}

/* --- «КТО ВЕДЕТ МАСТЕР-КЛАСС?» снова в одну строку: в Montserrat 68px не помещается --- */
@media screen and (min-width: 960px) {
  .pi-site-relationstroy-ru #rec2470303601 .tn-elem[data-elem-id="1731902896910"] .tn-atom { font-size: 64px !important; }
}

/* ==========================================================================
   Правки 07.08.2026 (вечер), по замечаниям Евгения из TG-бота.
   ========================================================================== */

/* --- 1. touchqueen.ru/love/ — попапы «ЗАПИСЬ НА БЕСПЛАТНЫЙ ЭФИР» 12:00 и 19:55.
   Форма приехала из Тильды без своей раскладки. Три независимые поломки:
   (а) wpautop вставил внутрь .t-form__inputsbox пустые <p>, они стали
       ячейками грида и растащили поля по случайным местам, а телефон уехал
       под кнопку отправки;
   (б) плейсхолдеры Тильда красит в белый — на белом поле их не видно;
   (в) кнопка отправки осталась без заливки, а её тёмный текст лежит на
       тёмной подложке попапа — кнопка выглядит пустой полосой.
   Скоуп — только два этих блока, остальные 26 форм сети не задеты. --- */

.pi-tilda-restored .t-form__inputsbox > p:empty {
  display: none !important;
}

#rec1454519071 .pi-tilda-restored .t-form__inputsbox,
#rec1454519081 .pi-tilda-restored .t-form__inputsbox {
  align-items: start !important;
}

/* порядок: имя + e-mail в строку, дальше телефон, согласие, кнопка */
#rec1454519071 .pi-tilda-restored .t-input-group_nm,
#rec1454519081 .pi-tilda-restored .t-input-group_nm { order: 1 !important; }

#rec1454519071 .pi-tilda-restored .t-input-group_em,
#rec1454519081 .pi-tilda-restored .t-input-group_em { order: 2 !important; }

#rec1454519071 .pi-tilda-restored .t-input-group_ph,
#rec1454519081 .pi-tilda-restored .t-input-group_ph {
  order: 3 !important;
  grid-column: 1 / -1 !important;
}

#rec1454519071 .pi-tilda-restored .t-input-group_cb,
#rec1454519081 .pi-tilda-restored .t-input-group_cb {
  order: 4 !important;
  grid-column: 1 / -1 !important;
}

#rec1454519071 .pi-tilda-restored .t-form__errorbox-middle,
#rec1454519081 .pi-tilda-restored .t-form__errorbox-middle {
  order: 5 !important;
  grid-column: 1 / -1 !important;
}

#rec1454519071 .pi-tilda-restored .t-form__submit,
#rec1454519081 .pi-tilda-restored .t-form__submit {
  order: 6 !important;
  grid-column: 1 / -1 !important;
}

/* плейсхолдеры: Тильда задаёт им белый цвет прямо в своём блоке стилей */
#rec1454519071 .pi-tilda-restored .t-input::placeholder,
#rec1454519081 .pi-tilda-restored .t-input::placeholder {
  color: #17131b !important;
  opacity: .6 !important;
}

/* подпись о согласии — на тёмной подложке попапа она должна быть светлой */
#rec1454519071 .pi-tilda-restored .t-checkbox__control,
#rec1454519081 .pi-tilda-restored .t-checkbox__control,
#rec1454519071 .pi-tilda-restored .t-checkbox__control span,
#rec1454519081 .pi-tilda-restored .t-checkbox__control span,
#rec1454519071 .pi-tilda-restored .t-checkbox__control a,
#rec1454519081 .pi-tilda-restored .t-checkbox__control a {
  color: #ffffff !important;
}

#rec1454519071 .pi-tilda-restored .t-checkbox__control a,
#rec1454519081 .pi-tilda-restored .t-checkbox__control a {
  text-decoration: underline !important;
}

/* wpautop нарезал разметку чекбокса лишними <p>, из-за них строка согласия
   раскладывалась гридом в две строки и текст сжимался в колонку 20px.
   Переводим подпись в одну flex-строку: квадратик, затем текст. */
#rec1454519071 .pi-tilda-restored .t-checkbox__control,
#rec1454519081 .pi-tilda-restored .t-checkbox__control {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
}

#rec1454519071 .pi-tilda-restored .t-checkbox__control > p,
#rec1454519081 .pi-tilda-restored .t-checkbox__control > p {
  margin: 0 !important;
}

#rec1454519071 .pi-tilda-restored .t-checkbox__control > p:empty,
#rec1454519081 .pi-tilda-restored .t-checkbox__control > p:empty {
  display: none !important;
}

#rec1454519071 .pi-tilda-restored .t-checkbox__indicator,
#rec1454519081 .pi-tilda-restored .t-checkbox__indicator {
  flex: 0 0 18px !important;
  border-color: #ffffff !important;
}

/* кнопка отправки — фирменный красный, как у кнопок сайта */
#rec1454519071 .pi-tilda-restored .t-form__submit button,
#rec1454519081 .pi-tilda-restored .t-form__submit button {
  width: 100% !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: linear-gradient(89.28deg, #fc3858 0%, #d0203f 51%, #a7142d 100%) !important;
  color: #ffffff !important;
  cursor: pointer;
}

#rec1454519071 .pi-tilda-restored .t-form__submit button *,
#rec1454519081 .pi-tilda-restored .t-form__submit button * {
  color: #ffffff !important;
}

/* --- 2. relationstroy.ru — «Подарок за регистрацию»: превью видео висело
   НАД красной подложкой. Причина наша: 06–07.08 мы опускали группу слоёв
   карточки (подложка, заголовок, тексты) через translateY, чтобы она не
   налезала на форму, но превью и кнопку play в эту группу не включили.
   В оригинале Тильды превью центрировано по подложке на каждом брейкпоинте,
   поэтому достаточно сдвинуть их на ту же величину. --- */

@media (min-width: 1200px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462725"],
    [data-elem-id="1731899462729"]
  ) {
    transform: translateY(40px) !important;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462725"],
    [data-elem-id="1731899462729"]
  ) {
    transform: translateY(52px) !important;
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(
    [data-elem-id="1731899462725"],
    [data-elem-id="1731899462729"]
  ) {
    transform: translateY(100px) !important;
  }
}

/* на телефоне превью мы намеренно прячем — кнопка play без него не нужна */
@media (max-width: 640px) {
  .pi-site-relationstroy-ru #rec2470303431 [data-elem-id="1731899462729"] {
    display: none !important;
  }
}

/* --- 3. relationstroy.ru — планшетная раскладка Тильды (960–1199px):
   заголовок «ЭТОТ МАСТЕР-КЛАСС СОЗДАН ДЛЯ ТЕБЯ, ЕСЛИ ТЫ:» уезжал под
   карточки. В экспорте на этом брейкпоинте Тильда отдала `width:px` —
   значение невалидное, браузер его отбрасывает, и слой наследует ширину
   1200-й сетки (938px) вместе с кеглем 68px. Montserrat (подставлен вместо
   отсутствующего Visby) шире, строка не помещается и заголовок берёт третью
   строку. Ужимаем кегль ровно на этом брейкпоинте — в две строки помещается. --- */

@media screen and (min-width: 960px) and (max-width: 1199px) {
  .pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326797"] {
    width: 940px !important;
  }

  .pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326797"] .tn-atom {
    font-size: 52px !important;
  }
}

/* =====================================================================
   Замечания Евгения от 07.08.2026, 21:07–21:11 (TG-бот).
   Каждое правило скоуплено на конкретный сайт и блок.
   ===================================================================== */

/* --- 4. touchqueen.ru — окно записи на эфир (t702) рисовалось системным
   serif. Тильда отдавала попапам форм шрифты 'Source Serif Pro' (заголовок)
   и 'Roboto' (подзаголовок) из библиотеки аккаунта; в экспорт не попал ни
   один файл этих шрифтов и ни одного @font-face для них нет. Семейства
   указаны БЕЗ запасного варианта, поэтому браузер брал дефолтный serif —
   заголовок «Запись на бесплатный эфир в 19:55» выбивался из вёрстки.
   Проверено канвасом: ширина строки в 'Source Serif Pro' и в несуществующем
   семействе совпадает до пикселя (626 против 626), то есть шрифт не грузится.
   Остальные элементы попапа (чекбокс, кнопка) уже рисуются Gilroy. --- */

.pi-site-touchqueen-ru .t702 .t702__title,
.pi-site-touchqueen-ru .t702 .t702__descr,
.pi-site-touchqueen-ru .t-popup .t702__title,
.pi-site-touchqueen-ru .t-popup .t702__descr {
  font-family: 'Gilroy', 'Montserrat', Arial, sans-serif !important;
}

/* --- 5. relationstroy.ru — сердечки на карточках блока «ЭТОТ МАСТЕР-КЛАСС
   СОЗДАН ДЛЯ ТЕБЯ» обрезались сверху. Слой задан чуть шире картинки
   (отношение сторон коробки 1.07–1.19 против 1.0625 у самого PNG 272×256),
   а фон объявлен `background-size: cover` — избыток срезается сверху и снизу.
   Нижний кончик сердца лежит с отступом и переживает срез, а верхние доли
   упираются в край файла, поэтому видно ровную «отрезанную» кромку.
   `contain` вписывает сердце целиком на любой ширине; при совпадении
   пропорций (а расхождение меньше 1%) картинка визуально не меняется. --- */

.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326832"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326835"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326838"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326842"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326845"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326848"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326851"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326854"] > .tn-atom {
  background-size: contain !important;
}

/* --- 6. relationstroy.ru — красный блок «Подарок за регистрацию» обрезался
   на телефонах шире 390px. Высота полотна прибита выше как `height:1605px`
   в фиксированных пикселях, а содержимое зеро-блока масштабируется через
   `--zoom` (ширина/320). На 390px контент занимает 1592px и влезает, но на
   414px это уже 1690px, а на 430px — 1755px, и низ карточки уходит под
   следующую секцию. Считаем высоту в макетных пикселях и умножаем на тот же
   `--zoom` — как и требует раскладка Тильды. Диапазон 480–640px не трогаем:
   там своя база (480px), и фиксированные 1605px в нём корректны. --- */

@media (max-width: 479px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: calc(1320px * var(--zoom, 1)) !important;
  }
}

/* --- 7. relationstroy.ru — заголовок «КТО ВЕДЕТ МАСТЕР-КЛАСС?» наезжал на
   фото Натальи на всех телефонах. При кегле 32px строка «МАСТЕР-КЛАСС?»
   не помещается в колонку и разрывается по дефису на третью строку, из-за
   чего низ заголовка перекрывает верх фотографии на 17–20px (замер на
   360/390/414/430). На 30px заголовок встаёт в две строки и не доходит до
   фото 23–28px на тех же ширинах. Тот же приём, что и для тандемного
   заголовка на планшете выше. --- */

@media (max-width: 479px) {
  .pi-site-relationstroy-ru #rec2470303601 .tn-elem[data-elem-id="1731902896910"] .tn-atom {
    font-size: 30px !important;
  }
}

/* --- 8. relationstroy.ru — семь из восьми сердечек обрезаны В САМИХ ФАЙЛАХ
   экспорта: у 1731901326835/838/842/845/848/851/854 непрозрачная область
   занимает весь холст 272×256 (bbox 0,0,272,256), то есть сердце упирается во
   все четыре края и его кончик срезан. Целый файл ровно один — у слоя
   1731901326832 (bbox 4,17,268,239). CSS не может вернуть отсутствующие
   пиксели, поэтому подставляем всем карточкам единственную целую картинку:
   сердечки на всех восьми карточках одинаковые. Вместе с `contain` из правила
   5 сердце теперь рисуется полностью на любой ширине. --- */

.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326835"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326838"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326842"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326845"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326848"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326851"] > .tn-atom,
.pi-site-relationstroy-ru #rec2470303491 .tn-elem[data-elem-id="1731901326854"] > .tn-atom {
  background-image: url("/wp-content/uploads/sites/6/pro-integry-assets/relationstroy.ru/images/tild6164-3865-4764-a637-613766663635__ac800520-aa78-4475-a.png") !important;
}

/* ==========================================================================
   Правки 08.08.2026, по замечаниям Кати (TG-бот, сообщения 21:22–21:28).
   ========================================================================== */

/* --- 9. touchqueen.ru/orgasmweb/ — попап «ОСТАВЬТЕ ЗАЯВКУ» (rec1458427741).
   Ровно та же поломка, что чинили 07.08 на /love/, только другой блок.
   Форма приехала из Тильды без своей раскладки, а поле телефона дописываем
   мы сами в ensureImportedTildaFields(): кнопка отправки НЕ является прямым
   ребёнком .t-form__inputsbox, поэтому вставка «перед кнопкой» не срабатывает
   и поле уходит в конец. DOM по факту: имя, e-mail, согласие, ошибки,
   кнопка, ТЕЛЕФОН. Плюс подпись согласия раскладывалась гридом в колонку
   (высота 111px вместо 21px), а кнопка осталась без заливки — прозрачный фон,
   тёмный текст, ширина 228px из 470, то есть выглядела просто жирной
   надписью «Отправить».
   Цвета текста НЕ трогаем: подложка этого попапа белая и текст на ней тёмный,
   в отличие от /love/, где попап тёмный и подпись согласия делали белой.
   Скоуп — только этот блок. --- */

#rec1458427741 .pi-tilda-restored .t-form__inputsbox {
  align-items: start !important;
}

#rec1458427741 .pi-tilda-restored .t-input-group_nm { order: 1 !important; }
#rec1458427741 .pi-tilda-restored .t-input-group_em { order: 2 !important; }

#rec1458427741 .pi-tilda-restored .t-input-group_ph {
  order: 3 !important;
  grid-column: 1 / -1 !important;
}

#rec1458427741 .pi-tilda-restored .t-input-group_cb {
  order: 4 !important;
  grid-column: 1 / -1 !important;
}

#rec1458427741 .pi-tilda-restored .t-form__errorbox-middle {
  order: 5 !important;
  grid-column: 1 / -1 !important;
}

#rec1458427741 .pi-tilda-restored .t-form__submit {
  order: 6 !important;
  grid-column: 1 / -1 !important;
}

/* подпись о согласии — одной строкой: квадратик, затем текст */
#rec1458427741 .pi-tilda-restored .t-checkbox__control {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
}

#rec1458427741 .pi-tilda-restored .t-checkbox__control > p {
  margin: 0 !important;
}

#rec1458427741 .pi-tilda-restored .t-checkbox__control > p:empty {
  display: none !important;
}

#rec1458427741 .pi-tilda-restored .t-checkbox__indicator {
  flex: 0 0 18px !important;
}

/* кнопка отправки — фирменный красный, как у остальных кнопок сайта */
#rec1458427741 .pi-tilda-restored .t-form__submit button {
  width: 100% !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: linear-gradient(89.28deg, #fc3858 0%, #d0203f 51%, #a7142d 100%) !important;
  color: #ffffff !important;
  cursor: pointer;
}

#rec1458427741 .pi-tilda-restored .t-form__submit button * {
  color: #ffffff !important;
}

/* =====================================================================
   08.08.2026 — замечания Натальи и Кати через TG-бот.
   ===================================================================== */

/* 1. Кнопки cookie-баннера были 66px вместо задуманных 44: min-height:44px
   считался по content-box, к нему прибавлялись 20px padding и 2px рамки.
   Одна строка возвращает кнопкам ровную высоту тач-зоны на всех шести сайтах. */
.pi-cookie-consent button {
  box-sizing: border-box;
}

/* 2. woman-love.ru: заголовочные зеро-блоки приехали с почти белым полотном
   (#fefefe), тогда как соседние блоки и фон страницы серые. Из-за этого сайт
   разваливался на полосы.
   08.08: свели к одному тону не только полотна заголовков, но и сам фон
   страницы. Прежняя пара #f4f0f1 / #f7f3f5 отличалась на три единицы и рядом
   с тёмно-красными блоками читалась просто как белая полоса — заказчик
   попросил, чтобы светлые участки визуально были СЕРЫМИ и страница смотрелась
   единым массивом. #e9e6e8 — тот же оттенок, уведённый в серый. */
.pi-site-woman-love-ru,
.pi-site-woman-love-ru body,
.pi-site-woman-love-ru #allrecords,
.pi-site-woman-love-ru #rec2470260101,
.pi-site-woman-love-ru #rec2470259941 .t396__artboard,
.pi-site-woman-love-ru #rec2470259961 .t396__artboard,
.pi-site-woman-love-ru #rec2470259981 .t396__artboard,
.pi-site-woman-love-ru #rec2470260081 .t396__artboard,
.pi-site-woman-love-ru #rec2470260091 .t396__artboard,
.pi-site-woman-love-ru #rec2470260121 .t396__artboard {
  background-color: #e9e6e8 !important;
}

/* 3. woman-love.ru, нижний блок с формой (rec2470260191). Верхний блок-близнец
   rec2470259891 мы уже развели 06.08, а этот остался с исходными координатами:
   подпись «Не забудьте проверить папки» лежала прямо на кнопке отправки, потому
   что наши поля (имя, телефон, согласие) выше исходной однополевой формы Тильды.
   Пустой errorbox Тильды дополнительно занимал ячейку грида и разрывал пару
   «e-mail + имя» — ошибки рисует наш .pi-form-status, поэтому его можно убрать. */
#rec2470260191 .pi-tilda-restored .t-form__errorbox-middle:not(.t-form__errorbox-middle_show) {
  display: none !important;
}

@media (max-width: 640px) {
  .pi-site-woman-love-ru #rec2470260191 .tn-elem[data-elem-id="1731899462669"] {
    top: 1221px !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(
    .tn-elem[data-elem-id="1776794554997"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"]
  ) {
    translate: 0 274px !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1765px !important;
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .pi-site-woman-love-ru #rec2470260191 .tn-elem[data-elem-id="1731899462669"] {
    top: 1054px !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1411px !important;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .pi-site-woman-love-ru #rec2470260191 .tn-elem[data-elem-id="1731899462669"] {
    top: 797px !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(
    .tn-elem[data-elem-id="1776794554997"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"]
  ) {
    transform: translateY(76px) !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1136px !important;
  }
}

@media (min-width: 1200px) {
  .pi-site-woman-love-ru #rec2470260191 .tn-elem[data-elem-id="1731899462669"] {
    top: 833px !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(
    .tn-elem[data-elem-id="1776794554997"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"]
  ) {
    transform: translateY(56px) !important;
  }

  .pi-site-woman-love-ru #rec2470260191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1256px !important;
  }
}

/* 4. Кнопки play из экспорта Тильды объявлены как SVG с width/height, но БЕЗ
   viewBox — у такой картинки нет внутренней пропорции. Blink достраивает её из
   атрибутов и рисует круг, WebKit (Safari на iPhone) берёт натуральную высоту
   68px при ширине 38 и превращает круг в вертикальный овал; в блоке
   rec2478717811 высота вырождается в 0 и три кнопки просто исчезают.
   Пропорция, заданная явно, чинит оба движка и в Chrome ничего не меняет. */
.pi-imported-page img[src*="__play.svg"],
.pi-imported-page img[src*="__play-transparent.svg"] {
  aspect-ratio: 1 / 1;
}

/* 5. touchqueen.ru/oralfree/ — «форма съехала в трёх местах».
   На странице три формы (rec1449475191, rec2371072661, rec1449475401). В
   экспорте Тильды у каждой было ОДНО поле e-mail, а имя, телефон и согласие
   добавляет наш рантайм — форма выросла примерно на 180px и легла на подпись
   «Не забудьте проверить папки», на плашку «Подарок за регистрацию» и вышла за
   низ своего зеро-блока. Плюс пустой errorbox Тильды занимал ячейку грида и
   разрывал пару «e-mail + имя», добавляя ещё две строки.
   Лечим тем же приёмом, что и relationstroy: убираем пустой errorbox, опускаем
   подпись под форму, сдвигаем нижний декор и наращиваем полотно блока. */
#rec1449475191 .pi-tilda-restored .t-form__errorbox-middle:not(.t-form__errorbox-middle_show),
#rec2371072661 .pi-tilda-restored .t-form__errorbox-middle:not(.t-form__errorbox-middle_show),
#rec1449475401 .pi-tilda-restored .t-form__errorbox-middle:not(.t-form__errorbox-middle_show) {
  display: none !important;
}

@media (max-width: 640px) {
  .pi-site-touchqueen-ru #rec1449475191 .tn-elem[data-elem-id="1731899462669"] {
    top: 1055px !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(
    .tn-elem[data-elem-id="1731899462712"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462716"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"]
  ) {
    transform: translateY(215px) !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1792px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 .tn-elem[data-elem-id="1781158100842000001"] {
    top: 1134px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1420px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 .tn-elem[data-elem-id="1733049754797"] {
    top: 742px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 955px !important;
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .pi-site-touchqueen-ru #rec1449475191 .tn-elem[data-elem-id="1731899462669"] {
    top: 1094px !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462716"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"]
  ) {
    transform: translateY(120px) !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1451px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 .tn-elem[data-elem-id="1781158100842000001"] {
    top: 1082px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1350px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 .tn-elem[data-elem-id="1733049754797"] {
    top: 693px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 885px !important;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .pi-site-touchqueen-ru #rec1449475191 .tn-elem[data-elem-id="1731899462669"] {
    top: 823px !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462716"],
    .tn-elem[data-elem-id="1731899462687"],
    .tn-elem[data-elem-id="1732524070768"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"]
  ) {
    transform: translateY(103px) !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1139px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 .tn-elem[data-elem-id="1781158100842000001"] {
    top: 930px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1035px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 .tn-elem[data-elem-id="1733049754797"] {
    top: 702px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 800px !important;
  }
}

@media (min-width: 1200px) {
  .pi-site-touchqueen-ru #rec1449475191 .tn-elem[data-elem-id="1731899462669"] {
    top: 859px !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(
    .tn-elem[data-elem-id="1731899462687"],
    .tn-elem[data-elem-id="1731899462697"],
    .tn-elem[data-elem-id="1731899462716"],
    .tn-elem[data-elem-id="1732524070768"],
    .tn-elem[data-elem-id="1731899462719"],
    .tn-elem[data-elem-id="1732590998817"],
    .tn-elem[data-elem-id="1731899462722"],
    .tn-elem[data-elem-id="1731899462725"],
    .tn-elem[data-elem-id="1731899462729"]
  ) {
    transform: translateY(102px) !important;
  }

  .pi-site-touchqueen-ru #rec1449475191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 1168px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 .tn-elem[data-elem-id="1781158100842000001"] {
    top: 837px !important;
  }

  .pi-site-touchqueen-ru #rec2371072661 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 900px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 .tn-elem[data-elem-id="1733049754797"] {
    top: 794px !important;
  }

  .pi-site-touchqueen-ru #rec1449475401 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: 865px !important;
  }
}

/* ==========================================================================
   Правки 08.08.2026, ночные сообщения Евгения (TG-бот, 00:04–00:10).
   ========================================================================== */

/* --- touchqueen.ru/oralfree/ — сердечки на карточках блока «ЭТОТ МАРАФОН
   СОЗДАН ДЛЯ ТЕБЯ» (rec1449475221) обрезаны. Та же болезнь, что чинили на
   relationstroy (правила 5 и 8 выше): у всех восьми PNG в экспорте
   touchqueen непрозрачная область занимает весь холст 272x256 (сердце
   упирается во все четыре края, кончик срезан в самом файле), а
   background-size: cover добавляет свой срез. Целая картинка на хостинге
   ровно одна — в ассетах relationstroy (тот же сайт-мультисеть, файл
   отдается по /wp-content/uploads/sites/6/... с этого же домена, проверено
   200). Подставляем её всем восьми слоям и вписываем целиком через
   contain: сердечки на карточках одинаковые, расхождение пропорций коробки
   и файла меньше 1%. --- */

.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326832"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326835"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326838"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326842"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326845"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326848"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326851"] > .tn-atom,
.pi-site-touchqueen-ru #rec1449475221 .tn-elem[data-elem-id="1731901326854"] > .tn-atom {
  background-image: url("/wp-content/uploads/sites/6/pro-integry-assets/relationstroy.ru/images/tild6164-3865-4764-a637-613766663635__ac800520-aa78-4475-a.png") !important;
  background-size: contain !important;
}

/* --- touchqueen.ru/webinarfree/ — блок с описанием мини-урока приехал без
   собственного фона. Соседний блок сверху (rec2329087501, «Хотите, чтобы между
   вами снова появилась химия…») объявлен белым, а заголовок «БЕСПЛАТНЫЙ
   МИНИ-УРОК» и список «В мини-уроке вы узнаете» — прозрачные, поэтому
   проступает розовато-серый фон страницы (#f7f3f5) и текст перестаёт читаться
   как единая белая карточка (макет Кати от 07.08). Цвет берём не на глаз, а
   ровно тот же, что у блока сверху. --- */
.pi-site-touchqueen-ru #rec2329089031,
.pi-site-touchqueen-ru #rec2329089731 {
  background-color: #ffffff !important;
}

/* --- touchqueen.ru/love/ — две плашки над фото в шапке (rec1454519011).
   На десктопе они стоят В РЯД, обе с y=60, иконка и текст вертикально по центру
   внутри своей плашки. При переносе мобильные координаты поехали:
   • вторая плашка 160px, а её текст 104px начинается с 163 — вылезал вправо
     на 37px прямо на фон;
   • плашки перекрывались по вертикали на 10px и читались как одна кривая
     ступенька;
   • иконка первой плашки торчала на 4px выше её верхнего края.
   Возвращаем замысел десктопа: плашка шире текста, между плашками зазор,
   иконки и подписи по центру. Значения проверены на 320/360/390/430/479. --- */
@media (max-width: 479px) {
  .pi-site-touchqueen-ru #rec1454519011 .tn-elem[data-elem-id="1729565844419"] { top: 26px !important; }
  .pi-site-touchqueen-ru #rec1454519011 .tn-elem[data-elem-id="1729565844421"] { top: 32px !important; }
  .pi-site-touchqueen-ru #rec1454519011 .tn-elem[data-elem-id="1729565844416"] { top: 72px !important; width: 192px !important; }
  .pi-site-touchqueen-ru #rec1454519011 .tn-elem[data-elem-id="1729565844425"] { top: 80px !important; }
  .pi-site-touchqueen-ru #rec1454519011 .tn-elem[data-elem-id="1729565844427"] { top: 78px !important; left: 150px !important; }
}

/* --- 08.08.2026, правки по замечаниям Евгения --- */

/* 1. Кнопка «ПОДТВЕРЖДАЮ» в окне 18+ рисовалась со светлой обводкой. Это не
   рамка, а кольцо фокуса: окно 18+ — диалог, и мы программно ставим фокус на
   кнопку (доступность, ловушка Tab). Браузер честно показывает :focus-visible.
   Заказчик просил обводку убрать — снимаем кольцо у этой одной кнопки.
   Фокус и ловушка Tab остаются, теряется только видимая рамка. */
#pi-age-gate #pi-age-confirm:focus,
#pi-age-gate #pi-age-confirm:focus-visible,
.pi-age-gate__dialog #pi-age-confirm:focus,
.pi-age-gate__dialog #pi-age-confirm:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* 2. Главная touchqueen.ru, заголовок «Преимущества обучения в школе
   TouchQueen — в коротком видео» (rec2478717711). В тексте стоит жёсткий <br>
   после «в школе» — на десктопе он делит заголовок на две ровные строки, а на
   телефоне строки и так переносятся, и получается рваная «школе» в одиночку.
   На мобильной перенос снимаем, десктоп не трогаем. */
@media (max-width: 479px) {
  .pi-site-touchqueen-ru #rec2478717711 .tn-elem[data-elem-id="1760891870884"] br {
    display: none;
  }
}

/* 3. Там же заголовок «Смотреть видео на Youtube (Для просмотра включите VPN)»
   (rec2478717811) набран 32px, тогда как соседние заголовки блоков — 26–30px
   («Почему выбирают» 30, «Для кого наши курсы?» 28, «Только реальные отзывы»
   26). Из-за этого он выпадал из ряда и занимал четыре строки. Приводим к 28px
   — размеру соседнего заголовка. */
@media (max-width: 479px) {
  .pi-site-touchqueen-ru #rec2478717811 .tn-elem[data-elem-id="1761026609406"] .tn-atom {
    font-size: 28px !important;
  }
}

/* --- woman-love.ru: галка согласия должна стоять ПОСЛЕ кнопки отправки
   (просьба заказчика). Кнопка `tn-form__submit` лежит внутри того же
   грид-контейнера, что и поля, и по умолчанию имеет order 0 — поэтому просто
   расставляем порядок: поля 1, кнопка 2, согласие 3, строка статуса 4.
   Только для телефонов: на десктопе форма в две колонки и порядок исходный. */
@media (max-width: 640px) {
  .pi-site-woman-love-ru .t-form .t-input-group,
  .pi-site-woman-love-ru .t-form .t-form__errorbox-middle { order: 1; }
  .pi-site-woman-love-ru .t-form .tn-form__submit { order: 2; }
  .pi-site-woman-love-ru .t-form .t-input-group_cb { order: 3; }
  .pi-site-woman-love-ru .t-form .pi-form-status { order: 4; }
}


/* --- Попап чек-листа на главной touchqueen.ru -------------------------------
   В оригинале Тильды «Оставьте заявку и получите бесплатно чек-лист» было
   всплывающим окном: в экспорт попал пустой попап-контейнер (#popup:time
   ссылается на запись 1492650481, которой в выгрузке нет), а содержимое
   развернули в страницу секцией rec2478718031. Возвращаем окно — оно всплывает
   через 4 секунды после подтверждения 18+ (логика в site-runtime.js).
   Модалкой блок делает КЛАСС, который вешает скрипт: если он не отработает,
   секция останется обычным блоком страницы и ничего не пропадёт. */
.pi-checklist-popup {
  display: none !important;
}

.pi-checklist-popup.pi-checklist-popup--open {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  margin: 0 !important;
  padding: 24px 0 !important;
  align-items: flex-start;
  justify-content: center;
  /* !important обязателен: Тильда печатает рядом с зеро-блоком инлайновый
     <style> с правилом `.t-rec#rec2478718031 { overflow: visible }` — id в
     селекторе перебивает наши два класса, и окно оставалось непрокручиваемым.
     Кнопка «ОТПРАВИТЬ ЗАЯВКУ» на iPhone (содержимое 889px против экрана 664)
     оказывалась за нижним краем, и заявку было не отправить. */
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(18, 8, 12, 0.72) !important;
}

/* Нижний отступ контейнера при переполнении flex-содержимого теряется (движок
   не включает end-padding в область прокрутки) — держим воздух под окном
   собственным отступом внутреннего блока. */
.pi-checklist-popup--open > .t396 {
  margin-bottom: 24px;
}

/* Ширину внутреннего блока НЕ ограничиваем: это зеро-блок Тильды, координаты
   его слоёв пересчитываются от ширины контейнера через --zoom. Если сжать
   контейнер до 560px, слои останутся на местах, рассчитанных для полной ширины,
   и содержимое уезжает за левый край (проверено — так и было). */
.pi-checklist-popup--open > * {
  width: 100%;
  max-width: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Крестик должен быть виден и кликабелен поверх содержимого. */
.pi-checklist-popup--open .tn-elem[data-elem-id="1761719329931"],
.pi-checklist-popup--open .tn-elem[data-elem-id="1761719387131"],
.pi-checklist-popup--open .tn-elem[data-elem-id="176171942637281770"] {
  z-index: 100001 !important;
}

/* --- touchqueen-sexqueen.ru, галерея отзывов (rec2472686531, блок T1148) -----
   В экспорт Тильды не попал собственный скрипт блока: `t1148_init` и
   `t_slds_init` на странице не существуют, грузится только общая библиотека
   tilda-slds. Поэтому 13 карточек выстраивались в один ряд, мельчали до
   нечитаемых и не листались, хотя стрелки на месте.
   Делаем полосу прокручиваемой с ФИКСИРОВАННОЙ высотой (иначе карточки тянутся
   до натуральных 1312px и блок раздувается в четыре раза), карточки — в высоту
   полосы, пропорции сохраняются. Обработчики стрелок вешает setupReviewSlider(). */
.pi-review-slider .t1148__slider {
  display: flex !important;
  align-items: center;
  gap: 16px;
  height: 450px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pi-review-slider .t1148__slider::-webkit-scrollbar { display: none; }

.pi-review-slider .t1148__item {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 100% !important;
  scroll-snap-align: center;
}

.pi-review-slider .t1148__item img {
  height: 100% !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

.pi-review-slider .t1148__control { cursor: pointer; z-index: 5; }

@media (max-width: 640px) {
  .pi-review-slider .t1148__slider { height: 340px; padding: 0 12px; gap: 10px; }
}

/* --- Показ элементов с анимацией появления Тильды ---------------------------
   Библиотека tilda-animation-2.0 в экспорте есть, но её инициализатор не
   вызывается, поэтому элементы с классом t-animate навсегда остаются в
   opacity:0 и scale(.9). Наш revealTildaAnimations() навешивает класс, когда
   элемент въезжает в экран; здесь — как он показывается. */
.pi-animate-shown {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- touchqueen.ru/free/ и /free/accessyes/ — шапка и первый экран -----------
   Мобильная шапка `tmenu-mobile` (rec1466390371 на /free/, rec1507400611 на
   accessyes) живёт ровно от 481px до 979px и всегда 64px высотой: ниже 481px
   её нет вообще (там бургер T450), от 1000px она прозрачная и заголовок сквозь
   неё виден по замыслу макета.
   Опускаем первый экран РОВНО на высоту шапки, чтобы одновременно:
   — заголовок «Бесплатные уроки школы TouchQueen» не уходил под шапку
     (перекрытие 15–41px; на accessyes правила не было вообще — жалоба Кати
     10.08 «заголовок под шапку ушёл в планшетной версии»);
   — верх картинки первого экрана упирался в низ шапки и белой полосы под ней
     не оставалось. Прежние 92/72px были «шапка + 8px запаса», и этот запас
     рисовался белым фоном полотна — та самая «белая полоска» на /free/.
   Замер на бою (WebKit-iPhone, 481/600/679/680/768/834/979): светлая полоса
   под шапкой 28/8/8/8px → 0 на всех ширинах, верх заголовка 110/97/84/84/76/
   73/112 при низе шапки 64, на 480, 1000 и 1440 не меняется ничего. */
@media (min-width: 481px) and (max-width: 979px) {
  .pi-site-touchqueen-ru.pi-path-free #rec2376648621,
  .pi-site-touchqueen-ru.pi-path-free-accessyes #rec2377906621 { padding-top: 64px !important; }
}

/* --- touchqueen.ru/free/ и /free/accessyes/ — подзаголовок в красной плашке --
   В планшетной полосе 640–959px Тильда даёт текстовому слою ту же ширину, что
   и плашке (550px), поэтому строка упиралась в скруглённый край: зазор 1–2px
   слева и справа, а во второй строке оставалось одно слово «доступе».
   На всех остальных ширинах поля 19–38px и строки ровные — приводим полосу к
   тому же виду: текст 360px (перенос делит фразу на 324 и 303px), плашка 400px,
   обе центрируем. Поля становятся 38px по бокам и 12px сверху/снизу — ровно как
   на десктопе (там 38 и 9–10). Высоту и вертикальное положение не трогаем.
   Замер на бою (WebKit-iPhone, 640/700/768/834/900/959): зазоры 38/38/12/12 на
   всех ширинах, две строки; в Chromium те же пропорции с учётом --zoom. */
@media (min-width: 640px) and (max-width: 959px) {
  .pi-site-touchqueen-ru.pi-path-free #rec2376648621 .tn-elem[data-elem-id="1470210011265"],
  .pi-site-touchqueen-ru.pi-path-free-accessyes #rec2377906621 .tn-elem[data-elem-id="1470210011265"] {
    width: 360px !important;
    left: calc(50% - 180px) !important;
  }

  .pi-site-touchqueen-ru.pi-path-free #rec2376648621 .tn-elem[data-elem-id="1781338617260"],
  .pi-site-touchqueen-ru.pi-path-free-accessyes #rec2377906621 .tn-elem[data-elem-id="1781338617260"] {
    width: 400px !important;
    left: calc(50% - 200px) !important;
  }
}

/* --- relationstroy.ru, блок «Подарок за регистрацию» (rec2470303431) ---------
   Внизу зияла пустота. Причина не в шрифте (Visby = наш локальный Montserrat,
   грузится; 5 из 7 блоков совпадают с экспортом Тильды до пикселя), а в НАШЕМ
   же правиле: полотно поднимали до 1320 макетных px против 1204 в исходнике,
   чтобы влезла наша форма — она выше тильдовской однополевой.
   Тонкость: одной цифрой не обойтись. Высота задана в макетных px и умножается
   на --zoom, а текст с ростом ширины переливается в меньшее число строк —
   поэтому лишнее место растёт: 14 / 159 / 249 / 311 / 348 / 448 макетных px
   на 320 / 360 / 390 / 414 / 430 / 479. Разводим по полосам ширин, оставляя
   ~24px запаса. На 320px не трогаем — там и так впритык.
   Замер на живом сайте: зазор стал 24 / 24 / 26 / 28 / 128, отрицательных
   (то есть обрезки содержимого) нет ни на одной ширине. */
@media (min-width: 360px) and (max-width: 389px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: calc(1185px * var(--zoom, 1)) !important;
  }
}

@media (min-width: 390px) and (max-width: 413px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: calc(1095px * var(--zoom, 1)) !important;
  }
}

@media (min-width: 414px) and (max-width: 429px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: calc(1035px * var(--zoom, 1)) !important;
  }
}

@media (min-width: 430px) and (max-width: 479px) {
  .pi-site-relationstroy-ru #rec2470303431 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: calc(1000px * var(--zoom, 1)) !important;
  }
}


/* --- woman-love.ru: строка согласия из-под подписи про папки «СПАМ» ----------
   Жалоба Евгения 08.08 «едет вёрстка на айфоне» — и это наша же правка от
   08.08: чтобы подпись «Не забудьте проверить папки "СПАМ" и "РАССЫЛКИ"» не
   лежала на кнопке отправки, мы опустили её с 758 на top:1221 в оба блока с
   формой. Но строка «Принимая участие, вы даете согласие…» стоит на 972 и
   входит в группу со сдвигом translate 274px, то есть по факту на 1246 — и
   подпись высотой ~34 макетных px приехала ровно на неё. Наложение 7–12
   макетных px, видно на обеих формах (rec2470259891 и rec2470260191).
   Опускаем строку согласия отступом: под ней до видео и до низа полотна место
   есть на всех телефонных ширинах (замер 320/360/390/414/430 — выходов за
   полотно 0, высота документа не изменилась). Диапазон 480–640 не трогаем:
   там своя база зума, и наложения по замеру нет. */
@media (max-width: 479px) {
  .pi-site-woman-love-ru .tn-elem[data-elem-id="1731899462722"] {
    margin-top: 16px !important;
  }
}

/* woman-love.ru, блоки-формы rec2470259891 и rec2470260191.
   Мы задали полотну ФИКСИРОВАННУЮ высоту 1765px на весь диапазон ≤640px, а
   содержимое зеро-блока масштабируется множителем --zoom (ширина/320). Контент
   занимает 1503 макетных px, то есть на 390px это уже 1832 — блок переполняется
   и следующая запись налезает: замер 320:-262  360:-74  390:+67  393:+81
   414:+180  430:+255  479:+485. Высоту полотна нужно считать в макетных px и
   умножать на --zoom — тот же приём, что для блока подарка на relationstroy.
   Диапазон 480–640 не трогаем: там своя база 480px, --zoom=1 и контент 1636. */
@media (max-width: 479px) {
  .pi-site-woman-love-ru #rec2470259891 :is(.t396__artboard, .t396__carrier, .t396__filter),
  .pi-site-woman-love-ru #rec2470260191 :is(.t396__artboard, .t396__carrier, .t396__filter) {
    height: calc(1512px * var(--zoom, 1)) !important;
  }
}

/* touchqueen.ru/oralfree/: подпись согласия у трёх форм страницы рисовалась
   цветом #494949 (а обёртка — вообще #17131b) на тёмном полотне #1c1b1b:
   контраст ~1.4:1, текст практически не виден. Наш applyStatusContrast()
   считает светлоту фона только для сообщения об отправке, подпись согласия он
   не покрывает. Красим поимённо три блока этой страницы — чужие формы,
   которые лежат на светлом фоне, правило не трогает. */
#rec1449475191 .pi-restored-tilda-field--consent,
#rec2371072661 .pi-restored-tilda-field--consent,
#rec1449475401 .pi-restored-tilda-field--consent,
#rec1449475191 .pi-restored-tilda-field--consent :is(label, span, .t-checkbox__control),
#rec2371072661 .pi-restored-tilda-field--consent :is(label, span, .t-checkbox__control),
#rec1449475401 .pi-restored-tilda-field--consent :is(label, span, .t-checkbox__control) {
  color: #e9e6e8 !important;
}

#rec1449475191 .pi-restored-tilda-field--consent a,
#rec2371072661 .pi-restored-tilda-field--consent a,
#rec1449475401 .pi-restored-tilda-field--consent a {
  color: #ff9db3 !important;
  text-decoration-color: #ff9db3 !important;
}


/* touchqueen.ru, главная, блок «Новинки, акции и скидки» (rec2478718011):
   на телефоне круглые стрелки слайдера слипались и даже налезали друг на друга.
   Ширина контейнера стрелок считается от ширины экрана, а сами стрелки
   фиксированные 44px: зазор = ширина контейнера − 88, то есть −18 на 320px,
   −9 на 360, −3 на 390, +3 на 414. Минимальная ширина 104px даёт ровный
   зазор 16px и ничего не меняет там, где контейнер и так шире. */
@media (max-width: 479px) {
  .t-slds__arrow_container.t-slds__arrow_container-center { min-width: 104px; }
}


/* touchqueen.ru, подвал страниц /voice/ и /sexting/ (блоки T134): логотип
   растягивало по высоте. Наш рендер проставляет картинке атрибуты
   width/height ради CLS (здесь 1680×455), а стили Тильды зажимают ширину
   `.t134__img{max-width:300px}` и высоту не отпускают — браузер рисовал
   300×455 вместо 300×81, надпись становилась узкой и высокой. Возвращаем
   высоту по пропорции. */
.pi-imported-page .t134__img { height: auto; }



/* touchqueen.ru, /free/ и /free/accessyes/ — мобильное меню T450: круглая
   подложка под иконкой бургера выглядела съехавшей вниз. Причина наша:
   правило тач-зон `min-height:44px` для кнопок растягивает саму кнопку
   `.t-menuburger` с положенных 20px до 44px, а три полоски внутри неё
   позиционированы абсолютно от её верха — иконка прижималась к верху круга,
   снизу оставался пустой зазор 12–14px. Тач-зоной служит сам круг 58×58
   (клик ловит подложка `.t450__burger_bg`, проверено на бою), поэтому
   минимальный размер кнопке не нужен. */
@media (max-width: 640px) {
  .pi-imported-page button.t-menuburger,
  .pi-site-touchqueen-ru button.t-menuburger,
  .pi-site-touchqueen-amour-ru button.t-menuburger { min-height: 0; min-width: 0; }
}

/* --- touchqueen-sexqueen.ru — мобильная шапка, страховка от кэша (11.08.2026)
   Гашение `#rec2472686331 { display:none !important }` убрано из site-fixes.css,
   но тот файл подключён из импортированной разметки со СТАТИЧНЫМ `?v=20260731-3`
   и отдаётся с `Cache-Control: max-age=3888000` (45 дней). У всех, кто открывал
   сайт раньше, в кэше останется старая версия с гашением — и меню на телефоне
   у них не вернётся. Здесь тема, её версия считается из filemtime, поэтому
   правило приезжает сразу. Специфичность (html body #id) заведомо выше, чем
   у `#rec2472686331` из кэша, значит порядок подключения роли не играет.
   Ниже 980px десктопное меню #rec2472686291 прячет сама Тильда
   (.t-screenmin-980px), поэтому эта шапка там единственная. */
@media (max-width: 979px) {
  html body.pi-site-touchqueen-sexqueen-ru #rec2472686331 { display: block !important; }
}


/* --- pi-fix-1108-slider-bullets -------------------------------------------------
   11.08.2026. Жалоба Ирины: «в мобильной версии под отзывами были точки,
   сейчас овальные формы» (touchqueen.ru/poses/, блок отзывов rec1458496341).
   Точка Тильды — это <button class="t-slds__bullet_body"> 8×8 с
   border-radius:100px. Наши правила мобильных тач-зон выше по файлу
   (@media max-width:640px, селекторы через :where(...)) навязывают ей
   min-height:44px, и точка превращается в вертикальный овал 8×44.
   Замер на бою, iPhone 13: 8×44 и в Chromium, и в WebKit.
   Снимаем минимум только с самих точек. !important не нужен: :where()
   даёт нулевую специфичность, обычный класс её перебивает.
   Паддинг li.t-slds__bullet намеренно НЕ меняем — 20 точек по 18px уже
   занимают 360 из 375px ширины экрана, расширение даст переполнение. */
@media (max-width: 640px) {
  .pi-imported-page .t-slds__bullet_body,
  .pi-site-touchqueen-ru .t-slds__bullet_body,
  .pi-site-touchqueen-amour-ru .t-slds__bullet_body {
    min-width: 0;
    min-height: 0;
  }
}


/* --- pi-fix-1108-gifts-fetish-mobile -------------------------------------------
   11.08.2026, две просьбы Натальи через Евгения (msg-604/605), только мобильная.

   1) touchqueen.ru/gifts/, первый экран (rec1458758801).
      «до 14 февраля прописать в одну строчку и вернуть кнопку чуть выше на
      подложку». В разметке Тильды дата свёрстана жёстким переносом —
      <strong>до 14-го</strong><br><strong>ФЕВРАЛЯ!</strong> — и лежит в слое
      шириной 124px, поэтому white-space одной строки не даёт: гасим сам <br>
      и подставляем неразрывный пробел, ширину отпускаем по содержимому
      (стало 106px из 320 макетных, правый край 221 — за экран не выходит).
      Кнопка «Присоединиться» стояла на top:681px при высоте 50px, а подложка
      (elem 1707225854864) заканчивается на 722px — кнопка свисала на 9px.
      Поднимаем на 648px: сверху остаётся привычный зазор 7px от даты (ровно
      как было в макете), снизу до края подложки 24px.

   2) touchqueen.ru/fetish/, тарифы (rec1675938691).
      «чёрные подложки должны под кнопки заходить». Кнопки «ДОЛЯМИ ОТ…» и
      «В РАССРОЧКУ ОТ…» добавлены в Тильде позже, а высоту подложек под них не
      увеличили: тариф 1 не докрывал 35px, тарифы 2 и 3 — 93 и 96px.
      Ставим высоту так, чтобы под последней кнопкой оставалось 24px у всех
      трёх карточек; зазоры между карточками становятся 21/22px, высота блока
      (1929px) не меняется. На 480–639px кнопки и так внутри — там не трогаем.

   !important обязателен: t396_initialScale пишет top/left/width/height
   инлайном на каждый .tn-elem, и правило без !important проигрывает инлайну.
   Проверено симуляцией на живых страницах (WebKit-iPhone 390 и 600px):
   docW 390/600 и высота документа не изменились, JS-ошибок 0. */
@media screen and (max-width: 479px) {
  /* дата «до 14-го ФЕВРАЛЯ!» — в одну строку */
  html body.pi-site-touchqueen-ru #rec1458758801 .tn-elem[data-elem-id="1707225854883"] {
    width: auto !important;
    height: auto !important;
  }

  html body.pi-site-touchqueen-ru #rec1458758801 .tn-elem[data-elem-id="1707225854883"] .tn-atom {
    white-space: nowrap !important;
  }

  html body.pi-site-touchqueen-ru #rec1458758801 .tn-elem[data-elem-id="1707225854883"] .tn-atom br {
    display: none;
  }

  html body.pi-site-touchqueen-ru #rec1458758801 .tn-elem[data-elem-id="1707225854883"] .tn-atom br + strong::before {
    content: "\00a0";
  }

  /* кнопка «Присоединиться» — внутрь подложки */
  html body.pi-site-touchqueen-ru #rec1458758801 .tn-elem[data-elem-id="1707225854900"] {
    top: 648px !important;
  }

  /* тарифные подложки /fetish/ — под три кнопки */
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1735013654597"] {
    height: 622px !important;
  }

  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1765386276692000010"] {
    height: 603px !important;
  }

  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1765386250655000001"] {
    height: 606px !important;
  }
}


/* --- pi-fix-1108-fetish-desktop -------------------------------------------------
   11.08.2026, продолжение правки msg-605 — тот же дефект на ДЕСКТОПЕ.
   touchqueen.ru/fetish/, блок тарифов rec1675938691.

   Кнопки «ДОЛЯМИ ОТ…» и «В РАССРОЧКУ ОТ…» добавлены в Тильде в феврале 2026,
   уже после вёрстки карточек, и высоту чёрных подложек под них не увеличили.
   Мобильную полосу закрыли утром (блок pi-fix-1108-gifts-fetish-mobile), здесь
   те же кнопки свисают из-под подложек на широких экранах.

   1) 1200px и шире (базовая сетка 1200). Подложки 86..566, последние кнопки
      кончаются на 609/610/611 — свисало 43/44/45px. Ставим низ 623 у всех трёх
      (высота 480 → 537): под кнопкой остаётся 14/13/12px — ровно тот отступ,
      что в оригинале был под кнопкой «УЧАВСТВОВАТЬ». Полотно блока 626px не
      трогаем, высота секции не меняется.

   2) 960…1199px (сетка 960). Здесь кнопки идут в два ряда и кончаются на
      623/621/623, а подложки — на 547/565/632. У «Тарифа 3» подложка уже
      накрывает свои кнопки, поэтому первые две подтягиваем к тому же низу 632.
      Заодно вписываем кнопки внутрь подложек: в этой полосе они шире карточки —
      у «Тарифа 1» вылезали на 10px влево, у «Тарифа 2» на 4px вправо, у
      «Тарифа 3» стояли со сдвигом (8px слева, 21px справа). Даём всем ровный
      отступ 10px с каждой стороны.

   Полосы 480…959px и мобильную (≤479px) не трогаем: там кнопки и так внутри
   подложек (замер на бою: запас 12…24px).

   !important обязателен: t396_initialScale пишет top/left/width/height инлайном
   на каждый .tn-elem, правило без !important проигрывает инлайновому стилю.
   Проверено симуляцией на живой странице (WebKit, ширины 1920/1600/1440/1200/
   1100/960): docW и высота блока (626 / 656) не изменились. */
@media screen and (min-width: 1200px) {
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1735013654597"],
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1765386276692000010"],
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1765386250655000001"] {
    height: 537px !important;
  }
}

@media screen and (min-width: 960px) and (max-width: 1199px) {
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1735013654597"] {
    height: 565px !important;
  }

  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1765386276692000010"] {
    height: 547px !important;
  }

  /* «Тариф 1» — кнопки внутрь подложки, отступ 10px с каждой стороны */
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1770292339379000004"],
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1770292339379000003"] {
    left: calc(50% - 480px + 20px) !important;
    width: 280px !important;
  }

  /* «Тариф 2» */
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1770292353290000006"],
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1770292353290000005"] {
    left: calc(50% - 480px + 340px) !important;
    width: 280px !important;
  }

  /* «Тариф 3» — подложка шире (319px), отступ тот же */
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1770289539163000002"],
  html body.pi-site-touchqueen-ru #rec1675938691 .tn-elem[data-elem-id="1735013828408"] {
    left: calc(50% - 480px + 661px) !important;
    width: 299px !important;
  }
}




/* pi-fix-1108-wl-hero-gradient — woman-love.ru, первый экран rec2470259891
   и его дубль внизу страницы rec2470260191 (Катя, 11.08).
   Тёмный градиент 1732524070768 объявлен шириной 1467px с привязкой к правому
   краю, поэтому его левая граница стоит на (ширина окна − 1400) — на любом
   экране шире 1400px слева остаётся неприкрытая вертикальная полоса
   (1440 → 40px, 1600 → 200px, 1920 → 520px). Градиент вертикальный
   (linear-gradient(0deg, …)), по горизонтали однородный, поэтому растягивание
   влево до края окна ничего не искажает. Правый край не трогаем. */
@media screen and (min-width: 1400px) {
  html body.pi-site-woman-love-ru .t396 .tn-elem[data-elem-id="1732524070768"] {
    left: 0 !important;
    width: calc(100% + 67px) !important;
  }
}





/* pi-fix-1108-amour-popup-form — touchqueen-amour.ru, попап «Оставьте заявку»
   (rec1448100281, кнопка «Оставить заявку» в подвале). Катя, 11.08:
   «форму эту немного подправить надо, там поля явно съехали».
   Три причины: (1) .t-form__inputsbox — это grid, а наше поле e-mail
   (ensureImportedTildaFields) дописывается в конец бокса, потому что submit
   лежит не прямо в боксе, а в обёртке .t-form__submit, — поле вставало СПРАВА
   от кнопки; (2) чекбокс согласия занимал одну колонку из двух и текст ломался
   на две строки; (3) фирменный <style> кнопки (#c20e0e, радиус 30px) при
   импорте потерялся, кнопка рисовалась обычным тёмным текстом.
   Порядок задаём order-ом, ширину — grid-column, кнопке возвращаем стиль Тильды. */
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > * { order: 5; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-input-group_nm { order: 1; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-input-group_ph { order: 2; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .pi-restored-tilda-field--email { order: 3; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-input-group_cb { order: 4; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-form__errorbox-middle { order: 6; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-form__submit { order: 7; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .pi-restored-tilda-field--email,
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-input-group_cb,
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-form__errorbox-middle,
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-form__inputsbox > .t-form__submit { grid-column: 1 / -1; }
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-submit {
  width: 100%;
  color: #ffffff;
  background-color: #c20e0e;
  border: none;
  border-radius: 30px;
  box-shadow: none;
}
html body.pi-site-touchqueen-amour-ru #rec1448100281 .t-submit:hover { background-color: #9f0e0e; }






/* Сообщение об ошибке под полем. Без этого блока оно попадало под правило,
   которое прячет подписи полей, и посетитель не понимал, почему форма не
   отправляется (замер на бою 12.08: текст есть, размер 1x1 px). */
.pi-site-touchqueen-amour-ru .pi-amour-contact__form .pi-field-error {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 6px 0 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  color: #ff6b6b;
  font: 500 13px/1.35 Raleway, Arial, sans-serif;
}

/* pi-fix-1408-404 — страница 404 в дизайне Тильды (rec2488547411, слаг error).
   Заявка заказчицы 14.08: «восстановить страницу 404 в дизайне с тильды».
   Зеро-блок у неё фиксированной высоты (880px на десктопе), поэтому на
   высоком экране под карточкой оставалась пустая полоса фона страницы.
   Растягиваем полотно с лепестками на весь экран — карточка стоит на месте,
   она позиционирована абсолютно внутри артборда. */
body.pi-path-error #rec2488547411 .t396__artboard,
body.pi-path-error #rec2488547411 .t396__filter,
body.pi-path-error #rec2488547411 .t396__carrier {
  min-height: 100vh;
}

/* /orgasm/: блок с заголовком «Отзывы моих учениц» имеет артборд высотой 1px,
   а сам заголовок — 48px и позиционирован абсолютно. На планшете (641–1023px)
   он вываливался из своего блока и ложился на скриншоты отзывов ниже. В
   макете Тильды та же беда, поэтому просто отдаём блоку недостающую высоту.
   На телефоне и от 1024px наложения нет — там не трогаем. */
@media (min-width: 641px) and (max-width: 1023px) {
  .pi-site-touchqueen-ru #rec1458632081 {
    padding-bottom: 62px;
  }
}

/* Лента статей, для которых карточки в ручном списке ещё нет. Стоит сразу за
   последним рядом карточек и повторяет их оформление: тёмная карточка,
   белый заголовок, красная подпись и дата. Ручной список собран в блоках
   Тильды с жёсткими координатами, дописывать в него программно нельзя. */
/* Ряды карточек в исходном списке лежали на тёмной подложке #101010, и она
   исчезла вместе с ними. Возвращаем её на всю ширину, иначе тёмные карточки
   повисали на светлом фоне страницы. */
.pi-blog-auto {
  padding: 0 0 64px;
  background: #101010;
}

.pi-blog-auto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 40px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.pi-blog-auto__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease;
}

.pi-blog-auto__card:hover,
.pi-blog-auto__card:focus-visible { transform: translateY(-3px); }

.pi-blog-auto__pic {
  display: block;
  aspect-ratio: 358 / 300;
  overflow: hidden;
  background: #2a2a2a;
}

.pi-blog-auto__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pi-blog-auto__body {
  display: block;
  padding: 22px 28px 26px;
}

.pi-blog-auto__title {
  display: block;
  margin: 0 0 14px;
  color: #fff;
  font: 700 20px/1.3 Montserrat, Arial, sans-serif;
}

.pi-blog-auto__brand {
  display: block;
  margin: 0 0 10px;
  /* На тёмной карточке фирменный красный давал контраст 3.66 при норме 4.5,
     приёмочный прогон это ловит. Берём тот же оттенок посветлее: 5.1. */
  color: #ff5d73;
  font: 400 16px/1.3 Montserrat, Arial, sans-serif;
}

.pi-blog-auto__date {
  display: block;
  color: #9b9b9b;
  font: 400 15px/1.3 Montserrat, Arial, sans-serif;
}

@media (max-width: 960px) {
  .pi-blog-auto__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .pi-blog-auto__grid { grid-template-columns: 1fr; gap: 22px; }
  .pi-blog-auto__body { padding: 18px 20px 22px; }
  .pi-blog-auto__title { font-size: 18px; }
}

/* Планшетная шапка: кнопка «хочу на курс» на ширинах до 1199 px сворачивается
   в круг-бургер, а её подпись сохраняла десктопные координаты и печаталась
   поверх «личный кабинет» — клиент прислала это как «подложки в меню съехали».
   Прячем подпись, пока кнопка свёрнута. На 1200 и шире всё как было. */
@media screen and (max-width: 1199px) {
  #rec2480679291 .tn-elem[data-elem-id="176155714602526120"] { display: none !important; }
  /* На этих же ширинах кнопка меню оставалась пустым красным кружком: значок
     из трёх полосок живёт в другой записи шапки, для узких экранов. Рисуем
     полоски прямо на кнопке, чтобы её было видно как меню. */
  #rec2480679291 .tn-elem[data-elem-id="176119750830220850"] .tn-atom { position: relative; }
  #rec2480679291 .tn-elem[data-elem-id="176119750830220850"] .tn-atom::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50% - 4px);
    width: 16px;
    height: 2px;
    margin-left: -8px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 8px 0 #fff;
    pointer-events: none;
  }
}

/* Вебинар по минету, «Тайные мужские фантазии» и «Сквирт»: в курсе один урок, и в мобильной галерее
   осталась одна карточка. Стрелки листания там ведут на ту же самую карточку, поэтому
   прячем их. На страницах с двумя и более уроками стрелки остаются. */
#rec1531180111 .tn-elem[data-elem-id="1762516611578"] .t-slds__arrow_wrapper,
#rec1531191231 .tn-elem[data-elem-id="1762516611578"] .t-slds__arrow_wrapper,
#rec1531211231 .tn-elem[data-elem-id="1762516611578"] .t-slds__arrow_wrapper { display: none !important; }

/* Плашки-якоря на страницах курсов («для кого этот курс», «уроки в курсе» и
   так далее). На планшете и телефоне пилюля рисуется выше своего слоя: 44 px
   против 26–33 px у ряда, и соседние ряды налезали друг на друга. Прижимаем
   высоту пилюли к ряду; на десктопе всё остаётся как было. */
@media screen and (max-width: 959px) {
  #rec1526817861 .tn-elem[data-elem-type="button"] .tn-atom { height: 38px !important; min-height: 0 !important; }
}
@media screen and (max-width: 479px) {
  #rec1526817861 .tn-elem[data-elem-type="button"] .tn-atom { height: 26px !important; }
}


/* ── Страница-копия «Тайский эротический боди-боди массаж» ──────────────────
   Правки геометрии лежат в разметке, но сохранение из редактора, открытого до
   них, возвращает старую копию: за день так дважды слетали отступы. Дублируем
   те же значения стилем, он живёт в теме и сохранением не затирается. */

/* хлебные крошки: длинное название курса должно помещаться целиком */
.page-id-846 #rec1517067251 .t396__artboard { height: 44px !important; }
.page-id-846 #rec1517067251 .tn-elem[data-elem-id="1761110509029"] { width: 900px !important; }
@media screen and (max-width: 1199px) {
  .page-id-846 #rec1517067251 .tn-elem[data-elem-id="1761110509029"] { width: 900px !important; }
}
@media screen and (max-width: 959px) {
  .page-id-846 #rec1517067251 .tn-elem[data-elem-id="1761110509029"] { width: 600px !important; }
}
@media screen and (max-width: 639px) {
  .page-id-846 #rec1517067251 .tn-elem[data-elem-id="1761110509029"] { width: 440px !important; }
}
@media screen and (max-width: 479px) {
  .page-id-846 #rec1517067251 .t396__artboard { height: 76px !important; }
  .page-id-846 #rec1517067251 .tn-elem[data-elem-id="1761110509029"] { height: auto !important; }
  .page-id-846 #rec1517067251 .tn-elem[data-elem-id="1761110509029"] .tn-atom { white-space: normal !important; }
}

/* блок «О курсе»: текст курса длиннее исходного и наезжал на кнопку */
@media screen and (max-width: 639px) {
  .page-id-846 #rec1515793521 .t396__artboard { height: 772px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102636528287780"] { height: 760px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760958730920"] { top: 253px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760959911700"] { top: 262px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760960896610"] { top: 270px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760961698360"] { top: 264px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="1761217821910"]      { top: 339px !important; }
}
@media screen and (max-width: 479px) {
  .page-id-846 #rec1515793521 .t396__artboard { height: 668px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102636528287780"] { height: 650px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760958730920"] { top: 241px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760959911700"] { top: 249px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760960896610"] { top: 258px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="176102760961698360"] { top: 256px !important; }
  .page-id-846 #rec1515793521 .tn-elem[data-elem-id="1761217821910"]      { top: 315px !important; }
}
