
/*Обнуление*/
*{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{
    font-family:Helvetica;
}


.menu{
    background-color:#000000;
    width: auto;
    height: 130px;
    gap: 200px;
    padding: 15px 15px 15px 15px;
}

.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;
    height: 69px;
    padding: 10px;

}

.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: #ffffff;
    text-decoration: none;
}

.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;
  }


}




/* Скрыть бургер по умолчанию */
.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;
    left: 0;
    right: 0;
    background-color: black;
    flex-direction: column;
    align-items: flex-start;
    padding:  0px 20px 30px 20px;
    gap: 10px;
    display: none;
  }

  .menu__pages.active {
    display: flex;
  }




}




/* ================= БЛОК STUDENTS ================= */
.Students {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F5F5;
  width: 1200px;
  height: auto;
}

.Students__row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.Students__body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px; /* расстояние между изображением и текстом */
}

.Students__woman {
  width: 600px;
  height: 700px;
  border-radius: 10px;
}

.Students__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 500px;
}

.Students__title {
  font-size: 40px;
  background-color: #004080;
  height: 50px;
  width: 100%;
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}
button.Students__title2 {
  font-size: 20px;
  background-color: #004080;
  height: 50px;
  width: 100%;
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}


.Students__text {
  max-height: 60vh;  
  overflow-y: auto; 
  padding-right: 10px

}

.accordion-content {
  display: none;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.accordion-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

* Обёртка модалки */

/* ================= ОБЩИЕ СТИЛИ МОДАЛКИ ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  padding: 40px 20px;
}

/* Содержимое модалки */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 1200px;
  position: relative;
}

/* Кнопка закрытия */
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}




