:root{
    --blue: #5234FF;
    --grey: #ffffff20;
}

@font-face {
    font-family: 'Oddval';
    src: url(Oddval-SemiBold.ttf);
}


body{
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    background: #000000;
    color: white;
    font-size: 18px;
}

html{
    overflow-x: hidden;
}

a, button{
    all: unset;
    cursor: pointer;
}

p{
    padding: 0;
    margin: 0;
    font-family: serif;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

input[type="text"]{
    all: unset;
}

.wrapper{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,h2,h3,h4,h5,h6{
    padding: 0;
    margin: 0;
    font-family: 'Oddval';
    line-height: 90%;
}

.row{
    display: flex;
    flex-direction: row;
}

.col{
    display: flex;
    flex-direction: column;
}

.center{
    align-items: center;
}

.g8{
    gap: 8px;
}
.g12{
    gap: 12px;
}
.g24{
    gap: 24px;
}
.g36{
    gap: 36px;
}
.g48{
    gap: 48px;
}
.g96{
    gap: 96px;
}

.jcsb{
    justify-content: space-between;
}

.card{
    background: var(--grey);
    transition: all ease .15s;
    backdrop-filter: blur(36px);
    padding: 12px 24px 20px 12px;
    width: 100%;
    box-sizing: border-box;
}

.div__bg{
    background: var(--grey);
    transition: all ease .15s;
    backdrop-filter: blur(36px);
    padding: 24px 12px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.div__bg img{
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    aspect-ratio: 1;
}

.div__bg:hover{
    background: var(--blue);
}

.div__bg .btn__small{
    width: 100%;
    position: absolute;
    bottom: -54px;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    font-size: 14px;
    justify-content: center;
    align-items: center;
}

.div__bg .btn__small:hover{
    transform: translateX(-50%) scale(1.05);
}

h1{
    font-size: 162px;
    text-align: center;
    line-height: 90%;
    background-image: linear-gradient(to right, #ffffff, #ffffff9d, #ffffff);
    color: transparent;
    background-clip: text;
}

.card:hover{
    background: var(--blue);
}

.event__content{
    padding: 48px;
    position: relative;
    background: url(../img/primehall.png) right bottom no-repeat;
    background-color: var(--grey);
    background-size: contain;
    height: 540px;
    background-size: 70%;
}

.svg__bg{
    padding: 15px;
    background: var(--blue);
    border-radius: 12px;
    box-sizing: border-box;
}

.datetime{
    position: absolute;
    bottom: 36px;
    left: 36px;
}

.datetime p{
    font-size: 64px !important;
    font-family: 'Oddval' !important;

}


.blue{
    color: var(--blue);
}

section.white{
    background: white;
    color: rgb(33, 33, 33);
}

.pack__img{
    width: 520px;
    transform: translateY(-10%);
}

.mexc__about, .tags__img{
    width: 50%;
    border-top: 1px var(--blue) solid;
    border-bottom: 1px var(--blue) solid;
}

.mexc__content{
    height: fit-content;
    background: var(--blue);
    max-height: 303px;
    position: relative;
    padding: 12px 0;
}

.grid-3{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-4{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    row-gap: 72px !important;
}

.mexc__about{
    color: white;
    padding-left: 96px;
    padding-right: 36px;
}

.mexc__coin{
    position: absolute;
    top: 50%;
    left: 47%;
    width: 300px;
    transform: translateX(-50%) translateY(-50%);
}

h2{
    font-size: 48px;
}

h3{
    font-size: 24px;
}

section{
    margin-top: 96px;
}

.welcome{
    margin-top: 0;
    padding-top: 164px;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff10;
    backdrop-filter: blur(36px);
    width: 100%;
    z-index: 1000;
}

.header__content{
    width: 100%;
    padding: 18px 0;
}

.btn{
    padding: 24px 36px;
    background: var(--blue);
    color: white;
    transition: all ease .15s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 18px;
    font-family: 'Oddval';
}

.btn:hover{
    transform: scale(1.05);
    background: #3f26c8;
}

.btn::before{
    background-image: url(../img/arrow.svg);
    background-size: 16px 16px;
    display: inline-block;
    width: 16px;
    height: 16px;
    content: "";
}

.btn__small{
    padding: 12px;
    background: var(--blue);
    color: white;
    transition: all ease .15s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 18px;
    font-family: 'Oddval';
}

.btn__small:hover{
    transform: scale(1.05);
    background: #3f26c8;
}

.btn__small::before{
    background-image: url(../img/arrow.svg);
    background-size: 16px 16px;
    display: inline-block;
    width: 16px;
    height: 16px;
    content: "";
}

.jcc{
    justify-content: center;
}

.general{
    background: var(--blue);
    padding: 0;
}

.mexc__logo{
    width: 300px;
}

.timeline__set{
    display: flex;
}

/* Общие стили для контейнера */
.timeline-container {
    padding-bottom: 24px;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--grey); /* Для Firefox */
}

/* Для кастомного скроллбара в браузерах WebKit (Chrome, Safari) */
.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: var(--grey);
}

.timeline-container::-webkit-scrollbar-thumb {
    background-color: var(--blue);
    border-radius: 4px;
}

/* Стили для самого таймлайна */
.timeline {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Пространство между сетами */
    flex-wrap: nowrap; /* Нет переноса на новую строку */
}

/* Сет */
.timeline__set {
    display: flex;
    gap: 20px; /* Пространство между таймштампами */
}

/* Таймштамп */
.timestamp {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
    height: 175px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    background: var(--grey);
    flex-shrink: 0; /* Запрещаем сжижение */
}

/* Стиль текста */
.timestamp p {
    font-family: 'Oddval', sans-serif !important;
    text-align: center;
    line-height: 90%;
}

.timestamp .speaker-topic{
    font-size: 12px;
    font-family: 'Roboto' !important;
}

/* Время */
.time {
    color: white !important;
    position: absolute;
    right: 0;
    top: 0;
    padding: 12px;
    background: var(--blue);
    border-radius: 0 0 0 8px; /* Скруглим только нижний левый угол */
}

/* Тег */
.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    opacity: .2;
}

.footer{
    margin-top: 96px;
    padding: 36px 0;
    background: var(--blue);
    color: white;
}

.footer__content{
    width: 100%;
}

.form{
    background: white;
    padding: 24px;
    color: black;
    max-width: 640px;
    box-sizing: border-box;
    transform: translateY(-20%);
    position: relative;
}

input[type="text"], select{
    width: 100%;
    background: #00000020;
    font-family: 'Oddval';
    padding: 24px;
    box-sizing: border-box;
    border: none;
}

select{
    background: var(--blue);
    color: white;
}

.menu a, .footer a{
    font-family: 'Oddval';
}

.menu a{
    opacity: 0.5;
    transition: all ease .15s;
}

.menu a:hover{
    opacity: 1;
}

.grid-6{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
}

.partners .grid-6 .grid__item{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--grey);
    padding: 24px;
    box-sizing: border-box;
    transition: all ease .15s;
}

.partners .grid-6 .grid__item:hover{
    transform: scale(1.05);
}

.grid__item img{
    width: 100%;
    max-width: 120px;
}

.about__img{
    animation-name: rotation;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

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


@media screen and (max-width: 1240px) {
    .wrapper{
        max-width: 1040px;
    }

    h2{
        font-size: 36px;
    }

    h1{
        font-size: 92px;
    }
}


@media screen and (max-width: 1060px) {
    .wrapper{
        max-width: 920px;
    }

    .pack__img{
        width: 100%;
        max-width: 420px;
    }

    p{
        font-size: 14px;
    }

    .datetime {
        flex-direction: column;
        display: flex;
        text-align: right;
        position: absolute;
        top: 36px;
        right: 36px;
        line-height: 300%;
    }

    .event__content{
        height: 460px;
    }
}


@media screen and (max-width: 940px) {
    .wrapper{
        max-width: 750px;
    }

    .tags__img{
        display: none;
    }

    .mexc__coin{
        left: unset;
        transform: unset;
        transform: translateY(-50%);
        right: 10px;
    }

    h3{
        font-size: 18px;
    }

    .svg__bg{
        padding: 8px;
    }

    .menu{
        display: none;
    }

    .card .row.center.jcsb img{
        display: none;
    }

    .grid-6{
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-4{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
}


@media screen and (max-width: 770px) {
    .wrapper{
        max-width: 520px;
    }

    .grid-3{
        grid-template-columns: repeat(1, 1fr);
    }

    h1{
        font-size: 54px;
    }

    .card .row.center.jcsb img{
        display: flex;
    }

    .mexc__coin{
        width: 200px;
        right: 50%;
        top: -110px;
        transform: unset;
        transform: translateX(50%);
    }

    .mexc__content{
        flex-direction: column;
        max-height: fit-content;
        margin-top: 180px;
    }

    .mexc__about{
        margin-top: 72px;
        width: 100%;
        max-width: 520px;
        box-sizing: border-box;
        padding: 0;
    }

    h2{
        text-align: center;
    }

    .datetime{
        position: unset;
        transform: translateY(-40%);
    }

    .event__content{
        background-size: contain;
        padding: 32px;
        align-items: center;
    }

    .datetime p{
        font-size: 36px !important;
        text-align: center;
    }

    .giveaway__content{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .giveaway__content .col.g24{
        align-items: center;
        justify-content: center;
        padding-bottom: 24px;
        text-align: center;
    }

    .general{
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .general .col.g24{
        align-items: center;
    }

    .grid-6{
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__content{
        flex-direction: column-reverse;
    }

    .footer .wrapper .row.center.jcsb{
        flex-direction: column;
        margin-top: 36px;
        gap: 12px;
    }

    .timeline__set{
        flex-direction: column;
    }

    .about__content{
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .about__text{
        align-items: center;
        text-align: center;
    }
}


@media screen and (max-width: 540px) {
    .wrapper{
        max-width: 360px;
    }

    .logo__link{
        overflow: hidden;
        max-width: 50px;
    }

    .mexc__about{
        max-width: 360px;
        align-items: center;
        text-align: center;
    }

    .grid-4{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 365px) {
    .wrapper{
        max-width: 300px;
    }

    h1{
        font-size: 42px;
    }
}



   /* Стили для поп-апа */
.popup {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}


.popup-content {
    color: black;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 540px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#promo-message {
    margin-top: 10px;
    font-size: 14px;
    color: red;
}



label{
    font-family: 'Oddval';
    font-size: 14px;
}


.div__bg .soldout{
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    max-width: unset !important;
    max-height: unset !important;
    aspect-ratio: unset !important;
    z-index: 99 !important;
}