@media (max-width: 1023.98px) {
  .section-nws {
    padding-bottom: 40px;
  }
}
.nws-head {
  margin-bottom: 45px;
}
.nws-nav {
  display: flex;
  justify-content: center;
}
@media (max-width: 767.98px) {
  .nws-nav {
    flex-direction: column;
    align-items: center;
  }
}
.nws-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  height: 57px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--seryy);
}
@media (max-width: 767.98px) {
  .nws-nav__item {
    max-width: 360px;
  }
}
.nws-nav__item:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  transition: width var(--anim150);
  background: var(--zelenyy);
}
.nws-nav__item.active {
  color: var(--zelenyy);
}
.nws-nav__item.active:after {
  width: 100%;
}
@media (hover: hover) {
  .nws-nav__item:hover {
    color: var(--zelenyy);
  }
  .nws-nav__item:hover:after {
    width: 100%;
  }
}
.nws-desc {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--seryy);
  margin-bottom: 60px;
}
@media (max-width: 767.98px) {
  .nws-desc {
    font-size: 18px;
    letter-spacing: normal;
    margin-bottom: 50px;
  }
}
.nws-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 40px;
  grid-row-gap: 60px;
}
@media (max-width: 1023.98px) {
  .nws-grid {
    grid-column-gap: 24px;
  }
}
@media (max-width: 767.98px) {
  .nws-grid {
    grid-row-gap: 50px;
  }
}
@media (max-width: 575.98px) {
  .nws-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
}
.nws-item {
  display: flex;
  flex-direction: column;
}
.nws-item__pict {
  position: relative;
  height: 600px;
}
@media (max-width: 1023.98px) {
  .nws-item__pict {
    height: auto;
    padding-bottom: 131.16%;
  }
}
@media (max-width: 767.98px) {
  .nws-item__pict {
    padding-bottom: 134.64%;
  }
}
.nws-item__pict:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(32, 30, 31, 0.8) 100%
  );
}
@media (max-width: 1023.98px) {
  .nws-item__pict img {
    position: absolute;
    top: 0;
  }
}
.nws-item__desc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 33px 20px;
  font: 300 32px/1.1 var(--secfont);
  color: var(--belyy);
  z-index: 2;
  text-align: center;
}
@media (max-width: 767.98px) {
  .nws-item__desc {
    padding: 28px 20px;
    font-size: 30px;
  }
}
.nws-item-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
  padding: 10px 0 8px;
  text-align: center;
}
@media (max-width: 1023.98px) {
  .nws-item-body {
    gap: 20px;
    padding-bottom: 0;
  }
}
.nws-item__date {
  font: 500 14px/1.3 var(--mainfont);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8e93a2;
}
.nws-item__title {
  margin-bottom: 18px;
  font: 300 32px/1.1 var(--secfont);
}
@media (max-width: 1023.98px) {
  .nws-item__title {
    margin-bottom: 4px;
    font-size: 30px;
  }
}
@media (max-width: 767.98px) {
  .nws-item__title {
    margin-bottom: 0;
  }
}
.nws-item__btn {
  margin: auto auto 0;
}
@media (max-width: 1023.98px) {
  .nws-item__btn {
    width: 100%;
    min-width: auto;
  }
}
