@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

@font-face {
    font-family: "Inter";
    src: url("../../../upload/assets/fonts/Inter/Inter-Medium.woff")
    format("woff");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Inter";
    src: url("../../../upload/assets/fonts/Inter/Inter-Regular.woff")
    format("woff");
    font-weight: 400;
    font-style: normal;
}
:root {
    --font-family: "Inter", sans-serif;
    --second-family: "Nunito", sans-serif;
    --third-family: "Nunito", sans-serif;
    --slider-controls-bottom: 2rem;
    --slider-controls-bottom--s: 0.5rem;
}

/* ОБЩИЕ СТИЛИ НАЧАЛО */

.p-20 {
    padding: 1.25rem;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mt-65 {
    margin-top: 4rem;
}

.mt-100 {
    margin-top: 6.25rem;
}

.mr-10 {
    margin-right: 0.625rem;
}

.mb-5 {
    margin-bottom: 0.3125rem;
}

.mb-10 {
    margin-bottom: 0.625rem;
}

.mb-18 {
    margin-bottom: 1.125rem;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 65px 30px;

    font-size: 1.125rem;
    font-family: var(--font-family);
    color: var(--text);
    font-weight: 400;
	min-height: 0;
}

.col-1 {
    grid-column: span 1;
}
.col-2 {
    grid-column: span 2;
}
.col-3 {
    grid-column: span 3;
}
.col-4 {
    grid-column: span 4;
}
.col-5 {
    grid-column: span 5;
}
.col-6 {
    grid-column: span 6;
}
.col-7 {
    grid-column: span 7;
}
.col-8 {
    grid-column: span 8;
}
.col-9 {
    grid-column: span 9;
}
.col-10 {
    grid-column: span 10;
}
.col-11 {
    grid-column: span 11;
}
.col-12 {
    grid-column: span 12;
}

.displayNone {
    display: none;
}

.text_editor strong {
    font-weight: 600;
}

span[title="Компонент Обёртка начало"],
span[title="Компонент Обёртка конец"] {
    border: 2px solid red !important;
}

span[title="Компонент контейнер вкладок страницы начало"],
span[title="Компонент контейнер вкладок страницы конец"] {
    border: 2px solid blue !important;
}

span[title="Компонент вкладка начало"],
span[title="Компонент вкладка конец"] {
    border: 2px solid #008CFF !important;
}

/* Стили страницы 404 */

.error_container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}
.img_container {
    width: 525px;
    height: 390px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.img_container img {
    width: 100%;
    height: 100%;
}
.background_container {
    width: calc(100% - 80px);
    height: 290px;
    margin: auto;
    border-radius: 15px;
    background-color: rgba(217, 232, 255, 0.37);
    position: absolute;
    top: 63;
}
.uk-switcher {
    touch-action: unset !important;
}
.error_text {
    margin-top: 31px;
    text-align: center;
}
.error_text_exit__container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.error_text_exit {
    text-align: center;
    color: var(--text-blue);
    cursor: pointer;
    width: max-content;
}

/* Стили страницы 404 конец */

/* Основные настройки таблицы */

/* Стили для всех таблиц */
table:not(.ui-datepicker-calendar, .main-grid-table) {
    /* display: table; */

    /*display: block;
    max-width: -moz-fit-content;
    max-width: fit-content;*/

    /* margin: 0 auto; */
    overflow-x: auto;
    /* white-space: nowrap; */

    grid-column: span 12;
    width: 100%; /* Занимает всю доступную ширину */
    border-collapse: collapse; /* Объединяет границы ячеек */
    background-color: #fff; /* Белый фон */
    border-style: hidden; /* hide standard table (collapsed) border */
    box-shadow: 0 0 0 1px transparent; /* this draws the table border  */
}

table:not(.ui-datepicker-calendar, .main-grid-table) a{
	color: var(--blue500);
	text-decoration: none;
	transition: color 0.2s ease-in;
}

table:not(.ui-datepicker-calendar, .main-grid-table) a:hover,
table:not(.ui-datepicker-calendar, .main-grid-table) a:focus{
	color: var(--blue700);
	text-decoration: none;
}

/* Стили для заголовков столбцов (thead) */
thead {
    background-color: #f9fafb; /* Светло-серый фон для заголовков */
    color: var(--text-table-color); /* Цвет текста */
    font-weight: bold; /* Жирный шрифт */
    /* border: 1px solid transparent; */
    /* border-radius: 1rem; */
}

/* Стили для ячеек заголовков (th) */
th {
    padding: 0.75rem 1rem; /* Поля вокруг текста */
    text-align: left; /* Выравнивание по левому краю */
    border: 1px solid var(--table-border); /* Граница между ячейками */
    position: relative; /* Для позиционирования стрелок сортировки */
    font-size: 1rem;
}

/* tr {
  min-height: 1rem;
} */

/* Стили для строк таблицы (tbody) */
/* tr:nth-child(even) {
  background-color: #f9fafb; /* Альтернативный фон для четных строк */
/* } */

/* Стили для ячеек данных (td) */
td {
    padding: 0.75rem 1rem; /* Поля вокруг текста */
    text-align: left; /* Выравнивание по левому краю */
    border: 1px solid var(--table-border); /* Граница между ячейками */
    color: var(--text-table-color); /* Цвет текста */
    font-size: 1rem;
}

/* Удаление внутренних границ у первой строки tbody */
tbody tr:first-child td {
    border-top: none; /* Убираем верхнюю границу */
}

/* Удаление внешних границ таблицы */
/* table,
th,
td {
  border: none; /* Убираем внешние границы */
/* } */

div:has(> table) {
    overflow-x: auto;
}

/* Основные настройки таблицы конец */

.roundStyle {
    border-radius: 15px;
    overflow: hidden;
}

.redirect-header-info-text__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.redirect-header-info-text__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.redirect-header-info__container {
    display: flex;
    gap: 10px;
}

.redirect-header__icon {
    width: 30px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='21' viewBox='0 0 25 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.3916 19.75L3.6084 19.75C2.68799 19.7499 2.10441 18.8007 2.46387 17.9961L2.54883 17.8379L11.4404 3.61133C11.8995 2.87691 12.9305 2.83089 13.4609 3.47363L13.5596 3.61133L22.4512 17.8379C22.9714 18.6704 22.3733 19.7499 21.3916 19.75Z' fill='%234370B7' stroke='%234370B7' stroke-width='1.5'/%3E%3Cellipse cx='12.4191' cy='17.2857' rx='1.21599' ry='1.12844' fill='white'/%3E%3Cpath d='M13.6351 8.42824C13.6351 9.05146 13.0907 15.3117 12.4191 15.3117C11.7475 15.3117 11.2031 9.05146 11.2031 8.42824C11.2031 7.80502 11.7475 7.2998 12.4191 7.2998C13.0907 7.2998 13.6351 7.80502 13.6351 8.42824Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
}

.redirect-header__container {
    position: relative;
    top: -25px;
    display: flex;
    grid-column: span 12;
    padding: 10px;
    border: 2px dashed #4370b7;
    border-radius: 12px;
    background-color: #d9e8ff;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.redirect-header__text {
    text-align: center;
}

.redirect-header__link {
    color: var(--text-blue);
    text-decoration: none;
}

.zoomable-image {
    cursor: zoom-in;
}

.zoom { display: none !important; }
.fancybox-container { display: none !important; }

/* ОБЩИЕ СТИЛИ КОНЕЦ */

/* HEADER АДАПТИВ НАЧАЛО */

@media screen and (min-width: 768px) and (max-width: 1440px) {
    .header-logos-container {
        gap: 14px;
    }
    .left-menu {
        display: none !important;
    }

    .header-menu {
        min-width: 11.185rem !important;
        height: 1.6rem !important;
    }

    .header-logo {
        width: 4.8rem !important; /* 76.8px */
        height: 4.114rem !important; /* ~65.82px */
    }
    /* .logo_prosvet {
          width: 5.875rem !important; 
          height: 3.525rem !important; 
      } */
    .header-logos-container {
        gap: 9.6px !important; /* 12px → 9.6px */
    }
}

@media screen and (min-width: 576px) and (max-width: 768px) {
    /* .header-page-padding {
      padding: 0 4rem 0 1.5rem !important;
    } */
    .left-menu,
    .header-menu__visually-impaired {
        display: none !important;
    }
    .header-menu {
        min-width: 7.75rem !important;
        height: 1.4rem !important;
    }
    .header-logo {
        width: 4rem !important; /* 64px */
        height: 3.428rem !important; /* ~54.85px */
    }
    .redirect-header__icon {
        width: 50px;
    }
    .logo_prosvet {
        width: 5.5rem !important; /* 88px */
        height: 3.3rem !important; /* 52.8px */
    }
    .header-logos-container {
        gap: 7.2px !important; /* 9.6px → 7.2px */
    }
}

@media screen and (min-width: 375px) and (max-width: 576px) {
    /* .header-page-padding {
      padding: 0 2.5rem 0 1rem !important;
    } */
    .redirect-header__text,
    .redirect-header__container {
        font-size: 14px;
    }
    .redirect-header-info__container {
        flex-direction: column;
        gap: unset;
    }
    .redirect-header__icon {
        width: 65px;
        height: 30px;
    }
    .left-menu,
    .accessibility-btn,
    .header-menu__language {
        display: none !important;
    }
    .header-menu {
        min-width: 3.75rem !important;
        height: 1.3rem !important;
    }
    .header-logo {
        width: 3.46rem !important; /* ~55.36px */
        height: 3.105rem !important; /* ~49.68px */
    }
    .logo_prosvet {
        width: 5.25rem !important; /* 84px */
        height: 3.125rem !important; /* 50px */
    }
    .header-logos-container {
        gap: 4.64px !important; /* Фиксированное значение */
    }
}

@media screen and (max-width: 375px) {
    /* .header-page-padding {
      padding: 0 1.5rem 0 1.5rem !important;
    } */
    .redirect-header__text,
    .redirect-header__container {
        font-size: 14px;
    }
    .redirect-header-info__container {
        flex-direction: column;
        gap: unset;
    }
    .redirect-header__icon {
        width: 90px;
    }
    .left-menu,
    .accessibility-btn,
    .header-menu__language {
        display: none !important;
    }
    .header-menu {
        min-width: 3.75rem !important;
        height: 1.25rem !important;
    }
    .header-logo {
        width: 3.46rem !important; /* ~55.36px */
        height: 3.105rem !important; /* ~49.68px */
    }
    .logo_prosvet {
        width: 5.25rem !important; /* 84px */
        height: 3.125rem !important; /* 50px */
    }
    .header-logos-container {
        gap: 4.64px !important; /* Фиксированное значение */
    }
}

/* HEADER АДАПТИВ КОНЕЦ */

/* Временные стили компонентов */

/* MENU-LABELS START */

.menu-labels__container {
    margin-top: 1px;
    display: flex;
    justify-content: space-between;
    gap: 1vw;
}

.menu-labels__item {
    /* width: 23.75rem; */
    /* height: 35.5625rem; */
    gap: 0.165rem;
    width: 100%;
    flex: 0.25;
    min-width: 310px;
    /* max-width: 370px; */
}

.menu-labels__item__header {
    font-family: var(--font-family);
    color: var(--text);
    height: 4.5rem;
    font-size: 1.625rem;
    line-height: 2.0625rem;
    width: 100%;
}
.menu-list__info-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 1rem;
    line-height: 162%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--text-gray);
    transition: all 0.2s ease-in;
}

