/* mobile.css — мобильная версия и стили настроек, общие для всех тем (S4, S5).
 * Мобильный режим: (max-width: 768px), (orientation: landscape) and (max-height: 500px) (брейкпоинты 480/768/1024/1280, docs/styles/README.md).
 * Подключается ПОСЛЕ темы (main_default.css [+ main_clean.css] | main_special.css), до my_css.css — _templates/site/head.blade.php.
 * Области (специфичность не меняется, :where = 0): обычная версия (default и clean — clean строится поверх main_default) —
 * :where(html:not([data-theme="special"])); только special — :where(html[data-theme="special"]); только clean — :where(html[data-theme="clean"]).
 * Состав и порядок — docs/styles/layout-moves.md (раздел S4). */

/* ===== 1. Из common.css: адаптивные @media (порядок исходника) ===== */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {

  #filtr_npa input.datetime {
    margin-right:0;margin-left:0;
  }
  /* special: width:50% из main_special — так было */
  :where(html:not([data-theme="special"])) #filtr_npa input.datetime {width:100%}
}

/* ============================================
   МОБИЛЬНЫЕ КЛАССЫ (мобильный режим: ≤768px и ландшафт телефона; до S4 — ≤555px)
   Применяются только в мобильном режиме.
   Можно использовать вместе с базовыми,
   чтобы переопределять поведение на мобильных.
   ============================================ */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {

  /* display */
  .mobile_d_flex           { display: flex; }
  .mobile_d_inline_flex    { display: inline-flex; }
  .mobile_d_block          { display: block; } /* для сброса flex */

  /* flex-direction */
  .mobile_flex_row          { flex-direction: row; }
  .mobile_flex_row_reverse  { flex-direction: row-reverse; }
  .mobile_flex_column       { flex-direction: column; }
  .mobile_flex_column_reverse { flex-direction: column-reverse; }

  /* flex-wrap */
  .mobile_flex_wrap         { flex-wrap: wrap; }
  .mobile_flex_nowrap       { flex-wrap: nowrap; }
  .mobile_flex_wrap_reverse { flex-wrap: wrap-reverse; }

  /* justify-content */
  .mobile_jc_start    { justify-content: flex-start; }
  .mobile_jc_end      { justify-content: flex-end; }
  .mobile_jc_center   { justify-content: center; }
  .mobile_jc_between  { justify-content: space-between; }
  .mobile_jc_around   { justify-content: space-around; }
  .mobile_jc_evenly   { justify-content: space-evenly; }

  /* align-items */
  .mobile_ai_start    { align-items: flex-start; }
  .mobile_ai_end      { align-items: flex-end; }
  .mobile_ai_center   { align-items: center; }
  .mobile_ai_baseline { align-items: baseline; }
  .mobile_ai_stretch  { align-items: stretch; }

  /* align-content */
  .mobile_ac_start    { align-content: flex-start; }
  .mobile_ac_end      { align-content: flex-end; }
  .mobile_ac_center   { align-content: center; }
  .mobile_ac_between  { align-content: space-between; }
  .mobile_ac_around   { align-content: space-around; }
  .mobile_ac_stretch  { align-content: stretch; }

  /* gap */
  .mobile_gap_0   { gap: 0; }
  .mobile_gap_4   { gap: 0.25rem; }
  .mobile_gap_8   { gap: 0.5rem; }
  .mobile_gap_12  { gap: 0.75rem; }
  .mobile_gap_16  { gap: 1rem; }
  .mobile_gap_20  { gap: 1.25rem; }
  .mobile_gap_24  { gap: 1.5rem; }
  .mobile_gap_32  { gap: 2rem; }

  /* Свойства flex-элементов */
  .mobile_flex_1           { flex: 1 1 0%; }
  .mobile_flex_auto        { flex: 1 1 auto; }
  .mobile_flex_initial     { flex: 0 1 auto; }
  .mobile_flex_none        { flex: none; }
  .mobile_flex_grow_0      { flex-grow: 0; }
  .mobile_flex_grow_1      { flex-grow: 1; }
  .mobile_flex_shrink_0    { flex-shrink: 0; }
  .mobile_flex_shrink_1    { flex-shrink: 1; }

  /* align-self */
  .mobile_as_auto      { align-self: auto; }
  .mobile_as_start     { align-self: flex-start; }
  .mobile_as_end       { align-self: flex-end; }
  .mobile_as_center    { align-self: center; }
  .mobile_as_baseline  { align-self: baseline; }
  .mobile_as_stretch   { align-self: stretch; }

  /* order */
  .mobile_order_0 { order: 0; }
  .mobile_order_1 { order: 1; }
  .mobile_order_2 { order: 2; }
  .mobile_order_3 { order: 3; }
  .mobile_order_first { order: -1; }
  .mobile_order_last  { order: 999; }
}

