.s-section__header {
  margin-bottom: 32px;
}

.s-section,
.woocommerce section.s-section {
    padding: 20px 0;
}

.s-section__title {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1;
  color: #142547;
}

.tag-template .woocommerce-products-header {
  margin-bottom: 12px;
}

.content-flexible ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/**** categories ****/

.s-categories {
  padding: 40px 0;
}

.s-categories__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.s-categories__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 0px 16px;
  background: #F2F2F2;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.s-categories__image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 102px;
  height: 102px;
}

.s-categories__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.s-categories__title {
  flex: 1 1 auto;
  color: #142547;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.s-categories__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("../images/arrow-right-blue.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 12px;
  transition: background-color 0.2s ease, background-image 0.2s ease;
}

.s-categories__item:hover {
  text-decoration: none;
}

.s-categories__item:hover .s-categories__title {
  color: #142547;
}

.s-categories__item:hover .s-categories__arrow {
  background-color: #af9f6e;
  background-image: url("../images/arrow-right-white.svg");
}

@media (max-width: 991px) {
  .s-categories__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .s-categories__item {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    text-align: center;
  }

  .s-categories__item .s-categories__arrow {
    background-color: #af9f6e;
    background-image: url("../images/arrow-right-white.svg");
  }
}

@media (max-width: 640px) {
  .s-categories__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .s-categories__title {
    font-size: 14px;
  }
}

/**** categories ****/

/**** products-by-category ****/

.s-products-by-category {
  padding: 40px 0;
}

.s-products-by-category__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.s-products-by-category__title {

}

.s-products-by-category__more {
  flex-shrink: 0;
  color: #96844E;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: underline;
  white-space: nowrap;
  font-weight: 500;
}

.s-products-by-category__more:hover {
  color: #102a5f;
  text-decoration: none;
}

.s-products-by-category ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-products-by-category ul.products::before,
.s-products-by-category ul.products::after {
  display: none;
}

.s-products-by-category ul.products li.product {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.s-products-by-category .product-loop-thumbnail img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
}

@media (max-width: 991px) {
  .s-products-by-category ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .s-products-by-category__head {
    flex-wrap: wrap;
    justify-content: center;
  }

  .s-products-by-category ul.products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/**** products-by-category ****/

/**** media-content ****/

.s-media-content {
  padding: 40px 0;
}

.s-media-content__title {
  margin: 0 0 24px;
  text-align: left;
}

.s-media-content__row {
  display: flex;
  gap: 30px;
  align-items: start;
}

.s-media-content__row:not(:has(.s-media-content__media)),
.s-media-content__row:not(:has(.s-media-content__content)) {
  grid-template-columns: minmax(0, 1fr);
}

.s-media-content__media {
  max-width: 470px;
  flex-basis: 470px;
}

.s-media-content__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.s-media-content__content {
  color: #142547;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  flex: 1;
}

.s-media-content__content > *:first-child {
  margin-top: 0;
}

.s-media-content__content > *:last-child {
  margin-bottom: 0;
}

.s-media-content__content p,
.s-media-content__content ul,
.s-media-content__content ol {
  margin: 0 0 16px;
  line-height: 1.3;
}

.s-media-content__content ul,
.s-media-content__content ol {
  padding-left: 1.2em;
}

.s-media-content__content li {
  margin: 0 0 6px;
}

.s-media-content__content li:last-child {
  margin-bottom: 0;
}

.s-media-content__content blockquote {
  margin: 16px 0;
  padding: 12px 32px 12px 16px;
  background: #F5F1E5;
  border: 0;
  border-radius: 4px;
  border-left: 4px solid #AF9F6E;
  position: relative;
  color: #142547;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.s-media-content__content blockquote::before,
.s-media-content__content blockquote::after {
  content: none;
}

.s-media-content__content blockquote p {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: inherit;
}

.s-media-content__content blockquote > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .s-media-content__row {
    flex-direction: column;
  }

  .s-media-content__media {
    max-width: none;
    flex-basis: auto;
    width: 100%;
    height: 360px;
  }
  
  .s-media-content__media img {
    height: 100%!important;
  }

}

@media (max-width: 640px) {
  .s-media-content__media {
    height: 240px;
  }
}

@media (max-width: 575px) {
  .s-media-content__content {
    font-size: 14px;
  }

  .s-media-content__content blockquote {
    font-size: 14px;
  }
}

/**** media-content ****/

/**** content ****/

.s-content__title {
  margin: 0 0 24px;
  text-align: left;
}

.s-content {
  padding: 40px 0;
}

.s-content__row {
  overflow-x: auto;
}

.s-content__row > * {
  font-size: 16px;
  line-height: 1.3;
  color: #142547;
}

.s-content__row > *:first-child {
  margin-top: 0;
}

.s-content__row > *:last-child {
  margin-bottom: 0;
}

.s-content__row h1,
.s-content__row h2,
.s-content__row h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: left;
}

.s-content__row h1 {
  font-size: 34px;
}

.s-content__row h2 {
  margin-bottom: 24px;
  font-size: 28px;
}

.s-content__row h3 {
  font-size: 22px;
}

@media (max-width: 575px) { 
  .s-content__row > * {
    font-size: 14px;
  }

  .s-content__row h1 {
    font-size: 26px;
  }
  
  .s-content__row h2 {
    margin-bottom: 24px;
    font-size: 22px;
  }
  
  .s-content__row h3 {
    font-size: 18px;
  }
}

/**** content ****/

/**** s-cta_text ****/

.s-cta_text .footer-fcont {
  padding: 34px 0;
}

.s-cta_text .footer-fblock--text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.s-cta_text .footer-fcont a {
  color: #fff;
}

.s-cta_text .footer-fcont a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.01em;
}

/**** s-cta_text ****/

@media (max-width: 575px) {
  .s-section__title {
    font-size: 22px;
  }

  .s-section__header {
    margin-bottom: 24px;
  }
}