/* PROMO */

.promo {
    background: url(../img/page-home/promo/bg.png)
    center / cover no-repeat;
    padding: 220px 0 162px;
}

.promo__content {
    padding: 40px;
    padding-right: 200px;
    width: fit-content;
    background: rgba(255, 255, 255, .6);
}

.promo__title {
    font-size: 44px;
    font-weight: 600;
    line-height: calc(53.64 / 44 * 100%);
    color: #25201E;
}

.promo__subtitle {
    margin-top: 12px;
    font-size: 28px;
    font-weight: 400;
    line-height: calc(34.13 / 28 * 100%);
}

.promo__btn {
    margin-top: 32px;
}


.header__list-item {
  transition: all 0.3s ease;
}
.header__list-item:hover {
  background-color: #008B8B; /* изумрудный цвет */
  border-radius: 8px;        /* закругление углов */
  padding: 5px 10px;         /* немного внутреннего пространства */
  color: white;              /* цвет текста — белый */
  font-weight: bold;         /* сделает текст жирным */
}

@media(max-width: 990px) {
    .promo {
        padding: 200px 0 140px;
    }
    .promo__title {
        font-size: 40px;
    }
}

@media(max-width: 768px) {
    .promo__content {
        width: 100%;
        padding: 40px;
    }
}

@media(max-width: 560px) {
    .promo {
        padding: 128px 0 122px;
    }
    .promo__content {
        padding: 40px 20px;
    }
    .promo__title {
        font-size: 36px;
    }
    .promo__subtitle {
        font-size: 24px;
    }
    .promo__btn {
        margin-top: 16px;
    }
}

@media(max-width: 370px) {
    .promo__title {
        font-size: 30px;
    }
}

/* ADVANTAGES */

.advantages {
    margin-top: 50px;
}

.advantages__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 20px;
}

.advantage__text span {
    font-size: 20px;
    font-weight: 400;
    line-height: calc(24.38 / 20 * 100%);
    color: #000000;
}

@media(max-width: 990px) {
    .advantages__list {
        display: grid;
        gap: 40px 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 560px) {
    .advantages {
        margin-top: 80px;
    }
    .advantage {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-right: auto;
        max-width: 176px;
        width: 100%;
    }
}

/* CATALOG */

.catalog {
    margin-top: 56px;
}

.catalog .container {
    position: relative;
}

.catalog__wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.carpet__type {
    position: relative;
}

.carpet__type::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0) 100%);
}

.carpet__type-photo {
    width: 100%;
    object-fit: cover;
}

.carpet__type-name {
    position: absolute;
    z-index: 2;
    left: 30px;
    bottom: 24px;
    font-size: 20px;
    font-weight: 500;
    line-height: calc(24.38 / 20 * 100%);
    color: #000000;
    transition: .3s all;
}

.carpet__type:hover .carpet__type-name {
    color: var(--green-color);
}

.carpet__type:nth-child(1) {
    height: 380px;
    grid-column: span 2;
}

.carpet__type:nth-child(2),
.carpet__type:nth-child(3) {
    height: 320px;
    grid-column: span 1;
}

.carpet__type:nth-child(4) {
    height: 320px;
    grid-column: span 2;
}

.carpet__type:nth-child(5) {
    margin-top: -60px;
    height: 380px;
    grid-column: 3 / span 2;
}

@media(max-width: 990px) {
    .catalog__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .carpet__type {
        margin: 0 !important;
        height: 320px !important;
        grid-row: auto !important;
        grid-column: auto !important;
    }
}

@media(max-width: 650px) {
    .catalog__wrapper {
        display: flex;
        flex-direction: column;
    }
}

@media(max-width: 560px) {
    .carpet__type {
        height: 300px !important;
    }
}

/* POPULAR */

.popular {
    margin-top: 80px;
}

.popular-swiper__wrapper {
    position: relative;
}

.popular-swiper {
    padding: 5px;
}

.popular__wrapper {
    max-width: calc(1210px + 10px);
}

.popular-swiper__left,
.popular-swiper__right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.popular-swiper__left {
    right: calc(100% + 20px);
}

.popular-swiper__right {
    left: calc(100% + 20px);
}

@media (max-width: 1360px) {
    .popular-swiper__left,
    .popular-swiper__right {
        position: static;
        transform: none;
    }
    .popular-swiper__btns {
        margin-top: 30px;
        display: flex;
        justify-content: flex-end;
        gap: 20px;
    }
}

@media(max-width: 650px) {
    .popular-swiper__btns {
        display: none;
    }
    .popular-swiper .swiper-slide {
        width: 80vw;
    }
    .popular__wrapper {
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .popular {
        margin-top: 114px;
    }
}
