/* Layout only. Content and the external-service permission controller stay unchanged. */
body { padding-bottom: var(--luat-banner-height, 0px) !important; }
header, main, footer, .container, .page-article, .page__layout, .page__content,
.page__main, .header__name, .header__info, .title__block, .director, .slider,
.news-content, .compact-news-content, .all-posts-item, .dataTables_wrapper { min-width: 0; }
.page__content, .page__main, main > .container { overflow-wrap: anywhere; }
.page__content img, .page__main img, main > .container img { max-width: 100%; height: auto; }
.page__content figure, .page__main figure, .page__content .wp-caption, .page__main .wp-caption { max-width: 100%; }
.page__content video, .page__main video, .page__content iframe, .page__main iframe,
.page__content object, .page__content embed { max-width: 100%; }
.page__content pre, .page__main pre { max-width: 100%; overflow: auto; white-space: pre; }
.wp-block-columns > .wp-block-column { min-width: 0; }
.sidebar-menu-container { float: none; width: 100%; margin: 0; }
.all-posts-item { min-width: 0; }
.breadcrumb, .breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb a { display: inline; padding: 0; line-height: 1.6; }
.breadcrumb-item.active { color: #fff; }
.page__layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.table-wrapper, .luat-table-scroll {
    display: block; max-width: 100%; width: 100%; min-width: 0;
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.table-wrapper table, .luat-table-scroll table { max-width: none !important; height: auto; font-size: .875rem; }
.table-wrapper table { min-width: 100%; table-layout: auto; }
.table-wrapper th, .table-wrapper td { min-width: 7rem; overflow-wrap: break-word; }
.luat-table-scroll .spo-table { min-width: 100rem; width: 100% !important; table-layout: auto; font-size: .875rem; }
.luat-table-scroll .spo-table th, .luat-table-scroll .spo-table td {
    width: auto !important; min-width: 7rem; padding: .65rem; white-space: normal;
    word-break: normal; overflow-wrap: anywhere; vertical-align: top;
}
.luat-table-scroll .spo-table :is(th,td):nth-child(1) { min-width: 3rem; }
.luat-table-scroll .spo-table :is(th,td):nth-child(2) { min-width: 11rem; }
.luat-table-scroll .spo-table :is(th,td):nth-child(4),
.luat-table-scroll .spo-table :is(th,td):nth-child(8),
.luat-table-scroll .spo-table :is(th,td):nth-child(9),
.luat-table-scroll .spo-table :is(th,td):nth-child(12) { min-width: 14rem; }
.spo-wrap { max-width: 100%; }
.spo-toggle { width: 44px; height: 44px; font-size: 1.25rem; }
.table-scroll-hint { color: #17324d; font-size: .875rem; margin: .75rem 0 .5rem; }
.luat-table-tools, .luat-table-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: .75rem 0; }
.luat-table-tools :is(.dataTables_length,.dataTables_filter), .luat-table-bottom :is(.dataTables_info,.dataTables_paginate) { float: none; margin: 0; width: auto; text-align: left; }
.luat-table-tools input { min-height: 44px; max-width: 100%; font-size: 1rem; }
.luat-table-tools select { min-height: 44px; font-size: 1rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 44px; min-height: 44px; }
.bottom__header { height: auto; min-height: 0; }
.header-menu .menu { margin: 0; padding: .5rem 0; gap: .25rem 1rem; flex-wrap: wrap; align-items: stretch; }
.header-menu .menu > li { display: flex; align-items: stretch; min-width: 0; }
.header-menu .menu > li > a { display: flex; align-items: center; padding: .65rem 0; line-height: 1.4; font-size: 1rem; }
.header-menu .sub-menu { max-width: min(32rem, calc(100vw - 3rem)); width: max-content; top: 100%; left: 0; }
.header-menu .menu > li:last-child .sub-menu { left: auto; right: 0; }
.header-menu .sub-menu .sub-menu { position: static; flex-basis: 100%; width: 100%; padding-left: 1rem; }
.header-menu ul li ul li a { white-space: normal; overflow-wrap: anywhere; font-size: 1rem; padding: .75rem; }
.header-menu--enhanced .sub-menu:not([hidden]) { display: block; }
.header-menu .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
    min-width: 44px; min-height: 44px; margin: 0; padding: .5rem;
    border: 0; border-radius: .25rem; background: transparent; color: #fff; font-size: 1rem;
}
.header-menu .sub-menu > li { display: flex; flex-wrap: wrap; position: relative; }
.header-menu .sub-menu > li > a { flex: 1; }
.header-menu .sub-menu .submenu-toggle { color: #17324d; }
.submenu-toggle[aria-expanded="true"] { background: #ffffff25; }
.header-menu:not(.header-menu--enhanced) .sub-menu { display: block; position: static; }
.burger { width: auto; height: auto; min-height: 48px; padding: .6rem .5rem; gap: .75rem; align-items: center; flex-direction: row; color: #fff; font: inherit; }
.burger .burger-bars { display: grid; gap: 5px; width: 24px; height: auto; background: none; }
.burger-bars i { display: block; height: 3px; background: currentColor; border-radius: 2px; }
.burger .burger-label { height: auto; background: none; font-size: 1rem; line-height: 1.5; }
.header-search input { min-width: 0; font-size: 1rem; }
.search-toggle { min-height: 44px; padding: .5rem; margin: 0; }
.image__header { display: flex; align-items: center; gap: .5rem; height: auto; }
.image__header > a { flex: 0 0 auto; }
.bvi-shortcode { transform: none !important; }
.minobr-img { max-height: 54px; width: auto; }
.header__link { display: flex; flex-wrap: wrap; align-items: center; }
.link__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.lang.lang_fixed { position: relative; top: auto; right: auto; margin-left: auto; }
.lang__link { min-width: 44px; min-height: 44px; }
.lang__list { background: var(--primary-color); }
.mid__header .container { gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.header__name { flex: 1.5; width: auto; align-items: center; }
.header-logo-container { flex: 0 0 auto; }
.lototype { width: 110px; max-width: 100%; height: auto; }
.title__block .title { font-size: clamp(1.5rem, 2.5vw, 2.25rem) !important; margin: .5rem 0 0; line-height: 1.2; }
.title__block .subtitle { font-size: .9375rem; margin: 0; line-height: 1.4; }
.header__info { flex: 1; font-size: .9375rem; }
.contacts p { position: relative; padding-left: 1.75rem; line-height: 1.5; margin: .5rem 0; }
.contacts .icon { position: absolute; left: 0; top: .1rem; }
.contacts .icon img { width: 20px; height: 20px; margin: 0; }
.contacts a { overflow-wrap: anywhere; }
.director__slider { gap: 1.5rem; }
.director, .slider { min-width: 0; }
#js-show-iframe-wrapper { min-width: 0; }
.pos-banner-btn_2 { width: 100%; max-width: 240px; display: flex; align-items: center; justify-content: center; padding: .75rem; text-align: center; text-decoration: none; }
.luat-external, .map_container { min-width: 0; max-width: 100%; }
.map_container .luat-external { width: 100%; }
.modal .rutube-iframe { width: 100%; height: auto !important; aspect-ratio: 16 / 9; }
.modal-content { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
.modal-body { overflow-y: auto; }
.modal-title { font-size: clamp(1.25rem, 4vw, 2rem); overflow-wrap: anywhere; }
.modal .btn-close { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: .625rem; margin: -.25rem -.25rem -.25rem auto; }
.wpcf7 :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) { max-width: 100%; box-sizing: border-box; font-size: 1rem; }
.footer__link, .luat-privacy-links > a, .luat-privacy-links > button { display: inline-flex; align-items: center; min-height: 44px; gap: .25rem; }
.luat-privacy-links { color: #fff; }
.luat-privacy-links a { color: #fff; }
.partners-carousel .owl-nav, .useful-links-grid .owl-nav { position: static; transform: none; justify-content: center; gap: 1rem; }
.owl-carousel .owl-nav button { min-width: 44px; min-height: 44px; }
.owl-carousel .owl-dots button { min-width: 32px; min-height: 44px; }
.table-wrapper:focus-visible, .luat-table-scroll:focus-visible { outline: 3px solid #b85400; outline-offset: 3px; }
@media (max-width: 1199.98px) {
    .header__flex { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; padding: .5rem 0; }
    .image__header { grid-column: 1 / -1; width: 100%; flex-wrap: wrap; gap: .5rem; }
    .minobr-img { max-height: 36px; }
    .header__link { justify-content: flex-end; width: auto; gap: .25rem; }
    .img__link { width: 32px; height: 32px; }
    .header-search { display: block; width: 100%; grid-column: 1 / -1; }
    .luat-search-ready .header-search:not(.active) { display: none; }
    .header-search.active { display: block; }
    .search-toggle { display: none; text-align: left; }
    .luat-search-ready .search-toggle { display: block; }
    .searchform div { display: flex; width: 100%; }
    .searchform div #s { width: 100%; }
    .searchform div #searchsubmit { flex: 0 0 auto; width: auto; padding: .5rem .75rem; }
    .bvi-shortcode { transform: none !important; }
    .bvi-open { font-size: 0; }
    .bvi-open svg { width: 32px; height: 32px; font-size: 32px !important; }
    .mid__header .container { display: grid; grid-template-columns: 1fr; gap: 1rem; text-align: left; align-items: start; }
    .header__name { display: flex; width: 100%; gap: .75rem; }
    .header-logo-container { margin: 0; }
    .header__info { width: 100%; }
    .lototype { width: 80px; margin: 0; }
    .contacts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem 1.5rem; }
    .contacts p { margin: .25rem 0; }
    .contacts .address { grid-column: 1 / -1; }
    .bottom__header { position: relative; }
    .burger { display: none; }
    .bottom__header.luat-nav-ready .burger { display: inline-flex; }
    .header-menu, #nav-menu { position: static; }
    .header-menu .menu { display: flex; width: 100%; padding: 0 0 .75rem; position: static; flex-direction: column; gap: 0; }
    .header-menu .menu > li { flex-wrap: wrap; border-top: 1px solid #ffffff40; }
    .header-menu .menu > li > a { flex: 1; padding: .85rem .5rem; font-size: 1rem; }
    .header-menu .menu li > .sub-menu { position: static; flex-basis: 100%; width: 100%; max-width: 100%; margin: 0; padding: .25rem .5rem; border: 0; border-radius: 0; }
    .header-menu .sub-menu .sub-menu { margin: 0; padding-left: .75rem; }
    .header-menu .sub-menu li { flex-wrap: wrap; border-bottom: 1px solid #d9e2ee; }
    .header-menu .sub-menu a { flex: 1; min-width: 0; }
    .header-menu .submenu-toggle { flex: 0 0 48px; }
    .director__slider { display: grid; grid-template-columns: minmax(0,1fr); margin: 1.5rem 0; }
    .director, .slider { width: 100%; min-height: 0; margin: 0; }
    .director { border-radius: .75rem; }
    .slider { padding: 0; }
    .projects__container--mobile { display: block !important; }
    .projects__container--desktop { display: none !important; }
}
@media (min-width: 1200px) {
    .search-toggle { display: none; }
    .header-search { display: block; flex: 1; min-width: 0; padding: 0 1rem; }
    .searchform div { display: flex; }
    .searchform div #s { width: 100%; min-width: 0; }
    .header-menu .menu { display: flex; }
    .header-menu .menu > li { flex: 0 1 auto; }
}
@media (max-width: 767.98px) {
    .title__block .title { font-size: clamp(1.25rem,4.8vw,1.75rem) !important; }
    .title__block .subtitle { font-size: .8125rem; }
    .lototype { width: 64px; }
    .header__name { align-items: center; }
    .contacts { display: block; font-size: .875rem; }
    .contacts p { margin: .5rem 0; }
    .mid__header .container { gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }
    .page-wrapper { padding: 1rem 0 2rem; }
    .page__main { padding: 1rem; }
    .page__layout { gap: 1rem; }
    .title__page { font-size: 1.375rem; line-height: 1.35; }
    .breadcrumb { font-size: .875rem; }
    .page__content, .page__main { font-size: 1rem; line-height: 1.6; }
    .page__content :is(h2,h3,h4), .page__main :is(h2,h3,h4), main > .container > h2 { overflow-wrap: anywhere; }
    .page__content :is(ul,ol), .page__main :is(ul,ol) { padding-left: 1.5rem; }
    .page__content .alignleft, .page__content .alignright, .page__main .alignleft, .page__main .alignright { float: none; margin: 1rem 0; max-width: 100%; }
    .button_modal { flex-wrap: wrap; gap: .75rem; padding: 0 1rem 1rem; }
    .button_modal .btn-outline-success { flex: 1 1 10rem; height: auto; min-height: 44px; margin: 0; white-space: normal; font-size: 1rem; }
    .title__image { display: flex; align-items: center; }
    .title__image .image__container { flex: 0 0 100px; }
    .title__image .image__container img { width: 100%; height: auto; }
    .director__title { width: auto; margin: 0; padding: 1rem .75rem; font-size: 1.25rem; line-height: 1.4; }
    .director__describe { font-size: 1rem; margin: 0 1rem 1rem; }
    .director__subdescribe { margin: 1rem; }
    .section__title { font-size: 1.75rem; }
    .our__project { margin-top: 2rem; }
    .our__news { padding-bottom: 2rem; }
    .news-container { display: grid; grid-template-columns: minmax(0,1fr); padding: 1rem; gap: 1rem; border-radius: .75rem; }
    .featured-news, .compact-news-item { padding: 0; min-width: 0; }
    .featured-news, .more-news-list { grid-column: auto; }
    .more-news-list { min-width: 0; grid-template-rows: none; gap: 1rem; }
    .news-container > .news-link { min-width: 0; }
    .news-image img { width: 100%; height: auto; max-width: 100%; padding: 0; border-radius: .5rem; }
    .news-image { height: auto; }
    .news-content { padding: 1rem 0; }
    .news-content { height: auto; }
    .news-more-button { float: none; width: fit-content; max-width: 100%; min-height: 44px; height: auto; padding: .5rem 1rem; font-size: 1rem; }
    .posts-pagination ul { flex-wrap: wrap; }
    .news-excerpt, .compact-news-excerpt { font-size: .9375rem; }
    .compact-news-item { gap: .75rem; }
    .compact-news-thumb { flex: 0 0 80px; }
    .compact-news-thumb img { width: 80px; max-width: 100%; height: 80px; object-fit: cover; }
    .all-posts-container { grid-template-columns: minmax(0,1fr); }
    .all-posts-item { flex-direction: column; gap: 1rem; }
    .all-posts-image img { width: 100%; max-width: 100%; height: auto; max-height: 16rem; object-fit: contain; }
    .admission-banner__content, .spo-experiment-banner__content { min-width: 0; }
    .admission-banner__btn, .spo-experiment-banner__btn { white-space: normal; text-align: center; }
    .admission-banner__phone { font-size: clamp(1.25rem,6vw,1.75rem); }
    .admission-banner__email { font-size: .9375rem; }
    .luat-table-tools { align-items: stretch; }
    .luat-table-tools .dataTables_filter { width: 100%; }
    .luat-table-tools .dataTables_filter label { display: flex; flex-direction: column; gap: .5rem; }
    .luat-table-tools .dataTables_filter input { width: 100%; margin-left: 0; }
    .luat-table-bottom .dataTables_paginate { display: flex; flex-wrap: wrap; padding: 0; }
    .luat-table-bottom .dataTables_paginate span { display: flex; flex-wrap: wrap; }
    .luat-privacy-links { align-items: stretch; flex-direction: column; text-align: left; padding: 1rem 0; gap: .5rem; }
    .footer__list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem .75rem; }
    .footer__list .footer__item { margin: 0; }
    .footer__link { font-size: .875rem; line-height: 1.4; }
    .footer__describe { overflow-wrap: anywhere; line-height: 1.5; padding: 1rem 0; }
    .luat-external-placeholder { padding: 1rem; }
    .luat-external-placeholder .luat-button { white-space: normal; max-width: 100%; }
    .ticker-pause { font-size: .875rem; min-height: 44px; white-space: normal; }
    .modal-dialog { margin: .75rem; }
    .modal-content { max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); }
}
