:root {
    --color-primary: #6053bd;
    --color-primary-hover: #6c5cff;
    --color-text: #fff;
    --color-text-secondary: #ffffff99;
    --color-text-third: #ffffffcc;
    --color-bg: #000;
    --color-text-bg: #1c1837;
    --color-overlay: #00000080;
    --color-btn-up: #110b3b;

    --transition-normal: 0.25s ease;
    --transition-slow: 0.5s ease;
}

/* ANCHOR fonts */
@font-face {
    font-family: "Gilroy";
    src: url("../assets/fonts/Gilroy-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Gilroy";
    src: url("../assets/fonts/Gilroy-Medium.woff2") format("woff2");
    font-weight: 500;
}

@font-face {
    font-family: "Gilroy";
    src: url("../assets/fonts/Gilroy-Bold.woff2") format("woff2");
    font-weight: 700;
}

/* ANCHOR global style */
* {
    box-sizing: border-box;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Gilroy", sans-serif;
    padding: 0;
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);

    overflow-x: hidden;
}

/* container */
.container {
    /* width: 100%; */
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 70px;
    border-radius: 14px;
    /* border: 1px solid rgba(255, 255, 255, 0.12); */
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;

    @media (min-width: 980px) {
        font-size: 16px;
        border-radius: 12px;
        padding: 12px 26px;
    }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 2px solid var(--color-primary-hover);
    cursor: pointer;
    background: var(--color-bg);
    padding: 0;
    transition: all var(--transition-slow);

    &.active {
        width: 18px;
        height: 18px;
        background: var(--color-primary-hover);
    }
}

.title {
    text-align: center;
    margin: 0 auto 16px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;

    @media (min-width: 980px) {
        font-size: 40px;
    }
}

.subtitle {
    text-align: center;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-text-secondary);

    @media (min-width: 980px) {
        font-size: 18px;
    }
}

/* background */
.hero {
    background: url(../assets/img/main-bg-m.webp) bottom center/cover no-repeat;

    @media (min-width: 980px) {
        background-image: none;
    }
}

.header__hero {
    @media (min-width: 980px) {
        background: url(../assets/img/main-bg.webp) bottom center/cover no-repeat;
    }
}

.main__section {
    background: url(../assets/img/second-bg-m.webp) top center/contain no-repeat;

    @media (min-width: 980px) {
        background: url(../assets/img/second-bg.webp) top center/cover no-repeat;
    }
}

/* hover-text */
.hover-text {
    transition: color var(--transition-normal);

    &:hover {
        color: var(--color-text);
    }
}

/* ANCHOR header */
.header {
    z-index: 50;
    padding: 50px 0;

    @media (min-width: 980px) {
        padding: 20px 0;
    }
}

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

.logo img {
    display: block;
    height: 28px;
    width: auto;
}

.nav__list {
    display: none;

    @media (min-width: 980px) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    a {
        color: var(--color-primary);
        font-size: 14px;
        padding: 10px 0;
    }
}

.header__right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.lang {
    display: none;

    @media (min-width: 980px) {
        /* display: flex; */
        display: none;
    }
}

.lang__btn {
    font-size: 14px;
    background: transparent;
    border: 0;
    color: var(--color-text);
    cursor: pointer;
    padding: 0 6px;
    transition: color var(--transition-normal);

    &:hover {
        color: var(--color-text-secondary);
    }

    &.is-active:hover {
        color: var(--color-text);
    }

    &:first-child {
        border-right: var(--color-primary) 1px solid;
    }

    &.is-active {
        color: var(--color-primary);
    }
}

