@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');
body {
    font-family: "Poppins", serif;
    background: #1E1450;
    color: #fff;
    overflow-x: hidden;
}

.header {
    background: #463296;
    position: fixed;
    z-index: 1;
    width: 100%;
    padding: 0 10px 0 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    top: 0;
}

.header-btns,
.sidebar-item-burger .sidebar-link,
.sidebar-item:hover .onhover {
    display: flex;
}

.logo-link {
    display: block;
}

.logo-img {
    width: 110px;
}

.btn {
    font-family: "Roboto", serif;
    border-radius: 8px;
    border: 1px solid #FFDC41;
    background: #FFDC41;
    color: #1E1E28;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.header-btns .btn {
    width: 88px;
    height: 44px;
    font-size: 12px;
    line-height: 16px;
}

.btn.header-btn_signin {
    border-color: #BEB9FF;
    color: #BEB9FF;
    background-color: transparent;
    margin-right: 2px;
}

.btn:hover {
    background: #FFE673;
    color: #1E1E28;
}

.btn:active,
.btn:focus {
    background: #F5B940;
    border-color: #F5B940;
    color: #1E1E28;
}

.header-btn_signin:hover {
    border-color: #DCDCFF;
    background: transparent;
    color: #DCDCFF;
}

.header-btn_signin:focus {
    border-color: #7864FA;
    background: transparent;
    color: #7864FA;
}

.sidebar {
    position: fixed;
    background: #372873;
    width: 60px;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    padding: 3px;
}

.sidebar-menu {
    text-align: center;
    padding-top: 12px;
}

.sidebar-item {
    margin-bottom: 12px;
    padding: 2px 0;
    position: relative;
}

.sidebar-item-current {
    border-radius: 10px;
}

.sidebar-item-burger {
    background-color: #16103d;
    border-radius: 8px;
    transition: .3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    margin: 0 auto 24px;
    justify-content: center;
    align-items: center;
}

.sidebar-item-chat img {
    width: 24px;
    height: 24px;
}

.sidebar-item-pwa {
    margin-top: 16px;
    border-radius: 10px;
}

.sidebar-item img {
    filter: grayscale(1) contrast(0);
    opacity: .8;
}

.sidebar-item-pwa img {
    height: 34px;
    filter: unset;
    opacity: 1;
}

.sidebar-item-pwa:hover,
.sidebar-item-current:hover {
    background-color: rgba(190, 135, 255, .5);
}

.sidebar-item:hover img {
    filter: unset;
    opacity: 1;
}

.sidebar-item-current img {
    width: 38px;
    height: 38px;
    filter: unset;
    opacity: 1;
}

.sidebar-item-burger img {
    width: 24px;
    height: 20px;
    opacity: 1;
    filter: unset;
}

.opened {
    width: 255px;
}

.opened .sidebar-menu {
    padding-top: 66px;
}

.opened .white-burger,
.opened .sidebar-item:hover .onhover,
.mob-burger,
.sidebar .hidden,
#sidebar-mob,
.sidebar .missions-link.hidden {
    display: none;
}

.opened .sidebar-item-burger {
    position: absolute;
    right: 0;
    top: 20px;
    margin: 0;
    border-radius: 10px 0 0 10px;
}

.header.opened-sidebar {
    padding-left: 271px;
}

.main.opened-sidebar {
    padding-left: 255px;
}

.opened .sidebar-item-current:hover {
    background-color: transparent;
}

.missions-block {
    display: flex;
    flex-wrap: wrap;
    padding: 0 14px;
    margin-bottom: 16px;
}

