  /*Обнуление*/
*{padding:0;margin:0;border:0;}
*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
:focus,:active{outline:none;}
a:focus,a:active{outline:none;}
nav,footer,header,aside{display:block;}
html,body{height:100%;width:100%;font-size:100%;line-height:1;font-size:14px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
input,button,textarea{font-family:inherit;}
input::-ms-clear{display:none;}
button{cursor:pointer;}
button::-moz-focus-inner{padding:0;border:0;}
a,a:visited{text-decoration:none;}
a:hover{text-decoration:none;}
ul li{list-style:none;}
img{vertical-align:top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}





/* ================= ОСНОВНОЙ BODY ================= */
body{
    font-family:Helvetica;
    background-color: #E9EAEF;
}



/* ================= МЕНЮ ================= */
.menu{
    background-color:#000000;
    width: auto;
    height: 99px;
    gap: 200px;
}

.container{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}
.menu__row{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;    
    width: auto;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu__pages {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 18px;
  line-height: 24px;
  gap: 20px; 

}


.menu__item--gap-40 {
  margin-right: 40px;
}






a{
  color: #000;
  text-decoration: none;
}

.footer__column a{
  color: #ffffff;
}

.ABU__brochure a{
  color: #ffffff;
}

.section a{
  color: #ffffff;
}

.modal a{
  color: #ffffff;
}
.language-switcher {
  margin-left: auto; 
  display: flex;
  align-items: center;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
}

.language-button:hover {
  opacity: 0.8;
}  
.icon-earth {
  fill: white;
}
/* Языковой переключатель (мобильный вид) */
@media (max-width: 768px) {
  .menu__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu__body {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: black;
    padding: 15px 0;
  }

  .menu__body.active {
    display: flex;
  }

  .menu__pages {
    flex-direction: column;
    width: 100%;
  }

  .language-switcher {
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
  }
}



.menu__pages {
  display: flex;
  gap: 20px;
}

.menu__item a {
  color: white;
  text-decoration: none;
}

/* Бургер-меню */

/* ================= БУРГЕР-МЕНЮ ================= */
.burger-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-button span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}


/* --- МЕДИА --- */
@media (max-width: 768px) {
  .burger-button {
    display: flex;
  }


/* ================= МЕНЮ ================= */
  .menu__pages {
    display: none;
    flex-direction: column;
    background: black;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 999;
  }

  .menu__pages.active {
    display: flex;
  }

  .submenu {
    position: static;
    background: #222;
  }

  .submenu li a {
    color: white;
  }
}




/* Скрыть бургер по умолчанию */

/* ================= БУРГЕР-МЕНЮ ================= */
.burger-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.burger-button span {
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Мобильный вид */
@media (max-width: 768px) {
  .burger-button {
    display: flex;
    margin-left: 60px;
  }


/* ================= МЕНЮ ================= */
  .menu__pages {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background-color: black;
    flex-direction: column;
    align-items: flex-start;
    padding:  20px 20px 30px 20px;
    gap: 10px;
    display: none;
  }

  .menu__pages.active {
    display: flex;
  }

  .submenu {
    position: static;
    background-color: #111;
    width: 100%;
  }

  .has-submenu:hover .submenu {
    display: block;
  }
}


/* ============ БЛОК STUDENTS ============ */
.Students {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F5F5F5;
  padding: 40px 20px;
}

.Students__row {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  margin-bottom: 40px;
}

.Students__body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.Students__woman {
  width: 600px;
  height: 700px;
  border-radius: 10px;
  object-fit: cover;
}

.Students__content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.Students__title {
  font-size: 40px;
  background-color: #004080;
  height: 60px;
  width: 100%;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.Students__intro {
  font-size: 21px;
  line-height: 1.8;
  text-align: center;
  color: #333;
  background-color: #dbdbdb;
  border-radius: 5px;
}

/* ============ АККОРДЕОН ============ */


.accordion-toggle {
  background-color: #004080 !important; /* <-- ЗАДАЕМ СИНИЙ ФОН по умолчанию */
  color: white;
  font-size: 24px;
  font-weight: 600;
  height: 70px;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
  background-color: #0055aa;
}


.accordion-content {
  display: none;
  background-color: #f0f0f0;
  padding: 25px 30px;
  border-radius: 10px;
  color: #333;
  font-size: 18px;
  line-height: 1.7;
  width: 100%;  
  box-sizing: border-box;
}


.accordion-content{
  width: 1150px;
  height: auto;
}

.accordion-content li {
  padding:5px 0 ;
}



.accordion-block {
  width: 100%;
  max-width: 1150px;
  padding: 0 0;
  box-sizing: border-box;
  margin-bottom: 35px;
}


/* Стили для большого отдельного блока "Требования" */
.requirements-block {
  width: 100%;
  margin: 40px auto;
  padding: 0 0
}

.requirements-button {
  background-color: #003366;
  color: white;
  font-size: 24px;
  font-weight: 600;
  padding: 18px 24px;
  width: 1150px;
  border: none;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.requirements-button:hover {
  background-color: #004080;
}

.requirements-content {
  display: none;
  background-color: #f4f4f4;
  padding: 30px 35px;
  margin-top: 20px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.requirements-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.requirements-content li {
  margin-bottom: 12px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .Students__woman {
    width: 100%;
    height: auto;
  }

  .Students__body {
    flex-direction: column;
    align-items: center;
  }

  .Students__content {
    max-width: 100%;
    padding: 0 20px;
  }

  .accordion-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .Students {
    padding: 30px 15px;
  }

  .Students__title {
    font-size: 32px;
    height: auto;
    padding: 10px;
  }

  .Students__intro {
    font-size: 18px;
  }

  .accordion-toggle {
    font-size: 20px;
    height: auto;
    padding: 15px 10px;
  }

  .accordion-content {
    font-size: 16px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .Students__title {
    font-size: 26px;
  }

  .Students__intro {
    font-size: 16px;
  }

  .accordion-content {
    font-size: 15px;
    padding: 15px 20px;
  }

  .accordion-toggle {
    font-size: 16px;        /* Было 18px — стало меньше */
    padding: 8px 10px;      /* Меньше вертикальных отступов */
    height: 50px;           /* Явно уменьшаем высоту */
    border-radius: 8px;     /* Можно чуть скруглить меньше */
  }

  .Students__woman {
    border-radius: 8px;
  }  

  .requirements-button {
    width: 345px;          /* Занимает всю ширину родителя */
    font-size: 16px;       /* Меньший шрифт для мобильных */
    padding: 12px 16px;    /* Меньше отступы */
  }

}








/* Teacher */

/* ================= БЛОК TEACHER ================= */

.Teacher__row {
  display: flex;
  justify-content: center;
  margin: 40px;
}

.Teacher__body {
  max-width: 960px;
  width: 100%;
}

.Teacher__image-wrapper {
  position: relative;
  width: 100%;
}

.Teacher__woman {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
  border-radius: 10px;
}

.Teacher__text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* прозрачный черный фон */
  color: #fff;
  padding: 12px 16px;
  font-size: 20px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

/* Общие отступы и ширина блоков */
.Teacher__documents,
.Teacher__procedure {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 0;
}

/* Кнопки */
.DocToggleBtn {
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 40px;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 960px;
}

.DocToggleBtn:hover {
  background-color: #0059b3;
}

/* Контейнер с документами и порядком действий */
.documents-content {
  display: none;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #004080;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  line-height: 1.6;
}

.documents-content.open {
  display: block;
}

.documents-content ol,
.documents-content ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

.documents-content p {
  margin: 10px 0 15px;
}

/* Ссылки */
.documents-content a {
  color: #004080;
  font-weight: bold;
  text-decoration: none;
}

.documents-content a:hover {
  text-decoration: underline;
}


.Teacher__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}



@media (max-width: 480px) {
  .Teacher__row {
    flex-direction: column;
    margin: 20px 10px;
  }

  .Teacher__text-overlay {
    font-size: 16px;
    padding: 10px 12px;
  }

  .Teacher__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .DocToggleBtn {
    font-size: 18px;
    padding: 10px 14px;
    width: 100%;
    max-width: 100%;
  }

  .documents-content {
    font-size: 15px;
    padding: 15px;
  }

  .Teacher__documents,
  .Teacher__procedure {
    margin: 20px 10px;
    padding: 0;
  }

  .documents-content ol,
  .documents-content ul {
    margin-left: 15px;
  }
}










/* Часть с картинкой международное сотруднечество */


/* ================= СЕКЦИЯ С КАРТИНКОЙ (TOP) ================= */
.section__top img{
    filter: brightness(0.7);
}
.section__top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); 
  z-index: 1;
}

.section__top > * {
  position: relative;
  z-index: 2;
}

.section-first-row {
  display: flex;
  gap: 10px;
  font-size: 20px;
  margin: 0px 0px 0px 43px;

}

.section__top h2{
  margin: 0px 0px 100px 43px;
}

.section-second{
  margin-left: 43px;    
}


/* ================= СЕКЦИЯ С БЛОКАМИ (BOTTOM) ================= */
.section__bottom {
  display: flex;
  flex-wrap: wrap;
}

.section__item {
  flex: 1;
  min-width: 300px;
  background-color: #000;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Картинка */
.section__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.section__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
  z-index: 1;
  pointer-events: none;
}

.section__text {
  position: absolute;
  bottom: 30px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: white;
  gap: 20px;
}

.section__info {
  text-align: left;
  z-index: 2;
}

.section__info h3 {
  font-size: 70px;
  margin-bottom: 10px;
}

.section__info p {
  border-radius: 10px;
  font-size: 22px;
  line-height: 1.5;
  padding: 10px; 
  color: white; 
}

.section__text button {
  margin-top: 60px;
  font-size: 30px;
  background: rgba(0, 0, 0, 0.5); 
  border: 1px solid white;
  border-radius: 35px;
  color: white;
  cursor: pointer;
  align-self: flex-start;
  height: 80px;
  width: 190px;
  z-index: 2;
}

/* Section адоптивность */
@media (max-width: 768px) {

/* ================= СЕКЦИЯ С КАРТИНКОЙ (TOP) ================= */
  .section__top {
    height: 500px;
    font-size: 24px;
    line-height: 36px;
  }

  .section-first-row {
    margin: 20px;
    font-size: 16px;
  }

  .section__top h2 {
    font-size: 24px;
    margin: 20px;
  }


/* ================= СЕКЦИЯ С БЛОКАМИ (BOTTOM) ================= */
  .section__bottom {
    flex-direction: column;
  }

  .section__item {
    min-width: 100%;
    height: auto;
  }

  .section__info h3 {
    font-size: 36px;
  }

  .section__info p {
    font-size: 16px;
  }

  .section__text {

    align-items: flex-start;
    gap: 10px;
    bottom: 20px;
  }

  .section__text button {
    font-size: 20px;
    height: 60px;
    width: 150px;
    margin-top: 70px;
  }
}

@media (max-width: 480px) {

/* ================= СЕКЦИЯ С КАРТИНКОЙ (TOP) ================= */
  .section__top {
    height: 400px;
  }

  .section__top h2 {
    font-size: 20px;
    margin: 5px;
  }

  .section-first-row {
    font-size: 14px;
    margin: 5px;
  }

  .section__info h3 {
    font-size: 28px;
  }

  .section__info p {
    font-size: 14px;
  }

  .section__text button {
    font-size: 18px;
    width: 130px;
    height: 50px;
  }
}



.section__top {
  position: relative;
  height: 824px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  font-size: 36px;
  line-height: 56px;
  overflow: hidden;
}
/* если ширина от 1200px до 1500px */
@media (min-width: 1200px) and (max-width: 1500px) {
  .section__top {
    height: 715px;
  }
}



@media (max-width: 768px) {
  .section__top {
    height: calc(100vh - 85px);
    font-size: 24px;
    line-height: 36px;
  }
}




/* Фон затемнения */

/* ================= ОБЩИЕ СТИЛИ МОДАЛКИ ================= */


/* Контейнер самого окна */
.modal-container {
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    padding: 25px 35px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Заголовок */
.modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

/* Кнопка закрытия */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #e74c3c;
}

/* Текст внутри окна */
.modal-body p {
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1rem;
}

.modal-body strong {
    color: #2980b9;
}





@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&display=swap');

.modal {
  font-family: 'Rubik', sans-serif;
}


/* Модалка */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.4s ease-in-out forwards; 
  display: flex;
  justify-content: center;
  align-items: center;
}


.modal-window {
    display: none; /* скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

/* Кнопка закрытия */
.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #000;
}

/* Изображение */
.back__sity img {
  width: 1020px;
  max-height: 350px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
.back__sity img {
  width: 100%;
}
}

/* Текст внутри */
.modal-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  color: #2c2c2c;
}

.modal-text p {
  margin: 0;
  line-height: 1.7;
}





/* Кнопка-ссылка */
.Semey__btn_moredetails {
  align-self: flex-start;
  margin-top: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #007acc, #005fa3);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.Semey__btn_moredetails:hover {
  background: linear-gradient(135deg, #005fa3, #004080);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.4);
}

/* Адаптив */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    margin: 40px 10px;
  }

  .modal-text {
    font-size: 16px;
  }

  .more-button {
    font-size: 15px;
    padding: 10px 20px;
  }
}