.btn--primary {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, rgba(165, 120, 255, 0.85), rgba(120, 160, 255, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.15),
        0 8px 30px rgba(120, 90, 255, 0.35);
    transition: all var(--transition-normal);

    &:hover {
        transform: translateY(-2px);
        box-shadow:
            inset 0 0 25px rgba(255, 255, 255, 0.2),
            0 12px 40px rgba(120, 90, 255, 0.45);
    }

    &.none {
        display: none;

        @media (min-width: 980px) {
            display: block;
        }
    }
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;

    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(165, 120, 255, 0.85), rgba(120, 160, 255, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.25);

    span {
        width: 22px;
        height: 3px;
        border-radius: 2px;
        background: var(--color-text);
        box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2);

        transition:
            transform var(--transition-normal),
            opacity var(--transition-normal);
    }

    &.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    &.is-active span:nth-child(2) {
        opacity: 0;
    }

    &.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    @media (min-width: 980px) {
        display: none;
    }
}

/* ANCHOR mobile menu */
body.menu-open {
    position: fixed;
    overflow: hidden;
    width: 100%;
}

.mnav {
    position: fixed;
    inset: 0;
    z-index: 100;
    top: 100px;

    display: flex;
    justify-content: center;
    /* align-items: center; */

    backdrop-filter: blur(20px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--transition-slow),
        visibility var(--transition-slow);
}

.mnav.is-open {
    opacity: 1;
    visibility: visible;

    transition:
        opacity var(--transition-slow),
        visibility 0s linear 0s;
}

.mnav__panel {
    width: 100%;
    top: 18px;
    background: linear-gradient(180deg, #00000000, var(--color-overlay) 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 70px 0 70px;
    height: 110vh;
    font-size: 32px;
    font-weight: 500;

    li > a {
        color: #6053bd;
    }

    li > a.btn.btn--primary {
        color: var(--color-text);
        font-size: 32px;
        font-weight: 600;
        border-radius: 24px;
        padding: 19px 48px;
    }

    li > .lang {
        /* display: flex; */
        display: none;
    }

    li > .lang .lang__btn {
        font-size: 28px;
        padding: 0 14px;
    }
}

.main-card {
    position: absolute;
}

/* ANCHOR modal form */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-slow),
        visibility var(--transition-slow);

    @media (min-width: 980px) {
        align-items: center;
    }

    &.is-open {
        opacity: 1;
        visibility: visible;

        transition:
            opacity var(--transition-slow),
            visibility 0s linear 0s;
    }
}

.modal__overlay {
    position: absolute;
    /* inset: 150px 0 -100px 0; */
    inset: 0;
    background: rgba(0, 0, 0, 0.807);

    @media (min-width: 980px) {
        inset: 0;
    }
}

.modal__content {
    position: relative;
    margin: 0 auto;
    padding: 60px 24px 40px;
    border-radius: 20px;
    width: 350px;
    border-radius: 24px;

    background: url(../assets/img/form-bg-m.webp) center/cover no-repeat;

    @media (min-width: 980px) {
        width: 470px;
        padding: 60px 35px 50px;
        background: url(../assets/img/form-bg.webp) center/cover no-repeat;
    }
}