/*********************************************** MEDIA_Q ***************************************/
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
  .cookies-alert {
    padding: 1.2em;
    font-size: 120%;
    overflow:auto;
    max-height:33vh;
  }
  /* special: фон из схемы (main_special .cookies-alert{background:#9dd1ff}) — так было, правило темы шло позже */
  :where(html:not([data-theme="special"])) .cookies-alert {background: #ffffff}
  nav#G_MENU ul li.has_child>a:after  {display: none;}
  .header_no_on_main  { min-height: auto !important}
  .header_no_on_main  #header_table { padding-top: 5px;}
  .header_no_on_main  #header_table td{ display: inline-block !important;}
  .header_no_on_main  #header_table img{display: none;}
  body,html{min-width: 0 !important;}
  .container{
    width:100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .fr,.fl_none_mobile{
    float: none;
  }
  .SEARCH_IN_HEADER{padding-top:1em !important; text-align:center;/* float: right; */display: grid;float: right}

  .no_select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .SEARCH_IN_HEADER .my_btn {
    padding: 0.7em 0.7em;
    line-height: 1rem;
    font-size: 1rem;
    height: fit-content;
  }
  .SEARCH_IN_HEADER .search_input {
    padding: 5px 10px;
    line-height: 1rem;
    display: inline-block;
  }

  .SEARCH_IN_HEADER form {
    display: flex;
    margin: auto;
  }

  /***********************HEADER*****************************/
  header .header_text table tbody tr , footer table tbody tr{
    /*display: flex;
    flex-direction: column;
    align-items: center;*/
    display:block !important;
  }
  header .header_text table tbody tr td  ,footer table tbody tr td{
    text-align: center;
    display: block;
    width: auto;
  }

  /***********************NAVIGATION*************************/
  .nav_wrapper.VERTICAL_MENU {
    display: none;
  }
  #G_MENU{
    padding:5px 0;
  }
  /* default: overflow:hidden из main_default (.wrap_ul_nav) — так было */
  :where(html[data-theme="special"]) .wrap_ul_nav {overflow-y: auto;}
  #G_MENU  ul.ul_lvl_1{
    display: none;
  }
  #G_MENU .ul_lvl_2 {left:0 !important;/* width: 100%; */position: relative;top: initial !important;margin: 0 !important;max-width: 100%;border: 1px solid white;}
  .for_sticky .sticky{
    position: static !important;
  }
  #js-btn-showing-nav{
    margin: auto;
    border-radius: 10px;
    /* height: 40px; */
    text-align: left;
    /* border: solid white 3px; */
    display: inline-block;
    max-width: 420px;
    padding: 5px 0;
    cursor:pointer;
    position: relative;
  }

  #js-btn-showing-nav span {font-size: 1.4em;color: white;padding-left: 7px; padding-right: 40px}

  #js-btn-showing-nav .my__line{
    border: solid white 1px;
    width: 30px;
    height: 1px;
    top: 50%;
    right: 5%;
    position: absolute;
    /* border-radius: 100px; */
  }
  #js-btn-showing-nav .my__line:nth-child(1){top:22%}
  #js-btn-showing-nav .my__line:nth-child(3){top:75%}

  /******************ASIDE**********************************/
  aside .aside_menu .block {width: 100% !important;display: block  !important;}
  body #left .block {margin-right: 0;width: 100%;}
  #right .block{margin:0}
  #right .aside_menu{display:none}
  /**********************MAIN******************************/
  ul.documents li img{display:none;}
  ul.documents li a , ul.documents .pl15 {padding-left:0;}
  .main_page{
    padding: 0 !important;
  }
  #wrapper{
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #content .wrap{
    padding: 5px !important;
    border: none !important;
    margin-bottom: 0 !important;
  }
  #content .wrap .wrap_table table tbody tr td{
    display:table-cell;
    width:auto;
    margin:auto;
  }
  /**********************SECTION BLOCK ON MAIN******************/
  #BLOCK_ON_MAIN table tbody tr{
    /*
    display: flex;
    flex-direction: column;
    align-items: center;
    */
    display:block;
  }
  #BLOCK_ON_MAIN table tbody tr td{
    text-align:center;
    display:block;
  }
  /*******************NEWS*******************************/
  .bottom-bg .container{
    padding-right: 5px;
    padding-left: 5px;
  }
  .d_table{
    display: block;
  }
  .news .post > .wf > .post_body{
    margin:10px 0;
  }
  #content .post .cover_img {float: none;margin: auto;display: block;max-width: 100% !important;min-width: auto !important;}
  /*********************GALEREY*****************************/
  #content_gallery{text-align: center; }
  #content_gallery .colorbox{display: inline-block; position: relative;}
  .gallery{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .albums{
    margin-right: 0 !important;
    text-align: center;
  }
  /*********************FOOOOTER****************************/
  #slider , #banners_footer .BANNERS {display: none;}
  .w24p {width: 85%;}
  .d_cell {display: block;}

  .subsection {margin:0}
  .subsection li{list-style: none;}
  .subsection a {display: block;padding: 5px;border-radius: 3px;margin-bottom:3px;background-color: #F5F5F5;}
  #moved_sect .btn{ width:85%; padding:10px;font-size:1em}
  div#develop_link {text-align: center ; font-size: 1.1em}
  .wrap_elems {text-align: center;}
  .wrap_filtr .input-group-append,
  .wrap_filtr button,
  .wrap_filtr #section_id,
  .wrap_filtr .open_close_handler
  {width: 100% !important;}
  .wrap_filtr .open_close_handler{margin-top:10px}
  .mobile_ta_c {text-align: center !important;}
  .show_mobile {display: inherit;}
  .show_mobile_only {display: initial;}

  .mobile_m0 {margin: 0 !important}
  .blog_post  img.cover_img{display:block;margin: auto;}
  .hide_mobile ,.mobile_hide ,.icon-play ,.guestbook .avatar
  ,.guestbook .guestbook_trg_admin ,.guestbook .guestbook_trg_user{display: none !important}
  table.as_block_mobile, table.as_block_mobile tr td, table.as_block_mobile tr , table.as_block_mobile tbody{display:block; width:auto;}
  table.as_block_mobile tr td{
    border-top: none;
  }
  .npos_on_main {width: 100%;}
  .npos_on_main .img{text-align: center;}
  .worker.post > .worker_foto {float: none;margin: 0;text-align: center;}
  .worker.post > .worker_context {margin: 0!important;}
  .block_on_main .owl-carousel .owl-item > * {text-align:center;}
  #gorizont_spoiler_menu_but,.owl-nav {display: none}
  .max_height_50{max-height: inherit !important;}
  .block_on_main {background-repeat: repeat;}
  nav#G_MENU ul {max-width:420px;}

  nav#G_MENU ul li.has_child >span>a{
    padding-right: 3em;
  }
  nav#G_MENU ul li.has_child >span>i.has_child_i{
    margin-top: -3.8em;
    padding:1em;
    /*! top: 100%; */
    position: relative;
    float: right;
  }

  nav#G_MENU ul li {display:block;text-align:left;position: relative;}
  /* special: right:0.4em из main_special (body nav#G_MENU … i.has_child_i) — так было */
  :where(html:not([data-theme="special"])) nav#G_MENU ul li.has_child >span>i.has_child_i {right: 0}
  nav#G_MENU ul li a{font-size: 17px !important;display: block;}

  .for_sticky.sticky {
    overflow-y: auto;    max-height: 100%;
  }
  .wrap_video_element iframe{

    width: 100% !important;
    height: 70vw !important;
  }
  .video_list .img_cover{
    height:60vw;
  }
  .genered_aside  {margin: 20px 0}
  #sp_d_icon0{width: auto !important;}
  .set_template_special{margin-bottom: 0.5em}
  .db_mobile{display: block !important;}
  body .fr_mobile{float: right !important;}
  .ta_c_mobile {text-align: center;}
  .mb5_mobile {margin-bottom: 0.5em;}
  .video_fon {display:none !important;}
  .mobile_w300 {width: 300px;}

  .self_elem .l_side,.self_elem .r_side , .self_elem .dop_img{width:100% !important;/* text-align: center; */height: auto;padding-right: 0 !important;padding-bottom: 1em;}

  .self_elem .dop_img {margin-bottom: 1em}
  /* default: width:190px, margin-bottom:15px из main_default — так было */
  :where(html[data-theme="special"]) .self_elem .dop_img > a {
    width: auto;
    margin-bottom: 10px;
  }
  .self_elem .dop_img > .zaglushka {
    display: none;
  }
  .self_elem .main_img .zaglushka  {
    max-width: 100%;
    width: 100% !important;
    height: 0 !important;
  }
  .self_elem .main_img  {
    margin-right: 0px;
  }

  .header_no_on_main .wrap_header_container {min-height:inherit !important;}

  .nav_wrapper.VERTICAL_MENU{
    display: block;
  }
}

