@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
 
* {
  margin: 0;
  padding: 0;
}

body {
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
}

a {
color: #2C3478;
text-decoration: none;
white-space: nowrap;

}

a[href] {
  text-decoration: underline;
}


ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
}

.line {
    border-bottom: 2px solid #2C3478; /* Синий цвет для полоски */
    margin: 5px 0; /* Отступы сверху и снизу */
    opacity: 0.6;
}

.container {
    box-sizing: border-box;
    max-width: 190vh;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 5vh; /* Отступ между блоками */
  }
 .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 11px;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.header__logo-container {
  display: flex;
  align-items: center;
}

.header__nav {
  width: 75%;
}

.header__nav-top,
.header__nav-bottom {
  display: flex;
  justify-content:center;
}

.header__list {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 5px 0;
  font-weight: 600;
  font-size: 19px;
  flex-wrap: wrap;
  justify-content: center;
}

.header__logo {
  width: 90px;
  height: 90px;
  margin-left: 10px;
  object-fit: contain;
}

.header__logoo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.navbar {
    
    padding: 15px 20px;
    position: relative; /* Добавляем для корректного z-index */
    z-index: 900; /* Высокий индекс для навбара */
}

/* Стили бургер-кнопки */
.burger {
    display: none; /* Скрыто на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* Стили меню */
.menu {
    display: none;
    list-style: none;
    flex-wrap: wrap;
    width: 160px;
}

.menu li {
    margin: 0px;
    flex-wrap: wrap;
    width: 250px;
    position: relative;
    padding: 5px 0;
    padding-left: 10px;
}

.menu li::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 2%; /* Начало линии (10% от ширины) */
    width: 90%; /* Длина линии (80% от ширины) */
    height: 2px;
    background: #2C3478;
}

.menu li:last-child::after {
    display: none; /* Убираем линию у последнего пункта */
} 

.menu a {
    text-decoration: none;
    color: #2C3478;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s;
    word-break: break-word;
    text-align: center;
}

.menu a:hover {
    color: #0066cc;
}

/*кнопка навигации*/

.btnn {
    text-decoration: underline;
    text-decoration-color: #2C3478;
}

.btn {
    position: relative; 
}
    
.btn::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    display: block;
    width: 0;
    height: 2.5px;
    background: #2C3478;
    transition: 0.3s;
 }

.btn:hover:after {
    width: 100%; 
}

.btnnnn {
    position: relative; 
}
    
.btnnnn::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    display: block;
    width: 0;
    height: 2.5px;
    background: #2C3478;
    transition: 0.3s;
 }

.btnnnn:hover:after {
    width: 100%; 
}

.blockmen h2 {
    text-align: center;
    margin-bottom: 15px;
}

.blockmenu ul  {
    display: block;
}

.blockmenu  {
    background: #f5f5f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px #2c3478;
    width: 50vh;
    flex-shrink: 0;
    position: sticky; /* Делает меню фиксированным при прокрутке */
    top: 20px; /* Прикрепляет меню к верхней части */

    white-space: normal; /* Разрешаем перенос текста */
    word-break: break-word; /* Принудительный перенос длинных слов */
    text-align: center; /* Выравнивание по центру */
    padding: 10px 5px; /* Уменьшаем отступы */
    line-height: 1.3; /* Увеличиваем межстрочный интервал */
    
 }

 .blockmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blockmenu ul li {
    margin: 10px 0;
}

.blockmenu ul li a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
    font-size: 18px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.blockmenu ul li a:hover {
    background-color: #004080;
    color: white;
}

.blockmenu ul li a.active {
    background-color: #004080;
    color: white;
}

.center {
    margin-left: auto;
    margin-right: auto;
    display: block
}
.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #f5f5f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px #2c3478;
    width: 100%;
    word-wrap: break-word;
    
}

.content a {
    white-space: normal;
}

.content h4 {
        margin: 0 10px;  /* Отступы от линии */
        font-weight: bold;
        text-align: center;  /* Центрируем текст внутри h4 */
        
    }