/* buttom close */
.modal__close {
    position: absolute;
    top: 27px;
    right: 24px;

    &.burger {
        /* display: none; */
        display: flex;

        @media (min-width: 980px) {
            display: flex;

            box-shadow:
                inset 0 0 20px rgba(255, 255, 255, 0.15),
                0 8px 30px rgba(120, 90, 255, 0.35);
            transition: all var(--transition-normal);

            &:hover {
                transform: translateY(-2px);
                box-shadow:
                    inset 0 0 25px rgba(255, 255, 255, 0.2),
                    0 12px 40px rgba(120, 90, 255, 0.45);
            }
        }
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;

    h2 {
        font-size: 48px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--color-primary);

        @media (min-width: 980px) {
        }
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border-radius: 12px;

    border: 1px solid var(--color-primary);

    background:
        linear-gradient(95deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 22.27%),
        linear-gradient(95deg, rgba(255, 255, 255, 0) 49.5%, rgba(255, 255, 255, 0.1) 100%),
        rgba(96, 83, 189, 0.5);

    background-blend-mode: plus-lighter, plus-lighter, normal;

    color: var(--color-text-secondary);
    font-size: 20px;
    line-height: 1.2;

    outline: none;
    transition: all var(--transition-normal);
}

.contact-form button {
    width: fit-content;
    margin: 25px auto 0;
    font-size: 32px;
    font-weight: 600;
    border-radius: 24px;
    padding: 19px 76px;

    @media (min-width: 980px) {
        margin: 10px auto 0;
    }
}

.contact-form textarea {
    min-height: 140px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #9b8cff;

    box-shadow:
        0 0 0 2px rgba(155, 140, 255, 0.4),
        0 0 25px rgba(155, 140, 255, 0.35);

    background:
        linear-gradient(95deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 22.27%),
        linear-gradient(95deg, rgba(255, 255, 255, 0) 49.5%, rgba(255, 255, 255, 0.15) 100%),
        rgba(96, 83, 189, 0.65);
}

/* no scroll */
.no-scroll {
    overflow: hidden;
}

/* ANCHOR hero */
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    position: relative;
    text-align: center;

    padding: 30px 0 230px;
    /* +80 */
    @media (min-width: 980px) {
        padding: 70px 0 24px;
    }
}

.hero__subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-secondary);

    @media (min-width: 980px) {
        font-size: 22px;
    }
}

.hero__title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    margin: 25px auto 0;
    width: 267px;

    span {
        font-size: 32px;
        font-weight: 400;
    }

    @media (min-width: 980px) {
        width: 100%;
        font-size: 78px;

        span {
            font-size: 78px;
            font-weight: 700;
        }
    }
}

.hero__media {
    position: relative;
    width: min(305px, 92vw);
    height: min(240px, 50vw);
    margin: 0 auto;
    background: url(../assets/img/card-m.webp) center/cover no-repeat;

    @media (min-width: 980px) {
        width: min(900px, 92vw);
        height: min(260px, 50vw);
        background: url(../assets/img/card.webp) center/cover no-repeat;

        align-items: center;
    }
}

.hero__btn {
    position: absolute;
    left: 50%;
    top: 150%;
    transform: translate(-50%, -50%);

    @media (min-width: 980px) {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.btn-lottie {
    display: inline-block;
    width: 295px;
    height: 80px;
    padding: 0;
    background: none;
    border: none;

    @media (min-width: 980px) {
        width: 240px;
        height: 70px;
    }
}

#startBtnAnim {
    display: block;
    width: 100%;
    height: 100%;
}

#startBtnAnim canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ANCHOR stats */
.stats {
    /* background: url(../assets/img/second-bg-m.webp) top center/cover no-repeat; */
    padding: 47px 0;
    overflow: hidden;
    /* ховаємо 4 блок */

    @media (min-width: 980px) {
        /* background-image: none; */
        padding: 40px 0 0;
    }
}

.stats__row {
    display: flex;
    align-items: flex-start;
    gap: 40px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    @media (min-width: 980px) {
        gap: 68px;
    }

    @media (min-width: 1920px) {
        gap: 32px;
    }

    &.container {
        @media (min-width: 1920px) {
            max-width: 1450px;
        }
    }
}

.stats__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 calc((100% - 80px) / 2);

    @media (min-width: 980px) {
        flex: 0 0 calc((100% - 50px) / 3);
        gap: 20px;
        align-items: flex-end;
    }

    @media (min-width: 1920px) {
        flex: 0 0 calc((100% - 50px) / 4);
        gap: 20px;
    }
}

.stats__number {
    font-size: 62px;
    font-weight: 700;

    text-shadow:
        0 3px 0 rgba(0, 0, 0, 0.25),
        0 3px 0 #6053bd;

    @media (min-width: 980px) {
        font-size: 72px;
    }
}

.stats__text span {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;

    @media (min-width: 980px) {
        font-size: 32px;
        margin-bottom: 5px;
    }
}