/* CSS-S4-a: ниже 1100 (контейнер уже не 4×240+gap) — auto-fit вместо жёсткой сетки 4 колонки, иначе горизонтальный скролл на 1024 */
@media (max-width: 1099.98px) {
	.wrap_catalog_element_list, .wrap_catalog_section_list {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		justify-items: center;
	}
}

@media (max-width: 1279.98px) {
	.wrap_element_item_card, .wrap_section_item {flex: 0 0 32.3333%}
}

@media (max-width: 1023.98px) {
	.wrap_element_item_card, .wrap_section_item {flex: 0 0 49%}
}

@media (max-width: 480px) {
	.wrap_element_item_card, .wrap_section_item {
		max-width: fit-content;
		flex: 0 0 100%;
		margin: 0.5% 0;
	}
	.owl-item .wrap_element_item_card {margin: auto}
}

/* #1668: сетка блока «Мероприятия» (база — в common.css) */
@media (max-width: 959px) {
	.activity_block_grid {grid-template-columns: repeat(var(--cols-md, 2), minmax(0, 1fr))}
}

@media (max-width: 599px) {
	.activity_block_grid {grid-template-columns: minmax(0, 1fr)}
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	.fl_mobile {float: left}
}

@media (max-width: 480px) {
	.form_layout_inline {flex-direction: column; align-items: stretch; flex-wrap: nowrap}
	.form_layout_inline > legend, .form_layout_inline > .wrap_form_field, .form_layout_inline > button[type=submit],
	.form_layout_inline > :not(legend):not(.wrap_form_field):not(button) {flex: 0 0 auto; order: initial}
	.form_layout_inline > button[type=submit] {width: 100%}
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	.container > span {
	  display: none !important;
	}
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	/* плавающий «Наверх страницы» не должен закрывать последние поля фильтра */
	#form_filter_elements {padding-bottom: 3.5em}
}
/* ===== /1 ===== */

/* ===== 2. Из мобильных блоков тем (были ≤555, теперь мобильный режим): общие для обеих тем — без области, свои — с областью темы; копии правил common удалены ===== */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	:where(html:not([data-theme="special"])) section.first_block {height: 90vh}
	:where(html:not([data-theme="special"])) .flozt_center_text {width: fit-content; max-width: 90%; z-index: 120; padding: 1em; text-align: center; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%)}
	:where(html:not([data-theme="special"])) .flozt_center_text+.t-cover__arrow {position: relative; z-index: 9; bottom: 2em; right: 0; left: 0; text-align: center}
	:where(html:not([data-theme="special"])) .fr {float: none}
	:where(html[data-theme="special"]) .fr {float: none !important}
	.SEARCH_IN_HEADER {padding-top: 1em !important; text-align: center; display: grid}
	:where(html:not([data-theme="special"])) #right .block {margin-left: 0}
	:where(html:not([data-theme="special"])) #wrapper.d_table {display: block; margin-top: 0 !important; padding-bottom: 0 !important}
	:where(html[data-theme="special"]) #wrapper.d_table {display: block}
	:where(html:not([data-theme="special"])) .bottom-bg .container, :where(html:not([data-theme="special"])) section.block_on_main>div {padding-right: 5px; padding-left: 5px}
	:where(html:not([data-theme="special"])) body .bottom-bg+footer>div {padding-bottom: 50px}
	:where(html[data-theme="special"]) aside .block:not(.show_mobile), :where(html[data-theme="special"]) #float_btn {display: none !important}
	:where(html[data-theme="special"]) aside .aside_menu .block {width: 100% !important; display: block !important}
	:where(html[data-theme="special"]) #content .wrap table tbody tr td {display: block; width: 100%; margin: 5px auto}
	#content .post .cover_img {float: none; margin: auto; display: block; max-width: 100% !important}
	:where(html:not([data-theme="special"])) div#develop_link {text-align: center; font-size: 1.1em; padding-bottom: 5em}
	:where(html:not([data-theme="special"])) #develop_link img {display: none}
	:where(html:not([data-theme="special"])) #gorizont_spoiler_menu_but, :where(html:not([data-theme="special"])) .owl-nav {display: none !important}
	:where(html:not([data-theme="special"])) .for_sticky.sticky {overflow-y: auto; max-height: 100%; position: relative}
	:where(html:not([data-theme="special"])) .is_show_bblocks .block_on_main .worker_post_mini {padding: 10px}
	:where(html:not([data-theme="special"])) #all_sections {text-align: center}
	:where(html:not([data-theme="special"])) .elements {justify-content: center}
	:where(html:not([data-theme="special"])) .elements.mr-15px, :where(html:not([data-theme="special"])) .sections.mr-15px {margin-right: 0; justify-content: center}
	:where(html:not([data-theme="special"])) .elements img {max-width: inherit !important; display: block}
	:where(html:not([data-theme="special"])) .table_cart .item_name {text-decoration: underline; font-size: 1.1em}
	:where(html:not([data-theme="special"])) .table_cart tr {border-bottom: 1px solid #dadada}
	:where(html[data-theme="special"]) .show_mobile {display: block; width: 100% !important}
	:where(html[data-theme="special"]) .hide_mobile, :where(html[data-theme="special"]) .mobile_hide, :where(html[data-theme="special"]) .icon-play, :where(html[data-theme="special"]) .guestbook .avatar {display: none !important}
	:where(html[data-theme="special"]) .block_on_main {background-repeat: repeat-x}
	:where(html[data-theme="special"]) nav#G_MENU ul li a {font-size: 17px !important}
	:where(html[data-theme="special"]) .special_div_block table td {display: block; margin-bottom: 0.5em}
}
/* ===== /2 ===== */