.missions-block a {
    position: relative;
    display: flex;
    flex: 48% 1 0;
    align-items: center;
    max-width: 104px;
    height: 40px;
    padding: 0 10px;
    cursor: pointer;
    background: linear-gradient(130deg, #715cc6, #463296 60%, #463296 74%, #463296 85%, #463296 98%);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    color: #fff;
    font-family: "Roboto", serif;
}

.opened .sidebar-link {
    font-family: "Roboto", serif;
    font-weight: 400;
    line-height: 24px;
    color: #fff;
    font-size: 16px;
    display: flex;
    min-height: 40px;
    padding: 12px 14px;
    margin-left: 12px;
}

.opened .sidebar-item img {
    margin-right: 12px;
}

.opened .sidebar-item {
    padding: 0;
    margin-bottom: 0;
}

.missions-block a img {
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

.opened .missions-link {
    margin: 0 6px 4px 0;
}

.onhover {
    font-family: "Roboto", serif;
    display: none;
    position: absolute;
    left: 80px;
    height: 24px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #fff;
    background: #7579f4;
    border-radius: 4px;
    top: 2px;
    justify-content: center;
    align-items: center;
}

.opened .sidebar-item-pwa {
    padding: 0 18px;
    margin-top: 24px;
}

.opened .sidebar-item-pwa:hover {
    background-color: unset;
}

.opened .sidebar-item-pwa a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    overflow: hidden;
    color: #beb9ff;
    cursor: pointer;
    border: 1px solid #beb9ff;
    border-radius: 8px;
    margin-left: 0;
    font-size: 14px;
    font-weight: 600;
}

.opened .sidebar-item-pwa img {
    width: 24px;
    margin-right: 2px;
}

.opened #burger {
    margin-left: 0;
}

.main {
    padding: 96px 0 0 60px;
}

.container {
    width: 1076px;
    margin: 0 auto;
}

.header-section {
    padding: 32px 24px 72px;
    background: url("../images/car.png") right / contain no-repeat;
    margin-bottom: 40px;
}

.title {
    font-weight: 700;
    font-size: 40px;
    line-height: 52px;
    margin-bottom: 32px;
}

.title .yellow {
    font-size: 50px;
}

.text {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #BEB9FF;
    max-width: 504px;
    margin-bottom: 52px;
}

.yellow {
    color: #FFDC41;
}

.btn {
    width: 280px;
    height: 52px;
    border-radius: 8px;
    background-color: #FFDC41;
    color: #1E1E28;
    font-family: "Roboto";
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.intro {
    margin-bottom: 64px;
}

.subtitle {
    font-weight: 700;
    font-size: 32px;
    line-height: 44px;
    text-align: center;
    margin-bottom: 32px;
}

.intro-blocks {
    max-width: 828px;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
}

.intro-block {
    width: 260px;
    max-height: 296px;
    background-color: #372873;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.intro-block img {
    width: 100px;
    height: 100px;
}

.intro-block-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 10px;
}

.intro-block .text {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

.slider {
    display: flex;
    justify-content: space-between;
}

.slide {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background-color: #372873;
    cursor: pointer;
}

.slide img {
    width: 56px;
    height: 56px;
}

.slide-text {
    margin-left: 8px;
}

.slide-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.slide-text .text {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 0;
}

.footer {
    background: #16103D;
    margin-top: 80px;
    padding: 32px 0 36px;
}

.footer .container {
    width: calc(100% - 186px);
}

.footer-text {
    font-family: "Roboto", serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    text-align: left;
    max-width: 420px;
    opacity: 0.5;
}

.footer-wrapper,
.footer-wrapper-aware {
    display: flex;
    justify-content: space-between;
}

.footer-wrapper {
    margin-bottom: 86px;
}

.circle {
    width: 52px;
    height: 52px;
    margin-right: 12px;
}

.footer-wrapper-text .footer-text {
    margin-bottom: 12px;
}

.footer-aware img {
    width: 134px;
}

.footer-methoods {
    display: flex;
    opacity: 0.3;
    width: 100%;
    justify-content: center;
}

.footer-methoods-top,
.footer-methoods-bottom {
    display: flex;
    justify-content: space-between;
}

.footer-methoods-top {
    width: 55%;
}

.footer-methoods-bottom {
    width: 38%;
}

.footer.opened-sidebar {
    padding-left: 200px;
}

.footer-methoods img {
    margin: 0 20px;
}

.slide.win {
    position: relative;
}

.slide .winner {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 22px;
}

#popup {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #020202ba;
    z-index: 5;
    backdrop-filter: blur(5px);
    animation: appearance 0.4s ease-in 0s 1 normal forwards;
    overflow: hidden;
}

.popup-content {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    width: 500px;
    height: 516px;
    background-color: #1E1450;
    padding: 32px 24px 44px;
    border-radius: 12px;
    z-index: 4;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.popup-title {
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    margin-bottom: 24px;
}

.popup-content img {
    width: 452;
    height: 180;
    border-radius: 12px;
    margin-bottom: 24px;
}

.popup-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: #BEB9FF;
    margin-bottom: 40px;
}

.popup-btn {
    display: flex;
    width: 400px;
    border-radius: 8px;
}

