* {
    user-select: none;
}

@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter-VariableFont_slnt\,wght.ttf);
    font-display: swap;
}

:root {
    --bg_light: #ffffff;
    --bg_dark: #000000;
    --bg_button: #FABD4D;
    --bg_button-hov: #ffffff;
    --bg_icon: #1B134E63;
    --text_light: #ffffff;
    --text_dark: #000000;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    background-color: var(--bg_dark);
    color: var(--text_light);
    margin: 0;
    overflow-x: hidden;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1506px;
    margin: 0 auto;
    padding: 0 16px;
}

/*-------------- button --------------*/
.btn {
    width: 100%;
    max-width: 361px;
    height: 82px;
    border-radius: 12px;
    border: 0;
    background-color: var(--bg_button);
    text-align: center;
    color: var(--text_dark);
    font-weight: 600;
    font-size: 18px;
    margin: 20px auto 0;
    overflow: hidden;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease-out;
}

.btn-link {
    display: block;
    width: 100%;
    text-align: center;
}

.btn:hover,
.btn:active {
    background-color: var(--bg_button-hov);
    transform: scale(0.95);
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--bg_button-hov);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/*================= mobile version ====================*/
.wrapper {
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 1 auto;
}

/* --------- header --------- */
#header {
    padding: 44px 0 40px;
    background-color: var(--bg_dark);
    text-align: center;
}

.logo-link {
    display: inline-block;
}

#header .container .logo {
    width: 264px;
    height: auto;
}

/* --------- intro --------- */
#intro {
    padding: 0;
    margin: 0 auto;
}

#intro .container {
    min-height: calc(100vh - 120px - 95px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-image: url(https://hebbkx1anhila5yf.public.blob.vercel-storage.com/bg_mob-intro-MBqYTA1VXQxrEjj1xcNtm5jEHsTz8l.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    text-align: center;
    padding: 40px 16px 95px;
    margin: 0 auto;
}

#intro .container .block-text {
    max-width: 600px;
}

#intro .container .block-text p {
    margin: 18px auto;
}

/* --------- platformsVariants --------- */
#platformsVariants {
    margin: 0 auto;
    /* Убираем display: none, чтобы секция была видна */
}

#platformsVariants .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg_dark);
    padding: 40px 16px;
    margin: 0 auto;
    text-align: center;
}

#platformsVariants .container .block-text {
    max-width: 600px;
    margin: 0 auto;
}

#platformsVariants .container .block-text h2 {
    margin: 0 auto 18px;
}

#platformsVariants .container .block-text p {
    margin: 0;
}

#platformsVariants .container .block-text p b {
    font-weight: 800;
}

#platformsVariants .container .icons-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 24px auto 0;
    width: 100%;
}

#platformsVariants .container .icons-block .item {
    width: 100%;
    max-width: 361px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(19, 13, 61, 0.75);
    box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.57);
    border-radius: 4px;
    margin: 5px 0;
    position: relative;
    transition: all 0.3s ease-out;
}

#platformsVariants .container .icons-block .item:hover,
#platformsVariants .container .icons-block .item:active {
    background: var(--bg_button);
    transform: scale(0.95);
}

#platformsVariants .container .icons-block .item img {
    width: auto;
    height: 30px;
    max-width: 30%;
    filter: brightness(1.2); /* Делаем иконки немного ярче */
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 16px;
    display: none; /* Изначально скрыт, показывается через JS */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-family: sans-serif;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

#cookie-banner p {
    margin: 0;
    flex: 1 1 auto;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 6px;
}

.cookie-buttons button {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
}

.cookie-buttons button:hover {
    background-color: var(--bg_button);
}

.cookie-buttons button:active {
    transform: scale(0.95);
}

/* Loader */
.__loaderWrapper {
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(50, 50, 50, 0.71);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-5 {
    animation: rotate 2s infinite;
    height: 50px;
    width: 50px;
}

.loader-5:before,
.loader-5:after {
    border-radius: 50%;
    content: "";
    display: block;
    height: 20px;
    width: 20px;
}

.loader-5:before {
    animation: ball1 2s infinite;
    background-color: rgba(255, 255, 255, 0.16);
    box-shadow: 30px 0 0 #8f44fd;
    margin-bottom: 10px;
}

.loader-5:after {
    animation: ball2 2s infinite;
    background-color: #8f44fd;
    box-shadow: 30px 0 0 rgba(255, 255, 255, 0.16);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(0.8);
    }
    50% {
        transform: rotate(360deg) scale(1.2);
    }
    100% {
        transform: rotate(720deg) scale(0.8);
    }
}

@keyframes ball1 {
    0% {
        box-shadow: 30px 0 0 #8f44fd;
    }
    50% {
        box-shadow: 0 0 0 #8f44fd;
        margin-bottom: 0;
        transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 #8f44fd;
        margin-bottom: 10px;
    }
}

@keyframes ball2 {
    0% {
        box-shadow: 30px 0 0 rgba(255, 255, 255, 0.32);
    }
    50% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.32);
        margin-top: -20px;
        transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 rgba(255, 255, 255, 0.32);
        margin-top: 0;
    }
}