/* ===== S4: мобильная раскладка (≤768 портрет и ландшафт телефона) и «контент не растягивает сайт» ===== */
/* на всех ширинах: длинные слова/URL переносятся, встраиваемое не шире колонки (README «Контент не растягивает сайт», CSS-R6) */
h1.title, .fz_title, #content .wrap, aside .block, .crumbs, footer {overflow-wrap: anywhere}
#content .wrap iframe, #content .wrap video, #content .wrap embed, #content .wrap object, aside .block iframe, aside .block video {max-width: 100%}
#content .wrap pre, aside .block pre {max-width: 100%; overflow-x: auto}
/* CSS-R8: .block.wrap имеет overflow:hidden — широкая таблица в блоке колонки обрезалась без прокрутки; прокрутка внутри таблицы на всех ширинах */
aside .block .text table {display: block; max-width: 100%; overflow-x: auto}
/* #1283: common.css ставит #content overflow:hidden — на десктопе таблица шире колонки обрезалась; обёртку ставит common.js, только таким таблицам */
#content .wrap .table_scroll {overflow-x: auto}
/* CSS-R6 (special): длинное слово растягивало ячейку #content (display:table-cell) по min-content и страницу — reset темы ставит
   каждому элементу word-wrap:break-word (наследование от .wrap не доходит), а он min-content не уменьшает. Заголовки и текст —
   anywhere; карточки каталога (ширина fit-content) не трогаем — иначе сжимаются до слова */
:where(html[data-theme="special"]) :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, td, th, a, span, b, strong, em, i, small, label, .title, .fz_title, .text):not(.wrap_element_item_card *, .wrap_section_item *) {overflow-wrap: anywhere}
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	html {-webkit-text-size-adjust: 100%; text-size-adjust: 100%}
	/* #1620: display:block у таблиц #content убран — строки не растягивались, table width:100% занимала ~половину блока.
	   Широкая таблица прокручивается в обёртке .table_scroll (common.js, правило выше, одинаково на всех ширинах) */
	/* картинки — без искажения пропорций */
	#content .wrap img, aside .block img, header img {height: auto}
	header img {max-width: 100%}
	/* CSS-R9: блоки правой колонки — на всю ширину, как левой */
	body #right .block {margin-left: 0; margin-right: 0; width: 100%}
	/* касаемые цели не меньше 44px */
	nav#G_MENU ul li a {min-height: 44px; box-sizing: border-box; padding-top: 10px; padding-bottom: 10px}
	#js-btn-showing-nav {min-height: 44px; min-width: 44px; box-sizing: border-box}
	/* кнопка «Меню» белая под тёмный фон меню; без NAV_BG_COLOR (фон меню прозрачный) в default она была невидимой — цвет текста меню */
	:where(html:not([data-theme="special"]):not([data-ts~="nav-bg"])) #js-btn-showing-nav span {color: inherit}
	:where(html:not([data-theme="special"]):not([data-ts~="nav-bg"])) #js-btn-showing-nav .my__line {border-color: currentColor}
	/* фильтр каталога: строки галочек — касаемая высота */
	.params_filter_values .label_wrap_filtr_choose, .param_filter_list .label_wrap_filtr_choose {display: flex; align-items: center; gap: 0.4em; min-height: 44px; margin: 0}
	nav#G_MENU ul li.has_child >span>i.has_child_i {min-width: 44px; text-align: center; box-sizing: border-box}
	#left_nav li a, #content_nav li a {display: block; min-height: 44px; padding-top: 10px; padding-bottom: 10px; box-sizing: border-box}
	#content input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), #content select, #content textarea,
	#content .btn, #content button, .my_btn {min-height: 44px; box-sizing: border-box}
	/* поля: шрифт не меньше 16px (iOS не увеличивает страницу при фокусе), не шире колонки */
	#content input:not([type=checkbox]):not([type=radio]), #content select, #content textarea {font-size: max(16px, 1em); max-width: 100%}
	/* CM-10: панель категорий карты — потоком под картой; фон темы (#ffffffeb) рассчитан на наложение, под картой дал бы белый прямоугольник на цветном фоне и белый текст на белом в special color_s_3 */
	#wrap_map_and_filter_section_list .wrap_map_section_filter_list {position: static; width: auto; height: auto; background-color: transparent}
}
/* ===== /S4 ===== */

