.tags {
  margin-bottom: 40px;
}

.tags__wrap {
  padding-right: 10%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 43px; /* фиксированная высота в свёрнутом состоянии */
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.tags__wrap.expanded {
  max-height: 1000px; /* достаточно для раскрытия */
}
.tags__item {
  /*width: 16.6666%;*/
}

.tags__item a {
  display: flex;
  height: 35px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: #F7F7F7;
  color: #404040;
  text-align: center;
  font-family: Panton;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 15px */
  letter-spacing: 0.15px;
  padding: 0 15px;
}

.tags__item a:hover {
  background: #F2E2D3; 
  color: #404040;
}

.tags__more-btn {
  align-items: center;
  justify-content: center;
  gap: 17px;
  width: auto;
  position: absolute;
  bottom: 17px;
  right: 0;
  border: none;
  cursor: pointer;
  background: none;

}
.tags__more-btn span {
  color: #808080;
  font-size: 14px;
  font-weight: 400;
  line-height: 100%;
  border-bottom: 1px dashed #808080;
}
.tags__more-btn:after {
  content: "";
  width: 14px;
  height: 8px;
  transition: transform 0.1s ease;
  background: url('data:image/svg+xml,<svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg"><path d="M7.00795 8L13.4456 1.63087C13.7507 1.32899 13.7504 0.836001 13.445 0.534466V0.534466C13.1448 0.238174 12.6622 0.238174 12.3621 0.534465L7.00795 5.81961L1.63827 0.533371C1.3378 0.237571 0.855479 0.237896 0.555408 0.534101V0.534101C0.249734 0.835836 0.249453 1.32915 0.554785 1.63123L6.99205 8L7.00795 8Z" fill="rgb(64 64 64)"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Стрелка вверх (свёрнуто) */
.tags__more-btn:after {
  transform: rotate(0deg);
}

/* Стрелка вниз (развёрнуто) */
.tags__more-btn.expanded:after {
  transform: rotate(180deg);
}

.tags__more-btn:hover {

}

.catalog-wrap .filter {
  margin-bottom: 30px;
}

.section-description {
  padding-top: 60px;
}

.filter__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter__wrap.fixed {
  top: 68px;
  position: fixed;
  z-index: 333;
  left: 0;
  width: 100%;
  transition: all 0.3s;
  padding: 18px 15px;
  background: #F7F7F7;
  box-shadow: 1px 10px 10px #0000003d;
}

.filter__wrap.fixed.hidden {
  top: -200px;
}

.filter-open {
  width: 180px;
  height: 40px;
  border-radius: 61px;
  border: 1px solid #404040;
  background: #404040;
  color: #FFF;
  text-align: center;
  font-family: Panton;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 15px */
  letter-spacing: 0.15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.filter-open:hover {
  background: #8C6942;
  border: 1px solid #8C6942;
}

.filter-open.active {
  background: #F2E2D3;
  color: #404040;
  border-color: #F2E2D3;
  
  z-index: 222;
}

.filter-open.active path {
  fill: #404040;
}

.block-registration .block-registration__wrap {
  background-image: url("/local/templates/loftwood/images/block-registration.png");
  background-color: #F2E2D3;
  margin-bottom: 100px;
  height: 185px;
  background-repeat: no-repeat;
  background-position: right bottom;
  padding: 45px 0 0 55px;
  border-radius: 10px;
  border-bottom: 4px solid #FFF; 
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.10); 
}

.block-registration  .block-registration__title {
  color: #404040;
  font-size: 26px;
  font-weight: 600;
  line-height: 123.5%;
  letter-spacing: 0.26px;
  margin-bottom: 17px;
}

.block-registration button {
  border-radius: 5px;
  background: #404040;
  height: 40px; 
  color: #F4F4F4;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  padding: 0 37px;
  border: 0;
}

@media screen and (max-width: 768px) {
  .tags {
    overflow: scroll;
    margin-bottom: 20px;
  }

  .tags__item {
    width: auto;
  }

  .tags__item a {
    padding: 0 30px;
    white-space: nowrap;
  }

  .filter__wrap {
    gap: 20px;
  }

  .filter {
    margin-bottom: 0px;
  }

  .filter-open {
    width: 50%;
  }

  .sort {
    width: 50%;
  }

  .catalog-wrap .filter {
    display: block;
  }
}