/*
* fonts
*/
@font-face {
    font-family: "Harmony OS Sans";
    src: local("Harmony OS Sans"), url("../fonts/HarmonyOS_Sans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: "Harmony OS Sans";
    src: local("Harmony OS Sans"), url("../fonts/HarmonyOS_Sans_Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: "Harmony OS Sans";
    src: local("Harmony OS Sans"), url("../fonts/HarmonyOS_Sans_Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: auto;
}


/*
* general
*/
* {
    font-family: 'Harmony OS Sans', sans-serif;
    box-sizing: border-box;
}

html {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    min-width: 360px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #15161B;
    color: #EDEDED;
    position: relative;
    margin: 0 auto;
}

body::after{
    position:absolute; width:0; height:0; overflow:hidden; z-index:-1;
    url("../images/product/two/phone.webp"),
    url("../images/product/three/phone.webp"),
    url("../images/product/two/glow.svg"),
    url("../images/product/two/three.svg")
}

.page__content {
    margin: 0 auto;
    position: relative;
    min-height: 100dvh;
    padding: 0 0 4rem;
    overflow: hidden;
}

.page.--loading {
    filter: blur(2px);
}

.page__bg {
    position: absolute;
    top: 0;
    background: url("../images/objects/texture.webp");
    left: 0;
    bottom: 0;
    width: 100%;
    right: 0;
    overflow: hidden;
    mix-blend-mode: soft-light;
    opacity: 0.3;
}

img, iframe {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

ul {
    padding: 0 0 0 1.5rem;
}

strong {
    font-weight: 600;
}

p, blockquote, ul, ol {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1470px;
    margin: 0 auto;
}



/*
* button
*/
.button {
    display: inline-flex;
    align-items: center;
    font-size: 0.83rem;
    gap: 0.5rem;
    color: #24272A;
    line-height: normal;
    border-radius: 30px;
    background: #fff;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid;
}

.button--gradient {
    background: linear-gradient(102.06deg, #9D23C6 0%, #FFFFFF 19.79%, #9221D3 75%, #FFFFFF 100%);
    box-shadow: 0px 0px 20px 0px #7D008440;
    border: none;
    background-position: -50%;
    transition: 0.6s;
    padding: 2px;
    color: #fff;
}
.button--gradient .button__content {
    background: #333333;
    padding: 0.4rem 0.7rem;
    border-radius: 28px;
}

.button--gradient:hover {
    background: #9D23C6;
}
.button--gradient:hover .button__content {
    transition: 0.6s;
    background: #9D23C6;
}

::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: #17191e;
}
::-webkit-scrollbar-thumb {
    background-color: #2D2D2D;
    border-radius: 20px;
}

/*
* header
*/
.header {
    position: relative;
    z-index: 3;
}
.header__container {
    display: flex;
    padding-top: 1rem;
    padding-bottom: 1rem;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header__logo {
    line-height: 0;
}

.header__logo img {
    height: 3.1rem;
}

.header__back img {
    width: 2.3rem;
    height: 2.3rem;
}

.header__logo, .header__back {
    transition: 0.3s;
}

.header__logo:hover, .header__back:hover {
    transition: 0.3s;
    opacity: 0.7;
}

.header__back {
    position: absolute;
    left: 2rem;
    display: flex;
    line-height: 1;
    font-size: 0.7rem;
    align-items: center;
    gap: 0.5rem;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes circles {
    0% {
        background-size: 20%;
    }
    100% {
        background-size: 90%;
    }
}


@keyframes stars {
    0% {
        background-position: 0 0;
    }
    99.9% {
        background-position: -100% 0;
    }
    100% {
        background-position: 0 0;
    }
}


.main {
    height: 43rem;
    position: relative;
    max-width: 1440px;
    margin: -5rem auto 0 auto;
    background: url("../images/objects/stars.png");
    display: flex;
    align-items: center;
    background-size: 110%;
    justify-content: center;
    animation: stars 12s infinite linear;
}

.main__lines {
    position: absolute;
    top: 0;
    left: 0;
    transition: left, top 0.8s;
    right: 0;
    bottom: 0;
    background: url("../images/objects/circles.svg") no-repeat center;
    animation: circles 2s ease-in-out;
    display: flex;
    background-size: 90%;
    align-items: center;
    justify-content: center;

}

.main__lines-gradient {
    width: 70rem;
    height: 70rem;
    position: absolute;
    background: url("../images/product/one/glow.svg") no-repeat center;
    background-size: contain;
}

.main__product {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50rem;
    max-width: 100%;
}

.main__product-image {
    height: 30rem;
    width: 26rem;
    transition: opacity 0.3s, width, height 0.8s;
    position: relative;
    z-index: 1;
    opacity: 1;
    background: url("../images/product/one/phone.webp") no-repeat center / contain;
}

.main--two .main__product-image {
    background: url("../images/product/two/phone.webp") no-repeat center / contain;
}

.main--three .main__product-image {
    background: url("../images/product/three/phone.webp") no-repeat center / contain;
}

.main--two .main__lines-gradient {
    background: url("../images/product/two/glow.svg") no-repeat center;
}

.main--three .main__lines-gradient {
    background: url("../images/product/three/glow.svg") no-repeat center;
}

.main--loading .main__product-image {
    opacity: 0.8;
    transition: opacity, width, height 0.3s;
}

.main__content-one, .main__content-two {
    display: none;
}

.main__title {
    font-size: 2.6rem;
    text-align: center;
    position: absolute;
    top: 35%;
    z-index: 2;
    line-height: 1.4;
    left: 0;
    right: 0;
}
.image {
    line-height: 0;
}
.main__content p, .main__content .gallery, .main__content .image, .main__content ul {
    margin-bottom: 1.5rem;
}

.main__content-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.main__title span {
    font-size: 1.6rem;
    display: block;
}

.page--preview .page__content {
    overflow: visible;
}
.page--preview .selection {
    display: none;
}

.page--preview .main {
    height: auto;
}
.page--preview .main__product {
    flex-basis: 25rem;
    width: unset;
}
.page--preview .main__title {
    display: none;
}
.page--preview .main__content {
    flex-basis: 25%;
    padding-top: 5rem;
    flex-grow: 1;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}
.page--preview-one .main__content-one {
    display: block;
}
.page--preview-two .main__content-two {
    display: block;
}
.page--preview .main__product-image, .page--preview  .main__lines-gradient {
    display: none;
}
.page--preview .main__lines {
    top: -13rem;
    width: 50rem;
    height: 50rem;
    left: -29rem;
}
.selection {
    text-align: center;
    margin-top: -7rem;
}

.selection__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.selection__container {
    width: 44rem;
}
.selection__variants {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.selection__variants-item {
    line-height: 0;
    position: relative;
    cursor: pointer;
}

.selection__variants-item-gradient {
    padding: 2px;
    border-radius: 26px;
    overflow: hidden;
    background: #2D2D2D;
    transition: 0.6s background;
    background-position: -200px;
}

.selection__variants-item:hover .selection__variants-item-gradient {
    transition: 0.6s;
    background: linear-gradient(162.85deg, #FFFFFF 0%, #2D2D2D 15.77%, #FFFFFF 64.9%, #2D2D2D 100%);
    background-position: 0px;
}

.selection__variants-item-image {
    border-radius: 23px;
}
.selection__variants-item-title {
    font-size: 1.4rem;
    padding: 0 1rem;
    margin: 0;
}
.selection__variants-item-content {
    border-radius: 26px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    line-height: 1.4;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    line-height: 0;
}
.gallery__left {
    height: 12rem;
}

.gallery__image {
    border-radius: 26px;
    overflow: hidden;
}
.gallery__image, .gallery__image img {
    width: 100%;
    height: 100%;

}
.gallery__image img {
    object-fit: cover;
}
.gallery__right {
    height: 12rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gallery__right .gallery__image {
    flex-basis: 50%;
}

/*
* Media queries
*/
@media (max-width: 1600px) {
    html {
        font-size: 20px;
    }
    .container {
        max-width: 1160px;
    }
}

@media (max-width: 1440px) {
    .page--preview .main__lines {
        left: -32rem;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 18px;
    }
    .container {
        max-width: 940px;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 18px;
    }
    .container {
        max-width: 720px;
    }
    .gallery {
        display: flex;
        flex-direction: column;
    }
    .gallery__right, .gallery__left {
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
        width: 100%;
    }
    .page--preview .main__container {
        flex-direction: column;
    }
    .page--preview .page__content {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .header__back {
        position: unset;
    }
    .header__container {
        justify-content: space-between;
    }
    html {
        font-size: 16px;
    }
    .main {
        margin-top: -4rem;
        height: auto;
        animation: unset;
    }
    .main__title {
        font-size: 2.1rem;
        top: 90%;
    }
    .main__title span {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }
    .selection__variants-item-text {
        font-size: 1.1rem;
    }
    .selection__variants-item-title {
        font-size: 1.4rem;
    }
    .selection {
        margin-top: 8rem;
    }
    .main__lines {
        margin: 0 -1.5rem;
    }
    .main__content-actions a {
        font-size: 0.9rem;
    }
    .selection__variants-item-action .button {
        font-size: 1.1rem;
    }

    .page--preview .main__lines {

    }
}