.stats__text p {
    font-size: 14px;
    color: var(--color-text-secondary);
    width: 122px;
    line-height: 1.1;

    @media (min-width: 980px) {
        width: 275px;
        font-size: 24px;
    }

    @media (min-width: 1920px) {
        width: 210px;
    }
}

/* ANCHOR solutions */
.solutions {
    padding: 27px 0 0;
    text-align: center;
    overflow: hidden;

    @media (min-width: 980px) {
        padding: 100px 0 0;
    }
}

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

.solutions__title {
    font-weight: 700;
    width: 220px;

    @media (min-width: 980px) {
        width: 100%;
    }
}

.solutions__subtitle {
    width: 308px;

    @media (min-width: 980px) {
        width: 500px;
    }
}

.solutions__buttons {
    margin-top: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    order: 1;

    @media (min-width: 980px) {
        flex-direction: row;
        gap: 30px;
        order: 0;
    }
}

.btn--ghost {
    color: #6053bd;
    border: 1px solid transparent;
    background:
        linear-gradient(#140b3a, #140b3a) padding-box,
        linear-gradient(330deg, #6053bd, #2f2958, #6053bd) border-box;

    transition: all var(--transition-normal);
}

.btn--ghost:hover {
    transform: translateY(-2px);
    /* box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.2),
        0 12px 40px rgba(120, 90, 255, 0.45); */
}

/* solutions slider */
.solutions__slider {
    position: relative;
    margin-top: 23px;

    @media (min-width: 980px) {
        margin-top: 54px;
    }
}

.solutions__viewport {
    overflow: hidden;
}

.solutions__cards {
    height: 420px;
    display: flex;
    gap: 32px;
    /* justify-content: center; */
    align-items: center;
    transition: transform var(--transition-slow);
    will-change: transform;
    /* position: relative; */

    @media (min-width: 980px) {
        height: 400px;
    }
}

.card {
    /* width: 290px; */
    width: 330px;
    /* height: 380px; */
    height: 420px;
    text-align: left;
    padding: 24px 20px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;

    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-origin: center;

    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity var(--transition-slow);

    opacity: 0.5;

    @media (min-width: 980px) {
        flex: 0 0 460px;
        /* width: 460px; */
        width: 550px;
        /* height: 340px; */
        height: 400px;
        padding: 32px 40px;
    }
}

.card.center {
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    opacity: 1;
}

.card.left {
    transform: translate(calc(-5% - 560px), -50%) scale(0.9);
    z-index: 1;
    cursor: pointer;

    @media (min-width: 980px) {
        transform: translate(calc(-53% - 560px), -50%) scale(0.9);
    }
}

.card.right {
    transform: translate(calc(-95% + 560px), -50%) scale(0.9);
    z-index: 1;
    cursor: pointer;

    @media (min-width: 980px) {
        transform: translate(calc(-47% + 560px), -50%) scale(0.9);
    }
}

.card.active {
    flex: 0 0 550px;
    height: 380px;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    letter-spacing: 2.5px;
}

.card__title {
    font-size: 38px;
    font-weight: 600;

    line-height: 1.15;
    margin-bottom: 18px;

    @media (min-width: 980px) {
        font-size: 48px;
    }
}

.card__text {
    /* width: 400px; */
    /* color: var(--color-text-secondary); */
    font-size: 12px;
    line-height: 1.4;

    @media (min-width: 980px) {
        font-size: 14px;
    }
}

.card--left {
    background-image: url("../assets/img/card-left.webp");
}

.card--center {
    background-image: url("../assets/img/card-center.webp");
    padding-bottom: 16px;
}

.card--center .card__text {
    width: 230px;
    margin-bottom: 90px;
    color: var(--color-text-secondary);
}

.card--center.active .card__text {
    width: 300px;
    margin-bottom: 115px;
}

.card--right {
    background-image: url("../assets/img/card-right.webp");
}

.card--center__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;

    @media (min-width: 980px) {
        gap: 8px;
        margin-bottom: 0;
    }
}

.card--center__item {
    background: var(--color-text-bg);
    padding: 8px 6px;
    border-radius: 10px;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: lowercase;

    @media (min-width: 980px) {
        padding: 8px;
        font-size: 14px;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
}

.slider-btn--prev {
    left: -20px;
    z-index: 99;
}

.slider-btn--next {
    right: -20px;
    z-index: 99;
}

/* slider  dots */
.solutions__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 26px;

    li {
        height: 18px;
    }

    @media (min-width: 980px) {
        margin-top: 40px;
    }
}

/* ANCHOR payments */
.payment {
    position: relative;
    padding-top: 60px;
    overflow: hidden;

    @media (min-width: 980px) {
        padding-top: 180px;
    }
}

.payment__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;

    @media (min-width: 980px) {
        gap: 40px;
        grid-template-columns: 360px 1fr;

        transform: translateX(-7%);
    }

    @media (min-width: 1920px) {
        transform: translateX(-22%);
    }
}