@media (max-width: 1024px) {
  .Students {
    width: 90vw;
    padding: 20px;
    flex-direction: column;
  }

  .Students__row {
    flex-direction: column;
  }

  .Students__body {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .Students__woman {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  .Students__woman:hover {
    transform: scale(1.05);
  }

  .Students__content {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
  }

  .Students__title {
    font-size: 34px;
    height: 50px;
    margin-bottom: 25px;
  }

  button.Students__title2 {
    font-size: 18px;
    height: 48px;
    margin-bottom: 25px;
    border-radius: 8px;
  }

  .Students__text {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 12px;
    line-height: 1.5;
    font-size: 17px;
    color: #222;
  }
}

@media (max-width: 600px) {
  .Students {
    width: 95vw;
    padding: 15px 10px;
  }

  .Students__woman {
    max-width: 100%;
    max-height: 350px;
  }

  .Students__title {
    font-size: 28px;
    height: 45px;
  }

  button.Students__title2 {
    font-size: 16px;
    height: 45px;
  }

  .Students__text {
    max-height: 45vh;
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .Students__title {
    font-size: 24px;
    height: 40px;
  }

  button.Students__title2 {
    font-size: 14px;
    height: 40px;
  }

  .Students__text {
    max-height: 40vh;
    font-size: 14px;
  }
}




/* Teacher */

/* ================= БЛОК TEACHER ================= */
.Teacher {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F5F5;
  width: 1200px;
  height: auto;
}

.Teacher__row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.Teacher__body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

.Teacher__man {
  width: 600px;
  height: 700px;
  border-radius: 10px;
}

.Teacher__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 500px;
}

.Teacher__title {
  font-size: 40px;
  background-color: #004080;
  height: 50px;
  width: 100%;
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}

button.Teacher__title2 {
  font-size: 20px;
  background-color: #004080;
  height: 50px;
  width: 100%;
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}

button.Teacher__title3 {
  font-size: 15px;
  background-color: #005011;
  height: 50px;
  width: 300px;
  border-radius: 10px;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}

button.Teacher__title4 {
  font-size: 15px;
  background-color: #b9b9b9;
  height: 50px;
  width: 100%;
  border-radius: 25px;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}

.Teacher__text {
  font-size: 16px;
  line-height: 1.6;
}

.accordion-content {
  display: none;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.accordion-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Модальное окно */

/* ================= ОБЩИЕ СТИЛИ МОДАЛКИ ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  padding: 40px 20px;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 1200px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}




/* ================= БЛОК TEACHER ================= */
.Teacher__text{
  max-height: 60vh;  
  overflow-y: auto; 
  padding-right: 10px
}


@media (max-width: 1024px) {
  .Teacher {
    width: 90vw;
    padding: 20px;
    flex-direction: column;
  }

  .Teacher__row {
    flex-direction: column;
  }

  .Teacher__body {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .Teacher__man {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  .Teacher__man:hover {
    transform: scale(1.05);
  }

  .Teacher__content {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
  }

  .Teacher__title {
    font-size: 34px;
    height: 50px;
    margin-bottom: 25px;
  }

  button.Teacher__title2 {
    font-size: 18px;
    height: 48px;
    margin-bottom: 25px;
    border-radius: 8px;
  }

  .Teacher__text {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 12px;
    line-height: 1.5;
    font-size: 17px;
    color: #222;
  }

}

@media (max-width: 600px) {
  .Teacher {
    width: 95vw;
    padding: 15px 10px;
  }

  .Teacher__man {
    max-width: 100%;
    max-height: 350px;
  }

  .Teacher__title {
    font-size: 28px;
    height: 45px;
  }

  button.Teacher__title2 {
    font-size: 16px;
    height: 45px;
  }

  .Teacher__text {
    max-height: 45vh;
    font-size: 16px;
  }
}

@media (max-width: 400px) {

/* ================= ОБЩИЕ СТИЛИ МОДАЛКИ ================= */
  .modal-content {
    padding: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }


/* ================= БЛОК TEACHER ================= */
  .Teacher {
    width: 100%;
    padding: 0;
    flex-direction: column;
  }

  .Teacher__man {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }

  .Teacher__title {
    font-size: 20px;
    height: auto;
    padding: 10px;
    text-align: center;
  }

  .Teacher__text {
    font-size: 14px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 5px;
  }

  .Teacher__content {
    padding: 0 10px;
    width: 100%;
  }

  button.Teacher__title2,
  button.Teacher__title3,
  button.Teacher__title4 {
    font-size: 14px;
    height: auto;
    padding: 10px;
    width: 100%;
  }
}













    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            color: #333;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            color: #ffffff;
            margin-bottom: 10px;
            font-size: 24px;
        }

        .menu-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .menu-item {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            width: calc(25% - 20px);
            min-width: 200px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .menu-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        .menu-item h2 {
            color: #0066cc;
            margin-bottom: 10px;
            font-size: 18px;
        }

        @media (max-width: 900px) {
            .menu-item {
                width: calc(50% - 20px);
            }
        }

        @media (max-width: 500px) {
            .menu-item {
                width: 100%;
            }
        }

              * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            padding: 30px;
            line-height: 1.6;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
            background: linear-gradient(135deg, #0066cc, #004d99);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .header h1 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .menu-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .menu-item {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
            padding: 30px;
            width: calc(25% - 30px);
            min-width: 250px;
            transition: all 0.3s ease;
            border-top: 5px solid #0066cc;
        }

        .menu-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        }

        .menu-item h2 {
            color: #0066cc;
            margin-bottom: 20px;
            font-size: 22px;
            font-weight: 600;
            position: relative;
            padding-bottom: 10px;
        }

        .menu-item h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: #0066cc;
        }

        .menu-item p, .menu-item ul {
            margin-bottom: 15px;
            font-size: 16px;
            color: #555;
        }

        .menu-item ul {
            padding-left: 20px;
        }

        .menu-item li {
            margin-bottom: 8px;
            position: relative;
        }

        .menu-item li::before {
            content: '•';
            color: #0066cc;
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }

        .highlight {
            font-weight: 600;
            color: #0066cc;
        }

        @media (max-width: 1100px) {
            .menu-item {
                width: calc(50% - 30px);
            }
        }

        @media (max-width: 600px) {
            .menu-item {
                width: 100%;
            }

            body {
                padding: 15px;
            }

            .header h1 {
                font-size: 22px;
            }
        }


            * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            padding: 30px;
            line-height: 1.6;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
            background: linear-gradient(135deg, #0066cc, #004d99);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .header h1 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .menu-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto 50px;
        }

        .menu-item {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
            padding: 30px;
            width: calc(25% - 30px);
            min-width: 250px;
            transition: all 0.3s ease;
            border-top: 5px solid #0066cc;
        }

        .menu-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        }

        .menu-item h2 {
            color: #0066cc;
            margin-bottom: 20px;
            font-size: 22px;
            font-weight: 600;
            position: relative;
            padding-bottom: 10px;
        }

        .menu-item h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: #0066cc;
        }

        .menu-item p, .menu-item ul {
            margin-bottom: 15px;
            font-size: 16px;
            color: #555;
        }

        .menu-item ul {
            padding-left: 20px;
        }

        .menu-item li {
            margin-bottom: 8px;
            position: relative;
        }

        .menu-item li::before {
            content: '•';
            color: #0066cc;
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }

        .highlight {
            font-weight: 600;
            color: #0066cc;
        }

        /* Стили для нижних колонок с партнерами */
        .partners-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 40px;
            max-width: 1000px;
            margin: 0 auto;
            padding: 30px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .partner-item {
            text-align: center;
            width: calc(50% - 40px);
            min-width: 300px;
        }

        .partner-item img {
            max-width: 200px;
            height: auto;
            margin-bottom: 15px;
            transition: transform 0.3s ease;
        }

        .partner-item:hover img {
            transform: scale(1.05);
        }

        .partner-item a {
            display: block;
            color: #0066cc;
            text-decoration: none;
            font-weight: 600;
            font-size: 18px;
            margin-top: 10px;
            transition: color 0.3s ease;
        }

        .partner-item a:hover {
            color: #004d99;
            text-decoration: underline;
        }

        .co-funded {
            font-style: italic;
            color: #666;
            margin-top: 5px;
            font-size: 14px;
        }

        @media (max-width: 1100px) {
            .menu-item {
                width: calc(50% - 30px);
            }
        }

        @media (max-width: 600px) {
            .menu-item, .partner-item {
                width: 100%;
                min-width: auto;
            }

            body {
                padding: 15px;
            }

            .header h1 {
                font-size: 22px;
            }

            .partners-container {
                padding: 20px;
            }
        }

          /* Стили для блока партнеров */
        .partners-section {
            max-width: 1200px;
            margin: 50px auto;
            padding: 0 20px;
        }

        .partners-section h2 {
            text-align: center;
            font-size: 32px;
            color: #0066cc;
            margin-bottom: 40px;
            position: relative;
        }

        .partners-section h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background-color: #0066cc;
        }

        .partners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .partner-card {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-align: center;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
        }

        .partner-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

        .partner-logo {
            max-width: 150px;
            max-height: 80px;
            margin-bottom: 15px;
            object-fit: contain;
        }

        .partner-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            flex-grow: 1;
        }

        .partner-link {
            color: #0066cc;
            text-decoration: none;
            font-size: 14px;
            word-break: break-all;
        }

        .partner-link:hover {
            text-decoration: underline;
        }


              /* Стили для секции новостей */
        .news-section {
            max-width: 1200px;
            margin: 50px auto;
            padding: 0 20px;
        }

        .news-section h2 {
            text-align: center;
            font-size: 32px;
            color: #0066cc;
            margin-bottom: 40px;
            position: relative;
        }

        .news-section h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background-color: #0066cc;
        }

        .news-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .news-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

        .news-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-bottom: 1px solid #eee;
        }

        .news-content {
            padding: 20px;
        }

        .news-title {
            font-size: 20px;
            font-weight: 600;
            color: #0066cc;
            margin-bottom: 15px;
        }

        .news-date {
            color: #666;
            font-size: 14px;
            margin-bottom: 15px;
            display: block;
        }

        .news-text {
            color: #555;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .news-text ul {
            padding-left: 20px;
            margin: 10px 0;
        }

        .news-text li {
            margin-bottom: 8px;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 20px;
        }

        .gallery img {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .gallery img:hover {
            transform: scale(1.05);
        }

             /* Стили для карусели */
        .carousel {
            position: relative;
            margin-top: 20px;
            width: 100%;
            height: 200px;
            overflow: hidden;
            border-radius: 8px;
        }

        .carousel-inner {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }

        .carousel-item {
            min-width: 100%;
            height: 100%;
        }

        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: rgba(0, 102, 204, 0.7);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            font-size: 20px;
            font-weight: bold;
            user-select: none;
        }

        .carousel-control.prev {
            left: 10px;
        }

        .carousel-control.next {
            right: 10px;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 5px;
            z-index: 10;
        }

        .carousel-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
        }

        .carousel-indicator.active {
            background-color: #0066cc;
        }

        /* Адаптивность карусели */
        @media (max-width: 768px) {
            .carousel {
                height: 150px;
            }
        }

        .carousel {
            position: relative;
            margin-top: 20px;
            width: 100%;
            height: 250px; /* Увеличили высоту для лучшего отображения */
            overflow: hidden;
            border-radius: 8px;
        }

        .carousel-inner {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }

        .carousel-item {
            min-width: 100%;
            height: 100%;
        }

        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: rgba(0, 102, 204, 0.7);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            font-size: 20px;
            font-weight: bold;
            user-select: none;
            transition: background-color 0.3s;
        }

        .carousel-control:hover {
            background-color: rgba(0, 102, 204, 0.9);
        }

        .carousel-control.prev {
            left: 10px;
        }

        .carousel-control.next {
            right: 10px;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 5px;
            z-index: 10;
        }

        .carousel-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .carousel-indicator:hover, .carousel-indicator.active {
            background-color: #0066cc;
        }

        /* Адаптивность карусели */
        @media (max-width: 768px) {
            .carousel {
                height: 180px;
            }
        }


* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Убираем отступы у body */
        body {
            margin: 0;
            padding: 0;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        /* Стили для контента (если нужно добавить внутренние отступы) */
        .content-wrapper {
            padding: 20px; /* Добавляем внутренние отступы вместо внешних */
        }

        /* Остальные ваши стили */
        .header {
            text-align: center;
            padding: 20px;
            background: linear-gradient(135deg, #0066cc, #004d99);
            color: white;
        }

        h1, h2 {
            margin-bottom: 15px;
        }

        p, ul {
            margin-bottom: 15px;
        }

   :root {
    --primary-color: #005baa; /* Синий цвет Erasmus */
    --secondary-color: #ffcc00; /* Желтый цвет Erasmus */
    --text-color: #333;
    --light-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.erasmus-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.erasmus-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.erasmus-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.erasmus-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.project-description {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .erasmus-header {
        padding: 20px;
    }

    .erasmus-title {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem;
    }
}

:root {
    --primary-color: #005baa;
    --secondary-color: #ffcc00;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --section-bg: #ffffff;
    --border-color: #e0e0e0;
    --highlight-color: #005baa;
}

.project-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-section {
    background-color: var(--section-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.section-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.section-content {
    padding: 20px;
    line-height: 1.7;
}

.highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

.task-list {
    list-style-type: none;
    padding-left: 0;
}

.task-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.task-list li:before {
    content: "•";
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 5px;
}

.team-list {
    list-style-type: none;
    padding-left: 0;
}

.team-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--secondary-color);
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: #003366;
    text-decoration: underline;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .project-container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.2rem;
        padding: 12px 15px;
    }

    .section-content {
        padding: 15px;
    }

    .task-list li, .team-list li {
        padding-left: 20px;
    }
}

.single-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.single-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

 .single-image {
        height: 250px; /* Уменьшаем высоту контейнера */
        overflow: hidden;
    }

    .single-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .news-card:hover .single-image img {
        transform: scale(1.05);
    }

















     /* ================= ФУТЕР ================= */
.footer__ {
  background-color: #000000;
  color: #ffffff;
  font-size: 16px;
  padding-top: 40px;
}

/* Контейнер с колонками */
.footer__row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 40px;
  gap: 24px;
}

/* Каждая колонка */
.footer__column {
  flex: 1 1 250px;
  max-width: 400px;
  color: white;
}

/* Телефон */
.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;
  }
}


