.trinity {
  width: 100%;
}

.trinity__wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media screen and (max-width: 540px) {
  .trinity__wrapper {
    gap: 0;
  }
}
.trinity__item {
  display: flex;
  gap: 100px;
  flex: 1;
  min-width: 725px;
}
@media screen and (max-width: 1370px) {
  .trinity__item {
    gap: 20px;
  }
}
@media screen and (max-width: 1024px) {
  .trinity__item {
    flex-direction: column;
    margin-top: 0;
    gap: 0;
	min-width: auto;
  }
}
@media screen and (max-width: 540px) {
  .trinity__item {
    flex-direction: column;
    gap: 10px;
    margin-top: 11px;
  }
}
.trinity__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-top: 36px;
}
@media screen and (max-width: 1370px) {
  .trinity__inner {
	margin-top: 36px;
  }
}
@media screen and (max-width: 1024px) {
  .trinity__inner {
	flex-direction: column;
	margin-top: 36px;
  }
}
@media screen and (max-width: 540px) {
  .trinity__inner {
	margin-top: 36px;
  }
}
.trinity__img-box {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  margin-top: 8px;
  border-radius: 20px;
  background: #f8f7fc;
}
@media screen and (max-width: 1440px) {
  .trinity__img-box {
	flex: 0 0 270px;
    width: 270px;
  }
}
@media screen and (max-width: 1024px) {
  .trinity__img-box {
	flex: auto;
    width: 255px;
    height: 120px;
  }
}
@media screen and (max-width: 540px) {
  .trinity__img-box {
    position: inherit;
    width: 180px;
    height: 70px;
    border-radius: 10px;
    top: 0;
  }
}
@media screen and (max-width: 320px) {
  .trinity__img-box {
    width: 150px;
    height: 55px;
  }
}
.trinity__image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.trinity__centr {
  max-width: 660px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 1024px) {
  .trinity__centr {
    max-width: 924px;
  }
}
.trinity__news {
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 33px;
  position: sticky;
  top: 50px;
}
@media screen and (max-width: 1024px) {
  .trinity__news {
    max-width: 100%;
    margin-top: 73px;
    gap: 25px;
  }
}
@media screen and (max-width: 540px) {
  .trinity__news {
    margin-top: 19px;
    gap: 17px;
  }
}
.trinity-subtitle {
  font-weight: 600;
  font-size: 16px;
  line-height: 25px;
  color: #5f6163;
}
.trinity-subtitle a {
  color: #51a8c3;
  transition: all 0.3s ease-in-out;
}
.trinity-subtitle a:hover {
  color: #51a8c3;
  text-decoration: underline;
  padding-bottom: 2px;
}
@media screen and (max-width: 1024px) {
  .trinity-subtitle {
    font-size: 18px;
    line-height: 25.5px;
  }
}
@media screen and (max-width: 767px) {
  .trinity-subtitle {
    font-size: 13px;
    line-height: 18.25px;
  }
}
.trinity__list {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  gap: 25px;
}
@media screen and (max-width: 1024px) {
  .trinity__list {
    gap: 22px;
  }
}
@media screen and (max-width: 540px) {
  .trinity__list {
    margin-top: 8px;
    gap: 10px;
  }
}
.trinity__news-list {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.trinity__news-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid #e3e4e6;
  padding-bottom: 0;
}

.trinity__news-subtitle {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #191a1b;
}
@media screen and (max-width: 540px) {
  .trinity__news-subtitle {
    font-size: 14px;
    line-height: 17.5px;
  }
}
.trinity__news-subtitle span {
  color: #a1a4a7;
}
.trinity__categories {
  display: flex;
  flex-direction: column;
  margin-top: 68px;
  gap: 20px;
}
.categories-title {
  font-size: 30px;
  line-height: 36px;
  color: #191a1b;
  text-transform: uppercase;
}
@media screen and (max-width: 1024px) {
  .categories-title {
    font-size: 35px;
    line-height: 42px;
  }
  .trinity__categories {
    margin-top: 89px;
  }
}
@media screen and (max-width: 540px) {
  .trinity__categories {
    margin-top: 42px;
  }
}

.categories-item {
  background: #f8f8fb;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 15px 30px;
  box-sizing: border-box;
}
@media screen and (max-width: 1024px) {
  .categories-item {
    max-width: 452px;
    width: 100%;
  }
}
.trinity__top-subtitle {
  display: none;
}
@media screen and (max-width: 540px) {
  .categories-item {
    padding: 15px 20px;
  }
}
@media screen and (max-width: 1024px) {
  .trinity__top-subtitle {
    display: block;
  }
  .trinity__hidden {
    display: none;
  }
}
.triniti__drop-link svg {
	width: 35px;
	height: 35px;
}
@media screen and (max-width: 540px) {
  .triniti__drop-link svg {
    width: 20px;
    height: 20px;
  }
}
/******************trinity__rel-section******************/
.trinity-rel-section {
  top: 155px;
  z-index: 999;
}
@media screen and (max-width: 1024px) {
  .trinity-rel-section {
    top: 100px;
  }
}
@media screen and (max-width: 600px) {
  .trinity-rel-section {
    top: 155px;
  }
}
/*
@media screen and (max-width: 768px) {
  .trinity-rel-section {
    padding: 60px 70px;
  }
} */
@media screen and (max-width: 540px) {
  .trinity__title {
    font-size: 18px;
    line-height: 21.6px;
  }
  .triniti__drop-link {
    font-size: 14px;
    line-height: 17.5px;
  }
}
@media screen and (max-width: 540px) {
  .trinity-svg {
    width: 20px;
    height: 20px;
  }
  .trinity-rel-section {
    height: 390px;
  }
}
/**********************trinity__footer__grid******************/
.trinity__footer-grid {
  margin-top: 342px;
}
@media screen and (max-width: 1024px) {
  .trinity__footer-grid {
    margin-top: 233px;
  }
}

