.news-page {
  padding-top: 12px;
  padding-bottom: 32px;
}

.news-page__breadcrumbs {
  color: var(--blue, #003f53);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
  text-transform: uppercase;
  padding-top: 20px;
  border-top: 1px solid var(--red, #e60026);
  display: flex;
  align-items: center;
  row-gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 20px;
}

.news-page__breadcrumbs-categori.tag-data-page {
  margin-right: 16px;
}

.news-page__breadcrumbs-categori {
  padding-left: 20px;
  position: relative;
}

.news-page__breadcrumbs-categori::before {
  content: "/";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red, #e60026);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.news-page__breadcrumbs-tag {
  color: var(--red, #e60026);
}

.news-page__breadcrumbs-button {
  color: var(--blue, #003f53);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding-right: 28px;
  position: relative;
  margin-left: auto;
}

.news-page__breadcrumbs-button::before {
  position: absolute;
  content: "";
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url(../images/calendar-check.svg);
  background-repeat: no-repeat;
}

.news-page__main-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.news-page__main-item {
  width: 100%;
  min-height: 366px;
  border-radius: 4px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  position: relative;
}

.badge {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  gap: 8px;
  padding: 10px 12px 6px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: var(--red, #e60026);
  color: var(--white, #fff);
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
}

.badge span {
  display: none;
}

.news-page__main-item-img {
  width: 100%;
  height: 366px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.news-page__main-item-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.news-page__main-item-tag {
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.71;
  text-transform: uppercase;
  padding-left: 20px;
  position: relative;
}

.news-page__main-item-tag::before {
  content: "/";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red, #e60026);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.news-page__main-item-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.71;
}

.news-page__main-item-author::before {
  content: "/";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red, #e60026);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.news-page__main-item-photo {
  display: none;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.71;
}

.news-page__main-item-photo::before {
  content: "/";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red, #e60026);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.news-page__main-item-title {
  color: var(--white, #fff);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 71px;
}

.news-page__main-item-time {
  display: none;
  gap: 8px;
  padding: 0 16px;
  position: relative;
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.72;
}
.news-page__main-item-time::before {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-image: url(../images/gray-dot.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}
.news-page__main-item-time::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-image: url(../images/gray-dot.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.calendar-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease-in-out, visibility 600ms ease-in-out;
  background-color: var(--white, #fff);
  padding-top: 66px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-menu.active {
  opacity: 1;
  visibility: visible;
  z-index: 996;
  overflow: scroll;
}

.calendar-menu .news-section__calendar {
  display: flex;
  width: 100%;
  max-width: 352px;
  margin: 0 auto 32px auto;
}

.news-section__calendar-button {
  display: flex;
  padding: 14px 46px 10px 46px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: var(--red, #e60026);
  color: var(--white, #fff);
  font-size: 16px;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0 auto 25px auto;
}

@media screen and (min-width: 1280px) {
  .news-page {
    padding-top: 8px;
    padding-bottom: 64px;
  }
  .news-page__breadcrumbs {
    justify-content: flex-start;
    font-size: 24px;
    line-height: 1;
    padding-top: 40px;
    margin-bottom: 32px;
  }
  .news-page__breadcrumbs.tag-data-page {
    margin-bottom: 64px;
  }
  .news-page__breadcrumbs-categori {
    padding-left: 30px;
  }
  .news-page__breadcrumbs-categori::before {
    left: 12px;
  }
  .news-page__main-list {
    flex-direction: row;
    gap: 32px;
    margin-bottom: 64px;
  }
  .news-page__main-item {
    min-height: 502px;
    border-radius: 4px;
    max-width: 736px;
    width: calc((100% - 32px) / 2);
    margin: 0;
  }
  .news-page__main-item-img {
    width: 100%;
    height: 502px;
    padding: 72px 32px;
    gap: 48px;
  }
  .news-page__main-item-photo {
    display: flex;
  }
  .news-page__main-item-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    max-height: 84px;
  }
  .news-page__main-item-time {
    display: flex;
  }
  .badge {
    padding: 8px 12px;
  }
  .badge span {
    display: inline-block;
  }
  .news-page__breadcrumbs-button {
    display: none;
  }
  .calendar-menu {
    display: none;
  }
}

.news-page__news-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.news-page__news-list-item {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.news-page__news-list-image {
  width: 100%;
  min-height: 366px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 8px;
}

.news-page__news-list-info {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}

.news-page__news-list-tag {
  text-transform: uppercase;
  padding-left: 20px;
  position: relative;
}

.news-page__news-list-tag::before {
  content: "/";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red, #e60026);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
}

.news-page__news-list-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--grey, #c3c3c3);
  padding-left: 16px;
  position: relative;
}

.news-page__news-list-time::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-image: url(../images/gray-dot.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.news-page__news-list-title {
  color: var(--blue, #003f53);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.09;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 72px;
}

.news-page__news-list-text {
  display: none;
}

.news-page__news-list-link {
  display: none;
}

.news-page__side-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.main-info__advertising.first {
  display: none;
}

.news-page__news-list-advertising {
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid #336575;
  border-bottom: 1px solid #336575;
  order: 99;
}

.news-page__news-list li:nth-last-child(2) {
  order: 100;
}

@media screen and (min-width: 1280px) {
  .news-page__news-list {
    display: flex;
    flex-direction: column;
    width: calc((100% - 355px) - 32px);
    max-width: 1120px;
    gap: 64px;
    margin-right: auto;
  }
  .news-page__news-list-item {
    flex-direction: row;
    max-width: 100%;
    width: 100%;
    height: 262px;
    margin: 0;
    position: relative;
  }
  .news-page__news-list-image {
    min-height: 100%;
    width: 250px;
    margin: 0 32px 0 0;
  }
  .news-page__news-list-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc((100% - 250px) - 32px);
  }
  .news-page__news-list-info {
    display: none;
  }
  .news-page__news-list-title {
    font-size: 28px;
    line-height: 1;
    -webkit-line-clamp: 2;
    height: 56px;
  }
  .news-page__news-list-text {
    color: var(--blue, #003f53);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.77;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 96px;
  }
  .news-page__news-list-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 16px;
    color: var(--red, #e60026);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.71;
    text-transform: uppercase;
  }
  .news-page__news-list-link span {
    width: 60px;
    height: 44px;
    border-radius: 4px;
    background: var(--red, #e60026);
    position: relative;
  }
  .news-page__news-list-link span::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(/images/forward-arrow.svg);
    background-repeat: no-repeat;
  }
  .news-page .container {
    display: flex;
    flex-wrap: wrap;
  }
  .news-page__side-wrapper {
    order: 2;
    margin-bottom: 0;
  }
  .news-page__side-wrapper.tag-data-page {
    margin-top: -86px;
  }
  .main-info__advertising.first {
    display: block;
  }
  .news-page__news-list-advertising {
    padding: 32px 0;
  }
}

.news-page__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid #336575;
  margin-top: 32px;
}

.news-page__pagination-fraction {
  color: var(--blue, #003f53);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
}

.news-page__pagination-fraction .news-page__pagination-fraction-current {
  color: var(--red, #e60026);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
}

.news-page__pagination-buttons {
  display: flex;
  align-items: center;
  gap: 38px;
}

.news-page__pagination-btn {
  color: var(--blue, #003f53);
  cursor: pointer;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
  width: fit-content;
}

.news-page__pagination-btn-arrow {
  border-radius: 50%;
  border: 1px solid var(--blue, #003f53);
  width: 40px;
  height: 40px;
  background-image: url(../images/arrow-blue.svg);
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center center;
}

.news-page__pagination-btn.news-page__pagination-btn-next
  .news-page__pagination-btn-arrow {
  transform: rotate(-180deg);
}

@media screen and (min-width: 1280px) {
  .news-page__pagination {
    margin-top: 64px;
    padding-top: 40px;
  }
  .news-page .news-section__calendar-head {
    margin-top: 0;
  }
}