/* Страны модакли */
.modal-content h3{
  font-size:40px;
}
.modal-content ul{
  font-size: 30px;

}
.modal-content li{
  margin: 15px 0px;
}
.modal-content a {
  color: black;
  text-decoration: none; /* Убирает подчёркивание — по желанию */
}



.modal-content a:hover {
  color: #333; /* Немного темнее при наведении — по желанию */
  text-decoration: underline; /* При наведении можно добавить подчёркивание */
}


/* ================= ОБЩИЕ СТИЛИ МОДАЛКИ ================= */
.modal-content {
  background: #ffffff;
  margin: 60px auto;
  padding: 40px;
  width: 90%;
  max-width: 1100px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: auto;
  animation: slideUp 0.4s ease-in-out;
  max-height: 90vh;
}


/* Стилизация заголовка */
.modal-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #003366;
}

/* Стилизация текста */
.modal-text p {
  margin: 0;
  line-height: 1.7;
}


.modal__text1{
  color: #003366;
  background-color: #e7e7e7;
  width: auto;
  height: 7px;
  font-size: 23px;
  border-radius: 5px;
}
.modal__text2{
  color: #003366;
}
.modal__text{
  color: #2980b9;
}


.modal-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  color: #2c2c2c;
  overflow-y: auto;
  max-height: 60vh; /* было 45vh — увеличиваем для мобильных */
  padding-right: 10px;
  padding-left: 10px;
}

