main {
    background-color: #ffffff;
}

main + .footer {
    padding-top: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

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

.visually-hidden {
    font-size: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
  }

/* Main */

.main-block {
    color: #222222;
    text-align: center;
    padding: 40px 0 0 0;
}

.main-block__title {
    max-width: 500px;
    font-size: 40px;
    font-weight: 700;
    margin: 95px auto 0;
}

.main-block__description {
    max-width: 500px;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.4px;
    margin: 13px auto 0;
}

.banner img {
    border-radius: 30px;
}

/* Price Categories */

.price-categories {
    padding: 102px 0 80px 0;
}

.price-categories-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    margin: 0 auto;
}

.price-categories-list__category {
    font-size: 16px;
    line-height: 24px;
    height: 180px;
    border-radius: 15px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
    transform: translateY(0);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.price-categories-list__category--blue {
    background-image: url(../img/card-price-blue-n.jpg);
}

.price-categories-list__category--red {
    background-image: url(../img/card-price-red-n.jpg);
}

.price-categories-list__category--green {
    background-image: url(../img/card-price-green-n.jpg);
}

.price-categories-list__category--purple {
    background-image: url(../img/card-price-purple-n.jpg);
}

.price-categories-list__link {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    font-weight: 400;
    letter-spacing: 0.48px;
    border-radius: 15px;
    color: #ffffff;
    text-align: center;
}

.price-categories-list__category:hover,
.price-categories-list__category:focus {
    transform: translateY(-10px);
    box-shadow: 0 3px 4px 0 rgba(34, 34, 34, 0.04), 0 18px 18.47407px 0 rgba(34, 34, 34, 0.07), 0 30px 35px 0 rgba(34, 34, 34, 0.05);
}

.price-categories-list__price {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}

/* Categories */
.categories {
    padding: 0 0 150px;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 43px 20px;
}

.category {
    max-width: 380px;
}

.category__link {
    display: flex;
    flex-direction: column;
    gap: 17px;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.category__link img {
    border-radius: 20px;
    box-shadow: none;
    transition: box-shadow 0.3s ease-in-out;
}

.category__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    color: #222222;
    margin: 0;
}

.category__link:hover,
.category__link:focus {
    transform: translateY(-10px);
}

.category__link:hover img,
.category__link:focus img {
    box-shadow: 0 3px 4px 0 rgba(34, 34, 34, 0.04), 0 18px 18.47407px 0 rgba(34, 34, 34, 0.07), 0 30px 35px 0 rgba(34, 34, 34, 0.05);
}

/* Info */

.info {
    border-radius: 20px;
    background: #05155f  url(../img/bg-info-1-new.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 90px 144px 65px;
    margin: 43px 0 40px 0;
}

.info.js-active {
background: #05155f  url(../img/bg-info-2-new.jpg);
    padding: 56px 144px 60px;
}

.info__text {
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

.info__text span {
   font-weight: 700;
}

.info__content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.info__content.js-active {
    display: flex;
} 

.info__content p {
    text-align: center;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0.4px;
    color:  #FFF;
    margin: 0;
}

.info__content a {
    color: #00AFFF;
    font-weight: 700;
    text-decoration: underline;
}

.info__content span {
    color: #00AFFF;
}

.info__btn {
    display: block;
    font-family: var(--harmonia);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;

    border-radius: 10px;
    border: 2px solid #ffffff;
    background-color: transparent;
    padding: 15px 60px 19px;
    margin: 25px auto 0;
    cursor: pointer;
}

.info__btn:hover,
.info__btn:focus {
    border-color: #00aeff ;
    background-color: #00aeff;
}

/* Certificate */

.gift-certificate {
    background: linear-gradient(314deg, rgba(153, 182, 255, 0.20) 0%, rgba(255, 204, 241, 0.20) 100.02%);
    backdrop-filter: blur(2px);
    padding: 153px 0 150px 0;
}

.gift-certificate__link {
    background: url(../img/bg-red-n.jpg) top /cover no-repeat;
    position: relative;
    padding: 153px 0 0 0;
}

.gift-certificate__link:before,
.gift-certificate__link:after {
    position: absolute;
    content: '';
}

.gift-certificate__link:before {
    background: url(../img/certificate-left-n.png) top /contain no-repeat;
    width: 300px;
    height: 300px;
    top: -71px;
    left: -72px;
    transform: rotate(-31deg);
}


.gift-certificate__link:after {
    background: url(../img/certificate-right-n.png) top /contain no-repeat;
    width: 340px;
    height: 340px;
    top: -98px;
    right: -97px;
}


.gift-certificate__link {
    display: block;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    padding: 71px 0 81px;
}

.gift-certificate__title {
    font-size: 40px;
    line-height: 48px;
    text-align: center;
    margin: 0 auto;
}

/* Store */

.store-features {
    background: linear-gradient(314deg, rgba(153, 182, 255, 0.20) 0%, rgba(255, 204, 241, 0.20) 100.02%);
    backdrop-filter: blur(2px);
    padding: 162px 0 158px;
}

.store-features-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.store-features-list__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 0 38px 0;
}

.store-features-list__item:nth-child(2) {
    border-left: 1px solid #C4C4C4;
    border-right: 1px solid #C4C4C4;
}

.store-features-list__item img {
    width: 65px;
    height: 65px;
}

.store-features-list__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
    text-align: center;
    color: #222222;
    margin: 19px 0 0 0;
}

