/* Декор (кольца, дольки) — под контентом */
.t396 .lm-deco{z-index:2 !important;}

/* ===== Обложки (первые экраны): высота = экран минус фиксированная шапка (94 / 80 / 64 px), снизу виден отступ 8px.
   Класс lm-cover — на заголовке H1 обложки (так сейчас на всех 8 обложках) или uc-lm-cover — на самом блоке.
   Копируете обложку — класс копируется вместе с H1. ===== */
:root{--lm-hdr:94px;--lm-cover-min:520px;}
@media screen and (max-width:959px){:root{--lm-hdr:80px;--lm-cover-min:480px;}}
@media screen and (max-width:639px){:root{--lm-hdr:64px;--lm-cover-min:480px;}}
:is(.t-rec.uc-lm-cover,.t-rec:has(.lm-cover)) :is(.t396__artboard,.t396__carrier,.t396__filter){
  height:calc(100vh - var(--lm-hdr)) !important;height:calc(100svh - var(--lm-hdr)) !important;min-height:var(--lm-cover-min) !important;}

/* ===== Табы (стандартный блок T1281, класс блока uc-lm-tabs) появляются вместе с первым экраном,
   как контент Zero-блоков — fadeinup: снизу на 30px, 0.8с, кривая Tilda, задержка 0.2с (заголовок 0с, подзаголовок 0.1с).
   Старт — когда Tilda запускает анимацию заголовка: класс lm-in ставит скрипт в T123 страницы /prices.
   Страховка без скрипта: через 6с табы показываются в любом случае. Внешний вид таб-бара — в T123 страницы /prices ===== */
@keyframes lmShow{to{opacity:1;transform:none;}}
.uc-lm-tabs .t1281{opacity:0;transform:translateY(30px);transition:opacity .8s cubic-bezier(.19,1,.22,1) .2s,transform .8s cubic-bezier(.19,1,.22,1) .2s;animation:lmShow 0s linear 6s forwards;}
.uc-lm-tabs.lm-in .t1281{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){.uc-lm-tabs .t1281{opacity:1;transform:none;transition:none;animation:none;}}

/* ===== Страницы направлений, «Тренеры по направлению»: боковые стрелки слайдера (группы с классом lm-rev-side)
   стоят в одном ряду с лентой карточек и центрируются по высоте карточек.
   Если тренеров 3 и меньше, стрелки прячутся, но место сохраняют — карточки остаются по ширине контента 1160 ===== */
@media screen and (min-width:1440px){
  .t396 .lm-rev-static .tn-group.lm-rev-side{display:block !important;visibility:hidden !important;}
}

/* ===== «Тебе знакомо это?»: на десктопе карточка (группа с классом lm-pain-card) не ниже 154px, как в макете
   (высота по контенту, ряд выравнивается по самой высокой карточке, текст по центру). На адаптивах — по контенту ===== */
@media screen and (min-width:1440px){
  .t396 .tn-group.lm-pain-card{min-height:154px;}
}

/* Ссылки со стрелкой: линия появляется слева направо и уходит обратно справа налево */
.lm-link .tn-atom{text-decoration:none !important;}
.lm-link .tn-atom__button-text{background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:0 100%;background-size:0% 1px;padding-bottom:2px;text-decoration:none !important;transition:background-size .45s cubic-bezier(.4,0,.2,1);}
.lm-link .tn-atom:hover .tn-atom__button-text,.lm-link .tn-atom:focus-visible .tn-atom__button-text{background-size:100% 1px;}

