/* Основные настройки и сброс стилей */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
}

/* Основные стили body */
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.news-excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
/* Ссылки */
a {
  color: #2C3478;
  text-decoration: none;
  white-space: nowrap;
}

/* Списки */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

/* Основной контейнер */
.main {
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
}

.container {
  box-sizing: border-box;
  max-width: 190vh;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5vh;
}

/* Стили заголовков */
h4, h1 {
  margin: 0%;
}

.zagolovok,
.zagolovoknovosti,
.zagolovok2,
.zagolovok3 {
  color: #2C3478;
  position: relative;
  margin-left: 0; 
  text-align: center;
  font-weight: 500;
}

.zagolovok {
  margin-bottom: 1.8%;
}

.zagolovoknovosti {
  margin-bottom: 1.8%;
}

.zagolovok2 {
  margin-bottom: 1%;
  margin-top: 2%;
}

.zagolovok3 {
  margin-top: 2%;
}

/* Линии разделители */
.lines {
  width: 10;
  height: 3px;
  background-color: #2C3478;
}

.lines2 {
  width: 25%;
  margin-left: auto;
  margin-right: auto;
  align:center;
  height: 3px;
  background-color: #2C3478;
}

/* Стили для хедера */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 11px;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.header__logo-container {
  display: flex;
  align-items: center;
}

.header__nav {
  width: 75%;
}

.header__nav-top,
.header__nav-bottom {
  display: flex;
  justify-content:center;
}

.header__list {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 5px 0;
  font-weight: 600;
  font-size: 19px;
  flex-wrap: wrap;
  justify-content: center;
}

.header__logo {
  width: 90px;
  height: 90px;
  margin-left: 10px;
  object-fit: contain;
}

.header__logoo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

/* Кнопки */
.icon-btn {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: white;
  border: 2px solid #2C3478;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: #f0f1f4;
}

/* Навигационное меню */
.navbar {
  padding: 15px 20px;
  position: relative;
  z-index: 900;
}

/* Бургер-меню */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #2c3478;
  transition: all 0.3s ease;
  border-radius: 5px;
}

/* Основное меню */
.menu {
  display: none;
  list-style: none;
  flex-wrap: wrap;
  width: 160px;
}

.menu li {
  margin: 0px;
  flex-wrap: wrap;
  width: 250px;
  position: relative;
  padding: 5px 0;
  padding-left: 10px;
}

.menu li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 2%;
  width: 90%;
  height: 2px;
  background: #2C3478;
}

.menu li:last-child::after {
  display: none;
} 

.menu a {
  text-decoration: none;
  color: #2C3478;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.3s;
  word-break: break-word;
  text-align: center;
}

.menu a:hover {
  color: #0066cc;
}

.news-excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Блоки контента */
.block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  border-radius: 8px;
}

.ban {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ban:hover {
  transform: scale(1.05);
}

/* Приветственный блок */
.welcome {
  position: relative;
  background: url('image.webp') no-repeat center center/cover;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 5px;
  background-attachment: local;
}
.day {
  background: url('dod.webp?v=3') no-repeat center center;
  background-size: contain;

  width: 70%;                 /* в 2 раза меньше */
  aspect-ratio: 1920 / 333;   /* сохраняем пропорции */

  margin: 20px auto;          /* центрируем по горизонтали */
  
  display: flex;
  align-items: center;
  justify-content: center;    
}
/* Стили для кнопок с эффектами */
.btnn {
  text-decoration: underline;
  text-decoration-color: #2C3478;
}

.btn,
.btnnnn {
  position: relative; 
}

.btn::after,
.btnnnn::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  display: block;
  width: 0;
  height: 2.5px;
  background: #2C3478;
  transition: 0.3s;
}

.btn:hover:after,
.btnnnn:hover:after {
  width: 100%; 
}

