main {
    background: linear-gradient(206.57deg, rgba(27, 0, 0, 1) 53.644%,rgba(129, 0, 0, 1) 104.096%);
    padding: 0 0 30px;
}

.wrapper {
    max-width: 1200px;
    padding: 0 10px;
    margin: 0 auto;
}

.wrapper--big {
    max-width: 1400px;
    padding: 0;
}

/* Banner */
.banner {
    background: url(../img/banner.png) 0 0 / cover;
    padding: 167px 200px;
}

.banner__title {
    font: 600 64px/110% var(--font-harmonia);
    color: #ffffff;
    margin: 0;
}

/* promo-categories */

.promo-categories {
    padding: 67px 0;
}

.promo-categories__title {
    font: 700 40px/120% var(--font-harmonia);
    text-align: center;
    color: #ffffff;
    margin: 0;
}

.promo-categories-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
}

.promo-categories-list__category {
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: rgba(27, 0, 0, 1);
}

.promo-categories-list__link {
    position: relative;
    height: 221px;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 0 0 58px;
    box-shadow: none;
    transition: box-shadow 0.3s ease-in-out;
}

.promo-categories-list__link:hover {
    box-shadow: 0 4px 43.79px -3px rgba(177, 66, 85, 0.75);
}

.promo-categories-list__category-title {
    font: 700 40px/120% var(--font-harmonia);
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.promo-categories-list__category--for-her {
    background: url(../img/bg-for-her.jpg) 0 0 / cover no-repeat;
}

.promo-categories-list__category--for-him {
    background: url(../img/bg-for-him.jpg) 0 0 / cover no-repeat;
}

.promo-categories-list__category--certificate {
    background: url(../img/bg-certificate.jpg) 0 0 / cover no-repeat;
}

.promo-categories-list__category--custom {
    background: url(../img/bg-custom.jpg) 0 0 / cover no-repeat;
}

#promo-categories-slider .swiper-pagination {
    display: none;
}

/* ? Contest ? */

.contest {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: url(../img/bg-contest-form-parent.png) 140px center / cover;
    padding: 78px 0;
    position: relative;
}

.contest-info {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    padding: 24px 30px 30px;
}

.contest-info__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: #ffffff;
    margin: 0;
}

.contest-rules {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 30px;
    margin: 18px 0 10px;
}

.contest-rules__item {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #ffffff;
}

.contest-info__small {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #ffffff;
    margin: 0;
}

.contest-rules__item a,
.contest-info__small a {
    text-decoration: none;
    color: #CC576E;
}

.contest-info__link {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: underline;
    color: #ffffff;
    margin: 12px 0 0 0;
}

.contest-form {
    border-radius: 15px;
    background: rgba(192, 78, 96, 1);
    padding: 30px;
    z-index: 1;
}

.contest::before {
    position: absolute;
    content: '';
    top: -52px;
    right: calc(30% - 1004px / 2);
    width: 1007px;
    height: 520px;
    background: url(../img/contest-gifts.png) center / cover;
}

.success-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    backdrop-filter: blur(4px);
    background-color: rgba(247, 232, 206, 0.8);
}

.contest-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    background: url(../img/bg-pop-up.jpg);
    width: calc(100% - 20px);
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 90px 89px 94px;
    z-index: 100;
}

.contest-success__title {
    font: 700 40px/120% var(--font-harmonia);
    text-align: center;
    color: #ffffff;
    margin: 0
}

.contest-success__info {
    font: 400 20px/140% var(--font-harmonia);
    text-align: center;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0
}

.contest-success__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    height: 56px;
    text-decoration: none;
    margin: 29px auto 0;
    border: 1px solid rgba(0, 175, 255, 0);
    border-radius: 10px;
    background: rgba(96, 0, 2, 1);
    font: 600 18px / 1 var(--font-harmonia);
    text-align: center;
    color: #ffffff;
}

.contest-success__close {
    background-color: transparent;
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 36px;
    top: 28px;
}

.contest-success__close svg {
    width: 20px;
    stroke: #ffffff;
}

@media(max-width: 1200px) {
    .banner {
        padding: 167px 100px;
    }

    .contest::before {
        top: -15px;
        right: calc(30% - 814px / 2);
        width: 800px;
        height: 520px;
    }
}

@media(max-width: 1100px) {
    .banner {
        background: url(../img/banner.png) -50px center / cover;
    }

    .contest-info {
        max-width: 520px;
        padding: 24px 0 30px;
    }
}

@media(max-width: 1024px) {
    /* Banner */
    .banner {
        background: url(../img/banner.png) center center / cover;
    }

    .banner__title {
        font: 600 54px / 110% var(--font-harmonia);
    }

    /* Categories */
    .promo-categories {
        padding: 30px 0;
    }
    
    .promo-categories-list__link {
        height: 200px;
        padding: 0 0 0 20px;
    }

    .promo-categories-list__category-title {
        font: 700 24px / 120% var(--font-harmonia);
    }

    .promo-categories-list__category--for-her {
        background: url(../img/bg-for-her.jpg) -64px 0 / cover no-repeat;
    }

    .promo-categories-list__category--for-him {
        background: url(../img/bg-for-him.jpg) -69px 0 / cover no-repeat;
    }

    .promo-categories-list__category--certificate {
        background: url(../img/bg-certificate.jpg) 0 0 / cover no-repeat;
    }

    .promo-categories-list__category--custom {
        background: url(../img/bg-custom.jpg) -93px 0 / cover no-repeat;
    }

    /* Contest */
    .contest::before {
        top: 44px;
        right: calc(30% - 814px / 2);
        width: 800px;
        height: 520px;
        transform: scale(0.8);
    }

    .contest-info {
        max-width: 55%;
        padding: 24px 0 30px;
    }
}

