:root {
    --bg: #EDEEF8;
    --brand: #9A72F9;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: #2A2A2A;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

#site {
    position: relative;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 999;
}

.logo {
    width: 4.5rem;
    height: 6.75rem;
    position: absolute;
    top: 0.875rem;
    left: 0;
}

.header-text {
    padding: 3rem 0 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    line-height: 100%;
    font-weight: 400;
}

main .wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s, transform .5s;
    transition-delay: .2s;
}

main .wrapper.inView {
    transform: translateY(0);
    opacity: 1;
}

.wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 6.25rem;
    z-index: 1;
}

section .wrapper {
    padding-top: 6.25rem;
}

section.hero .wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.header-button {
    display: flex;
    justify-content: flex-end;
}

.header-button a {
    display: block;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1rem;
    padding: 1rem 1.2rem .9rem;
    color: #fff;
    background-color: var(--brand);
    border-radius: 1.25rem;
}

.header-button a:hover {
    opacity: .7;
}

.hero {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.hero-image {
    position: absolute;
    width: 692px;
    height: 979px;
    top: -133px;
    right: 66px;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* .inView .hero-image {
    transform: translateX(0);
    opacity: 1;
} */

.hero-content {
    padding: 6.875rem 0 0;
}

.hero-content h1 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 4.5rem;
    line-height: 5.625rem;
    margin: 0 0 3.125rem;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .4s, opacity .4s;
    transition-delay: .3s;
}

.inView .hero-content h1 {
    transform: translateX(0);
    opacity: 1;
}

.hero-content p {
    font-weight: 400;
    font-size: 1rem;
}

.hero-review-block {
    display: flex;
    justify-content: flex-end;
}

.hero-review {
    background-color: #FFFFFFCC;
    padding: 1.875rem;
    font-weight: 400;
    font-size: 20px;
    width: 28.0625rem;
    border-radius: 1.25rem;
}

.hero-review-stars {
    line-height: 20px;
    margin-bottom: 0.9375rem;
}

.hero-review-name {
    line-height: 20px;
    margin-bottom: 20px;
}

.firefly {
    position: absolute;
    z-index: -1;
    width: 31.75rem;
    height: 12rem;
    transform: rotate(66.26deg);
    opacity: 1;
    border-radius: 44.73px;
    filter: blur(200px);
}

.firefly-yellow {
    background-color: #F6CD1780;
}

.firefly-light-blue {
    background-color: #34C1FE;
}

.firefly-violet {
    background-color: #C142C4;
}

.firefly-hero-1 {
    top: 92px;
    left: 454px;
}

.firefly-hero-2 {
    top: 25px;
    right: 126px;
}

.firefly-hero-3 {
    top: 464px;
    right: 134px;
}

.firefly-features-1 {
    transform: rotate(-92.34deg);
    bottom: 15.625rem;
    left: 3.0625rem;
    width: 31.75rem;
    height: 12rem;
}

.firefly-features-2 {
    width: 31.75rem;
    height: 12rem;
    transform: rotate(-100deg);
    left: 14.375rem;
    bottom: 1.25rem;
}

.firefly-about-1 {
    transform: rotate(88deg);
    right: 30%;
    top: -20px;
}

.firefly-about-2 {
    bottom: -6.6875rem;
    left: 3.375rem;
    transform: rotate(-66.26deg);
}

.firefly-product-1 {
    transform: rotate(-66.26deg);
    bottom: 5rem;
    left: 8.75rem;
}

.firefly-product-2 {
    transform: rotate(-66.26deg);
    bottom: 9.375rem;
    right: 13.9375rem;
}

.firefly-product-3 {
    transform: rotate(-66.26deg);
    bottom: -16.25rem;
    left: 3.75rem;
}

.firefly-product-4 {
    transform: rotate(-66.26deg);
    bottom: -14.125rem;
    right: 14.375rem;
}

section h2 {
    opacity: 0.1;
    transition: transform .3s, opacity .3s;
    transition-delay: .3s;
}

section .inView h2 {
    transform: translateX(0);
    opacity: 1;
}

.features-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.features-header span {
    height: 1px;
    width: 11.25rem;
    background-color: #2A2A2A;
}

.features-header h2 {
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    padding: 0.625rem 1.25rem;
    background-color: #FFFFFF80;
    border-radius: 1.25rem;
}

.features-headline {
    font-weight: 600;
    font-size: 3.5rem;
    line-height: 4.75rem;
    text-align: center;
    vertical-align: bottom;
    color: var(--brand);
    margin-bottom: 3.125rem;
}

.features-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.125rem;
}

.features-content-item {
    background-color: #9A72F980;
    padding: 2.1875rem 2.0625rem 2.9375rem;
    border-radius: 1.25rem;
}

.features-content-item:nth-child(2) {
    background-color: #FFFFFF80;
}

.features-content-item-img {
    width: 6.25rem;
    height: 6.25rem;
    padding: 1rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
}