/* Слайдер */
.button-slider {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-container {
  overflow: hidden;
  flex-grow: 1;
  transition: width 0.4s ease;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 10px;
  will-change: transform;
}

.slider-track.no-transition {
  transition: none;
}

.slider-btn {
  min-width: 150px;
  padding: 15px 20px;
  background: #185779;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  white-space: nowrap; /* Запрещаем перенос текста */
  flex-shrink: 0; /* Запрещаем сжатие кнопок */
}

.slider-btn a {
  color: white;
}


.slider-nav {
  top: 60%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.nav-btn {
  background: #fff;
  color: #185779;
  border: 2px solid #185779;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: #185779;
  color: #fff;
  border-color: #185779;
}

/* Дополнительный блок */
.dod {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.dod__img {
  max-width: 100%;
  height: auto;
}

/* Блог и новости */
.blog-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.news-container {
  display: flex;
  gap: 30px;
  margin: 0 80px;
  align-items: flex-start;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}


.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.news-title {
  color: #2C3478;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  color: #4B5563;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-link {
  color: #2C3478;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.news-link:hover {
  color: #1E40AF;
}

.news-link::after {
  content: "→";
  margin-left: 5px;
  transition: margin-left 0.2s;
}

.news-link:hover::after {
  margin-left: 8px;
}

/* Сайдбар новостей */
.news-sidebar {
  width: 300px;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-sidebar h4 {
  display: none;
}

/* Стили для видео-контейнера */
.sidebar-video {
  border: 1px solid #2C3478;
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
  background: #fff;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Панель управления видео */
.video-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
  opacity: 1;
}

/* Кнопка полноэкранного режима */
.fullscreen-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.fullscreen-btn:hover {
  background: rgba(44, 52, 120, 0.9);
  transform: scale(1.1);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

/* Стили для полноэкранного режима */
.video-container:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: black;
}

.video-container:-moz-full-screen {
  width: 100%;
  height: 100%;
  background: black;
}

.video-container:-ms-fullscreen {
  width: 100%;
  height: 100%;
  background: black;
}

.video-container:fullscreen {
  width: 100%;
  height: 100%;
  background: black;
}

.video-container:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-image {
  border: 1px solid #2C3478;
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
  background: #fff;
  transition: all 0.3s ease;
}

.sidebar-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Карточки блога */
.blog-card,
.blog-card-beb {
  max-width: 642px;
  height: 200px;
  flex: 1 1 calc(50% - 10px);
  margin: 1rem;
  box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.6%;
  background: #fff;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid #2C3478;
  overflow: hidden;
  z-index: 0;
}

.blog-card-beb {
  flex-direction: row-reverse;
}

.blog-card {
  flex-direction: row;
}

.blog-card:hover .photo,
.blog-card-beb:hover .photo {
  transform: scale(1.3) rotate(3deg);
}

.meta {
  position: relative;
  z-index: 0;
  height: 200px;
}

.photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}

.description {
  padding: 1rem;
  background: #fff;
  position: relative;
  z-index: 1;
}

.description h3 {
  line-height: 1;
  margin: 0;
}

.description h5 {
  text-transform: uppercase;
  color: #000;
  margin-top: 5px;
}

.read-more {
  text-align: right;
}

.read-more a {
  color: #2C3478;
  display: inline-block;
  position: relative;
}

.read-more a::after {
  content: "→";
  margin-left: -10px;
  opacity: 0;
  vertical-align: middle;
  transition: margin 0.3s, opacity 0.3s;
}

.read-more a:hover::after {
  margin-left: 5px;
  opacity: 1;
}

.description p {
  position: relative;
  margin: 1rem 0 0;
}

.description p:first-of-type::before {
  content: "";
  position: absolute;
  height: 5px;
  width: 35px;
  top: -0.75rem;
  border-radius: 3px;
}

/* Контейнер для кнопок */
.buttons-container1 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: 600px;
  margin-top:1%;
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
}

.sreda__btn {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
  padding: 15px 20px;
  background: #185779;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sreda__btn:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sreda__btn a {
  color: white;
  text-decoration: none;
  display: inline-block;
  white-space: normal;
}

/* Партнеры */
.partn img {
  height: 100px;
}

.wrapper {
  width: 300px;
  background: #fff;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Футер */
.footer {
  position: relative;
  background: #003670;
  color: white;
  overflow: hidden;
}

.footer__image-container {
  width: 100%;
  max-height: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer__image {
  width: 100%;
  height: auto;
  min-height: 100px;
  object-fit: cover;
  object-position: center bottom;
}

.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer__column-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer__column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s;
}

.footer__links a:hover {
  color: white;
  padding-left: 5px;
  text-decoration: underline;
}

.footer__bottom {
      margin-top: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer__version a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__version a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Мобильный аккордеон для футера */
.footer__mobile-accordion {
  display: none;
}

.footer__accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.footer__accordion-title {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: white;
}

.footer__accordion-title::-webkit-details-marker {
  display: none;
}

.footer__accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.footer__accordion-icon::before,
.footer__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

.footer__accordion-icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
}

.footer__accordion-icon::after {
  width: 2px;
  height: 16px;
  left: 7px;
}

.footer__accordion-item[open] .footer__accordion-icon::after {
  transform: rotate(90deg);
}

.footer__accordion-content {
  padding: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__accordion-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s;
}

.footer__accordion-content a:hover {
  color: white;
  text-decoration: underline;
}

/* Скрытие элементов на мобильных устройствах */
.mobile-hide {
  display: block;
}

.show-more-btn {
  display: none;
  width: 100%;
  padding: 15px;
  background: #2C3478;
  color: white;
  border: none;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 300px;
  cursor: pointer;
}

/* Медиазапросы для адаптивности */
@media (min-width: 769px) {
  .mobile-hide {
    display: block !important;
  }
  
  .show-more-btn {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .footer__columns {
    justify-items: center;
    max-width: 1000px;
    margin-left: 0.3%;
  }
  
  .footer a {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .header__logo,
  .header__logoo {
    width: 70px;
    height: 70px;
  }
  
  .header__list {
    gap: 30px;
    font-size: 16px;
  }
  
  .header__nav {
    width: 72%;
  }

  .welcome {
    height: 25vh;
    min-height: 200px;
  }
  .day {
    width: 85%;
    margin: 30px auto;
  }

  .container {
    padding: 0 15px;
  }

  .slider-btn {
    min-width: 130px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .news-container {
    margin: 0 80px;
  }
  
  .news-card {
    max-width: 100%;
  }
  
  .news-image {
    height: 180px;
  }
  
  .news-title {
    font-size: 16px;
  }
  
  .news-excerpt {
    font-size: 14px;
  }
  
  .news-date {
    font-size: 12px;
  }

  .blog-card {
    flex-direction: row;
    max-width: none;
  }
  
  .meta {
    flex-basis: 40%;
    height: auto;
  }
  
  .description {
    flex-basis: 60%;
  }

  .description h3 {
    font-size: 15px;
  }

  .description h5 {
    font-size: 10px;
  }

  .description p {
    font-size: 12px;
  }

  .blog-card.alt {
    flex-direction: row-reverse;
  }

  .btnnnn {
    display: none;
  }
  
   .ban {
    max-width: 100px;
    height: auto;
  }  

  .partn img {
    width: 100px;
    height: 60px;
  } 
  }

@media (max-width: 992px) {
  .footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .footer {
    background-size: cover;
    min-height: 500px;
  }
  
  .footer__container {
    min-height: 500px;
  }
}

@media (max-width: 768px) {

  .header__logo,
  .header__logoo {
    width: 60px;
    height: 60px;
  }
  .blog-container .news-card:nth-child(n+4) {
    display: none;
  }

  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
  
  .icon-btn {
    margin-right: 50%;
  }
  
  .icon-btn img {
    width: 45px;
  }
  
  .zagolovok,
  .zagolovok2,
  .zagolovok3,
  .zagolovoknovosti {
    font-size: 14px;
  }
  
  .zagolovoknovosti {
    margin-bottom: 5%;
  }

  
  
  .burger {
    display: flex;
    margin-left: auto;
  }
  
  .menu {
    display: flex;
    border-radius: 15px 0 0 15px;
    position: fixed;
    top: 50px;
    right: -100%;
    width: auto;
    height: auto;
    max-height: 80vh;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: 5px 0;
    flex-wrap: wrap;
  }
  
  .burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .container {
    padding: 0 15px;
  }
  
  .dod {
    display: block;
  }
  
  .welcome {
    height: 35vh;
    max-height: 10px;
    background-size: contain;
    background-color: #ffffff;
  }
  .day {
    width: 95%;
    margin: 20px auto;
  }
       
  .button-slider {
    width: 90%;
    padding: 10px 5px;
  }
  
  .slider-btn {
    min-width: 120px;
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .news-container {
    flex-direction: row;
    margin: 0 40px;
  }

  .news-card {
    flex-direction: column;
    margin-bottom: 20px;
  }
  
  .news-image {
    height: 150px;
  }
  
  .news-content {
    padding: 15px;
  }
  
  .news-title {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .news-excerpt {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .news-date {
    font-size: 11px;
  }
  
  .news-link {
    font-size: 14px;
  }
  
  .blog-card {
    flex: 1 1 calc(50% - 20px);
  }

  .news-sidebar {
    max-width: 200px;
  }
   
  .btnnnn {
    display: none;
  }

  .blog-card {
    flex-direction: row;
    width: 100%;
    max-width: 400px;
    height: 200px;
  }
  
  .description h3 {
    font-size: 10px;
  }
  
  .description h5 {
    font-size: 5px;
  }
  
  .description p {
    font-size: 8px;
  }

  .ban {
    max-width: 70px;
    height: auto;
  }

  .partn img {
    width: 70px;
    height: 35px;
  } 

  .blog-card-beb {
    display: none;
  }
  
  .footer__columns {
    display: none;
  }
  
  .footer__mobile-accordion {
    display: block;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .mobile-hide {
    display: none !important;
  }

  .show-more-btn {
    display: block;
  }

  .blog-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }
}

@media (max-width: 646px) {
  .icon-btn {
    margin-right: 30%;
  }

  .header__logo,
  .header__logoo {
    width: 8vh;
    height: 8vh;
    margin-top: 10px;
  }

  .container {
    padding: 0 15px;
  }

  .ban {
    max-width: 50px;
    height: auto;
  }  
  .partn img {
    width: 50px;
    height: 25px;
  }  
  .news-sidebar {
    max-width: 150px;
  }
}

@media (max-width: 565px) {
  .news-sidebar {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .icon-btn {
    margin-right: 20%;
  }

  .welcome {
    height: 30vh;
    min-height: 150px;
  }
  .day {
    width: 100%;
    margin: 15px auto;
  }
    
  .header__logo,
  .header__logoo {
    width: 40px;
    height: 40px;
  }
    
  .header__list {
    gap: 1vh;
    font-size: 14px;
  }

  .menu {
    width: 80%;
  }
  
  .menu li {
    width: 100%;
  }
    
  .container {
    padding: 0 15px;
  }

  .news-container {
    margin: 0 10px;
    gap: 20px;
  }
  
  .ban {
    max-width: 50px;
    height: auto;
  }
  
  .zagolovok {
    font-size: 15px;
  }

  .wrapper {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .partn img {
    width: 70px;
    height: 32px;
  } 
  
  .sidebar-image {
    padding: 10px;
  }
  
  
  .btnnnn {
    display: none;
  }
    
  .slider-btn {
    min-width: 110px;
    font-size: 11px;
  }
  
  .slider-track {
    gap: 8px;
  }
  
  .footer {
    padding: 30px 0 20px;
  }
  
  .footer__accordion-title {
    font-size: 15px;
  }
  
  .footer__accordion-content a {
    font-size: 13px;
  }
  
  .news-card {
    margin-bottom: 15px;
  }
  
  .lines2 {
    width: 50%;
  }
  
  .news-image {
    height: 120px;
  }
  
  .news-title {
    font-size: 14px;
  }
  
  .news-excerpt {
    font-size: 12px;
  }
  
  .news-date {
    font-size: 10px;
  }
  
  .news-link {
    font-size: 13px;
  }

  .button-slider {
    width: 95%;
  }
  
  .slider-btn {
    min-width: 110px;
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .nav-btn {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

    .news-sidebar {
    max-width: 100px;
  }

}

.dost-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
}

.dost-title {
  color: #2C3478;
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  position: relative;
}

.dost-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: #2C3478;
  margin: 15px auto 0;
}

.dost-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.dost-track {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.dost-card {
  flex: 0 0 350px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.dost-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dost-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dost-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dost-content {
  text-align: center;
}

.dost-year {
  color: #2C3478;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.dost-content h3 {
  color: #2C3478;
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.dost-content p {
  color: #4B5563;
  font-size: 14px;
  line-height: 1.5;
}

.dost-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.dost-prev,
.dost-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2C3478;
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dost-prev:hover,
.dost-next:hover {
  background: #185779;
  transform: scale(1.1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .dost-card {
    flex: 0 0 280px;
    padding: 20px;
  }
  
  .dost-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  
  .dost-content h3 {
    font-size: 16px;
  }
  
  .dost-content p {
    font-size: 13px;
  }
  
  .dost-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .dost-card {
    flex: 0 0 250px;
    padding: 15px;
  }
  
  .dost-icon {
    width: 60px;
    height: 60px;
  }
  
  .dost-title {
    font-size: 22px;
  }
  
  .dost-prev,
  .dost-next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Блок достижений 2 - 3D карусель */
.dost-container2 {
  position: relative;
  width: 220px;
  height: 200px;
  margin: 120px auto 0px auto;
  perspective: 1000px;
}

.dost-carousel2 {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate360 60s infinite linear;
}

.dost-carousel2:hover {
  animation-play-state: paused;
}

.dost-carousel__face {
  position: absolute;
  width: 200px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  backface-visibility: hidden;
}

.dost-carousel__face img {
  width: 100%;
  height: 100%;
}

/* Расположение 13 карточек с шагом ~27.6923° (360/13) */
.dost-carousel__face:nth-child(1) { transform: rotateY(0deg) translateZ(430px); }
.dost-carousel__face:nth-child(2) { transform: rotateY(27.6923deg) translateZ(430px); }
.dost-carousel__face:nth-child(3) { transform: rotateY(55.3846deg) translateZ(430px); }
.dost-carousel__face:nth-child(4) { transform: rotateY(83.0769deg) translateZ(430px); }
.dost-carousel__face:nth-child(5) { transform: rotateY(110.7692deg) translateZ(430px); }
.dost-carousel__face:nth-child(6) { transform: rotateY(138.4615deg) translateZ(430px); }
.dost-carousel__face:nth-child(7) { transform: rotateY(166.1538deg) translateZ(430px); }
.dost-carousel__face:nth-child(8) { transform: rotateY(193.8462deg) translateZ(430px); }
.dost-carousel__face:nth-child(9) { transform: rotateY(221.5385deg) translateZ(430px); }
.dost-carousel__face:nth-child(10) { transform: rotateY(249.2308deg) translateZ(430px); }
.dost-carousel__face:nth-child(11) { transform: rotateY(276.9231deg) translateZ(430px); }
.dost-carousel__face:nth-child(12) { transform: rotateY(304.6154deg) translateZ(430px); }
.dost-carousel__face:nth-child(13) { transform: rotateY(332.3077deg) translateZ(430px); }

@keyframes rotate360 {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-360deg); }
}

/* Планшетная версия (768px-992px) */
@media (max-width: 992px) {
  .dost-mobile-hide {
    display: none !important;
  }
}

/* Мобильная версия (576px-768px) */
@media (max-width: 768px) {
  .dost-mobile-hide {
    display: none !important;
  }
}

/* Версия для очень маленьких экранов (<576px) */
@media (max-width: 576px) {
  .dost-mobile-hide {
    display: none !important;
  }
}
/* Блок достижений 3 */
.dost3-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.dost3-header {
  text-align: center;
  margin-bottom: 40px;
}

.dost3-header h2 {
  color: #2C3478;
  font-size: 28px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dost3-header h2 i {
  color: #2C3478;
}

.dost3-header p {
  color: #555;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.dost3-slider-container {
  width: 100%;
  margin: 0 auto;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.dost3-slider {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.dost3-slide {
  min-width: 100%;
  display: flex;
  height: 100%;
}

.dost3-image-container {
  flex: 1;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fc;
}

.dost3-slide-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
}

.dost3-text-container {
  position: relative; /* Для позиционирования дочерних элементов */
  padding-bottom: 60px; /* Место для даты внизу */
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  color: #333;
}

.dost3-slide-title {
  color: #2C3478;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.dost3-slide-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: #2C3478;
  border-radius: 2px;
}

.dost3-slide-description {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.dost3-achievement-list {
  margin-left: 20px;
  margin-bottom: 25px;
}

.dost3-achievement-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: #444;
}

.dost3-achievement-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #2C3478;
  font-weight: bold;
  font-size: 18px;
}

.dost3-date-badge {
  display: inline-block;
  color: #555; /* Более нейтральный цвет текста */
  padding: 6px 15px;
  font-weight: 500; /* Убираем жирность */
  font-size: 0.9rem;
  margin-top: 15px;
  box-shadow: none; /* Убираем тень */
  position: absolute; /* Абсолютное позиционирование */
  bottom: 20px;
  right: 20px;
}

.dost3-slider-nav {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dost3-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(44, 52, 120, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dost3-nav-dot.dost3-active {
  background: #2C3478;
  transform: scale(1.3);
}

.dost3-prev-btn, .dost3-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #eaeaea;
  color: #2C3478;
  font-size: 18px;
  z-index: 10;
}

.dost3-prev-btn:hover, .dost3-next-btn:hover {
  background: #2C3478;
  color: white;
  border-color: #2C3478;
}

.dost3-prev-btn {
  left: 25px;
}

.dost3-next-btn {
  right: 25px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .dost3-slider-container {
    height: auto;
    max-height: none;
  }
  
  .dost3-slide {
    flex-direction: column;
    height: auto;
  }
  
  .dost3-image-container {
    height: 300px;
    padding: 20px;
  }
  
  .dost3-text-container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .dost3-header h2 {
    font-size: 24px;
  }
  
  .dost3-header p {
    font-size: 16px;
  }
  
  .dost3-slide-title {
    font-size: 22px;
  }
  
  .dost3-prev-btn, .dost3-next-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .dost3-date-badge {
    bottom: 15px;
    right: 15px;
    padding: 5px 12px;
    font-size: 0.85rem;
  }
  
  .dost3-text-container {
    padding-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .dost3-container {
    padding: 0 15px;
  }
  
  .dost3-header h2 {
    font-size: 22px;
  }
  
  .dost3-image-container {
    height: 250px;
    padding: 15px;
  }
  
  .dost3-text-container {
    padding: 25px 20px;
  }
  
  .dost3-slide-title {
    font-size: 20px;
  }
  
  .dost3-slide-description {
    font-size: 15px;
  }
  
  .dost3-achievement-list li {
    font-size: 14px;
  }
  
  .dost3-prev-btn, .dost3-next-btn {
    width: 35px;
    height: 35px;
  }
}


/* Обновленные стили для блока специальностей */
.specialties-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.specialties-title {
  color: #2C3478;
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  position: relative;
}

.specialties-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: #2C3478;
  margin: 15px auto 0;
}

.specialties-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Первая строка - 4 карточки */
.specialty-card:nth-child(1),
.specialty-card:nth-child(2),
.specialty-card:nth-child(3),
.specialty-card:nth-child(4) {
  flex: 0 0 calc(25% - 30px);
  max-width: calc(25% - 30px);
}

/* Вторая строка - 3 карточки */
.specialty-card:nth-child(5),
.specialty-card:nth-child(6),
.specialty-card:nth-child(7) {
  flex: 0 0 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
}

/* Третья строка - 3 карточки */
.specialty-card:nth-child(8),
.specialty-card:nth-child(9),
.specialty-card:nth-child(10) {
  flex: 0 0 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
}

.specialty-card {
  background: white;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  height: auto;
  min-height: 200px;
  box-sizing: border-box;
  overflow: hidden;
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.specialty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialty-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.specialty-card p {
  color: #2C3478;
  font-weight: 600;
  margin-bottom: 5px;
}

.specialty-card h3 {
  color: #2C3478;
  font-size: 18px;
  line-height: 1.4;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
  .specialty-card {
    flex: 0 0 calc(50% - 30px) !important;
    max-width: calc(50% - 30px) !important;
  }
}

@media (max-width: 576px) {
  .specialty-card {
    flex: 0 0 calc(50% - 30px) !important;
    max-width: calc(50% - 30px) !important;
  }
  .specialty-card h3 {
  color: #2C3478;
  font-size: 12px;
  line-height: 1.4;
}
}


/* Новые стили для блока преимуществ */
    .benefits-section {
      max-width: 1200px;
      margin: 60px auto;
      padding: 0 20px;
      position: relative;
    }
    
    .benefits-title {
      color: #2C3478;
      text-align: center;
      font-size: 28px;
      margin-bottom: 40px;
      position: relative;
    }
    
    .benefits-title::after {
      content: '';
      display: block;
      width: 100px;
      height: 3px;
      background: #2C3478;
      margin: 15px auto 0;
    }
    
    .benefits-container {
      position: relative;
      height: 500px;
      overflow: hidden;
      border-radius: 20px;
    }
    
    .benefits-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transform: translateX(-50px);
      transition: all 0.8s ease;
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: flex-end;
      border-radius: 20px;
    }
    
    .benefits-slide::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 20px;
    }
    
    .benefits-slide.active {
      opacity: 1;
      transform: translateX(0);
      z-index: 10;
    }
    
    .benefits-slide.prev {
      transform: translateX(-100%);
    }
    
    .benefits-slide.next {
      transform: translateX(100%);
    }
    
    .benefits-content {
      position: relative;
      z-index: 10;
      color: white;
      padding: 40px;
      max-width: 600px;
      transform: translateY(50px);
      transition: transform 0.8s ease;
    }
    
    .benefits-slide.active .benefits-content {
      transform: translateY(0);
    }
    
    .benefits-content h3 {
      font-size: 28px;
      margin-bottom: 15px;
      color: #fff;
    }
    
    .benefits-content p {
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 20px;
      color: rgba(255, 255, 255, 0.9);
    }
    
    .benefits-buttons {
      position: absolute;
      bottom: 30px;
      right: 30px;
      z-index: 100;
      display: flex;
      gap: 15px;
    }
    
    .benefits-btn {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #2C3478;
      color: white;
      border: none;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .benefits-btn:hover {
      background: #185779;
      transform: scale(1.1);
    }
    
    /* Адаптивность */
    @media (max-width: 768px) {
      .benefits-container {
        height: 400px;
      }
      
      .benefits-content {
        padding: 20px;
      }
      
      .benefits-content h3 {
        font-size: 22px;
      }
      
      .benefits-content p {
        font-size: 16px;
      }
      
      .benefits-buttons {
        bottom: 20px;
        right: 20px;
      }
      
      .benefits-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }
    }
    
    @media (max-width: 480px) {
      .benefits-container {
        height: 350px;
      }
      
      .benefits-content h3 {
        font-size: 20px;
      }
      
      .benefits-content p {
        font-size: 14px;
      }
    }
.news-excerpt,
.news-title,
.news-content,
.news-card p,
.news-card h3 {
    white-space: normal !important;
    word-wrap: break-word;
}