.store-features-list__description {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.02em;
    text-align: center;
    color: #222222;
    margin: 6px 0 0 0;
    padding: 0 50px;
}

.store-features-list__link {
    position: relative;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #00AFFF;
    margin: 20px 0 0 0;
}

.store-features-list__link::before {
    position: absolute;
    content: "";
    background-image: url(../img/link-arrow.svg);
    background-repeat: no-repeat;
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    top: 0px;
    right: -32px;
}

@media(max-width: 1200px) {
    /* Price Categories */
    .price-categories-list {
        gap: 9px;
        grid-template-columns: repeat(auto-fill, minmax(160px, 160px));
        justify-content: center;
    }

    .price-categories-list__category {
        height: 160px;
    }

    /* Info */

    .info {
        padding: 90px 50px 65px;
    }

    .gift-certificate__link:before {
        width: 220px;
        height: 300px;
        top: auto;
        bottom: -125px;
        left: 0;
    }


    .gift-certificate__link:after {
        width: 254px;
        height: 300px;
        top: -102px;
        right: -13px;
    }
}

@media(max-width: 1024px) {
    /* Main */
    .main-block {
        padding: 20px 0 0 0
    }

    .main-block__title {
        max-width: 440px;
        font-size: 32px;
        line-height: 35px;
        margin: 45px auto 0;
    }

    .main-block__description {
        max-width: 440px;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0;
        margin: 13px auto 0;
    }

    .banner {
        padding: 0 22px;
    }

    .banner img {
        border-radius: 18px;
    }

    /* Price Categories */

    .price-categories {
        padding: 51px 0 64px 0;
    }

    .price-categories-list {
        max-width: 704px;
        gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    }

    .price-categories-list__category {
        font-size: 14px;
        line-height: 18px;
        height: 104px;
        border-radius: 9px;
    }

    .price-categories-list__link {
        letter-spacing: 0.28px;
        border-radius: 9px;
    }

    .price-categories-list__price {
        font-size: 16px;
        line-height: 20px;
    }

    .price-categories-list__category:hover,
    .price-categories-list__category:focus {
        transform: translateY(0);
        box-shadow: none;
    }

    /* Categories */
    .categories {
        padding: 0 0 103px;
    }

    .categories-list {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 34px 15px;
       padding: 0 2px;
    }

    .category__link {
        gap: 7px;
    }

    .category__link img {
        border-radius: 15px;
    }

    .category__title {
        font-size: 16px;
        line-height: 21px;
    }

    .category__link:hover,
    .category__link:focus {
        transform: translateY(0);
    }

    .category__link:hover img,
    .category__link:focus img {
        box-shadow: none;
    }

    /* Info */

    .info {
        border-radius: 13px;
        padding: 38px 106px 41px;
        margin: 34px 0 32px 0;
    }

    .info.js-active {
        padding: 17px 85px 20px;
    }

    .info__content {
        gap: 4px;
    }

    .info__text {
        font-size: 24px;
        line-height: 29px;
    }

    .info__btn {
        padding: 15px 60px 19px;
        margin: 18px auto 0;
    }

    .info__btn:hover,
    .info__btn:focus {
        border-color: #ffffff;
        background-color: transparent;
    }

    .info__content p {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0;
    }

    /* Certificate */

    .gift-certificate {
        padding: 99px 0 101px 0;
    }

    .gift-certificate__link {
        padding: 153px 0 0 0;
    }

    .gift-certificate__link {
        width: calc(100% - 44px);
        border-radius: 15px;
        padding: 61px 0 65px;
        margin: 0 auto;
    }

    .gift-certificate__title {
        font-size: 24px;
        line-height: 1;
    }

    .gift-certificate__link:before {
        width: 200px;
        height: 200px;
        bottom: -63px;
        left: -40px;
    }


    .gift-certificate__link:after {
        width: 200px;
        height: 200px;
        top: -79px;
        right: -32px;
    }

    /* Store */

    .store-features {
        padding: 100px 0;
    }

    .store-features-list__item {
        padding: 37px 0 33px 0;
    }

    .store-features-list__title {
        font-size: 16px;
        line-height: 19px;
        margin: 19px 0 0 0;
    }

    .store-features-list__description {
        font-size: 14px;
        line-height: 18px;
        margin: 6px 0 0 0;
        padding: 0 20px;
    }

    .store-features-list__link {
        font-size: 14px;
        line-height: 18px;
        margin: 20px 0 0 0;
    }

    .store-features-list__link::before {
        top: -3px;
        right: -32px;
    }
}