@media(max-width: 960px) {
        .promo-categories-list__category--certificate {
        background: url(../img/bg-certificate.jpg) -60px 0 / cover no-repeat;
    }
}

@media(max-width: 860px) {
    .promo-categories-list__category--certificate {
        background: url(../img/bg-certificate.jpg) -110px 0 / cover no-repeat;
    }
}

@media (max-width: 767px) {
    main {
        padding: 0 0 50px;
    }

    .wrapper {
        padding: 0 16px;
    }

    .banner {
        background: url(../img/banner-m.png) center center / cover;
        padding: 26px 0 327px;
    }

    .banner__title {
        font: 600 24px / 110% var(--font-harmonia);
        text-align: center;
    }

    /* promo-categories */

    .promo-categories {
        padding: 0;
    }

    .promo-categories__title {
        font: 700 24px/120% var(--font-harmonia);
    }

    .promo-categories-list {
        gap: 0;
        margin: 0;
    }

    .promo-categories-list__category {
        border: none;
    }
    
    .promo-categories-list__link {
        width: 100%;
        height: 278px;
        justify-content: center;
        align-items: flex-start;
        padding: 22px 0 0;
    }

    .promo-categories-list__link:hover {
        box-shadow: none;
    }

    .promo-categories-list__category-title {
        font: 700 24px/120% var(--font-harmonia);
    }

    .promo-categories-list__category--for-her {
        background: url(../img/bg-for-her-m.jpg) 0 0 / cover no-repeat;
    }

    .promo-categories-list__category--for-him {
        background: url(../img/bg-for-him-m.jpg) 0 0 / cover no-repeat;
    }

    .promo-categories-list__category--certificate {
        background: url(../img/bg-certificate-m.jpg) 0 0 / cover no-repeat;
    }

    .promo-categories-list__category--custom {
        background: url(../img/bg-custom-m.jpg) 0 0 / cover no-repeat;
    }

    #promo-categories-slider {
        position: relative;
        padding: 0 0 30px;
        margin: 29px 0 0;
    }

    #promo-categories-slider .swiper-pagination {
        display: block;
    }

    #promo-categories-slider .swiper-pagination-bullet {
        background: #8E3743;
        opacity: 1;
    }

    #promo-categories-slider .swiper-pagination-bullet-active {
        background: #CC576E;
    }

    .promo-categories-list__category.swiper-slide {
        max-width: 288px;
    }

    #promo-categories-slider .swiper-slide.swiper-slide-active {
        box-shadow: 0 4px 43.79px -3px rgba(177, 66, 85, 0.75);
    }

    /* ? Contest ? */

    .contest {
        padding: 7px 0;
    }

    .contest::before {
        background: url(../img/contest-gifts-mob.png) center / contain no-repeat;
        top: 170px;
        right: calc(47% - 320px / 2);
        width: 320px;
        height: 420px;
        transform: scale(1);
    }

    .contest-info {
        max-width: 320px;
        padding: 24px 21px 225px;
        margin: 0 auto;
    }

    .contest-info__title {
        font-size: 24px;
        line-height: 120%;
        text-align: center;
    }

    .contest-rules {
        align-items: center;
        gap: 0;
        padding: 0 0 0 24px;
        margin: 15px 0 9px;
    }

    .contest-rules__item {
        font-size: 16px;
        line-height: 120%;
        text-align: center;
    }

    .contest-info__small {
        font-size: 16px;
        line-height: 120%;
        text-align: center;
    }

    .contest-rules__item a,
    .contest-info__small a {
        text-decoration: none;
        color: #CC576E;
    }

    .contest-info__link {
        font-size: 12px;
        text-align: center;
        margin: 12px 0 0 0;
    }

    .contest-form {
        border-radius: 15px;
        background: rgba(192, 78, 96, 1);
        padding: 30px;
        z-index: 1;
    }

    .contest-success {
        width: calc(100% - 20px);
        border-radius: 15px;
        padding: 42px 16px 45px;
    }

    .contest-success__title {
        font: 700 24px / 120% var(--font-harmonia);
    }

    .contest-success__info {
        font: 400 18px / 140% var(--font-harmonia);
    }

    .contest-success__link {
        width: 100%;
        max-width: 280px;
        height: 56px;
        text-decoration: none;
        margin: 0px auto 0;
        border-radius: 10px;
        background: rgba(96, 0, 2, 1);
        font: 600 18px / 1 var(--font-harmonia);
    }

    .contest-success__close {
        width: 15px;
        height: 15px;
        right: 32px;
        top: 18px;
    }

    .contest-success__close svg {
        width: 15px;
    }
}