@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 !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

: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 {
    position: relative;
    z-index: 1;
}

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

.navbar-left{
    display: flex;
    align-items: center;
    max-width: 25rem;
    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);
}

.main-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;
}

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

.mobile{
    display: none !important;
}

/* burger */
.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;
}

.container {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
}

.container-title{
    display: flex;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.title-h {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.25;
    margin: 0;
    color: rgb(225, 225, 225);
    text-align: right;
    animation: titleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes titleIn {
    0% {
        transform: translateX(-35px) scale(0.96);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.title-h span{
    font-size: clamp(2rem, 8.45vw, 3.05rem);
    color: rgb(208, 66, 227);
    text-shadow: 0 0 25px rgba(208, 66, 227, 0.35);
}

.description {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.45;
    margin: 0;
    color: rgb(170, 170, 175);
    text-align: left;
    position: relative;
    padding: 0.75rem 0 0.75rem 1.75rem;
    animation: descriptionIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes descriptionIn {
    0% {
        transform: translateX(35px) scale(0.96);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5%;
    height: 90%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(208, 66, 227, 0.1), rgba(208, 66, 227, 0.85) 50%, rgba(255, 255, 255, 0.15) 100%);
    transform: scaleY(0);
    transform-origin: center;
    animation: dividerGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

@keyframes dividerGrow {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.tabs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto 3.5rem auto;
    z-index: 2;
    animation: tabsFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes tabsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tabs-list {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(22, 22, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9999px;
    padding: 6px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    gap: 4px;
}

.tab-indicator {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 1;
    will-change: transform, width;
}

.tab-trigger {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 28px;
    color: rgba(215, 215, 222, 0.65);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: color 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tab-trigger,
.tab-trigger:focus,
.tab-trigger:focus-visible,
.tab-trigger:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.tab-trigger:hover {
    color: rgba(255, 255, 255, 0.95);
}

.tab-trigger.active {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tabs-viewport {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
}

.tabs-track {
    display: flex;
    width: 300%;
    transform: translateX(0%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.tab-panel {
    width: 33.333333%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    opacity: 0.35;
    filter: blur(4px);
    transition: opacity 0.4s ease, filter 0.4s ease;
    pointer-events: none;
}

.tab-panel.active {
    opacity: 1;
    filter: blur(0px);
    pointer-events: auto;
}

.cards-pair {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    perspective: 1200px;
}

.card {
    position: relative;
    width: clamp(17.5rem, 26vw, 31rem);
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transform-origin: center center;
    transition: transform 0.45s cubic-bezier(0.2, 0, 0, 1),
                box-shadow 0.45s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform, box-shadow;
}

.card:active,
.card:focus,
.card:focus-visible,
.card-left:active,
.card-right:active,
.card-wave:active {
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.card-left {
    transform: rotate(-3.5deg) scale(0.92);
    margin-right: -45px;
    z-index: 1;
    opacity: 0.92;
}

.card-right {
    transform: rotate(3deg) scale(1.06);
    z-index: 2;
    opacity: 1;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.65);
}

.card-right.card-wave {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
    border-radius: 40px;
}

.card-right.card-wave .card-wavy-img {
    visibility: hidden;
    opacity: 0;
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.card-wave-canvas {
    position: absolute;
    top: -12px;
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    pointer-events: none;
    z-index: 5;
    display: block;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.card-left:hover {
    z-index: 10 !important;
    transform: translateY(-8px) scale(0.98) rotate(0deg) !important;
    opacity: 1 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 
                0 0 36px rgba(255, 255, 255, 0.25) !important;
}

.card-right:hover {
    z-index: 10 !important;
    transform: translateY(-10px) scale(1.11) rotate(0deg) !important;
    box-shadow: 0 34px 68px rgba(0, 0, 0, 0.75), 
                0 0 40px rgba(255, 255, 255, 0.3) !important;
}

.card-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

@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;
    }

    .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container-title {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 5.5rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1.25rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    .title-h {
        text-align: center !important;
        font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
        margin: 0 !important;
    }

    .description {
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: clamp(0.95rem, 3.8vw, 1.15rem) !important;
    }

    .description::before {
        display: none !important;
    }

    .tabs-container {
        width: 100% !important;
        margin-top: 1rem !important;
        margin-bottom: 3rem !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
    }

    .tabs-list {
        padding: 4px !important;
        max-width: 95vw !important;
    }

    .tab-trigger {
        padding: 8px 18px !important;
        font-size: 0.95rem !important;
    }

    .cards-pair,
    .cards-pair * {
        pointer-events: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    }

    .cards-pair {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 1.25rem 0.5rem 2.75rem 0.5rem !important;
        perspective: 1000px !important;
    }

    .card {
        width: 74vw !important;
        max-width: 310px !important;
        border-radius: 20px !important;
        cursor: default !important;
        background: transparent !important;
        background-color: transparent !important;
        outline: none !important;
        border: 4px solid rgba(255, 255, 255, 0.6) !important;
        transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1),
                    box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1) !important;
    }

    /* Карточка с плагином (сверху, поверх нижней) */
    .card-right {
        order: 1 !important;
        z-index: 3 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        opacity: 1 !important;
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65) !important;
    }

    .card-right.card-wave {
        border: none !important;
        background: transparent !important;
        background-color: transparent !important;
        filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.6));
    }

    /* Карточка без плагина (снизу, наезжает под карточку с плагином) */
    .card-left {
        order: 2 !important;
        z-index: 1 !important;
        margin-right: 0 !important;
        margin-top: -38px !important;
        opacity: 0.95 !important;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5) !important;
    }

    /* Наклоны карточек для секций 1 («Профиль») и 3 («Канал») — одинаковый стиль */
    #panel-profile .card-right,
    #panel-channel .card-right {
        transform: rotate(-3deg) scale(1) !important;
    }

    #panel-profile .card-left,
    #panel-channel .card-left {
        transform: rotate(2.5deg) scale(0.96) !important;
    }

    /* Наклоны карточек для секции 2 («Группа») — альтернативный/зеркальный стиль */
    #panel-group .card-right {
        transform: rotate(3deg) scale(1) !important;
    }

    #panel-group .card-left {
        transform: rotate(-2.5deg) scale(0.96) !important;
    }
}