@media(max-width: 767px) {
    .wrapper {
        padding: 0 16px;
    }

    /* .wrapper--price-categories {
        padding: 0;
    } */

    /* Main */
    .main-block {
        padding: 0;
    }

    .main-block__title {
        max-width: 288px;
        font-size: 24px;
        line-height: 29px;
        margin: 37px auto 0;
    }

    .main-block__description {
        max-width: 288px;
        padding: 0 18px;
        margin: 12px auto 0;
    }

    .banner {
        padding: 0;
    }

    .banner img {
        min-height: 140px;
        border-radius: 8px;
    }

    /* Price Categories */

    .price-categories {
        padding: 41px 0 32px 0;
    }

    .price-categories-list {
        max-width: 100%;
        display: flex;
        justify-content: flex-start;
        overflow: scroll;
        padding: 0 0 16px;
    }

    .price-categories-list::-webkit-scrollbar {
        width: 2px;
        height: 4px;
        padding: 0 16px;
    }
    
    .price-categories-list::-webkit-scrollbar-track {
        background-color: #F0F0F0;
        border-radius: 50px;
    }
    
    .price-categories-list::-webkit-scrollbar-thumb {
       background-color: #C4C4C4;
       border-radius: 50px;
    }

    .price-categories-list__link {
        width: 104px;
        height: 104px;
    }

    /* Categories */
    .categories {
        padding: 0 0 81px;
    }

    .categories-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 34px 16px;
        padding: 0;
    }

    .category__link {
        gap: 4px;
    }

    .category__link img {
        border-radius: 8px;
    }

    .category__title {
        font-size: 14px;
        line-height: 18px;
    }

    /* Info */

    .info {
        border-radius: 15px;
        padding: 19px 20px 20px;
        margin: 33px 0 32px 0;
    }

    .info.js-active {
        padding: 19px 24px 20px;
    }

    .info__text {
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
    }
    
    .info__btn {
        font-size: 14px;
        line-height: 18px;
        font-weight: 400;
        letter-spacing: 0.28px;
        border-radius: 5px;
        border: 1px solid #fff;
        padding: 4px 8px 6px;
        margin: 11px 0 0 0;
    }

    .info__content {
        gap: 22px;
    }

    .info__content p {
        text-align: left;
    }

    .info__content p br {
        display: none;
    }

    /* Certificate */

    .gift-certificate {
        padding: 80px 0 82px 0;
    }

    .gift-certificate__link {
        width: 100%;
        border-radius: 15px;
        padding: 37px 0 41px;
        margin: 0 auto;
    }

    .gift-certificate__title {
        font-size: 16px;
        line-height: 21px;
        padding: 0 50px;
    }

    .gift-certificate__link:before {
        width: 125px;
        height: 125px;
        bottom: -70px;
        left: -20px;
    }


    .gift-certificate__link:after {
        width: 125px;
        height: 125px;
        top: -54px;
        right: -17px;
    }

    /* Store */ 

    .store-features {
        padding: 10px 0;
    }

    .store-features-list {
        grid-template-columns: 1fr;
    }

    .store-features-list__item {
        padding: 43px 0 46px 0;
    }

    .store-features-list__item:nth-child(2) {
        border-top: 1px solid #C4C4C4;
        border-bottom: 1px solid #C4C4C4;
        border-left: none;
        border-right: none;
    }
}