body {
  background-color: #232a3c;
}

.accreditation__header {
  padding: 160px 0 61px 90px;
  background-color: #2a3144;
}

.accreditation__title h1 {
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
}

.accreditation {
  display: flex;
  flex-direction: column;
  background-color: #232a3c;
}

.accreditation .ntr__container {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 0 90px;
}

.accraditation__wrapper {
  position: relative;
  z-index: 10;
}

.accraditation__types {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.accraditation__type {
  border-radius: 4px;
  background-color: #31394e;
}

.accraditation__type.ui-tabs-active {
  background-color: #00a3ff;
}

.accraditation__type a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 130%;
  color: #ffffff;
  text-decoration: none;
  transition: 0.4s ease;
}

.accraditation__type a:hover {
  background-color: #232a3c;
}

.accreditation__subcontainer {
  position: relative;
  width: 100%;
  padding: 0 90px;
  display: flex;
  flex-direction: row;
}

.accred__list {
  margin-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 52px;
}

.accred__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 360px;
  height: auto;
}

.accred__card-line {
  width: 100%;
  height: 4px;
}

.accred__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 130%;
  color: #ffffff;
}

.accred__link {
  text-decoration: none;
  color: inherit;
}

.accred__list--certificate .accred__card-bg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 88px;
  border-radius: 8px;
  background-color: #2b3243;
}

.accred__list--certificate .accred__icon {
  width: auto;
  height: auto;
}

.accred__list--certificate .accred__link:nth-child(4n + 1) .accred__icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(98%) saturate(2159%)
    hue-rotate(217deg) brightness(102%) contrast(101%);
}
.accred__list--certificate .accred__link:nth-child(4n + 1) .accred__card-line {
  background-color: #9a76ff;
}

.accred__list--certificate .accred__link:nth-child(4n + 2) .accred__icon {
  filter: brightness(0) saturate(100%) invert(80%) sepia(14%) saturate(2476%)
    hue-rotate(124deg) brightness(95%) contrast(101%);
}
.accred__list--certificate .accred__link:nth-child(4n + 2) .accred__card-line {
  background-color: #00cfc3;
}

.accred__list--certificate .accred__link:nth-child(4n + 3) .accred__icon {
  filter: brightness(0) saturate(100%) invert(57%) sepia(77%) saturate(1709%)
    hue-rotate(342deg) brightness(103%) contrast(101%);
}
.accred__list--certificate .accred__link:nth-child(4n + 3) .accred__card-line {
  background-color: #ff852d;
}

.accred__list--certificate .accred__link:nth-child(4n + 4) .accred__icon {
  filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(2678%)
    hue-rotate(187deg) brightness(104%) contrast(101%);
}
.accred__list--certificate .accred__link:nth-child(4n + 4) .accred__card-line {
  background-color: #00a3ff;
}

.accred__list--thumbnail .accred__card-bg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 360px;
  height: 174px;
  border-radius: 8px;
  background-color: #2b3243;
  overflow: hidden;
}

.accred__list--thumbnail .accred__icon--thumbnail {
  height: 70%;
  object-fit: cover;
  border-radius: 8px;
}

.accred__list--thumbnail .accred__icon--trademark {
  height: auto;
}

.accred__list--thumbnail .accred__link:nth-child(4n + 1) .accred__card-line {
  background-color: #9a76ff;
}
.accred__list--thumbnail .accred__link:nth-child(4n + 2) .accred__card-line {
  background-color: #00cfc3;
}
.accred__list--thumbnail .accred__link:nth-child(4n + 3) .accred__card-line {
  background-color: #ff852d;
}
.accred__list--thumbnail .accred__link:nth-child(4n + 4) .accred__card-line {
  background-color: #00a3ff;
}

.accred__position {
  font-size: 96px;
  font-weight: 600;
  line-height: 120%;
}

.accred__list--thumbnail .accred__link:nth-child(4n + 1) .accred__position {
  color: #9a76ff;
}

.accred__list--thumbnail .accred__link:nth-child(4n + 2) .accred__position {
  color: #00cfc3;
}

.accred__list--thumbnail .accred__link:nth-child(4n + 3) .accred__position {
  color: #ff852d;
}

.accred__list--thumbnail .accred__link:nth-child(4n + 4) .accred__position {
  color: #00a3ff;
}

/* Модальное окно */
.accred-detail-hidden {
  display: none;
}

.accred__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 200px 0 150px 0;
}

.accred__modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.accred__modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: #ffffff;
  border-radius: 30px;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  padding: 40px;
  z-index: 1001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin: auto 0;
}

.accred__modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 60px;
  font-weight: 100;
  cursor: pointer;
  color: #9294a8;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  padding: 0;
  line-height: 1;
}

.accred__modal__close:hover {
  color: #000;
}

#accred-detail-content {
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#accred-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

#accred-detail-content h2 {
  text-align: start;
  margin-top: 0;
  margin: 60px 0 52px 0;
  font-size: 24px;
  line-height: 140%;
  font-weight: 500;
  color: #232a3c;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.accred__modal__content::-webkit-scrollbar {
  width: 4px;
}

@media (max-width: 1548px) {
  .accreditation__subcontainer {
    padding: 0 10px;
  }
}

@media (max-width: 1024px) {
  .accreditation__subcontainer {
    padding: 0;
  }
  .accred__list {
    gap: 30px;
  }
  .accred__card {
    width: 300px;
  }
  .accred__list--thumbnail .accred__card-bg {
    width: 300px;
    height: 145px;
  }
}

@media (max-width: 840px) {
  .accreditation__subcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .accred__list {
    flex-direction: column;
  }
  .accred__card {
    width: 360px;
  }
  .accred__list--thumbnail .accred__card-bg {
    width: 360px;
    height: 174px;
  }
}

@media (max-width: 768px) {
  .accreditation__header {
    padding: 160px 0 61px 50px;
  }
  .accreditation .ntr__container {
    padding-left: 50px;
  }

  #accred-detail-content h2 {
    font-size: 20px;
  }
}

@media (max-width: 534px) {
  .accreditation__title h1 {
    font-size: 40px;
  }
}

@media (max-width: 426px) {
  .accreditation__header {
    padding: 160px 0 61px 26px;
  }
  .accreditation .ntr__container {
    padding: 0 26px 61px 26px;
  }
  .accreditation__title h1 {
    font-size: 33px;
  }
  .accred__card {
    width: 320px;
  }
  .accred__list--thumbnail .accred__card-bg {
    width: 320px;
    height: 155px;
  }
}

@media (max-width: 320px) {
  .accreditation__header {
    padding: 160px 0 61px 26px;
  }
  .accreditation__title h1 {
    font-size: 30px;
  }
  .accred__card {
    width: 300px;
  }
  .accred__name {
    font-size: 20px;
  }
  .accred__list--thumbnail .accred__card-bg {
    width: 300px;
    height: 145px;
  }
}
