/* Дополнение к catalog.css: то, что на старом сайте давали Bootstrap и jQuery-плагины. */
/* Шрифт и высота строки — из базы старого сайта (old-base.css в теме). */
/* Страница каталога: без ограничения ширины темы Hello; ширина контейнера — как .container--mod в style.css старого сайта. */
body.jands-catalog-page main.site-main { max-width: none; padding: 0; padding-inline: 0; }
.jands-catalog .container--mod { width: 1550px; max-width: 100%; }
@media screen and (max-width: 1570px) { .jands-catalog .container--mod { width: 1240px; } }
@media screen and (max-width: 1250px) { .jands-catalog .container--mod { width: 1075px; } }
@media screen and (max-width: 1100px) { .jands-catalog .container--mod { width: 100%; } }
@media screen and (max-width: 767px) { .jands-catalog .container--mod h1 { font-size: 20px; } }
.jands-catalog ul { padding: 0; margin: 0; }
.jands-catalog ul li { list-style: none; }
.jands-catalog .fl { float: left; }
.jands-catalog .clear { clear: both; }
/* Ссылки без подчёркивания, как на старом сайте (у темы Hello .page-content a подчёркнуты); цвет — из catalog.css. */
.page-content .jands-catalog a { text-decoration: none; }

/* Галочки и радиокнопки — картинки старого сайта (раньше их рисовал плагин jquery.checkbox.radio). */
.jands-catalog input[type=checkbox], .jands-catalog input[type=radio] {
    -webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle;
    margin: 0 5px 2px 0; border: 0; cursor: pointer; background-repeat: no-repeat; background-color: transparent;
}
.jands-catalog input[type=checkbox] { width: 16px; height: 17px; background-image: url(img/tpl/checkbox.png); background-position: 0 0; }
.jands-catalog input[type=checkbox]:checked { background-position: 0 -17px; }
.jands-catalog input[type=radio] { width: 18px; height: 18px; background-image: url(img/tpl/radio.png); background-position: 0 0; }
.jands-catalog input[type=radio]:checked { background-position: 0 -18px; }
.jands-catalog .programs__filter .mfilter__list input { display: none; }

/* Выпадающие списки (раньше — плагин mySelect). */
.jands-catalog select.jc-native { display: none; }
.jands-catalog .mselect__list { display: none; }
.jands-catalog .mselect--open .mselect__list { display: block; }
.jands-catalog .mselect__list--overflow { max-height: 300px; overflow-y: auto; }

/* Из libs/mySelect/mySelect.css старого сайта (оформление выпадающих списков). */
.jands-catalog .mselect{position: relative; display: inline-block; margin-right: 10px; font-size: 14px; line-height: 25px; font-weight: bold; font-style: italic; color: #000000; background: none; border: 1px solid #d8e4ed;}
.jands-catalog .mselect__text{padding: 0 40px 0 5px; cursor: pointer; box-sizing: border-box; height: 25px; line-height: 28px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
.jands-catalog .mselect__arrow{position: absolute; top: 50%; right: 8px; border: 5px solid transparent; border-top: 5px solid black; margin-top: -2px; cursor: pointer; pointer-events: none;}
.jands-catalog .mselect__list{display: none; font-weight: normal; font-style: normal; border: 1px solid #d8e4ed; border-radius: 0 0 5px 5px; background: white; position: absolute; left: -1px; top: 25px; width: 100%; box-sizing: border-box; z-index: 1000;}
.jands-catalog .mselect__list--overflow{width: auto; max-height: 280px; overflow-y: scroll;}
.jands-catalog .mselect__option{height: 28px; line-height: 28px; padding: 0 5px; cursor: pointer; white-space: nowrap; overflow: hidden;}
.jands-catalog .mselect__option:hover{background: #eeeeee; color: #000000;}

/* Строки «72 занятия», «9 месяцев» — в одну строку, как на старом сайте. */
.jands-catalog .programs__item_left .program__info_list span { white-space: nowrap; }

/* Проба (16.11.2026, опция jands_catalog_tiles): программы — плиткой «Программа — плитка», сетка сама по ширине (не уже 240 px):
   широкий экран 4, компьютер 3, планшет 2, телефон 1 (не шире 370 px, по центру). */
.jands-catalog .programs__list.jands-cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 20px 0 0; text-align: left; }
.jands-cat-tile > .elementor, .jands-cat-tile .e-loop-item, .jands-cat-tile .jands-program-tile { height: 100%; }
@media screen and (max-width: 529px) { .jands-catalog .programs__list.jands-cat-tiles { grid-template-columns: minmax(0, 370px); justify-content: center; } }
