.complects {
  padding: 80px 0;
  background: #ffffff;
}

.complects__title {
  margin-bottom: 28px;
}

@media (min-width: 1200px) {
  .complects > .container {
    max-width: 1300px;
  }
}

.complects__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 16px;
  margin-bottom: 28px;
}

.complects-filter {
  position: relative;
}

.complects-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 0 10px;
  border-bottom: 1px solid #1e252b;
  cursor: pointer;
  list-style: none;
}

.complects-filter summary::-webkit-details-marker {
  display: none;
}

.complects-filter summary::after {
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: '';
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.complects-filter[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.complects-filter__options {
  position: absolute;
  z-index: 2;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  display: grid;
  padding: 8px;
  border: 1px solid #d8dbe0;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.complects-filter__options button {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #1e252b;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.complects-filter__options button:hover,
.complects-filter__options button:focus {
  background: #0b71bb;
  color: #ffffff;
}

.complects__list {
  border-top: 1px solid #d8dbe0;
}

.complects__row {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(230px, 1fr) minmax(
      260px,
      320px
    );
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #d8dbe0;
}

.complects__row[hidden] {
  display: none;
}

.complects__row.is-revealed {
  animation: complects-reveal 0.25s ease-out;
}

.complects__image {
  display: block;
  width: 100%;
  padding: 0;
  background: #e8e9eb;
}

.complects__details h3,
.complects__details strong,
.complects__price strong,
.complects__price small {
  display: block;
}

.complects__details h3 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.complects__details > strong {
  font-size: 15px;
}

.complects__details ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font-size: 13px;
}

.complects__details li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: #0b71bb;
  content: '';
  vertical-align: 1px;
}

.complects__price {
  text-align: right;
}

.complects__price del {
  color: #737981;
  font-size: 16px;
}

.complects__price > strong {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.1;
}

.complects__price small {
  font-size: 12px;
}

.complects__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.complects__actions .but {
  min-height: 38px;
  margin: 0;
  padding: 8px;
  font-size: 11px;
}

.complects__credit {
  border-color: #0b71bb;
  background: #ffffff;
  color: #0b71bb;
}

.complects__credit:hover,
.complects__credit:focus {
  background: #0b71bb;
  color: #ffffff;
}

.complects__more {
  display: block;
  padding: 16px 0 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: #0b71bb;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.complects__empty {
  margin: 24px 0 0;
}

@keyframes complects-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .complects {
    padding: 42px 10px;
  }

  .complects__filters {
    grid-template-columns: 1fr;
  }

  .complects__row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .complects__image {
    max-width: 300px;
  }

  .complects__details h3 {
    font-size: 24px;
  }

  .complects__price {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .complects-filter summary::after,
  .complects-filter__options button {
    transition: none;
  }

  .complects__row.is-revealed {
    animation: none;
  }
}