.content-item {
    display: none; /* Все блоки скрыты по умолчанию */
}

.table, .table__center, .table__sleva {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #D9DCEB;
    border-radius: 5px;
    border-collapse: collapse;
    font-weight: 400;
    table-layout: fixed; /* Фиксированная ширина столбцов */
    color: black;
    white-space: normal;
}

.table th, .table__center th, .table__sleva th {
    padding: 10px;
    background: #f5f5f8;
    border: 1px solid #D9DCEB;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word; /* Разбивает длинные строки */
}

.table td, .table__center td, .table__sleva td {
    padding: 10px;
    border: 1px solid #D9DCEB;
    border-radius: 5px;
    text-align: center;
    word-wrap: break-word; /* Разбивает длинные строки */
}

.table__sleva td {
    text-align: left; /* Это отличие для таблицы слева */
}

.table__center td {
    text-align: center; /* Это отличие для таблицы по центру */
}

.table th, .table td {
    width: 20%; /* Устанавливаем фиксированную ширину для всех столбцов */
}

.table__center td {
    width: 25%; /* Для таблицы по центру можно немного увеличить ширину */
}

.table__sleva td {
    width: 30%; /* Для таблицы слева — еще больше */
}


.content-item h4 {
	font-weight: normal ;
	padding: 15px;
    text-align: center;
    font-weight: 700;
    color:black;
}

.block  { }

.block__item {
    margin:  0px 0px 10px 0px;
}

.block__title {
    letter-spacing: 2px;
    position: relative;
    padding: 0px 0px 0px 30px; /* Увеличил отступ слева */
    cursor: pointer;
}

.block__title:before,
.block__title:after {
    content: '';
    width: 10px;
    height: 1px;
    background-color: #004080;
    position: absolute;
    top: 8px;
    left: 10px; /* Фиксированная позиция стрелочек */
    transition: all 0.3s ease 0s;
}

.block__title:before {
    transform: rotate(40deg);
    left: 0;
}

.block__title:after {
    transform: rotate(-40deg);
    left: 8px;
}

.block__title.active:before,
.block__title.active:after{
    background-color: #004080;
}

.block__title.active:before {
    transform: rotate(-40deg);
}

.block__title.active:after {
    transform: rotate(40deg);
}

.block__text {
    display: none;
    padding: 10px 0px 0px 30px;
}
.footer {
  position: relative;
  background: #003670;
  color: white;
  overflow: hidden;
}

.footer__image-container {
  width: 100%;
  max-height: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer__image {
  width: 100%;
  height: auto;
  min-height: 100px;
  object-fit: cover;
  object-position: center bottom;
}

.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer__column-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer__column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s;
}

.footer__links a:hover {
  color: white;
  padding-left: 5px;
  text-decoration: underline;
}

.footer__bottom {
      margin-top: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer__version a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__version a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Мобильный аккордеон для футера */
.footer__mobile-accordion {
  display: none;
}

.footer__accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.footer__accordion-title {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: white;
}

.footer__accordion-title::-webkit-details-marker {
  display: none;
}

.footer__accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.footer__accordion-icon::before,
.footer__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

.footer__accordion-icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
}

.footer__accordion-icon::after {
  width: 2px;
  height: 16px;
  left: 7px;
}

.footer__accordion-item[open] .footer__accordion-icon::after {
  transform: rotate(90deg);
}

.footer__accordion-content {
  padding: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__accordion-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s;
}

.footer__accordion-content a:hover {
  color: white;
  text-decoration: underline;
}