/* ==== ДЛЯ компов ширина 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: 400px;
    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,
  .footer__container,
  .ABU__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5px 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;
  }


}


@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;
  }
}


/* Кнопка открытия */
.open-students-modal {
        all: unset;
        display: block;
        padding: 12px 20px;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}

.open-teacher-modal {
        all: unset;
        display: block;
        padding: 12px 20px;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}


/* С 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;
    }
}

.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__logo{
    max-width: 290px;
    height: 65px;
  }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
  .menu__logo,
  .logo__footer img {
    max-width: 220px;
    height: 65px;
  }
}

.menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
}
@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; /* уменьшение размера */

  }
}
@media (max-width: 1290px) {
  .menu__pages a {
    font-size: 13px; /* уменьшение размера */

  }
}





.credit-mobility{
        all: unset;
        display: block;
        padding-top: 3px;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}


.Erasmus-CirculEC{
        display: block;
        color: #fff;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
}


.erasmus-container,
.project-container,
.news-section,
.partners-section,
.partners-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.partner-item a {
    display: inline-block;
    text-decoration: none;
}
.partner-item img {
    cursor: pointer;
    transition: transform 0.2s;
}
.partner-item img:hover {
    transform: scale(1.05);
}

.partner-link {
    transition: transform 0.2s;
    cursor: pointer;
}
.partner-link:hover {
    transform: scale(1.05);
}