/* Адаптив */
@media (max-width: 768px) {
  .modal-text {
    font-size: 15px;
    max-height: 65vh;
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (max-width: 480px) {
  .modal-text {
    font-size: 14px;
    max-height: 70vh;
    padding-right: 4px;
    padding-left: 4px;
  }
}



/* ================= БЛОК NEWS-ПАРТНЕРЫ ================= */
.news-partners{
    background-color: #E9EAEF;
    color: #3E3232;
}

.news__block_main{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 31px 40px 0px 40px;
  gap: 24px;
}

.news__title-label {
  display: flex;
  align-items: center;
  gap: 12px; /* расстояние между блоком и текстом */
}

.mini__block {
  width: 4px;
  height: 10px; /* подстраиваем под высоту текста */
  border-radius: 12px;
  background-color: #F81539;
}

.news__title{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0px 40px;
  padding-top: 42px;
}

.news__title h3{
    font-family: Helvetica;
    font-weight: 300px;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0px;
    text-transform: capitalize;
}

.news-partners__block {
  max-width: 1860px;
  height: auto;
  margin: 0 auto;
}

.arrows{
    display: flex;
    gap: 20px;
    border-radius: 15px;
}

.arrow-left{
    padding: 12px;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background-color: #F5F5F5;
}

.arrow-right{
    padding: 12px;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background-color: #F5F5F5;
}

.first__block{
    background-color: #ffffff;
    width: 422px;
    height: 489px;
    border-radius: 12px;
    padding: 10px;
}


.first__block h3,
.first__block p{
  margin-top: 16px;
  margin-left: 6px;
}


.first__block p{
    font-size: 14px;
    line-height: 20px;
    color: #3E3232BF;
}




.news__slider-wrapper {
  overflow-x: hidden; /* прячем полосу прокрутки */
  position: relative;
}

.news__block_main {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
}

.text_partners{
    font-size: 32px;
    color: #9E9E9E;
}

.country-name {
  margin-top: 16px;
  font-size: 20px; 
  font-weight: 600;
  margin-left: 7px;
}


.btn-universities {
  display: block;
  margin: 20px auto 0 auto;
  width: 250px;
  height: 45px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.btn-universities:hover {
  background-color: #333;
}

/* Индивидуальный блок (оставь как есть) */
.first__block {
  flex: 0 0 422px; /* фиксированная ширина блока */
  height: 489px;
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
}



.news__block_main::-webkit-scrollbar {
  display: none;
}
.news__block_main {
  -ms-overflow-style: none;  /* IE и Edge */
  scrollbar-width: none;     /* Firefox */
}



/* news-partners адаптив */
@media (max-width: 1200px) {
  .news__block_main {
    justify-content: center;
    margin: 40px 0;
    gap: 16px;
  }

  .news__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-universities {
    width: 100%;
  }

  .text_partners {
    font-size: 24px;
  }

  .news__title h3 {
    font-size: 28px;
  }
}



/* Адаптивность  для наши пратнеры модальные окна для мобилок глваный экран */
@media (max-width: 768px) {
  .modal-partners__text {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .modal-partners__text {
    font-size: 15px;
  }
}




@media (max-width: 768px) {
  .news__slider-wrapper {
    overflow-x: auto;
    padding-left: 16px;
  }

  .news__block_main {
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 8px;
    width: fit-content; /* заменил max-content */
  }

  .first__block {
    flex: 0 0 280px;
    max-width: 85vw;
    height: 350px;
    scroll-snap-align: start;
  }

  .first__block img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  .btn-universities {
    font-size: 16px;
    height: 42px;
  }

  .country-name {
    font-size: 18px;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .first__block {
    flex: 0 0 260px;
    max-width: 90vw;
    height: auto;
  }

  .btn-universities {
    font-size: 14px;
    height: 38px;
    margin-top: 25px;
  }

  .country-name {
    font-size: 16px;
  }

  .news__title h3,
  .text_partners {
    font-size: 18px;
  }
}





/* ================= БЛОК ABU БРОШЮРА ================= */
.ABU__brochure {
    background-color: #E9EAEF;
    width: auto;
}

.ABU__brochure__body {
    background-color: #000000;
    height: 80px;
    margin: 0 40px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ABU__brochure__text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.ABU__text__left,
.ABU__text__right {
    display: flex;
    align-items: center;
    font-size: 28px;
    color: #ffffff;
}

.ABU__divider {
    font-size: 28px;
    color: #ffffff;
}

/* ABU-brochure адаптив  */

@media (max-width: 1024px) {
  .ABU__brochure__body {
    margin: 0 24px;
    height: 70px;
    border-radius: 40px;
  }

  .ABU__text__left,
  .ABU__text__right,
  .ABU__divider {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .ABU__brochure {
    height: auto;
    padding: 32px 16px 16px 16px;
  }

  .ABU__brochure__body {
    flex-direction: column;
    height: auto;
    padding: 20px;
    border-radius: 24px;
  }

  .ABU__brochure__text {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .ABU__text__left,
  .ABU__text__right {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 30px;
    background-color: #1a1a1a;
    font-size: 18px;
    transition: background-color 0.3s ease;
    cursor: pointer;

    /* Центрируем текст внутри кнопки */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ABU__text__left:hover,
  .ABU__text__right:hover {
    background-color: #333;
  }

  .ABU__divider {
    display: none;
  }
}


@media (max-width: 480px) {
  .ABU__text__left,
  .ABU__text__right {
    font-size: 16px;
    padding: 10px;
  }

  .ABU__brochure__body {
    padding: 16px;
    gap: 12px;
  }
}






/* ================= ФУТЕР ================= */
.footer__ {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background-color: #000000;
  color: #ffffff;
  font-size: 16px;
  margin-top: 56px;
}

/* Контейнер с колонками */
.footer__row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 56px 40px;
  gap: 24px;
}

/* Каждая колонка */
.footer__column {
  flex: 1 1 250px;
  max-width: 400px;
  color: white;
}

/* Логотип */
.logo__footer img {
  width: 214px;
  height: 49px;
  margin-bottom: 20px;
}

/* Телефон */
.footer__phone {
  margin-top: 20px;
  line-height: 32px;
  font-size: 18px;
}

/* Email */
.footer__email {
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 32px;
  font-size: 18px;
}

/* Навигация и сотрудники заголовки */
.footer__column h4 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
}

/* Текст внутри колонок */
.footer__column p {
  margin: 4px 0;
  line-height: 28px;
}

/* Линия-разделитель */
.stripe {
  border: 1px solid white;
  margin: 0 40px;
}

/* Нижний текст © */
.footer__bottom {
  padding: 20px 40px;
  font-size: 14px;
}

/* Адаптив: на узких экранах колонки в столбик */
@media (max-width: 768px) {
  .footer__row {
    flex-direction: column;
    gap: 24px;
  }

  .footer__column {
    max-width: 100%;
  }

  .stripe {
    margin: 20px 0;
  }

  .footer__bottom {
    text-align: center;
  }
}





/* ================= ФОН MATRIX ================= */
.matrix__background img{
  width: 100%;
  height: 1000px;
}








/* for_foreign_students Иностранным студентам*/

/* ================= ИНОСТРАННЫЕ СТУДЕНТЫ ================= */
.foreign_students__title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 60px;
    color: #222;
    padding-top: 30px;
}

.foreign_students__cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 0px 20px 100px 20px;
}

.foreign_students__card {
    flex: 1 1 60%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foreign_students__image-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.foreign_students__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foreign_students__card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 16px 32px;
    border-radius: 12px;
    text-align: center;
}

.foreign_students__btn {
    margin: 30px auto;
    padding: 16px 40px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.foreign_students__btn:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .foreign_students__card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .foreign_students__image-wrapper {
        height: 250px;
    }

    .foreign_students__card-title {
        font-size: 22px;
        padding: 10px 20px;
    }

    .foreign_students__btn {
        font-size: 16px;
        padding: 12px 25px;
    }
}


/* Наши партнеры Our-partners */

/* ================= НАШИ ПАРТНЕРЫ (ТАБЛИЦА) ================= */
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;               /* позволяет переносить карточки */
  justify-content: center;       /* центрирует карточки по горизонтали */
  gap: 20px;                     /* отступы между карточками */
  max-width: 1280px;             /* ограничение по ширине */
  margin: 0 auto;                /* центрирование всей обёртки */
  padding: 20px;
  position: relative;
}

.country-card {
  position: relative; /* для абсолютного позиционирования списка */
  flex: 1 1 300px;
  max-width: 400px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  text-align: center;
}

.university-list {
  position: absolute;
  top: calc(100% + 12px); /* немного ниже кнопки */
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  max-height: 260px;
  padding: 20px 0  20px 0;
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  border-radius: 16px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98); /* мягкое приближение без смещения */
  }
  to {
    opacity: 1;
  }
}


.hidden {
  display: none;
}

.country-card h3{
  font-size: 25px;
}

.country-card a{
  color: #007acc;
  font-size: 17px;
}
.flag {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.toggle-btn {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 10px 5px;
  margin-top: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.toggle-btn:hover {
  background-color: #1565c0;
}

.university-list::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom-color: #ffffff;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1));
}

/* Внутренний список */
.university-list ul {
  padding: 0;
  margin: 0;
}

.university-list a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #1a73e8;
  background-color: rgba(26, 115, 232, 0.05);
  border-radius: 0px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.university-list a:hover {
  background-color: #e3f2fd;
  color: #0f5dc0;
  border-bottom: 1px dashed #0f5dc0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(0); /* Убрал сдвиг, чтобы не выходило за границы */
}


.university-list a:hover {
  color: #0f5dc0;
  border-bottom: 1px dashed #0f5dc0;
}




/* ==== ДЛЯ компов ширина 1280 ==== */
@media (min-width: 1024px) {
  .news__cards {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 1280px;
  }

  .first__block {
    width: 1280px;
    height: auto;
    min-width: calc((100% - 2 * 24px) / 4);
    max-width: calc((100% - 2 * 24px) / 4);
    flex: 0 0 auto;
  }

  .first__block img {
    width: 250px;
    height: 200px;
    border-radius: 10px;
    margin-left: 4px;
    margin-top: 4px;
  }

  .partners__cards{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px 20px;
    box-sizing: border-box;
  }
  .footer__container{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px 20px;
    box-sizing: border-box;
    margin: 40px;
  }
  .ABU__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
    box-sizing: border-box;
  }

  .news__slider-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .news__block_main {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    transition: transform 0.3s ease;
  }

  /* Кнопка открытия */
  .more-button {
    padding: 14px 17px;
    background: linear-gradient(135deg, #003366, #0055aa);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
    transition: all 0.3s ease;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px 0;
    border-radius: 8px;
    min-width: 220px;
    z-index: 1000;
  }

  .has-submenu:hover .submenu {
    display: block;
  }

  .submenu li a,
  .submenu li button {
    all: unset;
    display: block;
    padding: 10px 0;
    color: #fff;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
  }

  .submenu li button{
    all: unset;
    display: block;
    padding: 10px 23px;
    color: #fff;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
  }
  .submenu li a:hover,
  .submenu li button:hover {
    color: #dddddd;
  }
}


@media (max-width: 480px) {
  /* Кнопка открытия */
  .more-button {
    padding: 14px 17px;
    background: linear-gradient(135deg, #003366, #0055aa);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
    transition: all 0.3s ease;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px 0;
    border-radius: 8px;
    min-width: 220px;
    z-index: 1000;
  }

  .has-submenu:hover .submenu {
    display: block;
  }

  .submenu li a,
  .submenu li button {
    all: unset;
    display: block;
    padding: 10px 0;
    color: #fff;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
  }

  .submenu li a:hover,
  .submenu li button:hover {
    color: #dddddd;
  }
}




.menu{
    background-color:#000000;
    width: auto;
    height: 130px;
    gap: 200px;
    padding: 15px 15px 15px 15px;
}
.menu__logo , .logo__footer img{
  width: 214px;
  height: 49px;
  object-fit: contain;
}

/* Для больших экранов (десктопов) */
@media (min-width: 1025px) {
  .menu__logo {
    width: 257px;
    height: 59px;
  }
}

/* Планшеты и средние экраны */
@media (max-width: 1024px) {
  .menu__logo{
    max-width: 180px;
    height: auto;
  }
}

/* Для телефонов (мобильных экранов) */
@media (max-width: 768px) {
  .menu {
    height: 90px; /* уменьшенная высота */
    padding: 10px 15px; /* чуть меньше отступы */
  }

  .menu__logo {
    max-width: 220px;
    height: 65px;
  }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
  .menu {
    height: 85px; /* ещё меньше */
    padding: 12px 10px;
  }

  .menu__logo {
    max-width: 200px;
    height: 65px;
  }
}


.menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .menu__row {
    margin-top: 0;
  }
}

@media (max-width: 1510px) {
  .menu__pages a {
    font-size: 16px; /* уменьшение размера */

  }
}
@media (max-width: 1400px) {
  .menu__pages a {
    font-size: 15px; /* уменьшение размера */

  }
}

@media (max-width: 1345px) {
  .menu__pages a {
    font-size: 14px; /* уменьшение размера */

  }
}

/* Кнопка открытия */
.Students-page {
        display: block;
        padding: 12px 20px;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}

.Teachers-page{
        display: block;
        padding: 12px 20px;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}


.credit-mobility{
        all: unset;
        display: block;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}


.Erasmus-CirculEC{
        display: block;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}




.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(17, 17, 17, 0.9);
  padding: 0; /* сбрасываем отступы, переносим в <a> */
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.submenu li {
  white-space: nowrap;
  width: 100%; /* ключевой момент */
}

.submenu li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  color: white;
  font-size: 16px;
  background-color: transparent;
  border-radius: 0; /* можно убрать округления */
  text-decoration: none;
  text-align: left;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1); /* белое полупрозрачное выделение на всю ширину */
}

.submenu li {
  white-space: nowrap;
}

.submenu li a {
  background-repeat: no-repeat;
  background-position: left center;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .has-submenu {
    width: 100%;
  }

  .has-submenu .submenu {
    display: none;
    position: static;
    background-color: #1a1a1a;
    width: fit-content;
    max-width: 90%;
    padding: 6px;
    margin: 6px 0 0 0;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-direction: column;
  }

  .has-submenu.active .submenu {
    display: flex;
  }

  .submenu li {
    width: auto; /* <--- добавь это */
  }

  .submenu li a {
    display: inline-block; /* не block, чтобы не растягивалось */
    width: fit-content; /* ширина только по контенту */
    max-width: 100%;
    padding: 8px 0 0 0 ;
    font-size: 15px;
    color: white;
    white-space: nowrap;
    box-sizing: border-box;
    background-color: transparent;
  }
}





/* С 1200px до 1600px — сдвигаем влево */
@media (min-width: 1200px) and (max-width: 1600px) {
    .submenu {
        left: auto;
        right: 0;
        transform: translateX(-30px); /* подстрой размер смещения */
    }
}

/* Свыше 1600px — возвращаем стандартное поведение */
@media (min-width: 1601px) {
    .submenu {
        left: 0;
        right: auto;
        transform: none;
    }
}


/* Кнопка открытия */
.more-button1 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 14px 28px;
  background: linear-gradient(135deg, #003366, #0055aa);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
  transition: all 0.3s ease;
  width: 190px;
}


.modal-content a.more-button1 {
  color: rgb(255, 255, 255);
}

.modal-content a.more-button1:hover {
  color: rgb(255, 255, 255);
}


/* Кнопка закрытия */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #000000;
  cursor: pointer;
  transition: color 0.3s ease;
}