/* Улучшенная адаптивность для мобильных устройств */
@media screen and (max-width: 600px) {
    #intro .container {
        background-position-x: 123%;
        background-position-y: 209px;
        background-size: 100%;
        padding-top: 30px;
        padding-bottom: 70px;
    }

    .btn {
        top:50%;
        width: 92%;
        height: 60px;
        font-size: 13px;
        position: absolute;
        left: 50%;
        transform: translate(-50%,-30%);
    }

    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .cookie-buttons button {
        flex: 1;
        max-width: 120px;
    }
}

/*================  @media  ================*/
@media (min-width: 768px) {
    h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    h2 {
        font-size: 32px;
    }

    #platformsVariants .container .icons-block {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #platformsVariants .container .icons-block .item {
        width: calc(50% - 20px);
        margin: 10px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
        line-height: 1.4;
    }

    h1 {
        font-size: 48px;
        font-weight: 900;
        line-height: 1.1;
    }

    h2 {
        font-size: 42px;
        font-weight: 900;
        line-height: 1.1;
    }

    .logo {
        width: 375px;
    }

    /* --------- header --------- */
    #header {
        padding: 80px 16px 0;
        text-align: start;
    }

    /* --------- intro --------- */
    #intro .container {
        min-height: unset;
        align-items: start;
        text-align: start;
        justify-content: center;
        background-image: url(https://hebbkx1anhila5yf.public.blob.vercel-storage.com/bg_desk-intro-OTc9N6g2dhdtBhF51pnPSZK0M8Rjxu.png);
        padding: 130px 16px;
    }

    #intro .container .block-text {
        max-width: 905px;
    }

    #intro .container .block-text h1 br {
        display: none;
    }

    #intro .container .block-text p {
        margin: 24px 0 100px;
        max-width: 693px;
    }

    .btn-link {
        text-align: left;
    }

    /* --------- platformsVariants --------- */
    #platformsVariants .container {
        align-items: end;
        background-image: url(https://hebbkx1anhila5yf.public.blob.vercel-storage.com/bg_desk-left-WtuQWvm2qvwcfRKlsuJPEXow7DJGAg.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        padding: 30px 16px;
        text-align: start;
    }

    #platformsVariants .container .block-text {
        margin: 0;
        max-width: 60%;
    }

    #platformsVariants .container .block-text h2 {
        margin: 0;
    }

    #platformsVariants .container .icons-block {
        max-width: 60%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: start;
        margin: 0;
    }

    #platformsVariants .container .block-text p {
        margin: 24px 0 56px;
    }

    #platformsVariants .container .icons-block .item {
        width: 237px;
        height: 80px;
        margin: 5px;
    }

    #platformsVariants .container .icons-block .item img {
        height: auto;
        width: auto;
        max-width: unset;
    }
}

@media (min-width: 1440px) {
    h2 {
        font-size: 44px;
    }

    /*-------------- button --------------*/
    .btn {
        width: 480px;
        height: 72px;
    }

    /* --------- intro --------- */
    #intro .container {
        padding: 180px 16px;
    }

    /* --------- platformsVariants --------- */
    #platformsVariants .container {
        padding: 60px 16px;
        background-position: center;
    }

    #platformsVariants .container .icons-block,
    #platformsVariants .container .block-text {
        max-width: 1004px;
    }

    #platformsVariants .container .block-text p br {
        display: none;
    }

    #platformsVariants .container .icons-block .item {
        width: 237px;
        height: 170px;
        margin: 7px;
    }

    #platformsVariants .container .icons-block .item img {
        height: 50px;
        max-width: 50%;
    }
}

@media (min-width: 1506px) {
    /* --------- header --------- */
    #header {
        padding: 3vw 16px 0;
    }

    /* --------- intro --------- */
    #intro .container {
        padding-left: calc((100vw - 1506px) / 2 + 16px);
    }

    /* --------- platformsVariants --------- */
    #platformsVariants .container {
        padding: 60px 0;
        padding-right: calc((100vw - 1506px) / 2);
    }
}

@media (min-width: 1920px) {
    /* --------- header --------- */
    #header {
        padding: 160px 16px 0;
    }

    #intro .container {
        background-position: right;
        padding: 180px 0;
        margin: 0 0 0 212px;
    }

    /* --------- platformsVariants --------- */
    #platformsVariants .container {
        padding-right: 0;
        margin: 0 212px 0 0;
    }
}

/* Добавляем анимации для улучшения UX */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.block-text h1,
.block-text h2,
.block-text p {
    animation: fadeIn 0.8s ease-out;
}

.icons-block .item {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

/* Задержка для каждого элемента, чтобы создать эффект каскада */
.icons-block .item:nth-child(1) { animation-delay: 0.1s; }
.icons-block .item:nth-child(2) { animation-delay: 0.2s; }
.icons-block .item:nth-child(3) { animation-delay: 0.3s; }
.icons-block .item:nth-child(4) { animation-delay: 0.4s; }
.icons-block .item:nth-child(5) { animation-delay: 0.5s; }
.icons-block .item:nth-child(6) { animation-delay: 0.6s; }
.icons-block .item:nth-child(7) { animation-delay: 0.7s; }