@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

:root {
    --sky: #050507;
    --accent-2: #d042e3;
}

html {
    background: var(--sky);
}

html, body {
    width: 100%;
    min-width: 100%;
    overflow-x: clip; 
}

body {
    background-color: var(--sky);
    font-family: 'Google Sans', 'Open Sans', 'Roboto', sans-serif;
    margin: 0;
    position: relative;
}

/* Vanity background 1-in-1 */
.bg {
    z-index: 0;
    pointer-events: none;
    background: var(--sky);
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.bg canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
}

.bg .grain {
    opacity: .35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    position: absolute;
    inset: 0;
}

.bg .vignette {
    background: radial-gradient(120% 90% at 50% 10%, #0000 25%, #050507e6 100%);
    position: absolute;
    inset: 0;
}

.navbar,
.container,
.container-m,
.catalog-container {
    position: relative;
    z-index: 1;
}

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

.navbar-left{
    display: flex;
    align-items: center;
    max-width: 15rem;
    transition: opacity 0.35s ease;
}

.logo{
    width: clamp(3.25rem, 4.5vw, 5.85rem);
    height: auto;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.logo:hover {
    transform: scale(1.06) rotate(-2deg);
}

.title{
    font-family: "SoDo Sans SemiBold", Arial, Helvetica, sans-serif;
    color: rgb(225, 225, 225);
    font-size: clamp(0.85rem, 2.5vw, 1.65rem);
    padding: 5px 10px 5px 10px;
    text-transform: uppercase;
}

.navbar-right{
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 1rem;
    margin-right: 1rem;
}

.links{
    display: flex;
    align-items: center;
    gap: 5px;
}

.links a {
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: none;
    color: rgb(225, 225, 225);
    background-color: rgb(34, 34, 39, 0.6);
    padding: 5px 15px;
    border: 1px solid rgb(59, 59, 59);
    z-index: 2;
    
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.channel-link{
    border-radius: 50px 16px 16px 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.channel-link::before{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(208, 66, 227, 0.95);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.channel-link:hover::before{
    width: 300px;
    height: 300px;
}

.profile-link{
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.profile-link span {
    position: relative;
    z-index: 2;
}

.profile-link::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C30,5 40,25 60,15 C80,5 90,25 120,15 L120,28 L0,28 Z' fill='rgba(208, 66, 227, 0.95)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100px 100%;
    
    transform: translateY(100%);
    
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    animation: wave-scroll 2s linear infinite;
}

@keyframes wave-scroll {
    0% {
        background-position-x: 0;
    }
    100%{
        background-position-x: 100px;
    }
}

.profile-link:hover::before{
    transform: translateY(0);
}

.sup-link {
    border-radius: 16px 50px 50px 16px;
    transition: background-color 0.4s ease-out, 
                border-radius 0.25s ease-out, 
                border-color 0.25s ease-out;
}

.sup-link:hover {
    background-color: rgba(208, 66, 227, 0.877);
    border-radius: 50px;
    border-color: transparent;
}


/* container */

.container{
    display: flex;
    margin: 0 auto;
    justify-content: center;
    max-width: 72.85rem;
    width: 100%;
    margin-top: clamp(3.75rem, 10vw, 15rem);
    align-items: center;
}

.title-h{
    color: rgb(225, 225, 225);
    font-size: clamp(1.3rem, 2.2vw, 2.5rem);
}

.title-h span{
    color: rgb(208, 66, 227);
    font-size: clamp(2.2rem, 5vw, 5rem);
}

.description{
    margin-top: 2rem;
    font-size: clamp(1rem, 1.5vw, 2rem);
    color: rgb(110, 110, 110);
    animation: desc 1.7s ease forwards 1s;
    opacity: 0;
}

@keyframes desc {
    0% {
        opacity: 0;
        transform: translateY(50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container-right{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-left: clamp(10rem, 10vw, 17.85rem);
}

.deco-imgs{
    position: relative;
    display: inline-block;
}

.phone{
    display: block;
    position: relative;
    width: clamp(10rem, 15.75vw, 28.45rem);
    height: auto;
    z-index: 20;
}

.custom-fonts{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 93%;
    transform: translateX(3.5%) translateY(-50%);
    animation: cust 1.2s ease forwards;
    opacity: 1;
}

@keyframes cust {
    0% {
        transform: translateX(3.5%) translateY(80%) scale(0.9);
        opacity: 0;
    }
    100%{
        transform: translateX(3.5%) translateY(-50%) scale(1);
        opacity: 1;
    }
}

.outline{
    position: absolute;
    top: 40%;
    left: 0;
    width: clamp(14.5rem, 15.25vw, 19.75rem);
    transform: rotate(27deg) translateX(-45%);
    animation: outline 1.2s ease forwards;
}

@keyframes outline {
    0%{
        opacity: 0;
        transform: translateX(-15%) rotate(27deg) scale(0.9);
    }
    100%{
        opacity: 1;
        transform: translateX(-45%) rotate(27deg) scale(1);
        opacity: 1;
    }
}

.md3-ava{
    position: absolute;
    top: 35%;
    left: 0;
    width: clamp(14.5rem, 14.25vw, 19.75rem);
    transform: rotate(-23deg) translateX(50%);
    z-index: 40;
    animation: md3ava 1.5s ease forwards;
}

@keyframes md3ava {
    0% {
        opacity: 0;
        transform: rotate(-23deg) translateX(5%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: rotate(-23deg) translateX(50%) scale(1);
    }
}

.catalog-container{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.catalog-title{
    color: rgb(225, 225, 225);
    font-weight: 700;
    font-size: clamp(3.75rem, 4.5vw, 5rem);
    margin: 0 auto 2.5rem auto;
    text-align: center;

    /* анимация */
    opacity: 0;
    transform: translateY(3rem) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-title.visible{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.carousel-wrapper{
    position: relative;
    width: 100%;
    max-width: 72.85rem;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel{
    display: flex;
    gap: 24px;
    overflow-x: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 10px; 
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}


.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 clamp(240px, 22vw, 320px);
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    border: none;

    background: #ffffff;

    contain: layout paint;
    isolation: isolate;

    transform: translate3d(0, 0, 0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.carousel-item:hover{
    border: 1px solid rgba(208, 66, 227, 0.877);
}

.carousel-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    object-position: top center;
    transform-origin: center center;

    will-change: transform;
    transform: scale3d(1, 1, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    outline: 1px solid transparent;

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    pointer-events: none;
}

.carousel-item:hover .carousel-img {
    transform: scale3d(1.03, 1.03, 1);
}

.carousel-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(34, 34, 39, 0.9);
    color: rgb(225, 225, 225);
    border: 1px solid rgb(59, 59, 59);
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(208, 66, 227, 0.95);
    border-color: rgba(208, 66, 227, 0.95);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-btn.prev {
    left: -40px;
}

.carousel-btn.next {
    right: -40px;
}

.mobile{
    display: none !important;
}

.scrollprogress{
    display: none;
}

.carousel-dots {
    display: none; /* carousel */
}

@media (max-width: 1024px) {
    .links.desktop {
        display: none !important;
    }
    .burger.mobile {
        display: flex !important;
    }
    .menu.mobile {
        display: flex;
    }
}

@media (max-width: 760px) {
    .desktop{
        display: none !important;
    }
    .mobile{
        display: flex !important;
    }
    .title{
        font-size: 1.2rem;
    }
    .navbar{
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        padding-top: env(safe-area-inset-top, 0px);
        z-index: 10000;
        background-color: rgba(5, 5, 7, 0.6);

        transition: background-color 0.35s ease;
    }
    .scrollprogress {
        display: block;
        position: fixed !important;
        top: var(--nav-h, 60px) !important;
        left: 0;
        height: 3px;
        width: 0%;
        background: rgba(219, 143, 255, 0.86);
        z-index: 100005;
        pointer-events: none;
        box-shadow: 0 0 8px rgba(208, 66, 227, 0.6);
        opacity: 1;
        transition: width 0.05s ease-out, opacity 0.35s ease;
    }
    .carousel-dots{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 1.5rem;
    }

    .catalog-container {
        margin-top: -7rem;
        margin-bottom: 4rem;
        opacity: 0;
        transform: translateY(50px) scale(0.96);
        will-change: opacity, transform;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .catalog-container.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    .catalog-container .catalog-title {
        opacity: 1 !important;
        transform: none !important;
    }
    .carousel-btn {
        display: flex;
    }
    .carousel-btn.prev{
        left: 4px;
    }
    .carousel-btn.next{
        right: 4px;
    }
    .carousel {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding: 20px 60px !important;
        scroll-padding-inline: 60px !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
    }
    .carousel::-webkit-scrollbar {
        display: none;
    }
    .carousel-item {
        scroll-snap-align: center;
    }
}

body.menu-open .scrollprogress {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Контейнер бургера */
.burger {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Общие стили для обеих иконок: центрируем их строго в одной точке */
.openbtn,
.closebtn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.openbtn {
    color: rgb(225, 225, 225);
    opacity: 1;
    pointer-events: auto;
    transform: rotate(0deg) scale(1);
}

.openbtn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: rotate(90deg) scale(0.7);
}

.closebtn {
    color: rgb(173, 173, 173);
    opacity: 0;
    pointer-events: none;
    transform: rotate(0deg) scale(0.7);
    z-index: 99999;
}

.closebtn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: rotate(-90deg) scale(1);
}

.menu{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;


    transform: translateX(100vw);
    transition: transform 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    visibility: hidden;
}

.menu.visible {
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.links-m{
    display: flex;
    flex-direction: column;
    margin-top: 20%;
}

.moblink{
    color: rgb(173, 173, 173);
    font-size: 1.5rem;
    text-align: left;
    text-decoration: none;
    padding: 20px 5% 20px 5%;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgb(73, 73, 73);
}

.moblink:first-child{
    border-top: 1px solid rgb(73, 73, 73);
}

.moblink:hover{
    color: rgba(219, 143, 255, 0.86);
}

body.menu-open .navbar {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.menu-open .navbar-left {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}


/* mobile highlight */

.container-m{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    height: 200vh;
}

.sticky-view{
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.container-title{
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    align-items: flex-start;
    overflow-x: hidden;
    scrollbar-width: none;
}

.container-title::-webkit-scrollbar{
    display: none;
}

.title-h-m,
.description-m{
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0;
    padding: calc(var(--nav-h, 60px) + 1.5rem) 6% 0;
}

.title-h-m{
    color: rgb(225, 225, 225);
    font-weight: 600;
    font-size: clamp(1.1rem, 5.2vw, 1.5rem);
    line-height: 1.25;
}

.title-h-m span{
    color: rgb(208, 66, 227);
    font-size: clamp(1.7rem, 9vw, 2.4rem);
}

.description-m{
    color: rgb(110, 110, 110);
    font-size: clamp(0.85rem, 4vw, 1.05rem);
    line-height: 1.5;
    text-align: left;
}

/* deco imgs */

.deco-imgs-m{
    position: relative;
    align-self: center;
    margin-top: 4rem;
}

.phone-m{
    position: relative;
    display: block;
    width: clamp(10.5rem, 12.25vw, 20.85rem);
    height: auto;
    z-index: 20;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.custom-fonts-m,
.outline-m,
.md3-ava-m{
    position: absolute;
    left: 0;
    opacity: 0;
    will-change: transform, opacity;
}

.custom-fonts-m{
    top: 0;
    z-index: 1;
    width: 93%;
    transform: translateX(3.5%) translateY(80%) scale(0.9);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.outline-m{
    top: 40%;
    width: 100%;
    transform: translateX(-15%) rotate(27deg) scale(0.9);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.md3-ava-m{
    top: 35%;
    width: 100%;
    transform: rotate(-23deg) translateX(5%) scale(0.9);
    z-index: 40;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.deco-imgs-m.show .phone-m{
    opacity: 1;
    transform: scale(1);
}

.deco-imgs-m.show .custom-fonts-m{
    opacity: 1;
    transform: translateX(3.5%) translateY(-50%) scale(1);
    transition-delay: 0.08s;
}

.deco-imgs-m.show .outline-m{
    opacity: 1;
    transform: translateX(-45%) rotate(27deg) scale(1);
    transition-delay: 0.14s;
}

.deco-imgs-m.show .md3-ava-m{
    opacity: 1;
    transform: rotate(-23deg) translateX(50%) scale(1);
    transition-delay: 0.2s;
}

/* carousel */

.dot{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgb(55, 55, 60);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, backgrond-color 0.3s ease, border-radius 0.3s ease;
}

.dot:hover{
    background-color: rgba(208, 66, 227, 0.6);
}

.dot.active{
    width: 26px;
    border-radius: 10px;
    background-color: rgb(208, 66, 227);
    box-shadow: 0 0 10px rgba(208, 66, 227, 0.45);
}

