.hero {
  --p-top: 160px;
  --hero-bg-url: url("/assets/images/bg-hero-blog.webp");
  --background-gradient: linear-gradient(
    to bottom,
    var(--color-accent-primary),
    var(--color-accent-primary-extra)
  );
  background: var(--hero-bg-url), var(--background-gradient);
  background-position: left 50% bottom -56px, center;
  background-repeat: no-repeat;
  background-size: 604px 344px, cover;
  padding-bottom: 300px;
}

.hero:before {
  content: none;
}

.hero__box {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  display: flex;
}

.hero__title {
  text-align: center;
  max-width: 696px;
}

.hero__title span {
  color: var(--color-accent-secondary);
}

.hero__text {
  text-align: center;
  max-width: 375px;
}

.articles {
  padding: 80px 0;
}

.categories__box {
  flex-direction: column;
  gap: 32px;
  margin-bottom: 68px;
  display: flex;
}

.categories-wrap__inner {
  --cp: 16px;
}

.categories__list {
  align-items: center;
  gap: 8px;
  display: flex;
}

.category {
  border: 1px solid var(--color-border);
  border-radius: 100px;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 8px 16px;
  display: flex;
}

.category:before {
  content: "";
  background-color: var(--color-accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  display: block;
}

.category.active {
  color: var(--color-white);
  border-color: var(--color-accent-primary);
  background-color: var(--color-accent-primary);
}

.category.active:before {
  background-color: var(--color-white);
}

.articles__list {
  --gap: 10px;
}

.articles-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-direction: column;
  padding: 24px;
  display: flex;
}

.articles-item__img {
  object-fit: cover;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  margin-bottom: 40px;
}

.articles-item__title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.articles-item__link {
  width: fit-content;
  color: var(--color-accent-primary);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: underline;
  display: flex;
}

.articles-item__link span {
  font-style: 0;
  background-color: var(--color-accent-primary-light);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  display: flex;
}

.articles-item__link svg {
  width: 4px;
  height: 8px;
  fill: var(--color-white);
}

.articles-item__link:hover {
  color: var(--color-accent-primary-light);
}

.articles__btn-more {
  margin: 32px auto 0;
}

.articles__btn-more svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}

@media (width <= 1439px) {
  .categories-wrap__inner {
    --cw: calc(100% - var(--cp) * 2);
    scrollbar-width: none;
    width: 100%;
    display: flex;
    position: absolute;
    left: 0;
    overflow: scroll;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .categories-wrap__inner:before, .categories-wrap__inner:after {
    content: "";
    width: calc((100% - var(--cw)) / 2);
    flex-shrink: 0;
    height: 1px;
    display: block;
  }

  .categories-wrap__inner::-webkit-scrollbar {
    display: none;
  }
}
@media (width >= 425px) {
  .categories-wrap__inner {
    --cp: 24px;
  }
}
@media (width >= 768px) {
  .categories-wrap__inner {
    --cp: 32px;
  }

  .articles__list {
    --items: 2;
  }

  .articles__btn-more {
    width: fit-content;
    margin-top: 50px;
  }
}
@media (width >= 1440px) {
  .articles {
    padding: 100px 0;
  }

  .categories__box {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 30px;
  }

  .articles__list {
    --items: 3;
  }
}

.cta {
  color: var(--color-white);
  background: url("/assets/images/bg-cta.webp") center / cover no-repeat;
  padding: 272px 0;
}

.cta__box {
  flex-direction: column;
  gap: 32px;
  display: flex;
}

.cta__actions {
  flex-direction: column;
  gap: 16px;
}

@media (width >= 768px) {
  .cta {
    padding: 255px 0;
  }

  .cta__box {
    width: 50%;
    margin-left: auto;
  }
}

@media (width >= 1440px) {
  .cta__actions {
    flex-direction: row;
  }
}