.payment__bg {
    /* width: 354px; */
    height: 643px;
    padding: 34px 28px;
    border-radius: 28px;
    background: url("../assets/img/slidier-bg-m.webp") left/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;

    @media (min-width: 980px) {
        width: 780px;
        height: 360px;
        padding: 68px 50px 47px;
        background: url("../assets/img/slidier-bg.webp") center/cover no-repeat;
    }
}

.payment__title {
    text-align: start;
    margin: 0;
}

.payment__subtitle {
    width: 280px;
    margin: 0 0 405px;
    text-align: start;

    @media (min-width: 980px) {
        width: 336px;
        line-height: 1.3;
        margin-bottom: 0;
    }
}

/* payment slider */
.payment__slider {
    /* desktop 2 cards visible */
    /* width: 585px; */
    overflow: hidden;
    position: absolute;
    left: 44px;
    bottom: 120px;

    @media (min-width: 980px) {
        /* desktop 2 cards visible width: 620px; */
        width: 905px;
        position: relative;
        left: 80px;
        bottom: 0;
    }

    @media (min-width: 1920px) {
        width: 1205px;
    }
}

.payment__viewport {
    overflow: hidden;
}

.payment__track {
    display: flex;
    align-items: center;
    transition: transform var(--transition-slow);
}

.payment-card {
    flex: 0 0 290px;
    height: 360px;
    padding: 30px 25px;
    border-radius: 30px;
    background: linear-gradient(180deg, #5f3cff, #3b1f90);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;

    opacity: 0.6;
    transform: scale(0.9);
    transform-origin: right;
    transition:
        transform var(--transition-slow),
        opacity var(--transition-slow);

    @media (min-width: 980px) {
        flex: 0 0 300px;
        height: 360px;
        padding: 30px;
    }

    &.one {
        background: url(../assets/img/pay-card-01.webp) center/contain no-repeat;

        .payment-card__text {
            width: 200px;
        }
    }

    &.two {
        background: url(../assets/img/pay-card-02.webp) center/contain no-repeat;
    }

    &.three {
        background: url(../assets/img/pay-card-03.webp) center/contain no-repeat;

        .payment-card__title {
            width: 200px;
        }
    }

    &.four {
        background: url(../assets/img/pay-card-04.webp) center/contain no-repeat;

        .payment-card__title {
            width: 200px;
        }
    }

    &.five {
        background: url(../assets/img/pay-card-05.webp) center/contain no-repeat;

        .payment-card__title {
            width: 210px;
        }
    }

    &.six {
        background: url(../assets/img/pay-card-06.webp) center/contain no-repeat;
    }
}

.payment-card.is-center {
    opacity: 1;
    transform: scale(1);
}

.payment-card__title {
    font-size: 32px;
    font-weight: 500;
}

.payment-card__text {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.2;
    margin-top: 10px;
}

/* slider  dots */
.payment__dots {
    width: fit-content;
    height: 42px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 52px;

    li {
        height: 18px;
    }

    @media (min-width: 980px) {
        margin-left: 0;
    }
}

.payment__dot {
    background: transparent;
}

/* ANCHOR integration */
.integration {
    margin: 30px 0 0;
    padding: 90px 0 0;
    height: 750px;
    text-align: center;
    background: url(../assets/img/integration-m.webp) center/cover no-repeat;
    /* background-size: 393px; */

    @media (min-width: 980px) {
        margin: 110px 0 0;
        padding: 134px 0 0;
        height: 750px;
        background: url(../assets/img/integration.webp) center/contain no-repeat;
    }
}

.container.integration__wrap {
    padding: 0;

    @media (min-width: 980px) {
        padding: 0 20px;
    }
}

.integration__title {
    font-size: 30px;

    @media (min-width: 980px) {
        font-size: 40px;
    }
}

.integration__subtitle {
    width: 368px;

    @media (min-width: 980px) {
        width: 500px;
    }
}

.integration__steps {
    margin: 110px 0 0;

    display: flex;
    gap: 40px;
    justify-content: start;

    /* scroll */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
        display: none;
    }

    @media (min-width: 980px) {
        margin: 80px 0 0;
        gap: 70px;
        justify-content: center;
        overflow: visible;
    }
}