.menu-list__info-text:hover {
    color: var(--blue500);
}

.menu-labels__item__photo {
    margin: 1.5625rem 0;
    /* height: 15.8125rem; */
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.menu-labels__item__photo::after {
    content: " ";
    background: #00000014;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-labels__item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-list__info a {
    display: block;
    color: var(--text-gray);
    padding-bottom: 1.5625rem;
    text-decoration: underline;
    text-underline-offset: 0.3125rem;
    line-height: 1.625rem;
}
.menu-list__info a:last-child {
    padding-bottom: 0rem;
}
.menu-list__info a:hover {
    text-underline-offset: 0.3125rem;
}
.menu-list__info a:hover {
    color: var(--text-blue);
}
.menu-list__info a p {
    margin: 0;
}

/* MENU-LABELS FINISH */

/* бУЭЭЭ ПОТОМ */

.info-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: row;
    width: auto;
}
.info-buttons__btn {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text);
    border: none;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}
.info-buttons__btn:hover {
    background-color: #d9e8ff;
    color: var(--text-blue);
    text-decoration: none;
}
.info-buttons__btn-active {
    background: #4370b7;
    color: var(--text-white);
    border: 1px solid transparent;
    transition: background-color 0.3s ease;
}
.info-buttons__btn-active:hover {
    border-color: #4370b7;
    background-color: #fff;
    color: var(--text-blue);
}

