.articles {
  --p-top: 72px;
  padding-top: calc(var(--scroll-padding-top) + var(--p-top));
  padding-bottom: 0;
}

.articles__container {
  flex-direction: column;
  gap: 40px;
  display: flex;
}

.articles__title {
  max-width: 250px;
}

.articles__text {
  max-width: 210px;
}

.articles__list {
  --gap: 24px;
}

.articles-item {
  background: #4878a10d;
  border-radius: 20px;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  display: flex;
}

.articles-item__header {
  letter-spacing: -0.48px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  display: flex;
}

.articles-item__category {
  color: #222;
}

.articles-item__time {
  color: #00000080;
}

.articles-item__img {
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  height: 260px;
}

.articles-item__desc {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.articles-item__title {
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 100%;
}

.articles-item__text {
  color: #0009;
  line-height: 150%;
}

.articles-item__link {
  height: 40px;
}

.articles-item__link span {
  width: 30px;
  height: 30px;
}

.articles-item__link svg {
  width: 14px;
  height: 14px;
}

.articles__btn-more {
  width: fit-content;
  color: var(--color-secondary-dark-blue);
  text-decoration-skip-ink: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  margin: 0 auto;
  line-height: 120%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: auto;
}

.articles__btn-more:hover {
  color: #4376a2;
}

.articles__btn-more:active {
  color: var(--color-secondary-dark-blue);
}

.categories-box {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 40px;
  display: flex;
  position: relative;
}

.categories-box__title {
  background: var(--color-section-bg);
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 120%;
  display: flex;
}

.categories-box__title svg {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

[data-dropdown-box].active .categories-box__title svg {
  transform: rotate(180deg);
}

.categories-box__list {
  background-color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 10px;
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
}

[data-dropdown-box].active .categories-box__list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.categories-box__selected {
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
}

.category {
  cursor: pointer;
  align-items: center;
  width: fit-content;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  display: flex;
  position: relative;
}

.category.active {
  color: var(--color-secondary-dark-blue);
}

.category.active:before {
  content: "";
  width: 100%;
  height: 1px;
  transition: var(--transition--l100);
  background-color: currentColor;
  position: absolute;
  bottom: -1px;
  left: 0;
}

@media (width >= 768px) {
  .articles__title {
    max-width: 400px;
  }

  .articles__text {
    max-width: initial;
  }

  .articles__list {
    --items: 2;
  }
}

@media (width >= 1440px) {
  .articles {
    --p-top: 60px;
  }

  .articles__title {
    max-width: 860px;
  }

  .articles__text {
    max-width: initial;
    font-size: 24px;
    line-height: 120%;
  }

  .articles__list {
    --items: 3;
    row-gap: 50px;
  }

  .articles-item {
    gap: 24px;
  }

  .articles-item__img {
    height: 390px;
  }

  .articles-item__desc {
    gap: 16px;
  }

  .articles-item__title {
    font-size: 24px;
  }

  .articles-item__link {
    height: 60px;
  }

  .articles-item__link span {
    width: 50px;
    height: 50px;
  }

  .articles-item__link svg {
    width: 20px;
    height: 20px;
  }

  .categories-box {
    justify-content: space-between;
    margin-top: 32px;
    display: flex;
  }

  .categories-box__title {
    pointer-events: none;
    flex-shrink: 0;
  }

  .categories-box__title svg,
  .categories-box__selected {
    display: none;
  }

  .categories-box__list {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    flex-direction: row;
    gap: 20px;
    width: fit-content;
    position: static;
  }

  .category {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
  }
}