.step {
    position: relative;
    flex: 0 0 220px;
    scroll-snap-align: start;
    text-align: center;

    @media (min-width: 980px) {
        flex: 0 0 181px;
    }
}

.step__number-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 110px; /* регулює скільки видно */

    @media (min-width: 980px) {
        height: 80px; /* регулює скільки видно */
    }

    overflow: hidden;
}

.step__number {
    display: block;
    font-size: 180px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);

    transform: translateY(-10%); /*  піднімаємо щоб обрізати */

    @media (min-width: 980px) {
        font-size: 130px;
        /* transform: translateY(-10%); піднімаємо щоб обрізати */
    }
}

.step__text {
    margin-top: 150px; /* щоб не наїжджав */
    font-size: 20px;

    @media (min-width: 980px) {
        margin-top: 110px; /* щоб не наїжджав */
    }
}

.step__text small {
    display: block;
    margin-top: 9px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.integration__cta {
    margin-top: 70px;

    @media (min-width: 980px) {
        margin-top: 60px;
    }

    .btn {
        @media (min-width: 980px) {
            font-size: 32px;
            padding: 14px 52px;
            border-radius: 24px;
        }
    }
}

/* ANCHOR business */
.business {
    padding: 36px 0 70px;

    @media (min-width: 980px) {
        padding: 70px 0 98px;
    }
}

.business__title {
    width: 300px;

    @media (min-width: 980px) {
        width: 100%;
    }
}

.business__subtitle {
    width: 290px;

    @media (min-width: 980px) {
        width: 500px;
    }
}

.business__bg {
    margin-top: 39px;
    position: relative;
    border-radius: 24px;

    @media (min-width: 980px) {
        margin-top: 56px;
    }
}

/*  canvas  */
.business__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.business__list {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;

    @media (min-width: 980px) {
        grid-template-columns: repeat(3, 300px);
        gap: 40px;
    }
}

.business__item {
    width: 100%;
    max-width: 330px;
    height: 90px;

    display: flex;
    align-items: center;
    gap: 20px;

    padding: 20px;
    margin: 0 auto;
    border-radius: 24px;
    font-size: 24px;
    color: var(--color-text-third);
    line-height: 1.1;

    @media (min-width: 980px) {
        width: 300px;
        height: 200px;

        flex-direction: column;
        justify-content: space-between;
        align-items: start;

        color: var(--color-text-secondary);
        background: var(--color-overlay);
        transition: background var(--transition-normal);

        &:hover {
            background: none;
        }
    }
}

.business__icon {
    width: 50px;
    height: 50px;

    @media (min-width: 980px) {
        width: 60px;
        height: 60px;
    }
}

/* ANCHOR faq */
.faq {
    padding: 30px 0 40px;
    background: url(../assets/img/faq-bg-m.webp) top center/cover no-repeat;

    @media (min-width: 980px) {
        background: url(../assets/img/faq-bg.webp) top right/cover no-repeat;
        padding: 30px 0 88px;
    }
}

.faq__list {
    width: 353px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (min-width: 980px) {
        width: 980px;
        margin: 60px auto 0;
    }
}

.faq__item {
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(96, 83, 189, 0) 75%, rgba(96, 83, 189, 0.32) 100%),
        linear-gradient(270deg, rgba(252, 103, 1, 0) 0%, rgba(252, 103, 1, 0.4) 35%);

    @media (min-width: 980px) {
        border-radius: 24px;
    }
}

