@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;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  color: #333;
}

a {
  color: #2C3478;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

a[href] {
  text-decoration: underline;
}

a:hover {
  color: #1a237e;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.line-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.line {
  border-bottom: 2px solid #2C3478;
  flex-grow: 1;
  opacity: 0.6;
}

.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
}

/* Стили для хедера */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 11px;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.header__logo-container {
  display: flex;
  align-items: center;
}

.header__nav {
  width: 75%;
}

.header__nav-top,
.header__nav-bottom {
  display: flex;
  justify-content:center;
}

.header__list {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 5px 0;
  font-weight: 600;
  font-size: 19px;
  flex-wrap: wrap;
  justify-content: center;
}

.header__logo {
  width: 90px;
  height: 90px;
  margin-left: 10px;
  object-fit: contain;
}

.header__logoo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.navbar {
  padding: 15px 20px;
  position: relative;
  z-index: 900;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.menu {
  display: none;
  list-style: none;
  flex-wrap: wrap;
  width: 160px;
}

.menu li {
  margin: 0px;
  flex-wrap: wrap;
  width: 250px;
  position: relative;
  padding: 5px 0;
  padding-left: 10px;
}

.menu li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 2%;
  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;
}

.buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  max-width: 1600px;
  margin-left: 6%;
  margin-top: 5%;
  padding: 20px;
  background-color: #f5f5f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px #2c3478;
}

.content {
  flex-grow: 1;
  padding: 40px;
  margin: 0 60px 40px;
  background-color: #f5f5f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px #2c3478;
  width: 100%;
  word-wrap: break-word;
}

.content a {
  white-space: normal;
}

.content h4 {
  margin: 0 10px;
  font-weight: bold;
  text-align: center;
}

.block__title {
  letter-spacing: 2px;
  position: relative;
  padding: 0px 0px 0px 30px;
  cursor: pointer;
}

.block__title:before,
.block__title:after {
  content: '';
  width: 10px;
  height: 1px;
  background-color: #004080;
  position: absolute;
  top: 8px;
  transition: all 0.3s ease 0s;
}

.block__title:before {
  transform: rotate(40deg);
  left: 0;
}

.block__title:after {
  transform: rotate(-40deg);
  left: 8px;
}

.block__title.active:before,
.block__title.active:after {
  background-color: #004080;
}

.block__title.active:before {
  transform: rotate(-40deg);
}

.block__title.active:after {
  transform: rotate(40deg);
}

.block__text {
  display: none;
  padding: 0px 0px 0px 15px;
}

.date {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

h1 {
  color: #2C3478;
  font-size: 28px;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2C3478;
  line-height: 1.3;
}

.highlight {
  background-color: #fff4f4;
  padding: 20px;
  border-left: 4px solid #d40000;
  margin: 25px 0;
  font-style: italic;
  border-radius: 4px;
  line-height: 1.6;
}

.emoji {
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.checkmark {
  color: #28a745;
  font-weight: bold;
}

.heart {
  color: #d40000;
  font-weight: bold;
}

.tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  background-color: #e9e9e9;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.news-text {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin: 25px 0;
}

.news-text p {
  margin-bottom: 20px;
}

.news-text p:last-child {
  margin-bottom: 0;
}

.news-gallery {
  margin: 35px 0;
  position: relative;
}

.custom-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

/* Стили для видео блока */
.news-video {
  margin: 35px 0;
  padding: 25px;
  border-radius: 8px;
}

.news-video h3 {
  color: #2C3478;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  margin-top: 15px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(44, 52, 120, 0.2);
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
  border-radius: 8px;
}

.video-wrapper video {
  background: #000;
}

/* Индикатор загрузки видео */
.video-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #2C3478;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.video-wrapper.loading::before {
  opacity: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Подпись к видео */
.video-caption {
  padding: 12px 15px;
  background: #f8f9fa;
  color: #555;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid #e9ecef;
  font-style: italic;
}

/* Адаптивность для видео */
@media (max-width: 1024px) {
  .video-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .video-wrapper iframe,
  .video-wrapper video {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .news-video {
    margin: 25px 0;
    padding: 20px;
  }
  
  .news-video h3 {
    font-size: 20px;
  }
  
  .video-container {
    gap: 15px;
  }
  
  .video-wrapper iframe,
  .video-wrapper video {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .news-video {
    padding: 15px;
    margin: 20px 0;
  }
  
  .news-video h3 {
    font-size: 18px;
  }
  
  .video-wrapper iframe,
  .video-wrapper video {
    height: 200px;
  }
  
  .video-caption {
    padding: 10px;
    font-size: 13px;
  }
}

/* Стили для полноэкранного режима видео */
.video-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  border-radius: 0;
}

.video-wrapper.fullscreen iframe,
.video-wrapper.fullscreen video {
  height: 100vh;
  border-radius: 0;
}

/* Кнопка полноэкранного режима */
.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  z-index: 3;
  transition: background 0.3s;
}

.fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: calc(100% / 3);
  padding: 0 5px;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.03);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  color: #2C3478;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #fff;
  transform: scale(1.2);
}