@media (max-width: 768px) {
 
  .blockmenu {
        width: 100%; /* Занимает всю ширину */
        position: static; /* Убираем фиксацию */
        margin-bottom: 20px;
    }
    
    .blockmenu ul li a {
        font-size: 14px; /* Уменьшаем размер шрифта */
        padding: 8px 3px; /* Ещё меньше отступы */
    }


  .header__logo,
  .header__logoo {
    width: 60px;
    height: 60px;
  }

  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
 .burger {
        display: flex;
        margin-left: auto; /* Сдвигаем бургер вправо */
    }
    
    .menu {
        display: flex;
        border-radius: 15px 0 0 15px;
        position: fixed;
        top: 50px; /* Отступ от верха */
        right: -100%;
        width: auto;
        height: auto;
        max-height: 80vh; /* Максимальная высота */
        background: #fff;
        flex-direction: column;
        padding: 15px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto; /* Добавляем прокрутку если контент не помещается */
        z-index: 1000;
    }
    
    .menu.active {
        right: 0; /* Меняем left на right */
    }
    
    .menu li {
        margin: 5px 0;
        flex-wrap: wrap;
    }
    
    /* Анимация бургера в крестик */
    .burger.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }


    
    /* Скрываем обычное меню */
  

    .container {
      
        padding: 0 15px;
       
      }

    /* Показываем кнопку под шапкой на мобильных */
    .main-btn {
        display: block;
    }

    .btnnnn {
        display: none;
    }

    .content {
        padding: 15px; /* Меньшие отступы на мобильных устройствах */
        margin-top: 20px; /* Отступ сверху */
    }

    /* Заголовки внутри контента */
    .content h4 {
        font-size: 16px;  /* Уменьшаем размер шрифта для мобильных */
    }

    /* Снижение отступов для маленьких экранов */
    .content-item {
        padding: 10px;
    }

    /* Стиль для ссылок внутри контента */
    .content a {
        font-size: 14px; /* Меньший размер шрифта для мобильных */
        line-height: 1.6;  /* Увеличиваем межстрочный интервал для лучшей читаемости */
    } 
        /* Делает таблицы прокручиваемыми по горизонтали */
        .table, .table__center, .table__sleva {
            display: block;
            overflow-x: auto; /* Добавляем прокрутку по горизонтали */
             
        }
    
        /* Изменяем размер шрифта для заголовков таблицы */
        .table th, .table__center th, .table__sleva th {
            font-size: 12px; /* Меньший размер шрифта для мобильных */
        }
    
        /* Уменьшаем размер шрифта для данных в таблице */
        .table td, .table__center td, .table__sleva td {
            font-size: 12px; /* Меньший размер шрифта для мобильных */
           
        }
    
        /* Дополнительные настройки для управления видимостью столбцов */
        .table__sleva td, .table__center td {
            text-align: left; /* Для всех ячеек слева и по центру */
        }
        
.contento {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contento p {
    font-size: 14px;
    color: #2c3478;
    margin: 10px 0;
}
.contento h2 {
    font-size: 18px;
   
}
.image {
    width: 15%; /* Фиксированная ширина */
    height: 20%; /* Фиксированная высота */
}
 
}
@media (max-width: 1280px) {


.footer__columns {
    justify-items: center;
    max-width: 1000px;
    margin-left: 0.3%;
  }
  
  .footer a {
    font-size: 12px;
  }


}