.faq__item.active {
    background:
        linear-gradient(90deg, rgba(96, 83, 189, 0) 0%, rgba(96, 83, 189, 0.32) 20%),
        linear-gradient(270deg, rgba(252, 103, 1, 0) 74.47%, rgba(252, 103, 1, 0.4) 114.57%);
}

/* button */
.faq__question {
    color: var(--color-text-third);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;

    font-size: 20px;
    cursor: pointer;
    text-align: left;
    padding: 17px 30px;

    p {
        width: 225px;
    }

    @media (min-width: 980px) {
        font-size: 24px;
        padding: 22px 40px;

        p {
            width: 100%;
        }
    }
}

.faq__icon {
    font-size: 32px;
    line-height: 0.8;
    transition: var(--transition-normal);

    @media (min-width: 980px) {
        font-size: 38px;
    }
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    opacity: 0;
    transition: all var(--transition-normal);
}

.faq__item.active .faq__answer {
    max-height: 200px;
    padding: 0 30px 17px;
    opacity: 0.85;

    @media (min-width: 980px) {
        padding: 0 40px 22px;
    }
}

/* ANCHOR footer */
.footer {
    padding: 34px 0px 60px;
    background: url(../assets/img/footer-bg-m.webp) top center/cover no-repeat;

    @media (min-width: 980px) {
        background: url(../assets/img/footer-bg.webp) top right/cover no-repeat;
        padding: 52px 0px 60px;
    }
}

.footer__wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    @media (min-width: 980px) {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
    }
}

/* contacts */
.footer__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

.footer__list {
    font-size: 16px;
    line-height: 1.1;
    text-align: center;

    @media (min-width: 980px) {
        text-align: start;
    }
}

.footer__item {
    color: var(--color-text-third);

    &:first-child {
        margin-bottom: 10px;
    }
}

.footer__label {
    margin-right: 5px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.footer__link {
    color: var(--color-text-third);
    transition: all var(--transition-normal);
}

.footer__link:hover {
    color: var(--color-text);
}

/* brand */
.footer__brand {
    margin-top: 37px;
    text-align: center;

    @media (min-width: 980px) {
        text-align: right;
    }
}

.footer__logo {
    margin-bottom: 10px;
    filter: brightness(0) invert(0.7);
}

.footer__copy {
    font-size: 14px;
    color: var(--color-text-secondary);

    @media (min-width: 980px) {
        font-size: 18px;
    }
}

/* ANCHOR scroll to top */
.scroll-top {
    position: fixed;
    right: 12px;
    bottom: 12px;

    z-index: 1000;

    padding: 15px 11px;

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    box-shadow: none;
    transition: all var(--transition-normal);

    @media (min-width: 980px) {
        bottom: 20px;
        right: calc((100% - 1140px) / 2 + 20px);
        padding: 14px 16px;
    }

    @media (min-width: 1920px) {
        right: calc((100% - 1450px) / 2 + 20px);
    }

    &.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;

        background: var(--color-primary);

        &:hover {
            background: var(--color-btn-up);
            box-shadow: none;
        }
    }
}

.scroll-top__icon {
    width: 18px;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top__text {
    display: none;

    @media (min-width: 980px) {
        display: block;
        margin-left: 7px;
    }
}