.ministries {
    display: flex;
    gap: 40px;
}
.ministries-item {
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 50%;
    cursor: pointer;
}
.ministries-item__text {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.375rem;
    color: var(--text);
    width: 60%;
    backface-visibility: hidden;
}

.ministries-item:hover .ministries-item__text {
    color: var(--text-blue);
}

/* НАЧАЛО КНОПКА ДЕТАЛЬНОГО ПРОСМОТРА */

.uk-svg:not(.uk-preserve) [fill*="#"]:not(.uk-preserve) {
    fill: #4370b7;
}

.detail-btn {
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    gap: 10px;
    transition: all 0.25s ease-in;
    color: var(--text-blue);
    position: relative;
}

.detail-btn:hover {
    color: var(--text-blue);
}

.detail-btn svg {
    transition: all 0.25s ease-in;
    fill: #4370b7;
}

.detail-btn:hover svg {
    transition: all 0.25s ease-in;
    fill: #4370b7;
    opacity: 1;
    position: absolute;
    transform: translateX(0px);
}

.detail-btn p,
.detail-btn svg:last-child {
    opacity: 1;
    position: unset;
    transform: translateX(35px);

    transition: all 0.25s ease-in;
    transform: translateX(0px);
}

.detail-btn:hover p,
.detail-btn:hover svg:last-child {
    transform: translateX(35px);
}

.detail-btn svg {
    opacity: 0;
    position: absolute;
    transition: all 0.25s ease-in;
    transform: translateX(-35px);
}

.detail-btn:hover svg:first-child {
    opacity: 1;
    transform: translateX(0px);
}

/* .text_editor table {
  width: 100% !important;
} */
.detail-btn:hover svg:last-child {
    opacity: 0;
}

/* КОНЕЦ КНОПКА ДЕТАЛЬНОГО ПРОСМОТРА */

/* НАЧАЛО РАЗДЕЛА ФАКУЛЬТЕТЫ */

.facultets-menu {
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
}

.no-border-top {
    border-top: none !important;
}

.no-border-right {
    border-right: none !important;
}

.no-border-bottom {
    border-bottom: none !important;
}

.no-border-left {
    border-left: none !important;
}

.facultets-menu__wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    background-repeat: no-repeat;
    background-size: cover;
}

.facultets-menu__grid {
    display: grid;
    grid-template: repeat(4, 1fr) / repeat(4, 1fr);
    position: relative;
    /* gap: 0.625rem; */
}

.facultets-menu__tile {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in;
    border: 6px solid #f4f8fb;
    background-color: #0000004d;
}

/* .facultets-menu__tile:hover{
    background: #fff;
    background-image: none !important;
} */

.facultets-menu__tile__img {
    width: 5rem;
    height: 5rem;
    background-repeat: no-repeat;
}

/* .facultets-menu__grid .facultets-menu__tile:nth-child(n+5)::before{
    content: " ";
    height: 0.625rem;
    left: calc(50% - 31px);
    width: 60px;
    top: -0.625rem;
    position: absolute;
    background-color: #D9E8FFBA;
} */

.facultets-menu__tile__text {
    color: var(--text-white);
    font-size: 1.25rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.facultets-menu__tile__block-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}

.facultets-menu__tile:hover .facultets-menu__tile__block-hover {
    transition: all 0.2s ease-in;
    background: #fff;
    opacity: 1;
    padding: 7px;
}

.facultets-menu__tile__header-contact {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
}

