/* Рисованные персонажи не анимируются */
[class*="1791182208000000109"] img{animation:none !important;transform:none !important}

/* Шапка и выпадающее меню всегда поверх блоков страницы (у групп в блоках z-index выше 100) */
.vb-a1h .vb-a1h__bar{z-index:9000 !important}

/* Первый экран всех страниц «Детям»: на телефоне и планшете печать «Пробное 1000 ₽» стоит справа на стыке тёмной плашки и фото, размер зависит от ширины экрана */
@media (max-width:959px){
  [class*="1791182208000000107"] [class*="1791182208000000108"]{left:auto !important;right:6px !important;bottom:auto !important;top:calc(clamp(92px,27vw,150px) / -2 - 5px) !important;width:clamp(92px,27vw,150px) !important;height:clamp(92px,27vw,150px) !important}
  [class*="1791182208000000107"] [class*="1791182208000000108"]>.tn-molecule{width:100% !important;height:100% !important}
  [class*="1791182208000000107"] [class*="1791182208000000108"] .tn-elem{position:static !important;margin:0 !important}
  [class*="1791182208000000107"] [class*="1791182208000000108"] .tn-elem .tn-atom{width:auto !important;height:auto !important}
  [class*="1791182208000000107"] [class*="1791182208000000108"] .tn-elem:nth-child(1) .tn-atom,[class*="1791182208000000107"] [class*="1791182208000000108"] .tn-elem:nth-child(3) .tn-atom{font-size:clamp(8px,2.5vw,12px) !important;line-height:1.3 !important}
  [class*="1791182208000000107"] [class*="1791182208000000108"] .tn-elem:nth-child(2) .tn-atom{font-size:clamp(18px,5.8vw,32px) !important;line-height:1.15 !important;white-space:nowrap}
}

/* Шапка: пункты меню дальше друг от друга; город и телефон прячутся на узких экранах, чтобы пунктам хватало места */
@media (min-width:1300px){.vb-a1h .vb-a1h__bar .vb-a1h__link{padding-left:14px !important;padding-right:14px !important}.vb-a1h .vb-a1h__bar .vb-a1h__nav{gap:6px !important}.vb-a1h .vb-a1h__bar{gap:20px !important}}
@media (min-width:1100px) and (max-width:1299px){.vb-a1h .vb-a1h__bar .vb-a1h__link{padding-left:11px !important;padding-right:11px !important}.vb-a1h .vb-a1h__bar .vb-a1h__nav{gap:4px !important}}
@media (max-width:1599px){.vb-a1h .vb-a1h__bar .vb-a1h__city{display:none !important}}
@media (max-width:1439px){.vb-a1h .vb-a1h__bar .vb-a1h__tel{display:none !important}}

/* Выпадающее меню: колонки по ширине содержимого, свободное место делится между ними поровну */
.vb-a1h .vb-a1h__mega-in{grid-template-columns:repeat(3,max-content) minmax(250px,300px) !important;justify-content:space-between !important;column-gap:32px !important}
.vb-a1h .vb-a1h__mega-in--2{grid-template-columns:repeat(2,max-content) minmax(250px,300px) !important}
.vb-a1h .vb-a1h__mega-in--5{grid-template-columns:repeat(5,max-content) !important}
@media (max-width:1299px){
  .vb-a1h .vb-a1h__mega-in{grid-template-columns:repeat(3,max-content) !important}
  .vb-a1h .vb-a1h__mega-in--2{grid-template-columns:repeat(2,max-content) !important}
  .vb-a1h .vb-a1h__mega-in--5{grid-template-columns:repeat(5,max-content) !important}
}

/* Каталоги разделов («Детям», «Нейропсихология», «Диагностика»): при наведении на любое место карточки название становится оранжевым, подчёркивания нет */
#allrecords #rec5025320901 a[href]:hover,#allrecords #rec5025320901 a[href]:hover *,#allrecords #rec5173224101 a[href]:hover,#allrecords #rec5173224101 a[href]:hover *,#allrecords #rec5173228501 a[href]:hover,#allrecords #rec5173228501 a[href]:hover *{text-decoration:none !important}
#allrecords #rec5025320901 h3 a,#allrecords #rec5173224101 h3 a,#allrecords #rec5173228501 h3 a{transition:color .25s ease}
#allrecords #rec5025320901 .tn-group:has(>.tn-molecule>.tn-group>.tn-molecule>.tn-elem h3):hover h3 a,#allrecords #rec5025320901 .tn-group:has(>.tn-molecule>.tn-group>.tn-molecule>.tn-elem h3):hover h3 a *,#allrecords #rec5173224101 .tn-group:has(>.tn-molecule>.tn-group>.tn-molecule>.tn-elem h3):hover h3 a,#allrecords #rec5173224101 .tn-group:has(>.tn-molecule>.tn-group>.tn-molecule>.tn-elem h3):hover h3 a *,#allrecords #rec5173228501 .tn-group:has(>.tn-molecule>.tn-group>.tn-molecule>.tn-elem h3):hover h3 a,#allrecords #rec5173228501 .tn-group:has(>.tn-molecule>.tn-group>.tn-molecule>.tn-elem h3):hover h3 a *{color:#e5681c !important;text-decoration:none !important}

/* Телефон: рисунок с детьми в блоке «Подойдёт, если…» на всю ширину экрана и по центру (на главной в карточке не меняется) */
@media (max-width:640px){
  #allrecords .t-rec:not(#rec5007786601) .tn-elem:has(img[src*="59cf2abf"]){width:100% !important;height:auto !important;align-self:center !important}
  #allrecords .t-rec:not(#rec5007786601) .tn-elem:has(img[src*="59cf2abf"]) .tn-atom{width:100% !important;height:auto !important;display:block !important}
  #allrecords .t-rec:not(#rec5007786601) .tn-elem img[src*="59cf2abf"]{width:100% !important;height:auto !important}
}
