/* ===== ЛИМОН · редизайн (главная /home-new). Все селекторы — по классам lm-* и id блоков новой главной ===== */

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

/* Обложки новых страниц: высота = экран минус фиксированная шапка (94 / 80 / 64 px), снизу виден отступ 8px.
   Главная, О студии, Пилатес, Йога, Танцы, Силовые, Оздоровительные, Растяжка. Новую обложку — добавить id сюда же */
: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;}}
#rec5056893101 .t396__artboard,#rec5104535501 .t396__artboard,#rec5220302801 .t396__artboard,#rec5220608401 .t396__artboard,
#rec5221503701 .t396__artboard,#rec5221730401 .t396__artboard,#rec5221916301 .t396__artboard,#rec5216727401 .t396__artboard,
#rec5056893101 .t396__carrier,#rec5104535501 .t396__carrier,#rec5220302801 .t396__carrier,#rec5220608401 .t396__carrier,
#rec5221503701 .t396__carrier,#rec5221730401 .t396__carrier,#rec5221916301 .t396__carrier,#rec5216727401 .t396__carrier,
#rec5056893101 .t396__filter,#rec5104535501 .t396__filter,#rec5220302801 .t396__filter,#rec5220608401 .t396__filter,
#rec5221503701 .t396__filter,#rec5221730401 .t396__filter,#rec5221916301 .t396__filter,#rec5216727401 .t396__filter{
  height:calc(100vh - var(--lm-hdr)) !important;height:calc(100svh - var(--lm-hdr)) !important;min-height:var(--lm-cover-min) !important;}

/* Цены: таб-бар «Групповые / Персональные / Парные» (стандартный блок T1281) появляется вместе с первым экраном,
   как контент Zero-блоков — fadeinup: снизу на 30px, 0.8с, кривая Tilda, задержка 0.2с (заголовок 0с, подзаголовок 0.1с).
   Старт — когда Tilda запускает анимацию заголовка: класс lm-in ставит скрипт в T123 страницы /prices.
   Страховка без скрипта: через 6с табы показываются в любом случае */
@keyframes lmShow{to{opacity:1;transform:none;}}
#rec5148452401 .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;}
#rec5148452401.lm-in .t1281{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){#rec5148452401 .t1281{opacity:1;transform:none;transition:none;animation:none;}}

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

/* Страницы направлений, «Тебе знакомо это?»: на десктопе карточка не ниже 154px, как в макете
   (высота по контенту, ряд выравнивается по самой высокой карточке, текст по центру). На адаптивах — по контенту */
@media screen and (min-width:1440px){
  .t396 .tn-group[data-group-id="1793100200000000021"],.t396 .tn-group[data-group-id="1793100200000000022"],
  .t396 .tn-group[data-group-id="1793100200000000023"],.t396 .tn-group[data-group-id="1793100200000000024"]{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;}

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