.partners-container {
    display: flex;
    gap: 60px;
    max-width: 1200px; 
    margin: 40px auto;
    padding: 60px 40px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* ← Обязательно! */
}

.partner-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.partner-item img {
    max-width: 400px;    /* Увеличена ширина */
    max-height: 160px;   /* Увеличена высота */
    width: auto;         /* Сохранять пропорции */
    height: auto;        /* Сохранять пропорции */
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.22s;
    object-fit: contain; /* Логотипы не теряют пропорции */
}


.partners-container {
    display: flex;
    gap: 60px;
    max-width: 1160px; 
    margin: 40px auto;
    padding: 60px 40px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* ← Обязательно! */
}

.partner-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.partner-item img {
    max-width: 400px;    /* Увеличена ширина */
    max-height: 160px;   /* Увеличена высота */
    width: auto;         /* Сохранять пропорции */
    height: auto;        /* Сохранять пропорции */
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.22s;
    object-fit: contain; /* Логотипы не теряют пропорции */
}

/* --- Адаптив под телефон --- */
@media (max-width: 700px) {
  .partners-container {
    flex-direction: column;
    gap: 32px;
    padding: 24px 8px;
    max-width: 95vw;
  }
  .partner-item {
    width: 100%;
    justify-content: center;
  }
  .partner-item img {
    max-width: 80vw;
    max-height: 80px;
  }
}

.menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: 15px;
}

/* --- АДАПТИВНЫЕ ФИКСЫ ДЛЯ ВСЕЙ СТРАНИЦЫ --- */
html, body {
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
}

@media (max-width: 900px) {
  .erasmus-container,
  .project-container,
  .news-section,
  .partners-section,
  .partners-container {
    max-width: 100vw;
    padding: 0 6px;
    margin: 20px auto;
  }
  .project-container {
    padding: 0 4vw;
  }
}

@media (max-width: 700px) {
  .partners-container {
    flex-direction: column;
    gap: 32px;
    padding: 20px 4vw;
    max-width: 98vw;
    border-radius: 14px;
  }
  .partner-item {
    width: 100%;
    justify-content: center;
  }
  .partner-item img {
    max-width: 90vw;
    max-height: 60px;
  }
}