@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    gap: 20px;
  }
  
  .blockmenu {
    width: 80%;
    position: static;
    border-radius: 0;
    padding: 10px 0;
    
  }

  .content {
    width: 100%;
    border-radius: 0;
    padding: 15px;
  }
  
  .blockmenu ul {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  
  .blockmenu ul li {
    width: 100%;
    text-align: center;
  }
  
  .blockmenu ul li a {
    width: 90%;
    margin: 0 auto;
    font-size: 14px;

  }
  
  .header__logo {
    padding: 0 10px;
    width: 60px;
    height: 60px;
    margin-top: 10px;
  }

  .header__logoo {
    padding: 0 0px;
    width: 60px;
    height: 60px;
    margin-top: 10px;
  }
  
  .header__nav {
    width: 72%;
  }
  
  .header__list {
    gap: 1vh;
    font-size: 17px;
  }
  

  .content h4 {
    font-size: 16px;
  }

  .content-item {
    padding: 10px;
  }

.content {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 15px;
        box-shadow: 0 4px 8px #2c3478;
        border-radius: 10px;
      }
      
      .content a {
        display: inline-block;
        margin: 5px 0;
        line-height: 1.4;
      }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 12px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 12px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .header__list {
    gap: 4vh;
    font-size: 17px;
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует дочерние элементы по горизонтали */
    gap: 20px;
  }
  
  .card {
    margin: 18px;
  }
  
  .image {
    width: 22%;
    height: 28%;
  }
  
  .contento {
    padding: 18px;
  }
  
  .contento p {
    font-size: 15px;
  }
  
  .contento h2 {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
   .footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .footer {
    background-size: cover;
    min-height: 500px;
  }
  
  .footer__container {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
  
  .burger {
    display: flex;
    margin-left: auto;
  }
  
  .menu {
    display: flex;
    border-radius: 15px 0 0 15px;
    position: fixed;
    top: 50px;
    right: -100%;
    width: auto;
    height: auto;
    max-height: 80vh;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: 5px 0;
    flex-wrap: wrap;
  }
  
  .burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .container {
    padding: 0 15px;
  }

  .main-btn {
    display: block;
  }

  .btnnnn {
    display: none;
  }

  .content {
    padding: 15px;
    margin-top: 20px;
  }

  .content h4 {
    font-size: 16px;
  }

  .content-item {
    padding: 10px;
  }

  .content a {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 12px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 12px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .contento {
    padding: 20px;
  }

  .contento p {
    font-size: 14px;
  }
  
  .contento h2 {
    font-size: 18px;
  }
  
  .image {
    width: 15%;
    height: 20%;
  }
  
 .footer__columns {
    display: none;
  }
  
  .footer__mobile-accordion {
    display: block;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 645px) {
  .header__logo,
  .header__logoo {
    width: 8vh;
    height: 8vh;
    margin-top: 10px;
  }
  
  .container {
    padding: 0 10px;
  }

  .button-container {
    display: block;
  }

  .btnnnn {
    display: none;
  }


  .content {
    padding: 10px;
    margin-top: 15px;
  }

  .content h4 {
    font-size: 13px;
  }

  .content-item {
    padding: 10px;
  }

  .content a {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 10px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 10px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .contento {
    padding: 15px;
  }

  .contento p {
    font-size: 12px;
  }
  
  .contento h2 {
    font-size: 15px;
  }
  
  .image {
    width: 15%;
    height: 20%;
  }
}

@media (max-width: 480px) {
  .header__logo,
  .header__logoo {
    width: 40px;
    height: 40px;
  }
    
  .header__list {
    gap: 1vh;
    font-size: 14px;
  }
  
  .container {
    padding: 0 10px;
  }

  .main-btn {
    display: block;
  }

  .btnnnn {
    display: none;
  }

  .blockmenu.open {
    display: block;
  }
  
  
  
  .blockmenu.open {
    display: block;
  }
  
  .blockmenu {
        width: 100%; /* Занимает всю ширину */
        position: static; /* Убираем фиксацию */
        margin-bottom: 20px;
    }
    
    .blockmenu ul li a {
        font-size: 14px; /* Уменьшаем размер шрифта */
        padding: 8px 3px; /* Ещё меньше отступы */
    }
    
  .content {
    padding: 10px;
    margin-top: 15px;
  }

  .content h4 {
    font-size: 13px;
  }

  .content-item {
    padding: 10px;
  }

  .content a {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 10px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 10px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .contento {
    padding: 15px;
  }

  .contento p {
    font-size: 12px;
  }
  
  .contento h2 {
    font-size: 15px;
  }
  
  .image {
    width: 15%;
    height: 20%;
  }
  .footer {
    padding: 30px 0 20px;
  }
  
  .footer__accordion-title {
    font-size: 15px;
  }
  
  .footer__accordion-content a {
    font-size: 13px;
  }
}

/* Добавьте эти стили в существующий CSS */
img.center[alt="pamyatka"] {
    max-width: 100%; /* Ограничение по ширине контейнера */
    height: auto; /* Сохранение пропорций */
    display: block;
    margin: 0 auto 15px; /* Центрирование и отступ */
}

/* Адаптация под мобильные */
@media (max-width: 480px) {
    img.center[alt="pamyatka"] {
        width: 95%; /* Чуть меньше ширины экрана */
        padding: 0 2%; /* Небольшие отступы по бокам */
    }
}

/* ========================================================================== 
   SAFE RESPONSIVE LAYER — общий адаптив для:
   spetialnosti.php / abiturientam.php / dop_vkladki.php
   Не удаляет существующие стили, а безопасно переопределяет проблемные места.
   ========================================================================== */

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, canvas, svg {
  max-width: 100%;
}

iframe {
  max-width: 100%;
}

/* --- Общая геометрия страницы до 2K --- */
.container {
  width: min(100% - 32px, 1760px) !important;
  max-width: 1760px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  gap: clamp(20px, 2.4vw, 44px) !important;
  align-items: flex-start !important;
}

.blockmenu {
  width: clamp(270px, 20vw, 360px) !important;
  max-width: 360px;
  min-width: 0;
  flex: 0 0 auto;
}

.content {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.content-item,
.block__text,
.program-container,
.program-section,
.program-docs,
.program-links {
  min-width: 0;
  max-width: 100%;
}

.content a,
.block__text a,
.program-docs a,
.program-links a,
.footer a {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* --- Шапка --- */
.header {
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding-inline: clamp(8px, 1.3vw, 24px) !important;
}

.header > div:first-child {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header__nav {
  min-width: 0;
  flex: 1 1 auto;
  width: auto !important;
}

.header__list {
  column-gap: clamp(10px, 1.25vw, 22px) !important;
  row-gap: 8px !important;
  font-size: clamp(14px, 1vw, 18px) !important;
}

.header__logo,
.header__logoo {
  width: clamp(62px, 5vw, 90px) !important;
  height: clamp(62px, 5vw, 90px) !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

/* --- Боковое меню --- */
.blockmenu ul li a {
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* --- Таблицы: не ужимаем до нечитаемых 10px --- */
.table,
.table__center,
.table__sleva {
  width: 100% !important;
  max-width: 100%;
  table-layout: auto !important;
}

.table th,
.table td,
.table__center th,
.table__center td,
.table__sleva th,
.table__sleva td {
  font-size: clamp(12px, .8vw, 15px) !important;
  line-height: 1.35;
  vertical-align: top;
  overflow-wrap: anywhere;
}

/* --- Документы / сетки --- */
.program-links {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)) !important;
  padding-left: 0 !important;
}

.program-docs a,
.program-links a {
  white-space: normal !important;
}

/* --- Карточки и медиа --- */
.card {
  max-width: 100%;
}

.image,
.image img {
  max-width: 100%;
  height: auto;
}

img.center {
  max-width: 100% !important;
  height: auto !important;
}

/* --- Панель слабовидящих --- */
.accessibility-panel {
  width: min(380px, 100vw) !important;
  max-width: 100vw;
  height: 100dvh !important;
  max-height: 100dvh;
  padding: clamp(14px, 3vw, 20px) !important;
}

/* --- Футер --- */
.footer__container {
  width: min(100%, 1500px);
  padding-inline: clamp(16px, 3vw, 32px) !important;
}

.footer__columns {
  align-items: start;
}

/* --------------------------------------------------------------------------
   СПЕЦИАЛЬНОСТИ
   -------------------------------------------------------------------------- */
.page-specialties img.center[alt="pamyatka"] {
  width: auto !important;
  max-width: min(100%, 980px) !important;
  height: auto !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
}

.page-specialties .program-year,
.page-specialties .program-section,
.page-specialties .program-docs {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   АБИТУРИЕНТАМ
   -------------------------------------------------------------------------- */
.page-admissions .zoomable-img,
.page-admissions #zoomedImage {
  max-width: 100%;
  height: auto;
}

.page-admissions iframe {
  display: block;
  width: min(100%, 853px) !important;
  height: clamp(220px, 50vw, 480px) !important;
  margin-inline: auto;
  border: 0;
}

.page-admissions .admission-docs-table {
  table-layout: auto !important;
}

/* --------------------------------------------------------------------------
   ДОПОЛНИТЕЛЬНАЯ ИНФОРМАЦИЯ
   -------------------------------------------------------------------------- */
.page-extra .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.page-extra .cards iframe {
  margin-left: 0 !important;
  width: 100%;
}

.page-extra .card {
  width: 100% !important;
  margin: 16px 0 !important;
  min-width: 0;
}

.page-extra .map-wrapper {
  width: 100%;
  min-width: 0;
}

.page-extra .map-image-container {
  min-width: 0 !important;
  flex: 1 1 620px !important;
}

.page-extra .map-locations-list {
  min-width: 240px !important;
  flex: 0 1 300px !important;
}

.page-extra #campus-map {
  width: 100% !important;
  height: auto !important;
}

.page-extra .slider-wrapper {
  width: min(100%, 900px) !important;
  max-width: 100% !important;
}

.page-extra .slider-container {
  min-width: 0;
  max-width: 100%;
}

.page-extra .slider-item img {
  max-width: 100%;
}

/* ========================================================================== 
   Переход на планшетную компоновку.
   Бургер включается раньше, чтобы длинные пункты шапки не сталкивались.
   ========================================================================== */
@media (max-width: 1180px) {
  .header__nav {
    display: none !important;
  }

  .burger {
    display: flex !important;
    margin-left: auto;
  }

  .navbar {
    margin-left: auto;
    padding: 10px 12px !important;
  }

  .menu {
    display: flex !important;
    position: fixed !important;
    top: 76px !important;
    right: -110% !important;
    width: min(360px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 92px) !important;
    height: auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    padding: 14px !important;
    background: #fff;
    border-radius: 14px 0 0 14px;
    box-shadow: -4px 4px 16px rgba(0,0,0,.14);
    overflow-y: auto;
    transition: right .3s ease;
    z-index: 10000 !important;
  }

  .menu.active {
    right: 0 !important;
  }

  .menu li {
    width: 100% !important;
    padding: 8px 4px !important;
    margin: 0 !important;
  }

  .menu a {
    display: block;
    width: 100%;
    font-size: 14px !important;
    line-height: 1.35;
    white-space: normal !important;
    text-align: left !important;
  }

  .container {
    width: min(100% - 28px, 1120px) !important;
  }
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  .blockmenu {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  .blockmenu ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px !important;
  }

  .blockmenu ul li {
    width: 100% !important;
    margin: 0 !important;
  }

  .blockmenu ul li a {
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 9px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    padding: clamp(14px, 2.5vw, 20px) !important;
  }

  .page-extra .map-image-container,
  .page-extra .map-locations-list {
    min-width: 0 !important;
  }
}

@media (max-width: 900px) {
  .content-item,
  .block__text {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table,
  .table__center,
  .table__sleva {
    display: table !important;
    width: max-content !important;
    min-width: 720px;
    max-width: none;
  }

  .page-admissions .admission-docs-table {
    min-width: 720px !important;
  }

  .page-extra .map-wrapper {
    flex-direction: column !important;
  }

  .page-extra .map-image-container,
  .page-extra .map-locations-list {
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .page-extra .map-locations-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-extra .map-location-item {
    margin: 0 !important;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .header {
    min-height: 70px;
    padding-block: 7px !important;
  }

  .header__logo,
  .header__logoo {
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
  }

  .menu {
    top: 70px !important;
    max-height: calc(100dvh - 82px) !important;
  }

  .container {
    width: min(100% - 20px, 740px) !important;
  }

  .content {
    margin-top: 0 !important;
  }

  .content-item {
    padding: 6px !important;
  }

  .content a,
  .content p,
  .block__text,
  .block__text a {
    font-size: 14px !important;
    line-height: 1.55;
  }

  .block__title {
    letter-spacing: .4px !important;
    line-height: 1.4;
    padding-left: 28px !important;
  }

  .block__text {
    padding-left: 8px !important;
    padding-right: 2px;
  }

  .program-year-title,
  .program-subtitle {
    padding-left: 12px !important;
  }

  .footer__container {
    min-height: 0 !important;
  }

  .page-extra .slider-wrapper {
    gap: 10px !important;
  }

  .page-extra .slider-container {
    height: clamp(220px, 52vw, 320px) !important;
  }
}

@media (max-width: 600px) {
  .blockmenu ul {
    grid-template-columns: 1fr !important;
  }

  .blockmenu ul li a {
    justify-content: flex-start;
    text-align: left;
  }

  .table,
  .table__center,
  .table__sleva {
    min-width: 660px;
  }

  .table th,
  .table td,
  .table__center th,
  .table__center td,
  .table__sleva th,
  .table__sleva td {
    font-size: 12px !important;
    padding: 8px !important;
  }

  .page-extra .map-locations-list {
    grid-template-columns: 1fr;
  }

  .page-extra .card {
    flex-direction: column !important;
    align-items: center !important;
  }

  .page-extra .card .image,
  .page-extra .image {
    width: min(220px, 70vw) !important;
    height: auto !important;
  }

  .page-extra .contento {
    width: 100%;
    padding: 14px !important;
  }

  .page-admissions iframe {
    height: clamp(210px, 56vw, 320px) !important;
  }
}

@media (max-width: 480px) {
  .header {
    gap: 6px;
  }

  .header__logo,
  .header__logoo {
    width: 44px !important;
    height: 44px !important;
  }

  .navbar {
    padding-inline: 6px !important;
  }

  .burger {
    width: 28px;
  }

  .menu {
    top: 60px !important;
    width: min(330px, calc(100vw - 12px)) !important;
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 70px) !important;
    padding: 10px !important;
  }

  .container {
    width: calc(100% - 12px) !important;
  }

  .blockmenu,
  .content {
    box-shadow: 0 2px 6px rgba(44,52,120,.35) !important;
  }

  .content {
    padding: 10px !important;
  }

  .content-item {
    padding: 2px !important;
  }

  .content h4 {
    margin-inline: 0 !important;
    padding-inline: 4px !important;
    font-size: 14px !important;
    overflow-wrap: anywhere;
  }

  .program-year {
    padding-left: 8px !important;
  }

  .program-docs a,
  .program-links a {
    padding: 8px !important;
  }

  .accessibility-panel {
    width: 100vw !important;
  }

  .theme-options,
  .font-options {
    gap: 6px !important;
  }

  .theme-btn,
  .font-btn {
    flex: 1 1 120px;
  }

  .page-extra .slider-container {
    height: clamp(190px, 58vw, 250px) !important;
  }

  .page-extra .slider-arrow {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }

  .page-specialties img.center[alt="pamyatka"] {
    width: 100% !important;
  }
}

@media (min-width: 1921px) {
  .container {
    max-width: 1840px !important;
  }

  .content {
    padding: 24px !important;
  }

  .blockmenu {
    width: 360px !important;
  }
}

/* ==========================================================================
   NAVIGATION OVERFLOW FIX
   Длинные пункты навигации всегда остаются внутри своего контейнера.
   ========================================================================== */
.blockmenu,
.blockmenu ul,
.blockmenu ul li,
.blockmenu ul li a {
  min-width: 0 !important;
  max-width: 100% !important;
}

.blockmenu ul li a {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto;
}

/* Верхняя навигация: разрешаем перенос текста внутри пункта,
   но не позволяем ссылке расширять шапку. */
.header__list li {
  min-width: 0;
  max-width: 100%;
}

.header__list a {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Выезжающее бургер-меню */
.menu,
.menu li,
.menu a {
  min-width: 0 !important;
  max-width: 100% !important;
}

.menu a {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