@media screen and (max-width: 767px) {
  .trinity__footer-grid {
    margin-top: 220px;
  }
}
/********************************************************/
.services__right-link {
  position: relative;
  transition: 0.3s ease-in-out;
  opacity: 0;
  padding-bottom: 20px;
}
.trinity__news-item:hover a {
  padding-top: 10px;
  padding-bottom: 40px;
  transition: 0.3s ease-in-out;
  opacity: 1;
}
.trinity__right-link {
  padding-bottom: 0;
}
.trinity__navigation-inner {
  margin: 22px auto 0;
}
.trinity__page-link {
  display: none;
}
@media screen and (max-width: 1024px) {
  .trinity__page-link {
    display: flex;
    margin-bottom: 0 !important;
    margin-top: 10px;
  }
}
.trinity__news-item a {
  margin-bottom: 0;
  padding-bottom: 0;
}

.trinity__news-item:hover a {
  opacity: 1;
}
@media screen and (max-width: 1024px) {
  .trinity__news-item a {
    display: none;
  }
  .trinity__news-item .trinity__page-link {
    display: flex;
  }
  .trinity__news-item {
    padding-bottom: 30px;
  }
}
@media screen and (max-width: 500px) {
  .trinity__news-item {
    padding-bottom: 20px;
  }
}
.trinity__link:hover {
  color: #51a8c3;
}
.trinity__link:hover .services__link-svg {
  fill: #51a8c3;
}

/**** popular ******/
.popular {
  width: 100%;
}
.popular__wrapper {
    max-width: 1420px;
    width: 100%;
    margin: 200px auto 0;
    display: flex;
    flex-direction: column;
    gap: 45px;
}
@media screen and (max-width: 1024px) {
  .popular__wrapper {
    margin-top: 151px;
  }
}
@media screen and (max-width: 767px) {
  .popular__wrapper {
    margin-top: 150px;
    gap: 22px;
  }
}
.popular__row {
  align-items: stretch;
}
.popular__card {
  container: cardPopular / inline-size;
  width: 100%;
  height: 100%;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  gap: 15px 20px;
  border-radius: 20px;
  background: #F8F8FB;
  padding: 20px;
}
.popular .popular__slider {
  padding-bottom: 74px;
  position: relative;
}
.popular .popular__next, .popular .popular__prev {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 54px;
  border-radius: 100px;
  margin-top: 0;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #E10600;
  box-sizing: border-box;
  }
.popular .popular__next svg, .popular .popular__prev svg {
  width: 14px;
  height: 14px;
}
.popular .popular__next svg path, .popular .popular__prev svg  path{
  fill: #fff;
}
.popular .popular__next.swiper-button-disabled, .popular .popular__prev.swiper-button-disabled {
  background: #F8F8FB;
  }
.popular .popular__next.swiper-button-disabled svg path, .popular .popular__prev.swiper-button-disabled svg path{
  fill: #A1A4A7;
  }
.popular .popular__next:after, .popular .popular__prev:after {
  display: none;
  }
.popular .popular__prev {
  right: auto;
  left: 0;
  }
.popular__content {
  font-size: 18px;
  line-height: 1.2em;
  font-weight: bold;
  color: #191A1B;
  padding: 10px;
  display: flex;
  gap: 20px 20px;
  align-items: flex-end;
}
.popular__link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popular__content:after {
  content: '';
  display: block;
  background: url('../icons/link_sym.svg') center center no-repeat;
  margin-bottom: 0.2em;
  height: 11px;
  width: 11px;
  flex-shrink: 0;
  flex-grow: 0;
  margin-left: auto;
}
.popular__pict {
  flex-basis: 100cqw;
  flex-grow: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  max-height: 100cqw;
  min-height: 100cqw;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
}
.popular__img {
  max-width: 100%;
  max-height: 100%;
}

@media screen and (max-width: 1024px) {
  .popular .popular__slider {
    padding-bottom: 0px;
    margin-left: -50px;
    margin-right: -50px;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
    width: calc(100% + 100px);
  }
  .popular .popular__unit {
    flex-basis: 300px;
    flex-grow: 0;
    flex-shrink: 0;
  }
  .popular .popular__next, .popular .popular__prev {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .popular .popular__slider {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    width: calc(100% + 40px);
  }
  .popular .popular__unit {
    flex-basis: 260px;
  }
}