@media (max-width: 600px) {
  .erasmus-header {
    padding: 8vw 5vw;
    font-size: 0.97em;
  }
  .erasmus-title {
    font-size: 1.1em;
  }
  .project-section {
    margin-bottom: 18px;
    border-radius: 7px;
  }
  .section-title {
    font-size: 1em;
    padding: 10px 7px;
  }
  .section-content {
    padding: 10px 4px;
    font-size: 0.97em;
  }
  .news-section h2,
  .partners-section h2 {
    font-size: 1.2em;
    margin-bottom: 18px;
  }
  .news-container,
  .partners-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .news-card,
  .partner-card {
    padding: 12px 5px;
    min-width: 0;
    max-width: 100vw;
  }
  .single-image {
    height: 150px;
  }
  .footer__row {
    flex-direction: column;
    padding: 20px 4vw;
    gap: 12px;
  }
  .footer__column {
    max-width: 100%;
    font-size: 0.97em;
  }
  .footer__bottom {
    padding: 16px 0;
    font-size: 12px;
  }
  .stripe {
    margin: 14px 0;
  }
  .menu__logo, .logo__footer img {
    max-width: 150px;
    height: auto;
  }
  .menu__row {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3vw;
    padding: 0 2vw;
  }
  .menu {
    height: auto;
    padding: 12px 0 10px 0;
  }
}

@media (max-width: 400px) {
  .erasmus-header {
    padding: 12px 2vw;
  }
  .project-section, .section-content {
    padding: 4px 2vw;
  }
}

/* -- ГИБКОСТЬ СЕТОК -- */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
@media (max-width: 750px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 30px;
}
@media (max-width: 750px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.news-card, .partner-card {
  min-width: 0;
  word-break: break-word;
}

/* -- УЛУЧШЕНИЯ КАРТОЧЕК -- */
.news-card,
.partner-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover,
.partner-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.news-content, .partner-card {
  padding: 18px;
}
.news-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #005baa;
  margin-bottom: 8px;
}
.news-date {
  color: #666;
  font-size: 13px;
  margin-bottom: 9px;
  display: block;
}
.news-text {
  color: #444;
  margin-bottom: 10px;
}
.read-more {
  color: #005baa;
  font-weight: 600;
  font-size: 0.98em;
}

/* -- МЕНЮ и бургер -- */
@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;
  }
  .burger-button {
    display: flex;
    margin-left: 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;
}

/* -- ФУТЕР -- */
.footer__ {
  background-color: #000;
  color: #fff;
  font-size: 16px;
  padding-top: 40px;
}
.footer__row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 40px;
  gap: 24px;
}
.footer__column {
  flex: 1 1 250px;
  max-width: 400px;
  color: white;
}
.footer__bottom {
  padding: 20px 40px;
  font-size: 14px;
}
.stripe {
  border: 1px solid white;
  margin: 0 40px;
}
@media (max-width: 768px) {
  .footer__row {
    flex-direction: column;
    gap: 12px;
    padding: 20px 4vw;
  }
  .footer__column {
    max-width: 100%;
    font-size: 0.97em;
  }
  .footer__bottom {
    padding: 12px 0;
    font-size: 12px;
  }
  .stripe {
    margin: 10px 0;
  }
}

/* -- Исправления для логотипов -- */
.menu__logo,
.logo__footer img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .menu__logo,
  .logo__footer img {
    max-width: 120px;
    height: auto;
  }
  .single-image {
    height: 90px;
  }
}

.single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Увеличить изображения только в новостях */
.news-card .single-image {
    height: 320px; /* Больше чем было */
    max-height: 40vw; /* На больших экранах не делать слишком огромным */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

@media (max-width: 700px) {
  .news-card .single-image {
    height: 210px;
    max-height: 55vw;
  }
}

@media (max-width: 480px) {
  .news-card .single-image {
    height: 140px;
    max-height: 44vw;
  }
}
.news-card .single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
  .menu__row {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    position: relative;
  }
  .logo__title {
    margin-right: auto;
  }
  .burger-button {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    position: relative;
    z-index: 1100; /* поверх меню */
  }
}

@media (max-width: 900px) {
  .menu__row {
    justify-content: flex-end; /* Все вправо */
    gap: 12px;
  }
  .logo__title {
    margin-right: auto; /* Лого слева, бургер справа */
  }
  .burger-button {
    margin-left: 200px; /* Толкаем бургер вправо */
  }
}




.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; /* ширина только по контенту */
    width: 180px;
    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;
    }
}
.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);
  }
}