.features-content-item h3 {
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 2.625rem;
    margin-bottom: 1.875rem;
}

.features-content-item p {
    font-weight: 400;
    font-size: 1rem;
}

.features-content-item:nth-child(2) .features-content-item-img {
    background-color: #E9CDFCCC;
}

.features-content-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-content-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8.875rem;
}

.about-content-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
}

.about-content-head span {
    height: 1px;
    width: 5rem;
    background-color: #2A2A2A;
}

.about-content-head h2 {
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    padding: 0.625rem 1.25rem;
    background-color: #FFFFFF80;
    border-radius: 1.25rem;
}

.about-content-headline {
    font-weight: 600;
    font-size: 3.5rem;
    line-height: 4.75rem;
    vertical-align: bottom;
    margin-bottom: 3.125rem;
}

.about-content-text {
    font-weight: 400;
    font-size: 1.25rem;
}

.about-img {
    width: 390px;
    height: 544px;
    position: relative;
    top: 17px;
    right: 28px;
    z-index: 2;
    flex-shrink: 0;
}

.about-img::after {
    content: "";
    position: absolute;
    top: -17px;
    right: -28px;
    width: 100%;
    height: 100%;
    background-color: #9A72F9;
    z-index: -1;
    border-radius: 2.7956rem;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product {
    padding: 20rem 0 8rem;
}

.product-content-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    background-color: #FFFFFF80;
    border-radius: 1.25rem;
    padding: 3.9375rem 8.5625rem 2.625rem 4.8125rem;
}

.product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-content-head {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.625rem;
    vertical-align: bottom;
    margin-bottom: 1.75rem;
}

.product-img {
    flex-shrink: 0;
}

footer {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
    padding-bottom: 3.3125rem;
    background-color: #FFFFFF4D;
}

.footer-header {
    display: flex;
    justify-content: flex-end;
}

.footer-header h2 {
    background: linear-gradient(90deg, rgba(255, 226, 252, 0.1) 0%, rgba(154, 114, 249, 0.8) 100%);
    padding: 1.4375rem 4.3125rem 1.375rem 9.5rem;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin: 0 0 2.875rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.5rem;
    gap: 2.5625rem;
}

.footer-contacts-mail {
    position: relative;
    padding-left: 2.75rem;
    padding-right: 2.6875rem;
    margin-bottom: 2.5rem;
}

.footer-contacts-mail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.875rem;
    height: 1.875rem;
    background-image: url("./img/mail.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.footer-contacts-mail a {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #000000;
}

.footer-contacts-soc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4rem;
    padding-right: 4.3125rem;
}

#to-top {
    position: fixed;
    right: 1rem;
    bottom: -50rem;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 2px solid #DDE1E6;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: .5;
    transition: all .3s;
    z-index: 999;
}

#to-top.show {
    bottom: 1rem;
}

#to-top:hover {
    opacity: 1;
}

#to-top svg {
    fill: var(--header);
    width: 80%;
}

@media (max-width: 1440px) {
    .wrapper {
        max-width: 1272px;
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 1280px) {
    .hero-image {
        width: 550px;
        height: auto;
        right: 1rem;
    }
}

@media (max-width: 1230px) {}

@media (max-width: 1060px) {
    .features-content {
        grid-template-columns: repeat(1, 1fr);
    }

    .about-content-block {
        gap: 5rem;
    }

    .about-img {
        width: 280px;
        height: auto;
    }

    .product {
        padding-top: 2rem;
    }

    .product-content-block {
        padding: 2.5rem 1.25rem;
        gap: 1.25rem;
    }
}

@media (max-width: 840px) {
    .hero-image {
        width: 420px;
        height: auto;
        right: -7rem;
    }
}

@media (max-width: 820px) {
    .about-content-block {
        flex-direction: column;
    }

    .about-img {
        max-width: 320px;
        width: 80%;
        height: auto;
    }

    .product-content-head br {
        display: none;
    }
}

@media (max-width: 770px) {}

@media (max-width: 670px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-contacts-mail {
        padding-right: 0;
    }

    .footer-contacts-soc {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
        gap: 2rem;
    }

    .footer-header h2 {
        width: 100%;
        padding: 1.25rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-image {
        width: 420px;
        height: auto;
        right: -7rem;
        top: 95px;
    }
}

@media (max-width: 560px) {
    .features-content-item {
        padding: 1.25rem;
    }

    .product-content-block {
        flex-direction: column;
        align-items: center;
    }

    .product-content {
        order: 2;
    }

    .product-img {
        order: 1;
    }
}

@media (max-width: 460px) {
    .header-text {
        text-align: right;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 4rem;
    }
}

@media (max-width: 400px) {
    .hero-image {
        top: 72px;
    }
}

@media (max-width: 340px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .hero-image {
        width: 200px;
        top: -5rem;
        right: auto;
        left: 1rem;
    }
}