.articles {
  margin-bottom: 38px;
}
.articles-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: scroll;
  scrollbar-width: thin;
  scrollbar-color: #7B95D2 #7B95D2;
}
.articles-list::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.articles-list::-webkit-scrollbar-track {
  background-color: #7B95D2;
  border-radius: 10px;
}
.articles-list::-webkit-scrollbar-thumb {
  background-color: #7B95D2;
  border-radius: 10px;
}
.articles-list::-webkit-scrollbar-thumb:hover {
  background-color: #5576c5;
}
.articles-list::-ms-scrollbar {
  width: 5px;
  height: 5px;
}

.article-item {
  flex-shrink: 0;
  max-width: 280px;
}
.article-item__category {
  display: inline-block;
  color: #88909B;
  text-transform: uppercase;
  text-underline-offset: 2px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
}
.article-item__head {
  margin-bottom: 8px;
}
.article-item__head--top {
  margin-bottom: 18px;
}
.article-item__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.article-item__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.article-item__name {
  font-size: 22px;
  line-height: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}
.article-item__views {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  font-size: 14px;
  line-height: 18px;
  color: #727B87;
}
.article-item__views .icon {
  font-size: 11px;
  color: #7B95D2;
  line-height: 1;
}
.article-item__text {
  font-size: 15px;
  line-height: 22px;
  overflow: hidden;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
}
.article-item__text p {
  font-size: inherit;
  line-height: inherit;
}

@media screen and (min-width: 1023px) {
  .articles {
    margin-bottom: 100px;
  }
  .articles-list {
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    overflow: hidden;
  }
  .article-item {
    max-width: 595px;
    flex-shrink: 1;
    flex: 1 450px;
    background-color: #F5F8F7;
    border-radius: 20px;
    padding: 44px 33px 30px 30px;
  }
  .article-item:first-child {
    background-color: #EEF6FF;
  }
  .article-item__category {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    margin-bottom: 22px;
  }
  .article-item__head {
    margin-bottom: 10px;
  }
  .article-item__head--top {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
  }
  .article-item__photo {
    width: 104px;
    height: 104px;
    margin-bottom: 0px;
    flex-shrink: 0;
  }
  .article-item__name {
    font-family: "Raleway", sans-serif;
    font-size: 25px;
    line-height: 34px;
    transition: color 0.12s ease-in-out;
  }
  .article-item__name:hover {
    color: var(--accentColor);
    transition: color 0.12s ease-in-out;
  }
  .article-item__views {
    gap: 9px;
  }
  .article-item__text {
    font-size: 20px;
    line-height: 28px;
  }
}
@media screen and (min-width: 1279px) {
  .articles__container {
    max-width: 1580px;
    padding-left: 150px;
    padding-right: 150px;
  }
}
@media screen and (min-width: 1439px) {
  .articles {
    margin-bottom: 146px;
  }
  .articles-list {
    gap: 66px 90px;
  }
  .article-item {
    padding: 44px 40px 45px 42px;
  }
  .article-item__head {
    margin-bottom: 20px;
  }
  .article-item__head--top {
    margin-bottom: 20px;
  }
  .article-item__name {
    font-size: 36px;
    line-height: 43px;
  }
  .article-item__text {
    font-size: 22px;
    line-height: 30px;
  }
}