/* CSS проекта Тильды («Настройки сайта → Ещё → CSS»). Источник — этот файл: в Тильду попадает целиком
   (update_project_css_code), правки в Тильде переносить сюда. Здесь только подгонка стандартных блоков
   под дизайн-систему; Zero и вайб-блоки стилизуются сами. Селекторы — по id блока (#rec…): у копий блока
   на других страницах свои id — дописывать их в список. */

/* ── Акции (home-03-promo) — блок FR502N «Колонки на фоне»: главная #rec5063764201, /abonementy #rec5072485901 (копия).
   Новая копия — дописать её id в :is(…) каждого правила ── */
:is(#rec5063764201, #rec5072485901) { padding-top: 72px !important; padding-bottom: 0 !important; }
/* Обложка без своей высоты и фона — это плашка 1160px */
:is(#rec5063764201, #rec5072485901) .t-cover { box-sizing: border-box; width: calc(100% - 40px); max-width: 1160px; height: auto !important; margin: 0 auto;
  border: 1px solid rgba(245, 240, 230, .06); border-radius: 30px; background: #1C1915 !important; text-align: left; } /* фон — инлайн у Тильды */
:is(#rec5063764201, #rec5072485901) .t-cover__carrier, :is(#rec5063764201, #rec5072485901) .t-cover__filter { display: none; }
:is(#rec5063764201, #rec5072485901) .t-cover .t-container { position: static; width: auto; max-width: none; }
:is(#rec5063764201, #rec5072485901) .t-cover__wrapper { display: block; width: auto; height: auto !important; }
/* Шапка (надзаголовок + заголовок) и кнопка — в строку, карточки — ниже на всю ширину */
:is(#rec5063764201, #rec5072485901) .t-cover__wrapper > .t1031__wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 36px 40px; }
:is(#rec5063764201, #rec5072485901) .t1031__textwrapper { order: 1; width: auto; max-width: none; margin: 0; padding: 0; }
:is(#rec5063764201, #rec5072485901) .t1031__buttonwrapper { order: 2; margin: 0; }
:is(#rec5063764201, #rec5072485901) .t1031__blockswrapper { order: 3; flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 12px 0 0; }
:is(#rec5063764201, #rec5072485901) .t1031__blockswrapper::before, :is(#rec5063764201, #rec5072485901) .t1031__blockswrapper::after { content: none; } /* клирфикс Тильды — не ячейка сетки */
:is(#rec5063764201, #rec5072485901) .t1031__uptitle { display: block; width: fit-content; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 225, 0, .12); color: #FFE100; font: 500 13px/1.5 'Onest', sans-serif; letter-spacing: 0; text-transform: none; }
:is(#rec5063764201, #rec5072485901) .t1031__textwrapper .t1031__title { margin: 0; color: #F5F0E6; font: 600 26px/1.2 'Unbounded', sans-serif; letter-spacing: 0; }
:is(#rec5063764201, #rec5072485901) .t1031__buttonwrapper .t-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 50px; padding: 0 24px; line-height: 1; white-space: nowrap; text-decoration: none; }
/* Карточки */
:is(#rec5063764201, #rec5072485901) .t1031 .t-list__item { box-sizing: border-box; width: auto; max-width: none; margin: 0 !important; padding: 20px;
  border-radius: 20px; background: #12100E; }
:is(#rec5063764201, #rec5072485901) .t1031__blockswrapper .t1031__title { margin: 0; color: #FFE100; font: 600 26px/1.1 'Unbounded', sans-serif; }
:is(#rec5063764201, #rec5072485901) .t1031__blockswrapper .t1031__title span { display: block; margin-top: 4px; color: #857D71; font: 400 14px 'Onest', sans-serif; }
:is(#rec5063764201, #rec5072485901) .t1031__blockswrapper .t1031__descr { margin: 10px 0 0; color: #C8C0B3; font: 400 14px/1.45 'Onest', sans-serif; }
@media (max-width: 979px) {
  :is(#rec5063764201, #rec5072485901) .t1031__blockswrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(#rec5063764201, #rec5072485901) .t-cover__wrapper > .t1031__wrapper { padding: 30px 26px; }
}
@media (max-width: 639px) {
  :is(#rec5063764201, #rec5072485901) { padding-top: 56px !important; }
  :is(#rec5063764201, #rec5072485901) .t1031__textwrapper .t1031__title { font-size: 21px; }
}
@media (max-width: 479px) {
  :is(#rec5063764201, #rec5072485901) .t-cover { width: calc(100% - 20px); border-radius: 26px; }
  :is(#rec5063764201, #rec5072485901) .t-cover__wrapper > .t1031__wrapper { padding: 26px 16px; }
  :is(#rec5063764201, #rec5072485901) .t1031__blockswrapper { grid-template-columns: 1fr; }
  :is(#rec5063764201, #rec5072485901) .t1031__buttonwrapper, :is(#rec5063764201, #rec5072485901) .t1031__buttonwrapper .t-btn { width: 100%; }
}

/* ── Частые вопросы (home-09-faq) — блок SV503 «Раскрывающиеся пункты справа»: главная #rec5067033601 ── */
#rec5067033601 { padding-top: 0 !important; padding-bottom: 100px !important; }
#rec5067033601 .t1119__container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; box-sizing: border-box;
  max-width: 1200px; padding: 0 20px; }
#rec5067033601 .t1119__container::before, #rec5067033601 .t1119__container::after { content: none; } /* клирфикс Тильды — не ячейка сетки */
#rec5067033601 .t1119 .t-col { float: none; width: auto; max-width: none; margin: 0; padding: 0; }
#rec5067033601 .t1119__title { margin: 0 0 16px; color: #F5F0E6; font: 600 clamp(32px, 4vw, 52px)/1.1 'Unbounded', sans-serif; letter-spacing: -.02em; }
/* Описание: текст и ссылки мессенджеров — «пилюли» строкой ниже */
#rec5067033601 .t1119__descr { display: flow-root; margin: 0; color: #A79F92; font: 400 16px/1.55 'Onest', sans-serif; }
#rec5067033601 .t1119__descr a { float: left; margin: 20px 8px 0 0; padding: 11px 16px; border-radius: 999px; background: rgba(245, 240, 230, .07);
  color: #E6DFD3; font-size: 14px; line-height: 1.5; text-decoration: none; transition: background .2s; }
#rec5067033601 .t1119__descr a:hover { background: rgba(245, 240, 230, .15); }
/* Список — плашка, вопросы через разделитель (цвет линии — в настройках блока) */
#rec5067033601 .t1119 .t-col:nth-child(2) { box-sizing: border-box; padding: 8px 28px; border: 1px solid rgba(245, 240, 230, .06); border-radius: 26px; background: #1C1915; }
#rec5067033601 .t1119__accordion:first-child .t1119__header { border-top: 0 !important; }
#rec5067033601 .t1119__border { display: none; }
#rec5067033601 .t1119__trigger-button { display: flex; align-items: center; box-sizing: border-box; min-height: 70px; padding: 20px 50px 20px 0; }
#rec5067033601 .t1119__header-title { color: #F5F0E6; font: 500 16px/1.4 'Onest', sans-serif; }
#rec5067033601 .t1119__icon { width: 30px; height: 30px; transition: fill .25s; }
/* hover закрытого вопроса — фон значка .16 на плашке #1C1915 (непрозрачно: заливка SVG) */
#rec5067033601 .t1119__header:not(.t_faq__header_opened) .t1119__trigger-button:hover .t1119__icon { fill: rgb(63, 59, 54); }
/* раскрытый — жёлтый и при наведении: hover-правило блока (#rec .t_faq__trigger-button:hover .t1119__icon) иначе возвращает серый */
#rec5067033601 .t1119__header.t_faq__header_opened .t_faq__trigger-button .t1119__icon { fill: #FFE100; stroke: #15120E; }
#rec5067033601 .t1119__content { margin-top: -6px; }
#rec5067033601 .t1119__textwrapper { padding: 0 50px 20px 0; }
#rec5067033601 .t1119__text { color: #B5AC9E; font: 400 15px/1.6 'Onest', sans-serif; }
@media (max-width: 979px) {
  #rec5067033601 .t1119__container { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 639px) {
  #rec5067033601 { padding-bottom: 72px !important; }
}
@media (max-width: 479px) {
  #rec5067033601 .t1119__container { padding: 0 16px; }
  #rec5067033601 .t1119 .t-col:nth-child(2) { padding: 4px 18px; border-radius: 22px; }
  #rec5067033601 .t1119__textwrapper { padding-right: 0; }
}

/* ── Формы Zero-блоков (класс элемента формы rl-form): выбор кнопками-«пилюлями», свои чекбоксы, рамка поля в фокусе.
   Используется: home-10-trial (заявка на пробное), all-50-consult (консультация). У формы Zero нет вида «кнопки» для выбора —
   дорисовываем здесь ── */
.rl-form .t-input { padding: 0 18px; }
.rl-form .t-input-title { line-height: 1.5; }
.rl-form :is(.t-input, .t-select):focus { border-color: #FFE100 !important; } /* цвет рамки — инлайн у Тильды */
.rl-form .t-select option { color: #F5F0E6; background: #12100E; } /* раскрытый список — светлым по тёмному, как в прототипе */
/* Выбор из двух — «пилюли» в две колонки (≤479 — в одну) */
.rl-form .t-input-group_rd .t-radio__wrapper { margin: 0 0 4px; } /* сверху хватает отступа группы — в прототипе отступы складываются */
.rl-form .t-input-group_rd .t-radio__wrapper fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-form .t-input-block .t-radio__control { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: auto;
  height: 50px; margin: 0; padding: 0 12px; border-radius: 999px; background: rgba(245, 240, 230, .07); color: #E6DFD3 !important;
  font-size: 15px; line-height: 1.2; text-align: center; transition: background .2s, color .2s; }
.rl-form .t-input-block .t-radio__control:not(:has(.t-radio:checked)):hover { background: rgba(245, 240, 230, .15); }
.rl-form .t-input-block .t-radio__control:has(.t-radio:checked) { background: #F5F0E6; color: #15120E !important; font-weight: 600; }
.rl-form .t-input-block .t-radio__control:has(.t-radio:focus-visible) { outline: 2px solid #FFE100; outline-offset: 2px; }
.rl-form .t-radio__indicator { display: none; }
/* Чекбоксы: рамка светлая, отмеченный — жёлтый с тёмной галочкой; подпись 13px, ссылки светлые */
.rl-form .t-input-group_cb { margin-bottom: 10px !important; }
.rl-form .t-input-group_cb + .t-input-group_cb { margin-bottom: 0 !important; }
.rl-form .t-form__inputsbox .t-checkbox__control.t-checkbox__control_flex { --line-height: 1.45; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.rl-form .t-form__inputsbox .t-checkbox__indicator { margin-top: 0; border: 1.5px solid rgba(245, 240, 230, .3) !important; border-radius: 6px; opacity: 1; }
.rl-form .t-checkbox:checked ~ .t-checkbox__indicator { border-color: #FFE100 !important; background: #FFE100; }
.rl-form .t-checkbox__indicator::after { border-color: #15120E; }
.rl-form .t-checkbox__labeltext a { color: #E6DFD3; text-decoration: underline; transition: color .2s; }
.rl-form .t-checkbox__labeltext a:hover { color: #FFE100; }
/* Ошибки — текстом под полем, как в попапе (у Zero — белые всплывашки поверх соседних полей) */
.rl-form .tn-atom .t-input-error { position: static; margin: 6px 0 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #FF8A7A; font-size: 13px; }
.rl-form .tn-atom .t-input-error::after { display: none; }
.rl-form .tn-atom .t-input-group_cb .t-input-error { margin-left: 30px; }
.rl-form .t-form .js-error-control-box .t-input:not(.t-input-phonemask):not(.t-input-ownanswer):not(.t-input__own-answer) { border-color: #FF8A7A !important; }
.rl-form .tn-atom .js-error-control-box .t-checkbox__control::before { border-color: transparent; }
@media (max-width: 479px) {
  .rl-form .t-input-group_rd .t-radio__wrapper fieldset { grid-template-columns: 1fr; }
}

/* ── Zero-блоки с колонками из групп (карточки в ряд): группа — flex-элемент с min-width: auto, и длинное слово (текст Zero —
   display: table, не уже слова) раздвигает колонку. min-width: 0 — колонки ровные, как minmax(0, 1fr) в прототипе, слово уходит
   в поле карточки. Блоки: «Что входит и заморозка» /abonementy, «Единоборства» и «Сауна» /napravleniya ── */
:is(#rec5072922201, #rec5070542901, #rec5070904701) .t396__group { min-width: 0; }

/* ── Длинная «пилюля», которая на телефоне не влезает в строку: в Zero на ≤479 — перенос строк и ширина «заполнить»
   (иначе вылезает), но тогда она во всю колонку и там, где влезает (373–479px). Ширина по тексту, не шире колонки — как li
   в прототипе. «Тренажёрный зал» /napravleniya, первый экран /lk ── */
@media (max-width: 479px) {
  #rec5069616101 .tn-elem[data-elem-id="1792680384778000016"],
  #rec5083211501 .tn-elem[data-elem-id="1792735798234000012"] { width: auto !important; max-width: 100%; }
}

/* ── «Спасибо» /spasibo (thanks-01) и 404 /oshibka-404 (e404-01): высота как в прототипе — max(640px, 92vh), но не ниже содержимого.
   Zero с высотой в % окна держит ровно 92vh (не меньше 640px) и обрезает содержимое на низких экранах (телефон 360×640).
   Специфичность выше правил блока ── */
:is(#rec5083556801, #rec5083691801) .t396 .t396__artboard { height: auto; min-height: max(640px, 92vh); }
/* Узор 404 — по центру фактической высоты секции: Тильда ставит top скриптом от 92vh / 640px, а секция бывает выше (по содержимому) */
#rec5083691801 .tn-elem[data-elem-id="1792737038454000003"] { top: calc(50% - 562.5px) !important; }
/* Телефон в тексте не рвётся по дефису (в прототипе nowrap; пробелы в номере — U+00A0) */
#rec5083556801 .tn-atom a[href^="tel"] { white-space: nowrap; transition: color .2s; }
#rec5083556801 .tn-atom a[href^="tel"]:hover { color: #FFE100 !important; } /* цвет ссылки задан в тексте Zero (style) */

/* ── Первый экран главной (home-01-hero) #rec5062363301: видео VK на весь экран. Плеер VK вписывает ролик 16:9 с чёрными
   полосами — iframe растянут как object-fit: cover (по размеру элемента, container query) и чуть крупнее (×1.2), чтобы панель
   и логотип плеера ушли за край. Высота — не меньше окна и не меньше содержимого (Zero с высотой в % окна обрезает) ── */
#rec5062363301 .t396 .t396__artboard { height: auto; min-height: 100vh; min-height: 100svh; }
#rec5062363301 .tn-elem[data-elem-type="video"] .tn-atom { overflow: hidden; }
#rec5062363301 .tn-elem[data-elem-type="video"] .tn-atom__videoiframe { position: relative; container-type: size; }
#rec5062363301 .tn-elem[data-elem-type="video"] iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(max(100cqw, 177.78cqh) * 1.2); height: calc(max(100cqh, 56.25cqw) * 1.2); pointer-events: none;
}

/* ── Якоря разделов /napravleniya (dir-03…07): переход из меню разделов или по ссылке /napravleniya#… — раздел встаёт
   под шапкой и меню, как scroll-margin-top: 150px секций в прототипе. Якорь Тильда ставит пустой <a name> перед блоком ── */
a[name="zal"], a[name="personal"], a[name="gruppovye"], a[name="edinoborstva"], a[name="sauna"] { scroll-margin-top: 150px; }

/* ── Документы (privacy-02-text, soglasie-02-text) — блок TX24 «Статья»: /privacy #rec5084161901, /soglasie #rec5084352401.
   Вид — как .rl-doc в прототипе: колонка 820px, заголовки Unbounded 22px, абзацы 16px/1.7, «лид» — жёлтая заметка.
   Каждый абзац — свой элемент редактора: отступы прототипа (абзац 14, список 16, заголовок 48 / 16) — на элементах, схлопываются.
   Заметка в прототипе — p.rl-doc__note, но цвет, кегль и отступ ей перебивает .rl-doc p (специфичность): серый текст 16px на жёлтой
   подложке, отступ 14 — так и повторяем ── */
:is(#rec5084161901, #rec5084352401) { padding: 10px 0 100px !important; }
:is(#rec5084161901, #rec5084352401) .t-container { box-sizing: border-box; width: 100%; max-width: 860px; padding: 0 20px; }
:is(#rec5084161901, #rec5084352401) .t-col { float: none; display: block; width: auto; max-width: none; margin: 0; padding: 0; }
:is(#rec5084161901, #rec5084352401) .t1211__content { color: #C8C0B3; font: 400 16px/1.7 'Onest', sans-serif; }
:is(#rec5084161901, #rec5084352401) .pe-redactor__editor > * { margin: 0 0 14px !important; }
:is(#rec5084161901, #rec5084352401) .t-redactor__text { color: #C8C0B3; font: inherit; }
:is(#rec5084161901, #rec5084352401) .t-redactor__text ul { margin: 0 0 16px; padding: 0 0 0 22px; }
:is(#rec5084161901, #rec5084352401) .t-redactor__text li { margin: 0 0 6px; padding: 0; }
:is(#rec5084161901, #rec5084352401) .t-redactor__text li::marker { color: #FFE100; }
:is(#rec5084161901, #rec5084352401) .t-redactor__text b { color: #F5F0E6; font-weight: 600; } /* строки таблиц, переведённых в список: первая ячейка, как th */
:is(#rec5084161901, #rec5084352401) h2.t-redactor__h2 { margin: 48px 0 16px !important; color: #F5F0E6; font: 600 22px/1.3 'Unbounded', sans-serif; letter-spacing: -.01em; }
:is(#rec5084161901, #rec5084352401) .t-redactor__preface { padding: 16px 20px; border: 0; border-radius: 18px; background: rgba(255, 225, 0, .1); color: #C8C0B3; font: inherit; }
:is(#rec5084161901, #rec5084352401) .pe-redactor__editor > .t-redactor__preface:first-child { padding-top: 16px !important; } /* Тильда обнуляет первому элементу */
:is(#rec5084161901, #rec5084352401) .t-redactor__preface + h2.t-redactor__h2 { margin-top: 0 !important; }
@media (max-width: 639px) {
  :is(#rec5084161901, #rec5084352401) { padding-bottom: 72px !important; }
  :is(#rec5084161901, #rec5084352401) h2.t-redactor__h2 { margin-top: 36px !important; font-size: 19px; }
  :is(#rec5084161901, #rec5084352401) .t-redactor__preface + h2.t-redactor__h2 { margin-top: 36px !important; } /* в прототипе медиа-правило h2 перебивает «заметка + h2» */
  :is(#rec5084161901, #rec5084352401) .t1211__content { font-size: 15px; }
}
@media (max-width: 479px) {
  :is(#rec5084161901, #rec5084352401) .t-container { padding: 0 16px; }
}