/* Карточки с круглой кнопкой-стрелкой: при наведении на карточку кнопка желтеет, стрелка поворачивается вверх-вправо */
.tn-molecule:has(> .lm-cardph){cursor:pointer;}
.tn-molecule:has(> .lm-arr){transition:background-color .3s ease;}
.lm-arr .tn-atom{transition:transform .3s ease;}
.tn-molecule:has(> .lm-cardph):hover .tn-molecule:has(> .lm-arr){background-color:#f3db8b !important;}
.tn-molecule:has(> .lm-cardph):hover .lm-arr .tn-atom{transform:rotate(-45deg);}

/* Слайдер отзывов */
.lm-rev-track{scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}
.lm-rev-track::-webkit-scrollbar{display:none;}
.lm-rev-track>*{scroll-snap-align:start;}
.lm-rev-btn{cursor:pointer;transition:opacity .25s ease;}
.lm-rev-btn:hover{opacity:.75;}
.lm-rev-btn.lm-off{opacity:.35;cursor:default;pointer-events:none;}
.lm-rev-static .lm-rev-btn{display:none !important;}

/* ===== Вопрос-ответ — стандартный блок T668 с классом блока uc-lm-faq: заголовок слева, вопросы справа ===== */
.uc-lm-faq .t668{display:flex;align-items:flex-start;justify-content:center;column-gap:20px;max-width:1160px;margin:0 auto;}
.uc-lm-faq .t668>.t-container{flex:1 1 0;width:auto;max-width:none;margin:0;padding:0;}
.uc-lm-faq .t668 .t-col{width:100%;max-width:none;margin-left:0;margin-right:0;}
.uc-lm-faq .t-section__title{margin:0 !important;letter-spacing:-1.56px;}
.uc-lm-faq .t668__wrapper{transition:background-color .3s ease,border-radius .3s ease;}
.uc-lm-faq .t668__wrapper:has(.t668__opened){background-color:#fbe498 !important;border-radius:20px;}
.uc-lm-faq .t668__trigger-button{display:flex;align-items:center;min-height:84px;padding:24px 76px 24px 24px !important;transition:padding .3s ease;}
.uc-lm-faq .t668__opened .t668__trigger-button{padding-bottom:16px !important;}
.uc-lm-faq .t668__title{padding-right:0;letter-spacing:-.36px;}
.uc-lm-faq .t668__icon{right:24px !important;width:24px;height:24px;padding:6px;}
.uc-lm-faq .t668__circle{width:36px;height:36px;}
.uc-lm-faq .t668__lines,.uc-lm-faq .t668__opened .t668__lines{transform:none !important;}
.uc-lm-faq .t668__lines svg{transform:scale(.6);}
.uc-lm-faq .t668__lines path{transition:opacity .3s ease;}
.uc-lm-faq .t668__opened .t668__lines path:nth-child(2){opacity:0;}
.uc-lm-faq .t668__content{padding-left:24px !important;padding-right:24px !important;transition:max-height .4s ease,opacity .3s ease;}
.uc-lm-faq .t668__text{font-size:13px !important;letter-spacing:-.26px;padding-top:0 !important;}
.uc-lm-faq .t668__textwrapper{padding-bottom:24px !important;}
@media screen and (max-width:1439px){
  .uc-lm-faq .t668{max-width:none;padding:0 20px;}
  .t-rec.uc-lm-faq{padding-top:100px !important;padding-bottom:100px !important;}
  .uc-lm-faq .t-section__title{font-size:46px !important;letter-spacing:-1.38px;}
}
@media screen and (max-width:959px){
  .uc-lm-faq .t668{flex-direction:column;row-gap:32px;padding:0 40px;}
  .uc-lm-faq .t668>.t-container{flex:none;width:100%;}
  .t-rec.uc-lm-faq{padding-top:72px !important;padding-bottom:72px !important;}
  .uc-lm-faq .t-section__title{font-size:40px !important;letter-spacing:-1.2px;}
}
@media screen and (max-width:639px){
  .uc-lm-faq .t668{row-gap:24px;padding:0 20px;}
  .t-rec.uc-lm-faq{padding-top:48px !important;padding-bottom:48px !important;}
  .uc-lm-faq .t-section__title{font-size:30px !important;line-height:1.15 !important;letter-spacing:-.9px;}
  .uc-lm-faq .t668__trigger-button{padding:20px 64px 20px 20px !important;min-height:76px;}
  .uc-lm-faq .t668__opened .t668__trigger-button{padding-bottom:12px !important;}
  .uc-lm-faq .t668__icon{right:20px !important;}
  .uc-lm-faq .t668__content{padding-left:20px !important;padding-right:20px !important;}
  .uc-lm-faq .t668__textwrapper{padding-bottom:20px !important;}
}

/* ===== Единая скорость hover на всём сайте: 0.3с (Zero Block берёт скорость из переменных; по умолчанию там 0с / 0.2с) ===== */
.t396{--t396-speedhover:.3s;--t396-shadowshoverspeed:.3s;}
/* ссылки с линией, карточки со стрелкой и кнопки слайдеров — перекрывают страничные значения .35/.45/.25 */
.t396 .lm-link .tn-atom__button-text{transition:background-size .3s cubic-bezier(.4,0,.2,1),color .3s ease-in-out !important;}
.t396 .tn-molecule:has(> .lm-arr){transition:background-color .3s ease !important;}
.t396 .lm-arr .tn-atom{transition:transform .3s ease !important;}
.t396 .lm-rev-btn,.t396 .lm-sp-btn,.t396 .lm-rent-btn{transition:opacity .3s ease !important;}

/* Теги направлений в попапе тренера: убираем «тень»-подчёркивание, которое Tilda рисует у всех ссылок в тексте (box-shadow inset) */
.t396 .lm-pp-tags .tn-atom a.lm-chip,.t396 .lm-pp-tags .tn-atom a.lm-chip:hover{box-shadow:none !important;border:0 !important;text-decoration:none !important;background-image:none !important;}

/* ===== Декор по центру блока (кольца, дольки, дуги, линии) =====
   Редактор Zero неверно считает центр у абсолютных элементов поверх автолейаута и при сохранении записывает кривой left.
   Эти классы ставят элемент по центру блока на сайте независимо от того, какой left сохранён в редакторе:
   левый край — в центр блока, затем сдвиг на половину своей ширины (translate не мешает анимациям появления).
   Как пользоваться: элементу вне потока (абсолютному) вписать в поле CSS Class Name
     lm-cx      — ровно по центру блока;
     lm-cx-m10  — на 10px левее центра (дуги вокруг медальона в «Что изменится»).
   Уже есть класс (например lm-deco) — дописать через пробел: «lm-deco lm-cx». Скопированный элемент сохраняет класс. */
.t396 .tn-elem.lm-cx{left:50% !important;right:auto !important;margin-left:0 !important;translate:-50% 0 !important;}
.t396 .tn-elem.lm-cx-m10{left:50% !important;right:auto !important;margin-left:-10px !important;translate:-50% 0 !important;}

/* ===== Страницы направлений, «Какие тренировки входят»: карточки из потока «Тренировки» (раздел = направление).
   В блоке одна карточка-шаблон (группа Post с классом lm-trn-card), поток размножает её по постам раздела.
   Сетка задаётся классом группы Posts — lm-trn-posts, количество карточек любое:
     1440 и 960 — по 3 в ряд; если тренировок ровно 2 — по 2 на всю ширину;
     640 — по 2 в ряд, последняя нечётная карточка — на всю ширину;
     375 — по одной.
   Между колонками 16px, между рядами 40px на всех ширинах — чтобы бейдж-лимон не наезжал на карточку выше.
   Карточки в ряду одной высоты. Описание (lm-trn-descr) не шире 460px. ===== */
.t396 .tn-group.lm-trn-posts > .tn-molecule{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px !important;row-gap:40px !important;align-items:stretch !important;overflow:visible !important;}
.t396 .tn-group.lm-trn-posts > .tn-molecule > *{margin:0 !important;}
.t396 .tn-group.lm-trn-card{width:auto !important;min-width:0;height:auto !important;align-self:stretch !important;}
.t396 .tn-group.lm-trn-posts > .tn-molecule:has(> .lm-trn-card:nth-of-type(2):last-of-type){grid-template-columns:repeat(2,minmax(0,1fr));}
.t396 .tn-elem.lm-trn-descr{max-width:460px;}
@media screen and (max-width:959px){
  .t396 .tn-group.lm-trn-posts > .tn-molecule{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .t396 .tn-group.lm-trn-card:last-of-type:nth-of-type(odd){grid-column:1 / -1;}
}
@media screen and (max-width:639px){
  .t396 .tn-group.lm-trn-posts > .tn-molecule{grid-template-columns:minmax(0,1fr) !important;}
}