.submenu-arrow {
  margin-left: 8px;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

/* Поворот на мобильных (по клику) */
.has-submenu.active .submenu-arrow {
  transform: rotate(180deg);
}

/* Поворот на десктопах (при наведении) */
@media (min-width: 769px) {
  .has-submenu:hover > .submenu-toggle .submenu-arrow {
    transform: rotate(180deg);
  }
}

.news__slider-wrapper {
  width: 100%;
  background: #eceef1;
  padding: 32px 0;
}

.news__block_main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.first__block {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  width: 270px;
  min-width: 220px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.first__block:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.news-link img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.news-link h3 {
  font-size: 1rem;
  margin: 12px 12px 6px 12px;
  color: #222;
  font-weight: 600;
  line-height: 1.2;
  min-height: 38px;
}

.news-link p {
  font-size: 0.92rem;
  margin: 0 12px 14px 12px;
  color: #444;
  line-height: 1.3;
  min-height: 36px;
}

.news__slider-wrapper {
  overflow: hidden;
  width: 1100px;
  max-width: 95vw;
}

.news__block_main {
  display: flex;
  flex-wrap: nowrap; /* В одну строку! */
  gap: 24px;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}



.news__block_main {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
  max-width: 1200px; /* Можно подогнать под ваш макет */
  margin: 0 auto;
  justify-content: center;
}

.first__block {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  margin-bottom: 12px;
}

.first__block:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.news-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.news-link img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

.news-link h3 {
  font-size: 1rem;
  margin: 12px 12px 6px 12px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.2;
  min-height: 28px;
  letter-spacing: 0.01em;
}

.news-link p {
  font-size: 0.92rem;
  margin: 0 12px 12px 12px;
  color: #333;
  line-height: 1.4;
  min-height: 28px;
  font-weight: 400;
}

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

