/* СТИЛИ КАТАЛОГА */
.section-products {
  margin-bottom: 80px;
}

.section-products__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
}

.section-products__items {
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.section-products__item {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
}

.section-products__item a {
  text-decoration: none;
  color: var(--color-red);
}

.section-products__item a:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.item__img {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item__img img {
  height: 150px;
}

.item__name {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.item__descr {
  font-size: 14px;
  width: 100%;
  color: var(--color-gray-dark);
  margin-bottom: 11px;
  -ms-text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  overflow: hidden;
  -ms-line-clamp: 3;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  display: -webkit-box;

  word-wrap: break-word;
  -webkit-box-orient: vertical;
  box-orient: vertical;
}

.item__cost {
  margin-top: auto;
  margin-bottom: 20px;
  text-align: left;
}

.item__cost span {
  font-size: 24px;
  font-weight: 700;
}

.item__about {
  font-size: 16px;
  color: var(--color-red);
  text-align: center;
  padding: 11.5px;
  border: 1px solid var(--color-red);
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.item-icons {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 21px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 21px;
}

.item-icon__icon1 {
  background-image: url(../img/content/icons/catalog/icon1.svg);
  background-repeat: no-repeat;
  height: 20px;
  margin-bottom: 10px;
  width: 20px;
  background-size: cover;
}

.item-icon__icon2 {
  background-image: url(../img/content/icons/catalog/icon2.svg);
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 10px;
  height: 20px;
  width: 20px;
}

.item-icon__icon3 {
  background-image: url(../img/content/icons/catalog/icon3.svg);
  background-repeat: no-repeat;
  background-size: fill;
  height: 20px;
  margin-bottom: 10px;
  width: 18px;
}

.item-icon__icon4 {
  background-image: url(../img/content/icons/catalog/icon4.svg);
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 10px;
  height: 20px;
  width: 20px;
}

@media (max-width: 1200px) {
  .section-products__items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .section-products__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-products__items {
    grid-template-columns: 1fr;
  }
}

/* ДАЛЬШЕ СТИЛИ ДЕТАЛЬНОГО КАТАЛОГА */

.bg-white {
  background-color: var(--color-white);
}

.section-nav {
  margin-bottom: 20px;
}

.section-nav__products {
  width: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  color: var(--color-gray-dark);
  flex-wrap: wrap;
  padding: 40px;
  gap: 20px;
}

.section-nav__product {
  display: block;
  text-align: center;
  border-radius: 5px;
  height: 45px;
  font-size: 17px;
  border: 1px solid var(--color-gray);
  padding: 10px 17px;
  text-decoration: none;
  color: unset;
}

.section-nav__product a {
  text-decoration: none;
  color: unset;
}

a.section-nav__product {
  text-decoration: none;
  color: unset;
}

.section-nav__product:hover {
  text-align: center;
  border-radius: 5px;
  min-height: 45px;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  cursor: pointer;
  text-decoration: none;
}

a.section-nav__product:hover {
  text-align: center;
  border-radius: 5px;
  min-height: 45px;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  cursor: pointer;
  text-decoration: none;
}

.section-nav__product_active {
  background-color: var(--color-yellow);
  border: 1px solid var(--color-yellow);
  color: var(--color-black);
}

a.section-nav__product_active {
  background-color: var(--color-yellow);
  border: 1px solid var(--color-yellow);
  color: var(--color-black);
}

.section-nav__product_active:hover {
  color: var(--color-gray-dark);
  border: 1px solid var(--color-yellow);
}

a.section-nav__product_active:hover {
  color: var(--color-red);
  border: 1px solid var(--color-yellow);
}

.section-product {
  padding: 40px;
  font-size: 17px;
}

.section-product__card {
  display: flex;

  padding: 10px;
  flex-direction: row;
  padding-bottom: 50px;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-gray);
  margin-bottom: 70px;
}

.section-product__img {
  text-align: center;
  flex: 1 0 auto;
}

.section-product__img img {
  height: 223px;
  text-align: center;
}

.section-product__about {
  display: flex;
  flex: 1 1 700px;
  gap: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.about__title {
  font-size: 24px;
  font-weight: 700;
}

.about__cost-section {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about__cost-section .action {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.about__cost-section span {
  font-size: 34px;
  font-weight: 500;
  margin-right: 20px;
}

.action a {
  text-decoration: none;
  color: var(--color-red);
}

.action a:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.action-btn {
  background-color: #fff;
  cursor: pointer;
  text-align: center;
  border-radius: 5px;
  height: 45px;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 10px 17px;
}

.about-card__title {
  margin-top: 70px;
  font-weight: 700;
  font-size: 24px;
}

@media (max-width: 992px) {
  .section-product__card {
    align-items: center;
  }

  .section-product__img img {
    width: 180px;
    height: 180px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-product__card {
    flex-direction: column;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 40px;
  }

  .section-product__img img {
    width: 180px;
    height: 180px;
    align-self: baseline;
  }

  .section-product__about {
    display: flex;
    flex: 1 1 auto;
    gap: 20px;
    flex-direction: column;
    justify-content: flex-start;
  }
}