/* ===== S5: тема clean (main_clean.css) — мобильное; до слоя настроек (настройки перебивают при равной специфичности) ===== */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	/* меню на телефоне — полоса во всю ширину без скругления */
	:where(html[data-theme="clean"]) nav#G_MENU {border-radius: 0}
	/* CSS-S4-c: кнопка «Меню» — цвет текста меню (NAV_A_COLOR), без него — контрастный к NAV_BG_COLOR (--ts-nav-text-auto), иначе белая на #111 */
	:where(html[data-theme="clean"]) #js-btn-showing-nav span {color: var(--ts-nav-text, var(--ts-nav-text-auto, #fff))}
	:where(html[data-theme="clean"]) #js-btn-showing-nav .my__line {border-color: var(--ts-nav-text, var(--ts-nav-text-auto, #fff))}
	/* подменю в раскрытом мобильном меню — в потоке, без тени; рамка — тонкая */
	:where(html[data-theme="clean"]) nav#G_MENU ul.ul_lvl_1 > li > ul {box-shadow: none; border: 1px solid var(--ts-nav-sep, rgba(127, 127, 127, .35))}
	/* CSS-S4-b: при POPUP_MENU=none у пункта нет кнопки ▼ (.has_child_i) — подпункты сразу раскрыты, иначе на телефоне до них не добраться */
	:where(html[data-theme="clean"]) nav#G_MENU ul.ul_lvl_1 > li:not(.has_child) > ul {display: block; position: relative}
	/* карточки колонок на телефоне — меньше внешний отступ тени */
	:where(html[data-theme="clean"]) aside .block:not(.clear_block) {box-shadow: none}
}
/* ===== /S5 ===== */

/* ===== S3.2: стили из настроек сайта — оба режима (default и special; перенесено из обеих тем, CSS-30) =====
 * Значения — :root{--ts-*} из _templates/site/style_css.blade.php (только заданные), флаги — <html data-ts="…">.
 * Ключи, переменные и дефолты — docs/styles/vars.md. :where() не меняет специфичность — каскад как у прежних
 * inline-правил. Правило с флагом без поддержки :where()/var() (браузеры до 2021) отбрасывается целиком → вид темы. */
/* ширина сайта (SITE_WIDTH); первая декларация — fallback для браузеров без var() */
/* S4: сайт всегда резиновый — ширина не больше SITE_WIDTH, но не шире окна; min-width на html/body/.container нет (CSS-15) */
:where(html:not([data-ts~="stretchy"])) .container {width:100%;max-width:1100px;max-width:var(--ts-site-width,1100px)}
/* резиновый сайт (STRETCHY_SITE) */
:where([data-ts~="stretchy"]) .container {max-width:1101px;max-width:var(--ts-site-width,1101px);width:auto}
/* выравнивание заголовков (H1_TITLE_ALIGN, H1_M_BLOCK_ALIGN) */
h1.title {text-align:left;text-align:var(--ts-h1-align,left)}
.block_on_main .fz_title {text-align:left;text-align:var(--ts-h1-main-align,left)}
/* ширина боковых блоков (ASIDE_WIDTH) */
aside:not(.genered_aside ) .block, aside:not(.genered_aside ) .block.block_type_calendar, aside:not(.genered_aside ) a.special {width:240px;width:var(--ts-aside-width,240px)}
/* мобильная версия (MOBILE_ASIDE_BLOCK_HIDE, MOBILE_CRUMBS_HIDE) */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	:where([data-ts~="hide-aside-mobile"]) aside .aside_menu .block {display:none !important}
	:where([data-ts~="hide-crumbs-mobile"]) .crumbs {display:none !important}
}
/* ===== /S3.2 оба режима ===== */

/* ===== S3.2: стили из настроек сайта — только default (перенесено из main_default.css; область :where(html:not([data-theme="special"]))) ===== */
/* шрифты (TEXT_FONT, H1_FONT, MENU_FONT) */
:where(html:not([data-theme="special"])) body {font-family:'Arial', Helvetica, sans-serif;font-family:var(--ts-font-text,'Arial', Helvetica, sans-serif)}
:where(html:not([data-theme="special"])) h1.title, :where(html:not([data-theme="special"])) #main_page p.title, :where(html:not([data-theme="special"])) #content .block_on_main .fz_title {font-family:'Arial', Helvetica, sans-serif;font-family:var(--ts-font-heading,'Arial', Helvetica, sans-serif)}
:where(html:not([data-theme="special"])) nav#G_MENU, :where(html:not([data-theme="special"])) #left_nav, :where(html:not([data-theme="special"])) #right_nav, :where(html:not([data-theme="special"])) #content_nav {font-family:'Arial', Helvetica, sans-serif;font-family:var(--ts-font-menu,'Arial', Helvetica, sans-serif)}
/* размеры шрифта (FONT_SIZE_*) */
:where(html:not([data-theme="special"])) header {font-size:14px;font-size:var(--ts-fz-header,14px)}
:where(html:not([data-theme="special"])) footer {font-size:14px;font-size:var(--ts-fz-footer,14px)}
:where(html:not([data-theme="special"])) #content h1.title, :where(html:not([data-theme="special"])) .fz_title {font-size:28px;font-size:var(--ts-fz-h1,28px)}
:where(html:not([data-theme="special"])) #content .block_on_main .fz_title {font-size:26px;font-size:var(--ts-fz-main-title,26px)}
:where(html:not([data-theme="special"])) #content .block_on_main section {font-size:16px;font-size:var(--ts-fz-main-text,16px)}
:where(html:not([data-theme="special"])) aside .block p.title {font-size:18px;font-size:var(--ts-fz-aside-title,18px);margin-bottom:15px}
:where(html:not([data-theme="special"])) aside .block .text {font-size:14px;font-size:var(--ts-fz-aside-text,14px)}
:where(html:not([data-theme="special"])) .news_row .title, :where(html:not([data-theme="special"])) .blog_post .title, :where(html:not([data-theme="special"])) .catalog_map_element .title, :where(html:not([data-theme="special"])) .post .title {font-size:16px;font-size:var(--ts-fz-item-title,16px)}
:where(html:not([data-theme="special"])) body.is_main .news_row .title, :where(html:not([data-theme="special"])) body.is_main .blog_post .title, :where(html:not([data-theme="special"])) body.is_main .catalog_map_element .title, :where(html:not([data-theme="special"])) .title_on_main, :where(html:not([data-theme="special"])) body.is_main .post .title {font-size:16px;font-size:var(--ts-fz-item-title-main,16px)}
:where(html:not([data-theme="special"])) nav#G_MENU li>span>a, :where(html:not([data-theme="special"])) .style_FONT_SIZE_G_MENU {font-size:16px;font-size:var(--ts-fz-menu-top,16px)}
:where(html:not([data-theme="special"])) aside #left_nav li>a {font-size:16px;font-size:var(--ts-fz-menu-side,16px)}
:where(html:not([data-theme="special"])) #content_nav li>a {font-size:16px;font-size:var(--ts-fz-menu-side,16px);text-decoration:none}