.facultets-menu__tile__description {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.facultets-menu__tile--contact {
    padding: 2.5rem 1.25rem 1.25rem;
    cursor: inherit;
    gap: 0.875rem;
    border: 6px solid #f4f8fb;
}

.facultets-menu__tile__phone a {
    font-size: 0.875rem;
    color: var(--text-white);
}

.facultets-menu__tile__phone a:hover {
    text-decoration: none;
}

/* КОНЕЦ РАЗДЕЛА ФАКУЛЬТЕТЫ */

@media screen and (max-width: 1640px) and (min-width: 1440px) {
    .menu-labels__container {
        /* justify-content: center; */
        flex-wrap: wrap;
    }
    .menu-labels__item {
        flex: 0.33;
    }
}

@media screen and (max-width: 1440px) {
    .menu-labels__container {
        /* justify-content: center; */
        flex-wrap: wrap;
    }

    .menu-labels__item__header {
        height: auto !important;
    }

    .menu-labels__item__photo {
        margin: 1rem 0;
    }
}

@media screen and (max-width: 1320px) {
    .menu-labels__item {
        flex: 0.33;
    }
}

/* @media screen and (max-width: 1904px) {
    .left-left__item {
        width: 100% !important;
    }
} */

@media screen and (max-width: 1904px) {
    /*.numbers-statistics {
        flex-wrap: wrap;
    }*/
    .numbers-statistics-left,
    .numbers-statistics-right {
        width: 100%;
        max-width: unset;
    }

    .left-left__item {
        width: 100% !important;
        /* max-width: 23.125rem !important; */
        /*max-width: calc((100% - 1.875rem) / 2) !important;*/
    }

    .col-6.dorms-col12,
    .col-7.dorms-col12,
    .col-8.dorms-col12,
    .col-9.dorms-col12,
    .col-10.dorms-col12,
    .col-11.dorms-col12 {
        grid-column: span 12; /* Для общежития шириной 6, 7, 8, 9, 10, 11 колонок, делаем 12 колонок при экране меньше 1250px */
    }
}

@media screen and (max-width: 900px) {
    .left-left__item {
        width: 100% !important;
        max-width: unset !important;
    }
}

@media screen and (max-width: 1230px) {
    .news-info-image {
        width: 50%;
        max-width: unset;
    }
}
@media screen and (max-width: 1215px) {
    .statistics-right__item {
        padding-right: 20px;
    }
    /* .numbers-statistics-right {
      max-width: 30%;
    } */
}

@media screen and (max-width: 1000px) {
    .ministries {
        flex-wrap: wrap;
    }
    .ministries-item {
        width: 100%;
    }
}

@media screen and (max-width: 980px) {
    .menu-labels__item {
        flex: 1;
    }
}

@media screen and (max-width: 830px) {
    .news-info {
        flex-wrap: wrap;
    }
    .news-info-image {
        width: 100%;
    }
}
@media screen and (max-width: 660px) {
    .numbers-statistics-left {
        flex-direction: column-reverse;
    }
    .statistics-left-right,
    .statistics-left-left {
        width: 100%;
    }
}
@media screen and (max-width: 480px) {
    .ministries-item img {
        width: 80px;
    }
    .ministries-item__text {
        font-size: 1.125rem;
    }
}

/* Адаптация сетки */
@media (max-width: 1600px) {
    .col-1 {
        grid-column: span 2;
    }
}

@media (max-width: 1440px) {
    .col-1 {
        grid-column: span 3;
    }
    .col-2 {
        grid-column: span 4;
    }
    .col-10 {
        grid-column: span 12;
    }
}

@media (max-width: 1024px) {
    .col-1 {
        grid-column: span 4;
    }
    .col-3 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .col-1 {
        grid-column: span 6;
    }
    .col-2 {
        grid-column: span 6;
    }
    .col-3 {
        grid-column: span 6;
    }
    .col-4 {
        grid-column: span 4;
    }
    .col-6 {
        grid-column: span 6;
    }
    .facultets-menu__tile__text {
        color: var(--text);
    }
    .facultets-menu__tile:hover .facultets-menu__tile__block-hover{
        display: none;
    }
}

@media screen and (max-width: 790px) {
    .col-4.block-link__wrapper, .col-4:has(.cardButton-text) {
        grid-column: span 12 !important ;
    }
}

@media screen and (max-width: 1800px) and (min-width: 789px) {
	.col-4.block-link__wrapper, .cardButtonVystavki:has(.cardButton-img) {
        grid-column: span 6 !important;
    }
}

@media screen and (max-width: 1800px) and (min-width: 1649px) {
	.cardButton-img {
		min-height: 370px !important;
	}
}

@media screen and (max-width: 1649px) and (min-width: 1440px) {
	.cardButton-img {
		min-height: 350px !important;
	}
}

@media screen and (max-width: 1441px) and (min-width: 1299px) {
	.cardButton-img {
		min-height: 360px !important;
	}
}

@media screen and (max-width: 1300px) and (min-width: 1199px) {
	.cardButton-img {
		min-height: 350px !important;
	}
}

@media screen and (max-width: 1200px) and (min-width: 1099px) {
	.cardButton-img {
		min-height: 340px !important;
	}
}

@media screen and (max-width: 1100px) and (min-width: 999px) {
	.cardButton-img {
		min-height: 290px !important;
	}
}

@media screen and (max-width: 1000px) and (min-width: 799px) {
	.cardButton-img {
		min-height: 250px !important;
	}
}


@media screen and (max-width: 800px) and (min-width: 699px) {
	.cardButton-img {
		min-height: 380px !important;
	}
}

@media screen and (max-width: 700px) and (min-width: 599px) {
	.cardButton-img {
		min-height: 350px !important;
	}
}

@media screen and (max-width: 500px) and (min-width: 399px) {
	.cardButton-img {
		min-height: 240px !important;
	}
}

@media screen and (max-width: 400px) {
	.cardButton-img {
		min-height: 200px !important;
	}
}


@media (max-width: 480px) {
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11 {
        grid-column: span 12 !important;
    }
}

/* Адаптация всего и сразу */

@media screen and (min-width: 2500px) {
    .person_card_img {
        min-height: 700px !important;
    }
}

@media screen and (min-width: 2000px) {
    .person_card_img {
        min-height: 500px;
        height: unset;
    }
}

@media screen and (min-width: 1440px) {
    .hide_after_1440 {
        display: none !important;
    }
}

@media screen and (max-width: 1750px) {
    .faculties-main-photo__container {
        width: 32%;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1720px) {
    .person__img {
        width: 65% !important;
    }
}

/* Лаптопы */
@media screen and (max-width: 1439px) {
    .faculties-main-photo__container {
        width: 100%;
    }
    .faculties-person__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 52px;
    }

    /* Мероприятия старт */
    .content-block {
        width: 100% !important;
    }

    .info-button {
        white-space: unset !important;
        line-height: 20px;
    }

    .bottom-pager {
        max-width: 93%;
    }

    .activities-item,
    .activities-item-bottom {
        max-width: 470px !important;
    }
    /* Мероприятия конец */

    .hide_before_1440 {
        display: none !important;
    }

    .news-list-calendar-container {
        display: none !important;
    }

    .header-slider {
        /* height: 650px !important; */
    }

    .contacts-block-texts {
        /* width: 910px !important; */
        flex-direction: column !important;
    }
}

@media screen and (min-width: 1100px) and (max-width: 1439px) {
    .person__img {
        height: 350px !important;
    }
}

body.font-2 .facultets-menu__wallpaper,
body.font-175 .facultets-menu__wallpaper {
    background-image: none !important;
}

body.font-2 .facultets-menu__tile__text,
body.font-175 .facultets-menu__tile__text {
    color: var(--text);
}

body.font-2 .facultets-menu__tile__block-hover,
body.font-175 .facultets-menu__tile__block-hover {
    background-image: none !important;
    display: none;
}

body.font-2 .facultets-menu,
body.font-175 .facultets-menu {
    background-color: unset !important;
}

body.font-2 .facultets-menu__grid,
body.font-175 .facultets-menu__grid {
    gap: 15px;
}

body.font-2 .facultets-menu__tile__block-hover,
body.font-175 .facultets-menu__tile__block-hover {
    padding: 0 0 !important;
}

body.font-2 .facultets-menu__tile,
body.font-175 .facultets-menu__tile {
    padding: 1.35rem 0 !important;
    gap: 0.5rem !important;
    border: unset !important;
    background-color: transparent !important;
}

body.font-2 .facultets-menu__grid {
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
}

.ui-datepicker-calendar {
    height: 0 !important;
}

@media (hover: none) or (max-width: 1439px) {
    .facultets-menu__wallpaper {
        background-image: none !important;
    }

    .facultets-menu__tile__text {
        color: var(--text);
    }

    .facultets-menu__tile__block-hover {
        padding: 0 0 !important;
        display: none;
    }

    .facultets-menu {
        background-color: unset !important;
    }

    .facultets-menu__grid {
        gap: 15px;
    }

    .facultets-menu__tile__block-hover {
        padding: 0 0 !important;
    }

    .facultets-menu__tile {
        padding: 1.35rem 0 !important;
        gap: 0.5rem !important;
        border: unset !important;
        background-color: transparent !important;
    }
}

/* Планшеты и лаптопы */
@media screen and (min-width: 768px) and (max-width: 1439px) {
    /* Общаги старт */
    .dormitories-table__container {
        display: contents;
        border-radius: 15px;
        width: 100%;
    }
    /* Общаги конец */

    /* Мероприятия старт */
    .content-block {
        width: auto !important;
    }
    /* Мероприятия конец */

    /* Поиск старт */
    .search-page__container {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        flex-direction: column-reverse !important;
    }

    .search-controller__container {
        align-items: flex-start !important;
        gap: 20px !important;
        flex-direction: column !important;
    }
    /* Поиск конец */

    .faculties-persons-info__container {
        display: flex;
        gap: 20px;
        padding: 20px !important;
    }

    .col-4:has(.mfeedback) {
        grid-column: span 12;
    }
    .col-5:has(.mfeedback) {
        grid-column: span 7;
    }
    /* .mfeedback {
      width: 330%;
    } */

    .feedback__container {
        grid-column: unset;
    }

    .header-slider {
        /* height: 450px !important; */
    }

    /* Аспиранутра и Ординатура старт */
    .contacts-block-texts {
        /* 640px -> 550px in favor of nice layout */
        /* width: 550px !important; */
        flex-direction: column !important;
    }

    .links-block {
        gap: 23px !important;
    }

    .links-block__item {
        padding: 15px !important;
        background: #fff;
        width: 100% !important;
        gap: 15px !important;
        flex-direction: column !important;
    }

    .block-item__text {
        width: auto !important;
    }

    .texts-container__item {
        width: auto !important;
    }

    .block-texts-container {
        width: 100% !important;
        padding: 20px 20px !important;
        flex-direction: column !important;
        align-items: unset !important;
        gap: 20px !important;
    }

    .person {
        width: 100% !important;
        /* 400px -> 350px in favor of nice layout */
        /*height: 350px !important;*/
        max-width: unset !important;
    }
    .person_card {
        height: 100%;
    }

    /*.person__img {
      width: 60% !important;
    }*/
    .person_card_img {
        height: auto;
    }
    .person_card_img div,
    .person_img_container div {
        min-height: 600px !important;
    }
    /* Аспирантура и Ординатура конец */

    .navbar__container {
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .contact-data__container {
        flex-direction: row !important;
    }

    .persons-info__container {
        height: auto !important;
        padding: unset !important;
    }

    .person_card {
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        /* gap: 15px !important; */
    }

    .person_card_container {
        flex-direction: column !important;
        display: flex;
        gap: 20px;
    }

    /*.person_card_description {
      padding: unset !important;
    }*/

    .facultets-menu {
        background-color: unset !important;
    }

    .facultets-menu__grid {
        gap: 15px;
    }

    .facultets-menu__tile__block-hover {
        padding: 0 0 !important;
    }

    .facultets-menu__tile {
        padding: 1.35rem 0 !important;
        gap: 0.5rem !important;
        border: unset !important;
        background-color: transparent !important;
    }

    .info__container {
        flex-direction: column !important;
        gap: unset !important;
        height: auto !important;
        min-height: auto !important;
    }

    .info__container__wallpaper {
        height: 330px !important;
        width: 100% !important;
    }

    .main-block {
        flex-direction: column-reverse !important;
    }

    .topics {
        margin: 20px 0 10px 0 !important;
    }

    .sidebar-block {
        width: auto !important;
        max-width: none !important;
    }

    .info-button {
        white-space: unset !important;
        line-height: 20px;
    }

    .news-info-list {
        grid-template-columns: repeat(2, 49%) !important;
    }

    .left-left__items {
        padding: unset !important;
    }

    .statistics-right__item {
        padding: 1.429rem;
        align-items: center;
        display: grid;
        grid-template-columns: 2fr 1fr;
        justify-items: end;
    }

    .statistics-right__item > :nth-child(1) {
        justify-self: start !important;
        text-align: left !important;
    }

    .statistics-right__item > :nth-child(2) {
        justify-self: end !important;
        text-align: right !important;
    }
}

@media screen and (min-width: 576px) and (max-width: 1100px) {
    .info__container {
        max-width: 500px;
    }
}

/* люди на факультетах */
@media screen and (max-width: 1150px) {
    .person_card_img div,
    .person_img_container div {
        min-height: 500px !important;
    }
}

@media screen and (max-width: 1100px) {
    .person {
        flex-direction: column;
    }
    .person__img {
        width: 100% !important;
        height: 650px !important;
    }
}

@media screen and (min-width: 1100px) {
    .person {
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .hide_before_768 {
        display: none;
    }
}

/* Смартфоны L и планшеты */
@media screen and (min-width: 576px) and (max-width: 768px) {
    /* Общаги старт */
    .dormitories-table__container {
        display: block !important;
        overflow: scroll !important;
        border-radius: 15px !important;
        width: 100% !important;
        max-width: 730px !important;
    }
    /* Общаги конец */

    .main-ui-filter-inner-container {
        width: 100% !important;
        max-width: 730px !important;
    }

    /* Мероприятия старт */
    .content-block {
        width: auto !important;
    }

    .activities-item {
        max-width: unset !important;
    }

    .activities-item-bottom {
        max-width: unset !important;
    }
    /* Мероприятия конец */

    /* Поиск старт */
    .search-page__container {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        flex-direction: column-reverse !important;
    }

    .search-controller__container {
        align-items: flex-start !important;
        gap: 20px !important;
        flex-direction: column !important;
    }
    /* Поиск конец */

    .col-4:has(.mfeedback) {
        grid-column: span 12;
    }
    .col-5:has(.mfeedback) {
        grid-column: span 12;
    }
    /* .mfeedback {
      width: 250%;
    } */

    .feedback__container {
        grid-column: unset;
    }

    /* Аспиранутра и Ординатура старт */
    .contacts-block-texts {
        /* 470px -> 367px in favor of nice layout */
        /* width: 367px !important; */
        flex-direction: column !important;
    }

    .links-block {
        gap: 48px !important;
    }

    .links-block__item {
        background: #fff;
        width: 100% !important;
        gap: 15px !important;
        flex-direction: column !important;
    }

    .block-item__text {
        width: auto !important;
    }

    .texts-container__item {
        width: auto !important;
    }

    .block-texts-container {
        width: 100% !important;
        padding: 20px 20px !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: unset !important;
    }

    .person {
        width: 100% !important;
        /* 400px -> 350px in favor of nice layout */
        /* height: 350px !important; */
        max-width: unset !important;
    }

    .person__img {
        width: 100% !important;
        height: 515px !important;
    }

    .info-block__item {
        padding: 20px 20px 20px !important;
    }
    /* Аспирантура и Ординатура конец */

    .navbar__container {
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .contact-data__container {
        flex-direction: column !important;
    }

    .persons-info__container {
        height: auto !important;
        padding: unset !important;
    }

    .persons-about__container {
        flex-direction: column !important;
    }
    .faculties-persons-info__container {
        width: 80%;
        margin: auto;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
    .address-data__container {
        flex-direction: column;
    }
    .address-data__width,
    .contact-data__width,
    .email-data__container {
        width: 100%;
    }

    .person_card {
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        /* gap: 15px !important; */
    }
    .faculties-person__container {
        width: 80%;
        margin: auto;
        grid-template-columns: 1fr;
    }
    .person_card_container {
        flex-direction: column !important;
        display: flex;
        gap: 20px;
    }
    .person_card_img {
        height: auto;
    }
    .person_card_img div,
    .person_img_container div {
        min-height: 500px !important;
    }

    /*.person_card_description {
      padding: unset !important;
    }*/

    .facultets-menu {
        background-color: unset !important;
    }

    .facultets-menu__wallpaper {
        background-image: none !important;
    }

    .facultets-menu__grid {
        grid-template: repeat(3, 1fr) / repeat(3, 1fr) !important;
        gap: 10px;
    }

    .facultets-menu__tile__block-hover {
        padding: 0 0 !important;
    }

    .facultets-menu__tile {
        padding: 1.35rem 0 !important;
        gap: 0.5rem !important;
        border: unset !important;
        background-color: transparent !important;
    }

    .info__container {
        flex-direction: column !important;
        gap: unset !important;
        height: auto !important;
        min-height: auto !important;
    }

    .info__container__wallpaper {
        height: 240px !important;
        width: 100% !important;
    }

    .main-block {
        flex-direction: column-reverse !important;
    }

    .news-list-calendar-container {
        display: none !important;
    }

    .topics {
        margin: 20px 0 10px 0 !important;
    }

    .sidebar-block {
        width: auto !important;
        max-width: none !important;
    }

    .info-button {
        white-space: unset !important;
        line-height: 20px;
    }

    .news-info-list {
        grid-template-columns: repeat(1, 100%) !important;
    }

    .wrapper {
        gap: 20px 0 !important;
    }

    .image-block {
        max-height: 500px;
        margin-bottom: 20px;
    }

    .video-block {
        margin-bottom: 1.25rem;
    }

    .left-left__items {
        padding: unset !important;
    }

    .numbers-statistics-right {
        gap: 0.714rem !important;
    }

    .statistics-right__item {
        padding: 1.429rem;
        align-items: center;
        display: grid;
        grid-template-columns: 2fr 1fr;
        justify-items: end;
    }

    .statistics-right__item > :nth-child(1) {
        justify-self: start !important;
        text-align: left !important;
    }

    .statistics-right__item > :nth-child(2) {
        justify-self: end !important;
        text-align: right !important;
    }

    .header-page-padding {
        padding-bottom: 0.714rem !important;
    }

    header {
        height: clamp(5.125rem, 7.5vw, 7.5rem) !important;
    }

    .mini-slider {
        margin-bottom: unset !important;
        height: 14.286rem !important;
    }
}

/* Смартфоны M */
@media screen and (min-width: 375px) and (max-width: 576px) {
    /* Общаги старт */
    .dorms-separator {
        flex-direction: column !important;
    }

    .dorms-separator-container {
        width: auto !important;
    }

    .dorms-slider-item,
    .slider-container {
        height: 480px !important;
    }

    .separator-item__map {
        height: 400px !important;
    }

    .separator-item__info {
        padding: 28px 20px 20px 20px !important;
    }

    .blocks-container-item {
        padding: 26px 55px 26px 20px !important;
    }

    .dormitories-table__container {
        overflow: scroll;
        border-radius: 15px;
        width: 380px;
    }
    /* Общаги конец */
    .faculties-person__container {
        width: 100%;
        margin: auto;
        grid-template-columns: 1fr;
    }

    .controls {
        zoom: 0.7;
    }

    .main-ui-filter-inner-container {
        width: 388px !important;
    }

    .main-ui-filter-sidebar {
        display: none;
    }

    .main-ui-filter-bottom-controls {
        width: 120% !important;
    }

    /* Мероприятия старт */
    .content-block {
        width: auto !important;
    }

    .activities-item {
        max-width: unset !important;
    }
    /* Мероприятия конец */

    /* Поиск старт */
    .search-page__container {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        flex-direction: column-reverse !important;
    }

    .search-controller__container {
        align-items: flex-start !important;
        gap: 20px !important;
        flex-direction: column !important;
    }

    .search-result-pagination__container {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
    /* Поиск конец */

    .col-4:has(.mfeedback) {
        grid-column: span 12;
    }
    .col-5:has(.mfeedback) {
        grid-column: span 12;
    }
    /* .mfeedback {
      width: 130%;
    } */

    .feedback__container {
        grid-column: unset;
    }

    .header-slider {
        /* height: 330px !important; */
    }

    /* Аспиранутра и Ординатура старт */
    .contacts-block-texts {
        /* 380px -> 290px in favor of nice layout */
        /* width: 290px !important; */
        flex-direction: column !important;
    }

    .texts-container__item {
        width: auto !important;
    }

    .block-texts-container {
        width: 100% !important;
        padding: 20px 20px !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: unset !important;
    }

    .person__img {
        width: auto !important;
        height: 370px !important;
    }

    .person {
        flex-direction: column !important;
        width: auto !important;
        max-width: inherit !important;
    }
    /* Аспирантура и Ординатура конец */

    .navbar__container {
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .contact-data__container {
        flex-direction: column !important;
    }

    .persons-info__container {
        height: auto !important;
        padding: unset !important;
    }

    .persons-about__container {
        flex-direction: column !important;
    }

    .person_card_img {
        height: unset;
    }

    .person_card {
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        /*gap: 15px !important;*/
    }

    .person_card_container {
        flex-direction: column !important;
        display: flex;
        gap: 20px;
    }

    /*.person_card_description {
      padding: unset !important;
    }*/

    .facultets-menu {
        background-color: unset !important;
    }

    .facultets-menu__wallpaper {
        background-image: none !important;
    }

    .facultets-menu__grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .facultets-menu__tile__block-hover {
        padding: 0 0 !important;
    }

    .facultets-menu__tile {
        padding: 1.35rem 0 !important;
        gap: 0.5rem !important;
        border: unset !important;
        background-color: transparent !important;
    }

    .faculties-persons-info__container {
        display: flex;
        padding: 20px;
        margin-left: 0;
    }
    .address-data__container {
        flex-direction: column;
    }
    .address-data__width,
    .contact-data__width,
    .email-data__container {
        width: 100%;
    }

    .site-section:last-child {
        overflow-wrap: anywhere;
        max-width: 300px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .info__container {
        flex-direction: column !important;
        gap: unset !important;
        height: auto !important;
        min-height: auto !important;
    }

    .info__container__wallpaper {
        height: 130px !important;
        width: 100% !important;
    }

    .info-block__item {
        padding: 20px 20px 20px !important;
    }

    .search-button__image {
        display: flex;
        height: 25px;
        width: 25px;
    }

    #filtration-window {
        right: 0px !important;
        left: 0px !important;
        width: auto !important;
    }

    .main-block {
        flex-direction: column-reverse !important;
    }

    .news-list-calendar-container {
        display: none !important;
    }

    .topics {
        margin: 20px 0 10px 0 !important;
    }

    .sidebar-block {
        width: auto !important;
        max-width: none !important;
    }

    .info-button {
        white-space: unset !important;
        line-height: 20px;
    }

    .news-info-list {
        display: flex !important;
        flex-direction: column !important;
    }

    .wrapper {
        gap: 20px 0 !important;
    }

    .image-block {
        max-height: 400px;
        margin-bottom: 20px;
    }

    .video-block {
        margin-bottom: 1.25rem;
    }

    .left-left__items {
        padding: unset !important;
    }

    .numbers-statistics-right {
        gap: 0.714rem !important;
    }

    .statistics-right__item {
        padding: 1.429rem;
        align-items: center;
        display: grid;
        grid-template-columns: 2fr 1fr;
        justify-items: end;
    }

    .statistics-right__item > :nth-child(1) {
        justify-self: start !important;
        text-align: left !important;
    }

    .statistics-right__item > :nth-child(2) {
        justify-self: end !important;
        text-align: right !important;
    }

    .header-page-padding {
        padding-bottom: 0.714rem !important;
    }

    header {
        height: clamp(5.125rem, 7.5vw, 7.5rem) !important;
    }

    .mini-slider {
        margin-bottom: unset !important;
        height: 14.286rem !important;
    }

    .bx-breadcrumb .bx-breadcrumb-item,
    .bx-breadcrumb .bx-breadcrumb-item > span {
        display: inline-block !important;
        max-width: 200px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-inline-size: 30ch !important; /* ограничивает видимую длину текста ~15 символов */
    }

    .news-info--small .news-info-list {
        flex-direction: column !important;
    }
}

/* Смартфоны S */
@media screen and (max-width: 375px) {
    /* Поиск старт */
    .search-page__container {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        flex-direction: column-reverse !important;
    }

    .search-controller__container {
        align-items: flex-start !important;
        gap: 20px !important;
        flex-direction: column !important;
    }

    .search-result-pagination__container {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .search-result-pagination__form-container {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .search-result-sort__container {
        align-items: flex-start !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    /* Поиск конец */

    /* Общаги старт */
    .dorms-separator {
        flex-direction: column !important;
    }

    .dorms-separator-container {
        width: auto !important;
    }

    .dorms-slider-item,
    .slider-container {
        height: 380px !important;
    }

    .separator-item__info {
        padding: 28px 20px 20px 20px !important;
    }

    .separator-item__map {
        height: 350px !important;
    }

    .blocks-container-item {
        padding: 26px 55px 26px 20px !important;
    }

    .dormitories-table__container {
        overflow: scroll;
        border-radius: 15px;
        width: 340px;
    }
    /* Общаги конец */
    .faculties-person__container {
        grid-template-columns: 1fr;
    }
    .faculties-persons-info__container {
        display: flex;
    }

    .main-ui-filter-sidebar {
        display: none;
    }

    .main-ui-filter-inner-container {
        width: 330px !important;
    }

    .main-ui-filter-field-container {
        width: 320px !important;
    }

    .main-ui-filter-bottom-controls {
        width: 135% !important;
    }

    .controls {
        zoom: 0.6;
    }
    .col-4:has(.mfeedback) {
        grid-column: span 12;
    }
    .col-5:has(.mfeedback) {
        grid-column: span 12;
    }
    /* .mfeedback {
      width: 115%;
    } */

    .feedback__container {
        grid-column: unset;
    }

    /* Аспиранутра и Ординатура старт */
    .contacts-block-texts {
        /* width: 338px !important; */
        flex-direction: column !important;
    }

    .texts-container__item {
        width: auto !important;
    }

    .block-texts-container {
        width: 100% !important;
        padding: 20px 20px !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: unset !important;
    }

    .person__img {
        width: auto !important;
        height: 310px !important;
    }

    .person {
        flex-direction: column !important;
        width: auto !important;
        max-width: inherit !important;
    }

    .info-block__item {
        padding: 20px 20px 20px !important;
    }

    .block-item__text {
        width: fit-content;
    }

    .image-container {
        width: auto !important;
        height: auto !important;
    }

    .links-block__item {
        flex-direction: column !important;
        gap: 15px !important;
    }
    /* Аспирантура и Ординатура конец */

    .person_img_container {
        /*width: 280px !important;*/
        height: 420px !important;
    }

    /*.person_card_img {
      width: 275px !important;
      height: 275px !important;
    }*/

    .navbar__container {
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .contact-data__container,
    .address-data__container {
        flex-direction: column !important;
    }
    .address-data__width,
    .contact-data__width,
    .email-data__container {
        width: 100%;
    }

    .persons-info__container {
        height: auto !important;
        padding: unset !important;
    }

    .main-photo__container {
        width: 280px !important;
    }

    .persons-about__container {
        flex-direction: column !important;
    }

    .person_card {
        width: auto !important;
        /*height: 360px !important;*/
        display: flex !important;
        flex-direction: column !important;
        /*gap: 15px !important;*/
    }
    .person_card_img {
        height: unset;
    }

    .person_card_container {
        flex-direction: column !important;
        display: flex;
        gap: 20px;
    }

    /*.person_card_description {
      padding: unset !important;
    }*/

    .facultets-menu {
        background-color: unset !important;
    }

    .facultets-menu__wallpaper {
        background-image: none !important;
    }

    .facultets-menu__grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .facultets-menu__tile__block-hover {
        padding: 0 0 !important;
    }

    .facultets-menu__tile {
        padding: 1.35rem 0 !important;
        gap: 0.5rem !important;
        border: unset !important;
        background-color: transparent !important;
    }

    .info__container {
        flex-direction: column !important;
        gap: unset !important;
        height: auto !important;
        min-height: auto !important;
    }

    .info__container__wallpaper {
        height: 94px !important;
        width: 100% !important;
    }

    .search-button__image {
        display: flex;
        height: 50px;
        width: 50px;
    }

    #filtration-window {
        width: auto !important;
        left: 15px !important;
    }

    .main-block {
        flex-direction: column-reverse !important;
    }

    .news-list-calendar-container {
        display: none !important;
    }

    .topics {
        margin: 20px 0 10px 0 !important;
    }

    .sidebar-block {
        width: auto !important;
        max-width: none !important;
    }

    .info-button {
        white-space: unset !important;
        line-height: 20px;
    }

    .news-info-list {
        display: flex !important;
        flex-direction: column !important;
    }

    .wrapper {
        gap: 20px 0 !important;
    }

    .image-block {
        width: fit-content;
        max-height: 300px;
        margin-bottom: 20px;
    }

    .video-block {
        margin-bottom: 1.25rem;
    }

    .site-section:last-child {
        overflow-wrap: anywhere;
        max-width: 300px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .left-left__items {
        padding: unset !important;
    }

    .numbers-statistics-right {
        gap: 0.714rem !important;
    }

    .statistics-right__item {
        padding: 1.429rem;
        align-items: center;
        display: grid;
        grid-template-columns: 2fr 1fr;
        justify-items: end;
    }

    .statistics-right__item > :nth-child(1) {
        justify-self: start !important;
        text-align: left !important;
    }

    .statistics-right__item > :nth-child(2) {
        justify-self: end !important;
        text-align: right !important;
    }

    .footer-head__container a {
        font-size: 1rem !important;
    }

    .header-page-padding {
        padding-bottom: 0.714rem !important;
    }

    header {
        height: clamp(5.125rem, 7.5vw, 7.5rem) !important;
    }

    .mini-slider {
        margin-bottom: unset !important;
        height: 14.286rem !important;
    }

    .bx-breadcrumb .bx-breadcrumb-item,
    .bx-breadcrumb .bx-breadcrumb-item > span {
        display: inline-block !important;
        max-width: 200px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-inline-size: 25ch !important; /* ограничивает видимую длину текста ~15 символов */
    }

    .news-info--small .news-info-list {
        flex-direction: column !important;
    }

    .list-item__img {
        width: 100% !important;
    }
}

@media screen and (max-width: 320px) {
    /* Общаги старт */
    .dorms-separator {
        flex-direction: column !important;
    }

    .dorms-separator-container {
        width: auto !important;
    }

    .dorms-slider-item,
    .slider-container {
        height: 350px !important;
    }

    .separator-item__map {
        height: 350px !important;
    }

    .separator-item__info {
        padding: 28px 20px 20px 20px !important;
    }

    .blocks-container-item {
        padding: 26px 55px 26px 20px !important;
    }

    .dormitories-table__container {
        overflow: scroll;
        border-radius: 15px;
        width: 290px;
    }
    /* Общаги конец */

    .main-ui-filter-sidebar {
        display: none;
    }

    .main-ui-filter-inner-container {
        width: 290px !important;
    }

    .main-ui-filter-field-container {
        width: 285px !important;
    }

    .main-ui-filter-bottom-controls {
        width: 146% !important;
    }

    .controls {
        zoom: 0.55;
    }

    /* Мероприятия старт */
    .content-block {
        width: auto !important;
    }

    .site-section:last-child {
        overflow-wrap: anywhere;
        max-width: 300px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .activities-item {
        max-width: unset !important;
    }
    /* Мероприятия конец */

    /* Поиск старт */
    .search-page__container {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        flex-direction: column-reverse !important;
    }

    .search-controller__container {
        align-items: flex-start !important;
        gap: 20px !important;
        flex-direction: column !important;
    }

    .search-result-pagination__container {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .search-result-pagination__form-container {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .search-result-sort__container {
        align-items: flex-start !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    /* Поиск конец */

    .mfeedback {
        width: 98%;
    }

    .feedback__container {
        grid-column: unset;
    }

    .header-slider {
        /* height: 340px !important; */
    }

    .contacts-block-texts {
        /* width: 290px !important; */
        flex-direction: column !important;
    }

    .person {
        flex-direction: column !important;
        width: auto !important;
        max-width: inherit !important;
    }

    .search-button__image {
        display: flex;
        height: 66px;
        width: 66px;
    }
    .faculties-persons-info__container {
        display: flex;
        padding: 20px;
        margin-left: 0;
    }
    .address-data__width,
    .contact-data__width,
    .email-data__container {
        width: 100%;
    }
}
@media screen and (max-width: 1000px) {
    a:has(.ministries-item) {
        width: 100% !important;
    }
}