#popup .close {
    position: absolute;
    top: -30px;
    right: -30px;
    cursor: pointer;
    z-index: 4;
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.tesla-mob {
    display: none;
}

.invisible {
    display: none;
}

@keyframes appearance {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1000px) {
    #sidebar-mob {
        display: flex;
        right: 0;
        top: unset;
        width: 100%;
        height: 64px;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    #sidebar-mob ul {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    #sidebar-mob .sidebar-item-mob {
        font-size: 12px;
        line-height: 16px;
        display: block;
        padding-top: 2px;
    }

    #sidebar-mob .sidebar-link {
        display: flex;
        flex-direction: column;
        width: 72px;
        justify-content: center;
        text-align: center;
        color: #fff;
        filter: brightness(0) invert(1);
        opacity: 0.5;
        margin-top: 2px;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        text-align: center;
        font-family: "Roboto", serif;
    }

    #sidebar-mob .sidebar-menu {
        padding: 0;
    }

    #sidebar-mob {
        background-color: #463296;
    }

    #sidebar-mob .sidebar-item-current {
        filter: unset;
        opacity: 1;
    }

    #sidebar-mob .sidebar-link img {
        width: 24px;
        height: 24px;
        display: block;
        margin: 0 auto;
    }

    #sidebar-mob .sidebar-item.sidebar-item-current .sidebar-link {
        color: #FFFFFF;
        opacity: 1;
    }

    #sidebar-mob .sidebar-item {
        margin-bottom: 0;
    }

    #sidebar-web {
        display: none;
    }

    .opened#sidebar-web {
        display: flex;
        z-index: 99;
        width: 100%;
    }

    .opened .sidebar-menu {
        width: 100%;
    }

    .opened .sidebar-item-pwa {
        margin-top: 0;
    }

    .opened .sidebar-item-burger {
        right: 10px;
        border-radius: 10px;
    }
    
    .missions-block {
        display: grid;
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        gap: 4px 6px;
        width: 100%;
    }

    .missions-block a {
        max-width: 100%;
        justify-content: flex-start;
        padding: 0 10px;
        font-size: 14px;
    }

    .missions-link {
        margin: 0;
    }

    .opened .missions-block a img {
        margin-right: 4px;
    }

    .opened .sidebar-item-pwa {
        margin-top: 0;
    }

    .opened .sidebar-item-burger {
        right: 10px;
        border-radius: 10px;
    }

    .header,
    .header.opened-sidebar {
        padding: 8px 8px 4px 40px;
        height: 56px;
        z-index: 2;
        transition: transform 0.5s ease;
    }

    .mob-burger {
        display: block;
        position: absolute;
        left: 8px;
        top: 20px;
    }

    .main,
    .main.opened-sidebar {
        padding: 80px 0 0;
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 16px);
    }

    .header-section {
        padding: 16px 13px;
        background: url("../images/car-mob.png") 0 52px / contain no-repeat;
        margin-bottom: 48px;
    }

    .section-slider .container,
    .payouts .container {
        width: 100%;
    }

    .title {
        font-size: 26px;
        line-height: 28px;
        text-align: center;
        max-width: 300px;
        margin: 0 auto 228px;
    }

    .title .yellow {
        font-size: 32px;
        line-height: 40px;
    }

    .text {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 32px;
    }

    .btn {
        margin: 0 auto;
    }

    .subtitle {
        font-size: 26px;
        line-height: 32px;
        text-align: center;
    }

    .intro-blocks {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer {
        margin-top: 72px;
        padding: 24px 8px 88px;
    }

    .footer .container {
        width: 100%;
    }

    .footer-wrapper {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .footer-wrapper-text {
        margin-bottom: 32px;
    }

    .footer-wrapper-aware {
        justify-content: start;
    }

    .footer-methoods {
        gap: 16px;
        width: 100%;
    }

    .footer-methoods-top,
    .footer-methoods-bottom {
        width: 100%;

    }

    .footer-methoods img {
        width: 64px;
        margin: 0;
    }

    .popup-content {
        width: 344px;
        height: 504px;
        padding: 24px 12px 40px;
    }

    .tesla-web {
        display: none;
    }

    .tesla-mob { 
        display: inline-block;
    }

    #popup br {
        /*display: none;*/
    }

    .popup-text {
        max-width: 90%;
    }

    .popup-btn {
        width: 320px;
    }

    #popup .close {
        right: 0;
    }
    
}