.news-swiper {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.news-image:hover {
  transform: scale(1.03);
}

/* Исправленные стили для кнопок карусели */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: #2C3478;
}

.swiper-button-next {
  right: 15px;
}

.swiper-button-prev {
  left: 15px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-family: 'swiper-icons';
  font-size: 24px;
  font-weight: bold;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.05);
}

.swiper-pagination {
  position: relative;
  margin-top: 15px;
  text-align: center;
}

.swiper-pagination-bullet {
  background: #2C3478;
  opacity: 0.4;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

.news-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: 0 auto;
  text-align: center;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: #f44336;
}

/* Добавляем стили для кнопок в модальном окне */
.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.modal-prev:hover, .modal-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Футер */
.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;
}
/* Кнопки */
.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;
}

.footer__version a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Мобильный аккордеон для футера */
.footer__mobile-accordion {
  display: none;
}

.footer__accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.footer__accordion-title {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: white;
}

.footer__accordion-title::-webkit-details-marker {
  display: none;
}

.footer__accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.footer__accordion-icon::before,
.footer__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

.footer__accordion-icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
}

.footer__accordion-icon::after {
  width: 2px;
  height: 16px;
  left: 7px;
}

.footer__accordion-item[open] .footer__accordion-icon::after {
  transform: rotate(90deg);
}

.footer__accordion-content {
  padding: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__accordion-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s;
}

.footer__accordion-content a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .header__logo,
  .header__logoo {
    width: 70px;
    height: 70px;
  }
  
  .header__list {
    gap: 30px;
    font-size: 16px;
  }
  
  .header__nav {
    width: 72%;
  }

@media (max-width: 1280px) {
   .footer__columns {
    justify-items: center;
    max-width: 1000px;
    margin-left: 0.3%;
  }
  
  .footer a {
    font-size: 12px;
  }

  
  .news-swiper {
    height: 280px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 22px;
  }
}

@media (max-width: 768px) {

  .header__logo,
  .header__logoo {
    width: 60px;
    height: 60px;
  }

  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
  
  .content {
    padding: 25px;
    margin: 0 30px 30px;
  }
  
  h1 {
    font-size: 26px;
  }
  
  .news-text {
    font-size: 16px;
  }
  
  .news-swiper {
    height: 240px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 20px;
  }

  .carousel-slide {
    min-width: 50%;
  }
}

@media (max-width: 768px) {
  .header__logo,
  .header__logoo {
    width: 8vh;
    height: 8vh;
    margin-top: 10px;
  }

  
  .header__nav {
    display: none;
  }
  
  .burger {
    display: flex;
    margin-left: auto;
  }
  
  .menu {
    display: flex;
    border-radius: 15px 0 0 15px;
    position: fixed;
    top: 50px;
    right: -100%;
    width: auto;
    height: auto;
    max-height: 80vh;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: 5px 0;
  }
  
  .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);
  }
  
  .content {
    padding: 20px;
    margin: 0 15px 30px;
  }
  
  h1 {
    font-size: 24px;
    padding-bottom: 12px;
  }
  
  .highlight {
    padding: 15px;
  }
  
  .news-swiper {
    height: 200px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 18px;
  }
  
  .modal-close {
    top: 20px;
    right: 25px;
    font-size: 30px;
  }

  .modal-prev, .modal-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }

  .carousel-slide {
    min-width: 100%;
  }
  
  .carousel-slide img {
    height: 180px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .footer__columns {
    display: none;
  }
  
  .footer__mobile-accordion {
    display: block;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }


}

@media (max-width: 480px) {
  .header__logo,
  .header__logoo {
    width: 40px;
    height: 40px;
  }
    
  .header__list {
    gap: 1vh;
    font-size: 14px;
  }
  
  .content {
    padding: 15px;
    margin: 0 10px 25px;
  }
  
  .date {
    font-size: 16px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  .news-text {
    font-size: 15px;
  }
  
  .news-swiper {
    height: 180px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 28px;
    height: 28px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
  
  .modal-content {
    max-width: 95%;
  }

  .carousel-slide img {
    height: 150px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .footer {
    padding: 30px 0 20px;
  }
  
  .footer__accordion-title {
    font-size: 15px;
  }
  
  .footer__accordion-content a {
    font-size: 13px;
  }
  
 
  
}