@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;
}

a {
  color: #2C3478;
  text-decoration: none;
  white-space: nowrap;
}

a[href] {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.line-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-left: auto;
  margin-right: 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: auto;
  margin-right: auto;
  margin-top: 5%;
  padding: 20px;
  background-color: #f5f5f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px #2c3478;
}

.sreda__btn {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
  padding: 0;
  background: #185779;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  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 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    text-align: center;
    flex-direction: column;
    white-space: normal;
}

.content {
  flex-grow: 1;
  padding: 20px;
  background-color: #f5f5f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px #2c3478;
  width: 100%;
  word-wrap: break-word;
}

.content a {
  white-space: normal;
}

.content h4 {
  margin: 0 10px;
  font-weight: bold;
  text-align: center;
}

.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;
}

.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%;
}

.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;
  text-decoration: none;
}

.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;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2C3478;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #185779;
  transform: translateY(-3px);
}

.scroll-to-top i {
  font-size: 20px;
}

.accessibility-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.accessibility-panel.open {
  right: 0;
}

.accessibility-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.accessibility-overlay.open {
  opacity: 1;
  visibility: visible;
}

.accessibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.accessibility-title {
  font-size: 20px;
  color: #2C3478;
  font-weight: bold;
}

.close-panel {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #2C3478;
}

.accessibility-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2C3478;
}

.theme-options, .font-options {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.theme-btn, .font-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.theme-btn.active, .font-btn.active {
  background: #2C3478;
  color: white;
  border-color: #2C3478;
}

.toggle-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.toggle-label {
  font-size: 14px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2C3478;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.range-control {
  margin-bottom: 20px;
}

.range-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.range-input {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: #ddd;
  border-radius: 4px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #2C3478;
  border-radius: 50%;
  cursor: pointer;
}

.range-value {
  display: inline-block;
  margin-left: 10px;
  font-weight: bold;
}

.reset-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #2C3478;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.reset-btn:hover {
  background: #1a2255;
}

body.font-arial {
  font-family: Arial, sans-serif;
}

body.font-times {
  font-family: "Times New Roman", serif;
}

body.font-verdana {
  font-family: Verdana, sans-serif;
}

body.theme-inverted {
  background: #000;
  color: #fff;
}

body.theme-inverted .header,
body.theme-inverted .content,
body.theme-inverted .sidebar-image {
  background: #333 !important;
  color: #fff !important;
  border-color: #555 !important;
}

body.theme-inverted .footer {
  background: #222 !important;
  color: #fff !important;
}

body.theme-inverted a,
body.theme-inverted h4,
body.theme-inverted .section-title,
body.theme-inverted .accessibility-title,
body.theme-inverted .footer a,
body.theme-inverted .footer__column-title {
  color: #fff !important;
}

body.theme-blue {
  background: #fff;
}

body.theme-blue .header {
  background: #fff !important;
  color: #2C3478;
  border-bottom: 2px solid #2C3478;
}

body.theme-blue .header a,
body.theme-blue .header .btn {
  color: #2C3478 !important;
}

body.theme-blue .footer {
  background: #2C3478 !important;
  color: white;
}

body.theme-blue a,
body.theme-blue h4,
body.theme-blue .section-title {
  color: #2C3478 !important;
}

body.theme-blue .footer a,
body.theme-blue .footer__column-title {
  color: white !important;
}

body.hide-images .sidebar-image img,
body.hide-images .gallery-item img,
body.hide-images .header__logo,
body.hide-images .header__logoo {
  display: none;
}

body.hide-images .image-replacement {
  display: block !important;
  padding: 10px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  text-align: center;
  margin: 5px 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-inverted.hide-images .image-replacement {
  background: #333;
  border-color: #555;
  color: #fff;
}

.keep-image {
}

.footer,
.footer * {
  font-size: inherit !important;
  letter-spacing: normal !important;
  line-height: normal !important;
}

@media (max-width: 468px) {
  .accessibility-panel {
    width: 220px;
    height: 90vh;
  }
}

@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%;
  }

  .content {
    padding: 15px;
    margin-top: 20px;
  }

  .content h4 {
    font-size: 16px;
  }

  .content a {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .table, .table__center, .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th, .table__center th, .table__sleva th {
    font-size: 12px;
  }

  .table td, .table__center td, .table__sleva td {
    font-size: 12px;
  }

  .table__sleva td, .table__center td {
    text-align: left;
  }

  .container {
    padding: 0 15px;
  }

  .btnnnn {
    display: none;
  }
  
  .card {
    display: flex;
    border: 2px solid #004080;
    border-radius: 10px;
    overflow: hidden;
    width: 96%;
    margin: 20px;
    align-items: top;
  }
  
  .image {
    width: 140px;
    height: 200px;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8%;
    margin: 1%  1% 1% 1%;
    display: block;
  }

  .image img {
    width: 100%;
    height: 100%;
    border-radius: 4%;
  }
  
  .contento {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .contento p {
    font-size: 15px;
    color: #2c3478;
    margin: 10px 0;
  }
  
  .contento h2 {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  .footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .footer {
    background-size: cover;
    min-height: 500px;
  }
  
  .footer__container {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .header__logo,
  .header__logoo {
    width: 60px;
    height: 60px;
  }

  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
  
  .burger {
    display: flex;
    margin-left: auto;
  }
  
  .menu {
    display: flex;
    border-radius: 15px 0 0 15px;
    position: fixed;
    top: 50px;
    right: -100%;
    width: auto;
    height: auto;
    max-height: 80vh;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .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);
  }
  
  .footer__columns {
    display: none;
  }
  
  .footer__mobile-accordion {
    display: block;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}