.blog-hero {
  background-image: var(--blog-hero-bg-desktop, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 360px;
  align-content: center;
}

.page-template-tpl-blog .tab-scroll-section,
.page-template-tpl-blog-php .tab-scroll-section,
.category .tab-scroll-section {
  padding: 16px 0 8px;
  border: none;
}

.page-template-tpl-blog .tab-scroll-section .container,
.page-template-tpl-blog-php .tab-scroll-section .container,
.category .tab-scroll-section .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-template-tpl-blog .tab-scroll-section__viewport,
.page-template-tpl-blog-php .tab-scroll-section__viewport,
.category .tab-scroll-section__viewport {
  flex: 1 1 auto;
}

.page-template-tpl-blog .tab-scroll-section__track,
.page-template-tpl-blog-php .tab-scroll-section__track,
.category .tab-scroll-section__track {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-template-tpl-blog .tab-title-scroll,
.page-template-tpl-blog-php .tab-title-scroll,
.category .tab-title-scroll {
  background: #f5f5f5;
  color: #616161;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.page-template-tpl-blog .tab-title-scroll.active,
.page-template-tpl-blog-php .tab-title-scroll.active,
.category .tab-title-scroll.active {
  background: linear-gradient(90deg, #ee3438 0%, #f15a37 87.06%, #f58135 100%);
  color: #ffffff;
  border-color: transparent;
}

.page-template-tpl-blog .blog-sort,
.page-template-tpl-blog-php .blog-sort,
.category .blog-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.page-template-tpl-blog .blog-sort label,
.page-template-tpl-blog-php .blog-sort label,
.category .blog-sort label {
  color: #ffffff;
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 1%;
  color: #bdbdbd;
  white-space: nowrap;
}

.page-template-tpl-blog .blog-sort select,
.page-template-tpl-blog-php .blog-sort select,
.category .blog-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  gap: 8px;
  width: 133px;
  height: 36px;
  background-image:
    linear-gradient(
      45deg,
      transparent 48%,
      #616161 48%,
      #616161 52%,
      transparent 52%
    ),
    linear-gradient(
      135deg,
      transparent 48%,
      #616161 48%,
      #616161 52%,
      transparent 52%
    );
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  color: #616161;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  min-width: 133px;
  padding: 8px 32px 8px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  outline: none;
  box-shadow: none;
}

.page-template-tpl-blog .blog-sort select:focus,
.page-template-tpl-blog-php .blog-sort select:focus,
.category .blog-sort select:focus {
  border-color: #ffffff;
}

@media (max-width: 767px) {
  .page-template-tpl-blog .tab-scroll-section__track .tab-title-scroll,
  .page-template-tpl-blog-php .tab-scroll-section__track .tab-title-scroll,
  .category .tab-scroll-section__track .tab-title-scroll {
    padding: 6px 12px;
  }

  .page-template-tpl-blog .tab-scroll-section .container,
  .page-template-tpl-blog-php .tab-scroll-section .container,
  .category .tab-scroll-section .container {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .page-template-tpl-blog .blog-sort,
  .page-template-tpl-blog-php .blog-sort,
  .category .blog-sort {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    margin-top: 8px;
  }

  .page-template-tpl-blog .blog-sort select,
  .page-template-tpl-blog-php .blog-sort select,
  .category .blog-sort select {
    min-width: 0;
    width: 133px;
    height: 36px;
    padding: 8px 32px 8px 16px;
    font-size: 14px;
  }
}

.page-template-tpl-blog .blog-list,
.page-template-tpl-blog-php .blog-list,
.category .blog-list {
  padding: 16px 0 48px;
}

.page-template-tpl-blog .blog-list .chose-post,
.page-template-tpl-blog-php .blog-list .chose-post,
.category .blog-list .chose-post {
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-template-tpl-blog .blog-list .post-card-column,
.page-template-tpl-blog-php .blog-list .post-card-column,
.category .blog-list .post-card-column {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 24px;
  width: 100%;
  min-height: 165px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #eeeeee;
}

.page-template-tpl-blog .blog-list .post-card-column,
.page-template-tpl-blog-php .blog-list .post-card-column,
.category .blog-list .post-card-column {
  overflow: hidden;
}

.page-template-tpl-blog .blog-list .card-post__media,
.page-template-tpl-blog-php .blog-list .card-post__media,
.category .blog-list .card-post__media {
  display: block;
  width: 200px;
  height: 133px;
  flex: 0 0 200px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.page-template-tpl-blog .blog-list .card-post__media img,
.page-template-tpl-blog-php .blog-list .card-post__media img,
.category .blog-list .card-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.page-template-tpl-blog .blog-list .content-post,
.page-template-tpl-blog-php .blog-list .content-post,
.category .blog-list .content-post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-template-tpl-blog .blog-list .post-card-title,
.page-template-tpl-blog-php .blog-list .post-card-title,
.category .blog-list .post-card-title {
  width: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  color: #212121;
}

.page-template-tpl-blog .blog-list .post-card-title a,
.page-template-tpl-blog-php .blog-list .post-card-title a,
.category .blog-list .post-card-title a {
  color: inherit;
}

.page-template-tpl-blog .blog-list .post-card-title a:hover,
.page-template-tpl-blog-php .blog-list .post-card-title a:hover,
.category .blog-list .post-card-title a:hover {
  color: #EE3438;
}

.page-template-tpl-blog .blog-list .post-card-excerpt,
.page-template-tpl-blog-php .blog-list .post-card-excerpt,
.category .blog-list .post-card-excerpt {
  width: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #616161;
}

.page-template-tpl-blog .blog-list .cate__date,
.page-template-tpl-blog-php .blog-list .cate__date,
.category .blog-list .cate__date {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 12px;
  width: 100%;
  min-height: 26px;
  margin-top: auto;
}

.page-template-tpl-blog .blog-list .post-card-date,
.page-template-tpl-blog-php .blog-list .post-card-date,
.category .blog-list .post-card-date {
  width: 102px;
  min-height: 18px;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  color: #bdbdbd;
}

.page-template-tpl-blog .blog-list .post-card-category,
.page-template-tpl-blog-php .blog-list .post-card-category,
.category .blog-list .post-card-category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 12px;
  min-height: 26px;
  background: #fdeded;
  border-radius: 4px;
  flex: 0 0 auto;
  text-decoration: none;
}

.page-template-tpl-blog .blog-list .post-card-category-text,
.page-template-tpl-blog-php .blog-list .post-card-category-text,
.category .blog-list .post-card-category-text {
  min-height: 18px;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ee3438 0%, #f15a37 87.06%, #f58135 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-template-tpl-blog .pagenavi,
.page-template-tpl-blog-php .pagenavi,
.category .pagenavi {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 10px;
}

.page-template-tpl-blog .pagenavi a,
.page-template-tpl-blog .pagenavi span,
.page-template-tpl-blog-php .pagenavi a,
.page-template-tpl-blog-php .pagenavi span,
.category .pagenavi a,
.category .pagenavi span {
  border-radius: 4px;
  padding: 6px 10px;
  text-decoration: none;
}

.page-template-tpl-blog .pagenavi a,
.page-template-tpl-blog-php .pagenavi a,
.category .pagenavi a {
  color: #ffffff;
  background: #1a1a1a;
}

.page-template-tpl-blog .pagenavi .current,
.page-template-tpl-blog-php .pagenavi .current,
.category .pagenavi .current {
  background: #ee3438;
  color: #ffffff;
}

.blog-archive-page .blog-archive-controls {
  padding: 16px 0 8px;
}

.blog-archive-page .blog-archive-controls .container {
  display: flex;
  justify-content: flex-end;
}

.blog-archive-page .blog-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-archive-page .blog-sort label {
  color: #bdbdbd;
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 1%;
  white-space: nowrap;
}

.blog-archive-page .blog-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: flex;
  align-items: center;
  padding: 8px 32px 8px 16px;
  width: 133px;
  height: 36px;
  background-image:
    linear-gradient(45deg, transparent 48%, #616161 48%, #616161 52%, transparent 52%),
    linear-gradient(135deg, transparent 48%, #616161 48%, #616161 52%, transparent 52%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  color: #616161;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  outline: none;
  box-shadow: none;
}

.blog-archive-page .blog-list {
  padding: 16px 0 48px;
}

.blog-archive-page .blog-list .chose-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.blog-archive-page .blog-list .post-card-column {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 24px;
  width: 100%;
  min-height: 165px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #eeeeee;
  overflow: hidden;
}

.blog-archive-page .blog-list .card-post__media {
  display: block;
  width: 200px;
  height: 133px;
  flex: 0 0 200px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.blog-archive-page .blog-list .card-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.blog-archive-page .blog-list .content-post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.blog-archive-page .blog-list .post-card-title {
  width: 100%;
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  color: #212121;
}

.blog-archive-page .blog-list .post-card-title a {
  color: inherit;
}

.blog-archive-page .blog-list .post-card-title a:hover {
  color: #EE3438;
}

.blog-archive-page .blog-list .post-card-excerpt {
  width: 100%;
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #616161;
}

.blog-archive-page .blog-list .cate__date {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 26px;
  margin-top: auto;
}

.blog-archive-page .blog-list .post-card-date {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  color: #bdbdbd;
}

.blog-archive-page .blog-list .post-card-category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 12px;
  min-height: 26px;
  background: #fdeded;
  border-radius: 4px;
  flex: 0 0 auto;
  text-decoration: none;
}

.blog-archive-page .blog-list .post-card-category-text {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ee3438 0%, #f15a37 87.06%, #f58135 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.blog-archive-page .pagenavi {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 10px;
}

.blog-archive-page .pagenavi a,
.blog-archive-page .pagenavi span {
  border-radius: 4px;
  padding: 6px 10px;
  text-decoration: none;
}

.blog-archive-page .pagenavi a {
  color: #ffffff;
  background: #1a1a1a;
}

.blog-archive-page .pagenavi .current {
  background: #ee3438;
  color: #ffffff;
}

.blog-archive-empty {
  padding: 32px 0;
  color: #616161;
  font-size: 16px;
  line-height: 150%;
}

@media (max-width: 1280px) {
}

@media (max-width: 1024px) {
  .blog-archive-page .blog-archive-controls .container {
    justify-content: flex-start;
  }

  .blog-archive-page .blog-sort {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    background-image: var(--blog-hero-bg-mobile, var(--blog-hero-bg-desktop, none));
  }

  .page-template-tpl-blog .blog-list .post-card-column,
  .page-template-tpl-blog-php .blog-list .post-card-column,
  .category .blog-list .post-card-column {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 24px;
    width: 100%;
    min-height: 165px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eeeeee;
  }

  .page-template-tpl-blog .blog-list .post-card-column,
  .page-template-tpl-blog-php .blog-list .post-card-column,
  .category .blog-list .post-card-column {
    overflow: hidden;
  }

  .page-template-tpl-blog .blog-list .card-post__media,
  .page-template-tpl-blog-php .blog-list .card-post__media,
  .category .blog-list .card-post__media {
    height: 133px;
    flex: 0 0 200px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
  }

  .blog-archive-page .blog-list .post-card-column {
    flex-direction: column;
    align-items: center;
  }

  .blog-archive-page .blog-list .card-post__media {
    width: 100%;
    height: 133px;
    flex: 0 0 auto;
  }

  .blog-archive-page .blog-sort {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .blog-archive-page .blog-sort {
    flex-wrap: wrap;
  }
}
