/* СЕКЦИЯ «НОВОСТИ» — главная страница */

.news {
  padding: 60px 0;
  

  background: url('../../imgs/newsdecor.png') no-repeat right 45px top 35px / 700px auto;
  background-color: #081C30;
}

.news__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: start;
}

.news__body {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 20px;
}

.news__btn {
  max-width: none;
}

/* ---- Слайдер ---- */

.news__slider {
  width: 100%;
}

@media (min-width: 769px) {
  .news__list {
    display: grid !important;
  }
}

.news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news__item {
  display: flex;
}

.news__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  padding: 20px;
  background-color: var(--cards);
  border: 1px solid #fff;
}

.news__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fff;
}

.news__card-text {
  margin-top: -10px;
}

.news__card-link {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  color: var(--button);
}

.news__card-link::after {
  content: '';
  flex: 1;
  min-width: 30px;
  height: 8px;
  background-color: var(--button);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='8' viewBox='0 0 67 8'%3E%3Cpath d='M0.5 3.18198C0.223858 3.18198 0 3.40583 0 3.68198C0 3.95812 0.223858 4.18198 0.5 4.18198V3.68198V3.18198ZM66.8536 4.03553C67.0488 3.84027 67.0488 3.52369 66.8536 3.32842L63.6716 0.146442C63.4763 -0.0488198 63.1597 -0.0488198 62.9645 0.146442C62.7692 0.341705 62.7692 0.658287 62.9645 0.853549L65.7929 3.68198L62.9645 6.5104C62.7692 6.70567 62.7692 7.02225 62.9645 7.21751C63.1597 7.41277 63.4763 7.41277 63.6716 7.21751L66.8536 4.03553ZM0.5 3.68198V4.18198H66.5V3.68198V3.18198H0.5V3.68198Z' fill='%23000'/%3E%3C/svg%3E") no-repeat right center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='8' viewBox='0 0 67 8'%3E%3Cpath d='M0.5 3.18198C0.223858 3.18198 0 3.40583 0 3.68198C0 3.95812 0.223858 4.18198 0.5 4.18198V3.68198V3.18198ZM66.8536 4.03553C67.0488 3.84027 67.0488 3.52369 66.8536 3.32842L63.6716 0.146442C63.4763 -0.0488198 63.1597 -0.0488198 62.9645 0.146442C62.7692 0.341705 62.7692 0.658287 62.9645 0.853549L65.7929 3.68198L62.9645 6.5104C62.7692 6.70567 62.7692 7.02225 62.9645 7.21751C63.1597 7.41277 63.4763 7.41277 63.6716 7.21751L66.8536 4.03553ZM0.5 3.68198V4.18198H66.5V3.68198V3.18198H0.5V3.68198Z' fill='%23000'/%3E%3C/svg%3E") no-repeat right center / contain;
}

.news__card-link:hover {
  opacity: 0.7;
}

.news__pagination {
  display: none;
}

@media (max-width: 1280px) {
  .news__body {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .news__btn {
    max-width: 285px;
  }

  .news__inner {
    gap: 20px;
  }
}

/* ============================================
   ПЛАНШЕТ ≤ 1080px
   ============================================ */

@media (max-width: 1080px) {

  .news__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news__heading {
    margin-bottom: 0px;
  }

  .news__btn {
    width: auto;
    min-width: 245px;
  }

  .news__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   МОБАЙЛ ≤ 768px
   ============================================ */

@media (max-width: 768px) {

  .news {
    padding: 30px 0;
  }

  .news__card {
    padding: 10px;
  }

  .news__btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .news__list {
    display: flex;
    gap: 0;
  }

  .news__item {
    height: auto;
  }

  .news__pagination {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
  }

  .news__bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: 0.5px solid #E8F0FA;
    box-shadow: 0px 6px 20px 0px #0000001A;

  }

  .news__bullet--active {
    background-color: var(--button);
    border-color: var(--button);
  }
}