/* ссылки (A_COLOR, A_COLOR_HOVER) */
:where(html:not([data-theme="special"])):where([data-ts~="link"]) a, :where(html:not([data-theme="special"])):where([data-ts~="link"]) .crumbs a, :where(html:not([data-theme="special"])):where([data-ts~="link"]) .crumbs span, :where(html:not([data-theme="special"])):where([data-ts~="link"]) .alblink .albom_title, :where(html:not([data-theme="special"])):where([data-ts~="link"]) .style_a_color {color:var(--ts-link)}
:where(html:not([data-theme="special"])):where([data-ts~="link"]) a.site_tag:hover {background-color:var(--ts-link)}
:where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) a:hover, :where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .alblink:hover .albom_title, :where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .style_a_color:hover, :where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .style_a_color_hover {color:var(--ts-link-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .gallink:hover img, :where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .alblink.four_img:hover .wrap_four_img, :where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .btn:hover {border-color:var(--ts-link-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="link-hover"]) .alblink:hover .img {background-color:var(--ts-link-hover)}
/* фон окна (WINDOW_BG_COLOR + BODY_IMG) и сайта (SITE_BG_COLOR) */
:where(html:not([data-theme="special"])):where([data-ts~="body-bg"]) body:not(.redactor) {background:var(--ts-bg-window,transparent) var(--ts-bg-body-image,none)}
:where(html:not([data-theme="special"])) .main_page_is_blocks .container {background-color:initial}
:where(html:not([data-theme="special"])):where([data-ts~="bg-site"]) .main_page_is_blocks .container, :where(html:not([data-theme="special"])):where([data-ts~="bg-site"]) .container {background-color:var(--ts-bg-site)}
/* CONTENT_NO_PADDING, SLIDER_NO_PADDING */
:where(html:not([data-theme="special"])):where([data-ts~="content-no-pad"]) .container.wrapper {padding-right:0;padding-left:0}
:where(html:not([data-theme="special"])):where([data-ts~="slider-no-pad"]) .container.top_slider {padding:0}
/* шапка (HEADER_BG_COLOR + HEADER_BG_IMG; при IS_TWO_HEADER внутренние — HEADER_BG_IMG_SUB, главная — HEADER_BG_IMG) */
:where(html:not([data-theme="special"])):where([data-ts~="header-bg"]) header, :where(html:not([data-theme="special"])):where([data-ts~="header-bg"]) header .container, :where(html:not([data-theme="special"])):where([data-ts~="header-bg"]) header.container {background:var(--ts-bg-header,transparent) var(--ts-bg-header-image,none)}
:where(html:not([data-theme="special"])):where([data-ts~="header-main-bg"]) header.header_on_main, :where(html:not([data-theme="special"])):where([data-ts~="header-main-bg"]) header.header_on_main .container {background:var(--ts-bg-header,transparent) var(--ts-bg-header-main-image,none)}
@media (max-width: 480px) {
	:where(html:not([data-theme="special"])):where([data-ts~="bg-header"]) header, :where(html:not([data-theme="special"])):where([data-ts~="bg-header"]) header .container, :where(html:not([data-theme="special"])):where([data-ts~="bg-header"]) header.container {background-color:var(--ts-bg-header)}
	:where(html:not([data-theme="special"])):where([data-ts~="bg-header"][data-ts~="header-main-bg"]) header.header_on_main, :where(html:not([data-theme="special"])):where([data-ts~="bg-header"][data-ts~="header-main-bg"]) header.header_on_main .container {background-color:var(--ts-bg-header)}
}
/* горизонтальное меню (NAV_*) */
:where(html:not([data-theme="special"])):where([data-ts~="nav-bg"]) nav#G_MENU, :where(html:not([data-theme="special"])):where([data-ts~="nav-bg"]) nav#G_MENU .container, :where(html:not([data-theme="special"])):where([data-ts~="nav-bg"]) .nav_wrapper {background-color:var(--ts-nav-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-bg"]) #scrolltop.btn_as_botton>div {background-color:var(--ts-nav-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) nav#G_MENU ul li a, :where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) #js-btn-showing-nav span, :where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) #scrolltop.btn_as_botton>div {color:var(--ts-nav-text)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) #js-btn-showing-nav .my__line {border-color:var(--ts-nav-text)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) #gorizont_spoiler_menu_but .fa, :where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) #gorizont_spoiler_menu_but, :where(html:not([data-theme="special"])):where([data-ts~="nav-text"]) nav#G_MENU ul li .has_child_i {color:var(--ts-nav-text)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-bg-active"]) nav#G_MENU ul.ul_lvl_1>li.active>span>a {background-color:var(--ts-nav-bg-active)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text-active"]) nav#G_MENU ul.ul_lvl_1>li.active>span>a {color:var(--ts-nav-text-active)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-bg-active"]) .my_btn:not(.red):hover {background-color:var(--ts-nav-bg-active)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text-active"]) .my_btn:not(.red):hover {color:var(--ts-nav-text-active)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-bg-hover"]) nav#G_MENU ul.ul_lvl_1>li:hover>span>a {background-color:var(--ts-nav-bg-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text-hover"]) nav#G_MENU ul.ul_lvl_1>li:hover>span>a {color:var(--ts-nav-text-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-text-hover"]) #gorizont_spoiler_menu_but:hover .fa {color:var(--ts-nav-text-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-bg-hover"]) #gorizont_spoiler_menu_but:hover {background-color:var(--ts-nav-bg-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-sub-text-active"]) nav#G_MENU ul.ul_lvl_1>li>ul a.active {color:var(--ts-nav-sub-text-active)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-sub-bg"]) nav#G_MENU ul.ul_lvl_1>li>ul {background-color:var(--ts-nav-sub-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-sub-text"]) nav#G_MENU ul.ul_lvl_1>li>ul {color:var(--ts-nav-sub-text)}
:where(html:not([data-theme="special"])):where([data-ts~="nav-sub-text"]) nav#G_MENU ul.ul_lvl_1>li>ul li a, :where(html:not([data-theme="special"])):where([data-ts~="nav-sub-text"]) nav#G_MENU ul.ul_lvl_1>li>ul li a:hover {color:var(--ts-nav-sub-text)}
/* рамки: без цвета декларация тоже валидна (`1px dashed` = currentColor) — поэтому без флага, fallback currentColor */
:where(html:not([data-theme="special"])) nav#G_MENU ul.ul_lvl_1>li>ul>li {border-bottom:1px dashed;border-bottom:1px dashed var(--ts-nav-sep,currentColor)}
:where(html:not([data-theme="special"])) nav#G_MENU ul.ul_lvl_1>li>ul>li:last-child {border-bottom:none}
/* выравнивание меню (MENU_GORIZONT_ALIGN, MENU_GORIZONT_SUB_ALIGN) */
:where(html:not([data-theme="special"])):where([data-ts~="menu-align"]) nav#G_MENU ul.ul_lvl_1 {text-align:var(--ts-menu-align)}
:where(html:not([data-theme="special"])):where([data-ts~="menu-sub-align"]) nav#G_MENU ul.ul_lvl_1 ul li {text-align:var(--ts-menu-sub-align)}
/* боковое меню #left_nav (NAV_LEFT_*, MENU_VERTICAL_ALIGN) */
:where(html:not([data-theme="special"])):where([data-ts~="side-bg"]) #left_nav div {background-color:var(--ts-side-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="menu-side-align"]) #left_nav div {text-align:var(--ts-menu-side-align)}
:where(html:not([data-theme="special"])):where([data-ts~="side-text"]) #left_nav div ul>li a, :where(html:not([data-theme="special"])):where([data-ts~="side-text"]) #left_nav div ul li ul li a {color:var(--ts-side-text)}
:where(html:not([data-theme="special"])):where([data-ts~="side-bg-active"]) #left_nav ul>li.active>a, :where(html:not([data-theme="special"])):where([data-ts~="side-bg-active"]) #left_nav>ul>li>ul>li>a.active {background:var(--ts-side-bg-active)}
:where(html:not([data-theme="special"])):where([data-ts~="side-text-active"]) #left_nav ul>li.active>a, :where(html:not([data-theme="special"])):where([data-ts~="side-text-active"]) #left_nav>ul>li>ul>li>a.active {color:var(--ts-side-text-active)}
:where(html:not([data-theme="special"])):where([data-ts~="side-bg-hover"]) #left_nav div ul>li a:hover, :where(html:not([data-theme="special"])):where([data-ts~="side-bg-hover"]) #left_nav div ul li ul li a:hover {background-color:var(--ts-side-bg-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="side-text-hover"]) #left_nav div ul>li a:hover, :where(html:not([data-theme="special"])):where([data-ts~="side-text-hover"]) #left_nav div ul li ul li a:hover {color:var(--ts-side-text-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-bg"]) #left_nav div ul>li>ul {background-color:var(--ts-side-sub-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-text"]) #left_nav div ul>li>ul {color:var(--ts-side-sub-text)}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-text"]) #left_nav div ul>li>ul>li a {color:var(--ts-side-sub-text)}
:where(html:not([data-theme="special"])) #left_nav div ul>li {border-bottom:1px solid;border-bottom:1px solid var(--ts-side-sep,currentColor)}
:where(html:not([data-theme="special"])) #left_nav div ul>li:last-child {border-bottom:none}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-text-active"]) #left_nav div ul li ul li a.active {color:var(--ts-side-sub-text-active)}
/* меню в контенте #content_nav */
:where(html:not([data-theme="special"])):where([data-ts~="menu-side-align"]) #content_nav ul {text-align:var(--ts-menu-side-align)}
:where(html:not([data-theme="special"])):where([data-ts~="side-bg"]) #content_nav li>a {background:var(--ts-side-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="side-text"]) #content_nav li>a {color:var(--ts-side-text)}
:where(html:not([data-theme="special"])):where([data-ts~="side-bg-active"]) #content_nav ul>li.active>a, :where(html:not([data-theme="special"])):where([data-ts~="side-bg-active"]) #content_nav>ul>li>ul>li>a.active {background:var(--ts-side-bg-active)}
:where(html:not([data-theme="special"])):where([data-ts~="side-text-active"]) #content_nav ul>li.active>a, :where(html:not([data-theme="special"])):where([data-ts~="side-text-active"]) #content_nav>ul>li>ul>li>a.active {color:var(--ts-side-text-active)}
:where(html:not([data-theme="special"])):where([data-ts~="side-bg-hover"]) #content_nav ul>li>a:hover, :where(html:not([data-theme="special"])):where([data-ts~="side-bg-hover"]) #content_nav>ul>li>ul>li>a:hover {background-color:var(--ts-side-bg-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="side-text-hover"]) #content_nav ul>li>a:hover, :where(html:not([data-theme="special"])):where([data-ts~="side-text-hover"]) #content_nav>ul>li>ul>li>a:hover {color:var(--ts-side-text-hover)}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-bg"]) #content_nav .founded_uL_lvl_2 ul>li>a {background-color:var(--ts-side-sub-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-text"]) #content_nav .founded_uL_lvl_2 ul>li>a {color:var(--ts-side-sub-text)}
:where(html:not([data-theme="special"])):where([data-ts~="side-sub-text-active"]) #content_nav .founded_uL_lvl_2 ul>li a.active {color:var(--ts-side-sub-text-active)}
/* подвал (FOOTER_*): FOOTER_BG_WIDTH_VIEWPORT (флаг footer-full) → footer, иначе footer.container */
:where(html:not([data-theme="special"])) footer .container {background-color:initial}
:where(html:not([data-theme="special"])):where([data-ts~="footer-text"][data-ts~="footer-full"]) footer, :where(html:not([data-theme="special"])):where(html[data-ts~="footer-text"]:not([data-ts~="footer-full"])) footer.container {color:var(--ts-footer-text)}
:where(html:not([data-theme="special"])):where([data-ts~="footer-bg"][data-ts~="footer-full"]) footer, :where(html:not([data-theme="special"])):where(html[data-ts~="footer-bg"]:not([data-ts~="footer-full"])) footer.container {background-color:var(--ts-footer-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="footer-bg-image"][data-ts~="footer-full"]) footer, :where(html:not([data-theme="special"])):where(html[data-ts~="footer-bg-image"]:not([data-ts~="footer-full"])) footer.container {background:var(--ts-footer-bg,transparent) var(--ts-footer-bg-image)}
:where(html:not([data-theme="special"])):where([data-ts~="footer-bg-image"][data-ts~="footer-bg-size"][data-ts~="footer-full"]) footer, :where(html:not([data-theme="special"])):where(html[data-ts~="footer-bg-image"][data-ts~="footer-bg-size"]:not([data-ts~="footer-full"])) footer.container {background-size:var(--ts-footer-bg-size)}
/* мобильные картинки шапки и подвала (HEADER_BG_IMG_MOBILE, FOOTER_BG_IMG_MOBILE) */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
	:where(html:not([data-theme="special"])) header, :where(html:not([data-theme="special"])) header .container {background-image:none}
	:where(html:not([data-theme="special"])):where([data-ts~="bg-header-image-mobile"]) header, :where(html:not([data-theme="special"])):where([data-ts~="bg-header-image-mobile"]) header .container {background-image:var(--ts-bg-header-image-mobile) !important;background-size:cover !important;background-position-y:50%}
	:where(html:not([data-theme="special"])) footer {background-image:none}
	:where(html:not([data-theme="special"])):where([data-ts~="footer-bg-image-mobile"]) footer {background-image:var(--ts-footer-bg-image-mobile) !important;background-size:contain !important}
}
:where(html:not([data-theme="special"])):where([data-ts~="footer-link"]) footer a, :where(html:not([data-theme="special"])):where([data-ts~="footer-link"]) footer a:hover, :where(html:not([data-theme="special"])):where([data-ts~="footer-link"]) .style_footer_a_color {color:var(--ts-footer-link)}
:where(html:not([data-theme="special"])):where([data-ts~="header-link"]) header a, :where(html:not([data-theme="special"])):where([data-ts~="header-link"]) header a:hover {color:var(--ts-header-link)}
/* контент (CONTENT_*) */
:where(html:not([data-theme="special"])) .wrap {border:0 solid;border:var(--ts-content-border-width,0px) solid var(--ts-content-border,currentColor)}
:where(html:not([data-theme="special"])):where([data-ts~="content-bg"]) .wrap {background-color:var(--ts-content-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="content-text"]) .wrap {color:var(--ts-content-text)}
:where(html:not([data-theme="special"])) .wrap {padding:15px;padding:var(--ts-content-padding,15px)}
:where(html:not([data-theme="special"])) #left_nav ul li {margin:0 15px;margin:0 var(--ts-content-padding,15px)}
:where(html:not([data-theme="special"])) #left_nav ul {margin:0 -15px;margin:0 calc(-1 * var(--ts-content-padding,15px))}
:where(html:not([data-theme="special"])) #left_nav ul li a {padding-left:15px;padding-left:var(--ts-content-padding,15px);padding-right:15px;padding-right:var(--ts-content-padding,15px);margin:0 -15px;margin:0 calc(-1 * var(--ts-content-padding,15px))}
/* блоки на главной (BLOCK_ON_MAIN_BG_COLOR, BLOCK_ON_MAIN_BG_IMG) */
:where(html:not([data-theme="special"])):where([data-ts~="main-block-bg"]) #BLOCK_ON_MAIN {background-color:var(--ts-main-block-bg)}
:where(html:not([data-theme="special"])):where([data-ts~="main-block-image"]) #BLOCK_ON_MAIN {background-image:var(--ts-main-block-image)}
:where(html:not([data-theme="special"])):where([data-ts~="content-border"]) .news_items .wrap_news_announce:not(:last-child), :where(html:not([data-theme="special"])):where([data-ts~="content-border"]) .blog .blog_post:not(:last-child), :where(html:not([data-theme="special"])):where([data-ts~="content-border"]) .catalog_map_element:not(:last-child) {border-color:var(--ts-content-border)}
:where(html:not([data-theme="special"])):where([data-ts~="content-bg"]) body.redactor {background-color:var(--ts-content-bg)}
:where(html:not([data-theme="special"])) #nivoSlider {border:1px solid;border:1px solid var(--ts-content-border,currentColor)}
:where(html:not([data-theme="special"])) #calendar .days.m a {border:1px solid;border:1px solid var(--ts-content-bg,currentColor)}
/* заголовки и текст шапки (H1_TITLE_COLOR, HEADER_TEXT_COLOR) */
:where(html:not([data-theme="special"])):where([data-ts~="title"]) h2.title, :where(html:not([data-theme="special"])):where([data-ts~="title"]) h1.title, :where(html:not([data-theme="special"])):where([data-ts~="title"]) .block>p.title, :where(html:not([data-theme="special"])):where([data-ts~="title"]) .messages .question .p .name, :where(html:not([data-theme="special"])):where([data-ts~="title"]) .messages .answer .p .name, :where(html:not([data-theme="special"])):where([data-ts~="title"]) .comment dt .name, :where(html:not([data-theme="special"])):where([data-ts~="title"]) .color_title {color:var(--ts-title)}
:where(html:not([data-theme="special"])):where([data-ts~="header-text"]) header .header_text {color:var(--ts-header-text)}
/* ===== /S3.2 только default ===== */

/* #1594: на узкой карте ymaps показывает балун панелью внизу; фото ограничено, чтобы название и ссылка были видны без прокрутки */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
  .catalog_map_card img {width: 100%; max-height: 100px; object-fit: cover}
}
