:root {
    --dark-color: #0f0f0f;
    --pink-color: #ee74bc;
    --blue-color: #478bf0;
    --yellow-color: #ffad0c;
    --green-color: #00b900;
    --red-color: #f03;
    --grey-color: #dbdbdb;
    --emerald-color: #09b7b2;
}

/* ---------- Reset Styles ---------- */
.navbar {
    background-color: #0f0f0f !important;
}

.wrap {
    padding: 0 !important;
}

.ml-main p,
.ml-main h1,
.ml-main h2,
.ml-main h3,
.ml-main h4,
.ml-main h5,
.ml-main h6 {
    margin: 0;
}

* {
    font-family: Inerta;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-color);
}

/* ---------- Container ---------- */

.ml-container {
    position: relative;
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

@media (max-width: 1220px) {
    .ml-container {
        width: 768px;
    }
}

@media (max-width: 788px) {
    .ml-container {
        width: 500px;
    }
}

@media (max-width: 520px) {
    .ml-container {
        width: 100%;
        padding: 0 20px;
    }
}

/* ---------- Subtitle ---------- */

.ml-subtitle {
    position: relative;
    z-index: 1;
    font-size: 55px;
    font-weight: 700;
    line-height: normal;
    color: var(--dark-color);
    margin: 0;
}

.ml-subtitle-gradient-top {
    background: linear-gradient(to bottom, rgba(249, 249, 249, 1), rgba(249, 249, 249, 0.8));
}

.ml-subtitle-gradient-bottom {
    background: linear-gradient(to top, rgba(249, 249, 249, 1), rgba(249, 249, 249, 0.8));
}

@media (max-width: 1220px) {
    .ml-subtitle {
        font-size: 36px;
    }
}

@media (max-width: 788px) {
    .ml-subtitle {
        font-size: 27px;
    }
}

.ml-hero {
    position: relative;
    height: calc(100vh - 80px);
    background-color: var(--dark-color);
    background-image: url("/img/ml/ml-header.svg");
    background-size: 1042px auto;
    background-position: center calc(50% - 60px);
    background-repeat: no-repeat;
}

@media (max-width: 1220px) {
    .ml-hero {
        background-image: url("/img/ml/ml-header-tablet.svg");
        background-size: 682px auto;
        background-position: calc(50% + 40px) calc(50% - 60px);
    }
}

@media (max-width: 788px) {
    .ml-hero {
        background-image: url("/img/ml/ml-header-mobile.svg");
        background-position: center calc(50% - 60px);
        background-size: 332px auto;
    }
}

@media (max-width: 500px) {
    .ml-hero {
        background-size: 90% auto;
    }
}

.ml-hero-text {
    position: absolute;
    bottom: 120px;
    right: -40px;
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 788px) {
    .ml-hero-text {
        bottom: 16vh;
        right: 50%;
        transform: translateX(50%);
    }
}

.ml-hero-text img {
    width: 66px;
}

@media (max-width: 788px) {
    .ml-hero-text img {
        width: 44px;
    }
}

.ml-hero-text h3 {
    min-width: 310px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
}

@media (max-width: 1220px) {
    .ml-hero-text h3 {
        min-width: 250px;
        font-size: 16px;
    }
}

.ml-about {
    position: relative;
    z-index: 1;
    top: -60px;
}

.ml-about-container {
    max-width: 1274px;
    margin: 0 auto;
}

.ml-about-wrapper {
    position: relative;
}

.ml-about-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 34px 50px 46px 86px;
    margin: 0 auto;
    background-image: url("/img/ml/ml-about-bg.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 1220px) {
    .ml-about-content {
        width: 708px;
        padding: 34px 34px 46px 40px;
        background-image: url("/img/ml/ml-about-bg-tablet.png");
    }
}

@media (max-width: 788px) {
    .ml-about-content {
        width: 510px;
    }
}

@media (max-width: 520px) {
    .ml-about-content {
        width: 100%;
        padding: 34px 10% 46px;
        background-image: url("/img/ml/ml-about-bg-mobile.png");
    }
}

@media (max-width: 420px) {
    .ml-about-content {
        background-image: url("/img/ml/ml-about-bg-mobile-sm.png");
    }
}

.ml-about-content h1 {
    font-size: 55px;
    font-weight: 700;
    line-height: normal;
    transform: rotate(1.32deg);
}

@media (max-width: 1220px) {
    .ml-about-content h1 {
        margin-bottom: 10px;
        font-size: 36px;
    }
}

@media (max-width: 788px) {
    .ml-about-content h1 {
        font-size: 27px;
    }
}

.ml-about-content p {
    align-self: flex-end;
    width: 520px;
    font-size: 20px;
    line-height: 1.5;
    transform: rotate(1.32deg);
}

@media (max-width: 1220px) {
    .ml-about-content p {
        width: 426px;
        font-size: 16px;
    }
}

@media (max-width: 788px) {
    .ml-about-content p {
        width: 100%;
    }
}

.ml-what-for {
    overflow: hidden;
}

.ml-what-for-wrapper {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(to top, rgba(249, 249, 249, 0.8), transparent 20%),
        linear-gradient(to bottom, rgba(249, 249, 249, 0.8), transparent 20%);
}

@media (max-width: 788px) {
    .ml-what-for-wrapper {
        padding: 120px 0 80px;
        margin: 0 -20px 0 -20px;
    }
}

.ml-what-for-content {
    width: 785px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

@media (max-width: 1220px) {
    .ml-what-for-content {
        width: 100%;
        max-width: 672px;
        padding: 0 20px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-content {
        width: 100%;
        padding: 0 20px;
    }
}

.ml-what-for-item-wrapper {
    position: relative;
}

.ml-what-for img[data-speed] {
    transition: transform 0.1s ease-out;
    will-change: transform;
    z-index: -1;
}

.ml-what-for-item-wrapper:nth-child(1) {
    align-self: flex-end;
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(1) {
        align-self: center;
    }
}

.ml-what-for-item-wrapper:nth-child(2) {
    align-self: flex-start;
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(2) {
        align-self: center;
    }
}

.ml-what-for-item-wrapper:nth-child(3) {
    align-self: flex-end;
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(3) {
        align-self: center;
    }
}

.ml-what-for-item-wrapper:nth-child(1) img:first-of-type {
    position: absolute;
    top: -40px;
    left: -220px;
    width: 190px;
}

@media (max-width: 1220px) {
    .ml-what-for-item-wrapper:nth-child(1) img:first-of-type {
        top: -40px;
        left: -200px;
        width: 150px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(1) img:first-of-type {
        top: -130px;
        left: unset;
        right: -40px;
        width: 130px;
    }
}

.ml-what-for-item-wrapper:nth-child(1) img:last-of-type {
    position: absolute;
    top: 160px;
    right: -180px;
    width: 220px;
}

@media (max-width: 1220px) {
    .ml-what-for-item-wrapper:nth-child(1) img:last-of-type {
        top: 220px;
        left: unset;
        left: 20%;
        width: 180px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(1) img:last-of-type {
        top: -70px;
        right: unset;
        left: -10px;
        width: 120px;
    }
}

.ml-what-for-item-wrapper:nth-child(2) img:first-of-type {
    position: absolute;
    top: 140px;
    left: -130px;
    width: 190px;
    height: 190px;
}

@media (max-width: 1220px) {
    .ml-what-for-item-wrapper:nth-child(2) img:first-of-type {
        top: 150px;
        left: -64px;
        width: 230px;
        height: auto;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(2) img:first-of-type {
        bottom: -100px;
        top: unset;
        left: -44px;
        width: 200px;
    }
}

.ml-what-for-item-wrapper:nth-child(2) img:last-of-type {
    display: none;
    position: absolute;
    top: -80px;
    left: 30%;
    width: 34px;
}

@media (max-width: 1220px) {
    .ml-what-for-item-wrapper:nth-child(2) img:last-of-type {
        display: block;
    }
}

.ml-what-for-item-wrapper:nth-child(3) img:first-of-type {
    position: absolute;
    bottom: -52px;
    left: -136px;
    width: 392px;
    z-index: -1;
}

@media (max-width: 1220px) {
    .ml-what-for-item-wrapper:nth-child(3) img:first-of-type {
        bottom: -160px;
        left: -160px;
        width: 264px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-wrapper:nth-child(3) img:first-of-type {
        bottom: -0;
        left: unset;
        right: -100px;
        width: 220px;
    }
}

.ml-what-for-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 40px;
    border-radius: 20px;
}

.ml-what-for-item h6 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1220px) {
    .ml-what-for-item h6 {
        font-size: 24px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item h6 {
        font-size: 22px;
    }
}

.ml-what-for-item p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 788px) {
    .ml-what-for-item p {
        font-size: 14px;
    }
}

.ml-what-for-item span {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.ml-what-for-item-1 {
    width: 326px;
    background-color: var(--pink-color);
    transform: rotate(-7.413deg);
}

@media (max-width: 1220px) {
    .ml-what-for-item-1 {
        width: 284px;
    }

    .ml-what-for-item-1 h6 {
        width: 90%;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-1 {
        width: 258px;
    }

    .ml-what-for-item-1 h6 {
        width: 100%;
    }
}

.ml-what-for-item-1 span::before {
    content: "";
    position: absolute;
    top: calc(50% + 20px);
    left: calc(50% + 4px);
    transform: rotate(10deg) translate(-50%, -50%) scale(1.75); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-what-for-item-selection-1.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

@media (max-width: 1220px) {
    .ml-what-for-item-1 span::before {
        top: calc(50% + 16px);
        left: calc(50% + 4px);
        transform: rotate(10deg) translate(-50%, -50%) scale(1.8); /* масштабує рамку */
    }
}

.ml-what-for-item-2 {
    width: 342px;
    background-color: var(--blue-color);
    transform: rotate(5.6deg);
}

@media (max-width: 1220px) {
    .ml-what-for-item-2 {
        width: 342px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-2 {
        width: 252px;
        margin-left: 60px;
    }
}

.ml-what-for-item-2 span::before {
    content: "";
    position: absolute;
    top: calc(50% + 8px);
    left: calc(50%);
    transform: rotate(-6deg) translate(-50%, -50%) scale(1.2); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-what-for-item-selection-2.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-what-for-item-3 {
    z-index: 1;
    align-self: flex-end;
    width: 320px;
    background-color: var(--yellow-color);
    transform: rotate(-2.646deg);
}

@media (max-width: 1220px) {
    .ml-what-for-item-3 {
        margin: 40px 0 0;
        width: 278px;
    }
}

@media (max-width: 788px) {
    .ml-what-for-item-3 {
        margin: 120px 0 0;
        width: 268px;
    }
}

.ml-what-for-item-3 span::before {
    content: "";
    position: absolute;
    top: calc(50% + 2px);
    left: calc(50% + 8px);
    transform: rotate(0deg) translate(-50%, -50%) scale(1.5); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-what-for-item-selection-3.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-structure {
    position: relative;
    z-index: 1;
    margin: 0 0 80px;
}

@media (max-width: 1220px) {
    .ml-structure {
        margin: 0 0 60px;
    }
}

@media (max-width: 788px) {
    .ml-structure {
        margin: 0 0 58px;
    }
}

.ml-structure-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 60px 20px;
}

@media (max-width: 1220px) {
    .ml-structure-wrapper {
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 788px) {
    .ml-structure-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        padding: 60px 0;
    }
}

.ml-structure-item {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 34px;
    border-radius: 20px;
    background-color: var(--pink-color);
    transition: transform 0.3s ease;
}

@media (max-width: 1220px) {
    .ml-structure-item {
        padding: 16px 20px;
    }
}

.ml-structure-item h6 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1220px) {
    .ml-structure-item h6 {
        font-size: 24px;
    }
}

@media (max-width: 788px) {
    .ml-structure-item h6 {
        font-size: 22px;
    }
}

.ml-structure-item img:nth-child(1) {
    height: 80px;
    width: auto;
}

@media (max-width: 1220px) {
    .ml-structure-item img:nth-child(1) {
        height: 42px;
    }
}

@media (max-width: 788px) {
    .ml-structure-item img:nth-child(1) {
        height: 36px;
    }
}

.ml-structure-item img:nth-child(3) {
    position: absolute;
    z-index: 1;
}

.ml-structure-item-1 img:nth-child(3) {
    bottom: -48px;
    right: -50px;
    width: 92px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-structure-item-1 img:nth-child(3) {
        bottom: -36px;
        right: -20px;
        width: 60px;
    }
}

@media (max-width: 788px) {
    .ml-structure-item-1 img:nth-child(3) {
        top: -48px;
        right: -50px;
        width: 92px;
        transform: scale(1, -1);
    }
}

.ml-structure-item-2 img:nth-child(3) {
    top: -52px;
    left: 220px;
    width: 160px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-structure-item-2 img:nth-child(3) {
        top: -20px;
        left: 120px;
        width: 78px;
    }
}

@media (max-width: 788px) {
    .ml-structure-item-2 img:nth-child(3) {
        display: none;
    }
}

.ml-structure-item-3 img:nth-child(3) {
    top: -18px;
    left: 150px;
    width: 166px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-structure-item-3 img:nth-child(3) {
        top: 6px;
        left: 120px;
        width: 74px;
    }
}

@media (max-width: 788px) {
    .ml-structure-item-3 img:nth-child(3) {
        display: none;
    }
}

.ml-structure-item-3 img:nth-child(4) {
    display: none;
}

@media (max-width: 788px) {
    .ml-structure-item-3 img:nth-child(4) {
        display: block;
        position: absolute;
        top: -52px;
        right: -40px;
        width: 92px;
        height: auto;
    }
}

.ml-structure-item-4 img:nth-child(3) {
    bottom: -20px;
    right: -54px;
    width: 110px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-structure-item-4 img:nth-child(3) {
        bottom: -16px;
        right: -40px;
        width: 67px;
    }
}

@media (max-width: 788px) {
    .ml-structure-item-4 img:nth-child(3) {
        bottom: -60px;
        left: -50px;
        width: 110px;
        height: auto;
        transform: scale(-1, 1) rotate(45deg);
    }
}

.ml-rules {
    margin: 0 0 100px;
}

@media (max-width: 1220px) {
    .ml-rules {
        margin: 0 0 60px;
    }
}

@media (max-width: 788px) {
    .ml-rules {
        margin: 0 0 90px;
    }
}

.ml-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
}

@media (max-width: 788px) {
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(1),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(1) {
        order: 1;
    }
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(3),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(3) {
        order: 2;
    }
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(5),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(5) {
        order: 3;
    }
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(7),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(7) {
        order: 4;
    }

    .ml-rules-item-1 .ml-rules-grid > *:nth-child(2),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(2) {
        order: 5;
    }
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(4),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(4) {
        order: 6;
    }
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(6),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(6) {
        order: 7;
    }
    .ml-rules-item-1 .ml-rules-grid > *:nth-child(8),
    .ml-rules-item-2 .ml-rules-grid > *:nth-child(8) {
        order: 8;
    }

    .ml-rules-item-3 .ml-rules-grid > *:nth-child(1) {
        order: 1;
    }
    .ml-rules-item-3 .ml-rules-grid > *:nth-child(2) {
        order: 3;
    }

    .ml-rules-item-3 .ml-rules-grid > *:nth-child(3) {
        order: 2;
    }

    .ml-rules-item-3 .ml-rules-grid > *:nth-child(4) {
        order: 4;
    }
}

@media (max-width: 788px) {
    .ml-rules-grid {
        display: flex;
        flex-direction: column;
    }
}

.ml-rules-item {
    position: relative;
    padding: 40px;
    border-radius: 20px;
}

@media (max-width: 1220px) {
    .ml-rules-item {
        padding: 40px 30px;
    }
}

@media (max-width: 788px) {
    .ml-rules-item {
        padding: 30px 20px;
    }
}

.ml-rules-item-0 {
    background-color: #ffffff;
}

.ml-rules-item-1 {
    background-color: var(--blue-color);
}

.ml-rules-item-2 {
    background-color: var(--pink-color);
}

.ml-rules-item-3 {
    background-color: var(--yellow-color);
}

@media (max-width: 788px) {
    .ml-rules-item-3 {
        padding-bottom: 60px;
    }
}

.ml-rules-item img {
    position: absolute;
}

@media (max-width: 788px) {
    .ml-rules-item img {
        display: none;
    }
}

.ml-rules-item-0 img {
    top: 30px;
    right: 30px;
    width: 42px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-rules-item-0 img {
        top: 25px;
        right: 25px;
        width: 33px;
    }
}

.ml-rules-item-1 img {
    top: 25px;
    right: 25px;
    width: 53px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-rules-item-1 img {
        top: 24px;
        right: 24px;
        width: 43px;
    }
}

.ml-rules-item-2 img {
    top: 13px;
    right: 16px;
    width: 66px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-rules-item-2 img {
        top: 13px;
        right: 13px;
        width: 52px;
    }
}

.ml-rules-item-3 img {
    top: 15px;
    right: 16px;
    width: 52px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-rules-item-3 img {
        top: 20px;
        right: 20px;
        width: 42px;
    }
}

.ml-rules-item h3 {
    margin: 0 0 30px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

@media (max-width: 1220px) {
    .ml-rules-item h3 {
        font-size: 24px;
    }
}

@media (max-width: 788px) {
    .ml-rules-item h3 {
        font-size: 22px;
    }
}

.ml-rules-item-0 h3 {
    color: var(--dark-color);
}

.ml-rules-item-3 h3 {
    color: var(--dark-color);
}

.ml-rules-item-header {
    justify-self: flex-start;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 5px 20px;
    border-radius: 60px;
    background-color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 1220px) {
    .ml-rules-item-header {
        padding: 2px 12px;
        font-size: 16px;
    }
}

.ml-rules-item-header:nth-child(2n + 1) {
    margin-right: 30px;
}

@media (max-width: 788px) {
    .ml-rules-item-header:nth-child(2n + 1) {
        margin-right: 0;
    }
}

.ml-rules-item-header:nth-child(2n) {
    margin-left: 30px;
}

@media (max-width: 788px) {
    .ml-rules-item-header:nth-child(2n) {
        margin-left: 0;
    }
}

.ml-rules-item-header div:nth-child(1) {
    color: var(--green-color);
}

.ml-rules-item-header div:nth-child(2) {
    color: var(--red-color);
}

.ml-rules-item-text {
    border-bottom: 1px solid #ffffff;
}

.ml-rules-item-text:nth-child(2n + 1) {
    padding-right: 30px;
}

@media (max-width: 788px) {
    .ml-rules-item-text:nth-child(2n + 1) {
        padding-right: 0;
    }
}

.ml-rules-item-text:nth-child(2n) {
    padding-left: 30px;
}

@media (max-width: 788px) {
    .ml-rules-item-text:nth-child(2n) {
        padding-left: 0;
        border: none;
    }
}

.ml-rules-item-text ul,
.ml-rules-item-text ol {
    padding-left: 20px;
}

.ml-rules-item-text:nth-child(2n) ol {
    list-style: none;
}

@media (max-width: 788px) {
    .ml-rules-item-text:nth-child(2n) ol {
        list-style: decimal;
    }
}

.ml-rules-item-text--last {
    border-bottom: none;
}

.ml-rules-item-text ol li,
.ml-rules-item-text ul li,
.ml-rules-item-text p {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
}

@media (max-width: 1220px) {
    .ml-rules-item-text ol li,
    .ml-rules-item-text ul li,
    .ml-rules-item-text p {
        margin: 0 0 16px;
        font-size: 16px;
    }
}

@media (max-width: 788px) {
    .ml-rules-item-text ol li,
    .ml-rules-item-text ul li,
    .ml-rules-item-text p {
        margin: 0 0 12px;
        font-size: 14px;
    }
}

.ml-rules-item-0 .ml-rules-item-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 60px;
}

@media (max-width: 788px) {
    .ml-rules-item-0 .ml-rules-item-text {
        grid-template-columns: 1fr;
    }
}

.ml-rules-item-0 .ml-rules-item-text ol li,
.ml-rules-item-0 .ml-rules-item-text ul li,
.ml-rules-item-0 .ml-rules-item-text p,
.ml-rules-item-3 .ml-rules-item-text ol li,
.ml-rules-item-3 .ml-rules-item-text ul li,
.ml-rules-item-3 .ml-rules-item-text p {
    color: var(--dark-color);
}

.ml-rules-content {
    position: relative;
}

.ml-rules-content > img:first-of-type {
    position: absolute;
    bottom: -160px;
    right: 200px;
    width: 100px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-rules-content > img:first-of-type {
        bottom: -54px;
        right: 150px;
        width: 74px;
    }
}

@media (max-width: 788px) {
    .ml-rules-content > img:first-of-type {
        bottom: -40px;
        right: 90px;
        width: 55px;
    }
}

.ml-rules-content > img:last-of-type {
    position: absolute;
    bottom: -120px;
    right: 0;
    width: 224px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-rules-content > img:last-of-type {
        bottom: -80px;
        width: 178px;
    }
}

@media (max-width: 788px) {
    .ml-rules-content > img:last-of-type {
        right: -20px;
        bottom: -70px;
        width: 154px;
    }
}

.ml-links {
    margin: 0 0 100px;
}

@media (max-width: 1220px) {
    .ml-links {
        margin: 0 0 60px;
    }
}

@media (max-width: 788px) {
    .ml-links {
        margin: 0 0 58px;
    }
}

.ml-links h4 {
    margin: 0 0 46px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.ml-links ul {
    display: flex;
    justify-content: flex-start;
    gap: 54px;
    list-style: none;
}

@media (max-width: 1220px) {
    .ml-links ul {
        gap: unset;
        justify-content: space-between;
    }
}

@media (max-width: 788px) {
    .ml-links ul {
        flex-direction: column;
        gap: 20px;
    }
}

.ml-links ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ml-links ul li a {
    width: 320px;
    color: var(--dark-color);
}

.ml-links ul li img {
    width: 28px;
    height: 28px;
}

/* ----- Advices Section ----- */

.ml-advices {
    overflow: hidden;
}

.ml-advices-wrapper {
    position: relative;
    padding: 0 0 120px;

    background: linear-gradient(to top, rgba(249, 249, 249, 0.8), transparent 10%),
        linear-gradient(to bottom, rgba(249, 249, 249, 0.8), transparent 10%);
}

.ml-advices-content {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
    grid-column-gap: 100px;
    grid-row-gap: 0px;
    padding: 20px 0 100px;
}

@media (max-width: 1220px) {
    .ml-advices-content {
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(6, auto);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
}

@media (max-width: 788px) {
    .ml-advices-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .ml-advices-content > .ml-advices-item-wrapper:nth-child(1) {
        order: 1;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(2) {
        order: 2;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(3) {
        order: 3;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(5) {
        order: 4;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(4) {
        order: 5;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(6) {
        order: 6;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(7) {
        order: 7;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(9) {
        order: 8;
    }
    .ml-advices-content > .ml-advices-item-wrapper:nth-child(8) {
        order: 9;
    }
}

.ml-advices-item-wrapper {
    position: relative;
}

.ml-advices img[data-speed] {
    transition: transform 0.1s ease-out;
    will-change: transform;
    z-index: -1;
}

.ml-advices-item-wrapper:nth-child(1) {
    align-content: flex-end;
    justify-self: flex-start;
    grid-area: 1 / 1 / 2 / 2;
    min-height: 340px;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(1) {
        align-content: flex-start;
        justify-self: flex-end;
        min-height: 350px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(1) {
        justify-self: center;
        min-height: unset;
        height: 140px;
    }
}

.ml-advices-item-wrapper:nth-child(2) {
    align-content: flex-start;
    justify-self: flex-end;
    margin-right: 52px;
    grid-area: 1 / 2 / 2 / 3;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(2) {
        position: relative;
        left: -30px;
        bottom: -90px;
        align-content: center;
        justify-self: flex-start;
        margin-right: -80px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(2) {
        position: relative;
        left: unset;
        justify-self: flex-start;
        min-height: unset;
        margin: 0 0 220px;
    }
}

.ml-advices-item-wrapper:nth-child(3) {
    align-content: center;
    justify-self: flex-end;
    margin-right: 304px;
    grid-area: 2 / 1 / 3 / 3;
    min-height: 400px;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(3) {
        align-content: center;
        justify-self: center;
        min-height: unset;
        margin: 54px 0;
        z-index: 5;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(3) {
        justify-self: center;
        margin: unset;
        height: 264px;
        z-index: 3;
    }
}

.ml-advices-item-wrapper:nth-child(4) {
    align-content: flex-start;
    justify-self: flex-start;
    margin-left: 94px;
    grid-area: 3 / 1 / 4 / 2;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(4) {
        position: relative;
        right: -22%;
        align-content: flex-end;
        justify-self: flex-end;
        margin-left: 0;
        z-index: 4;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(4) {
        position: relative;
        right: unset;
        justify-self: center;
        min-height: unset;
        margin: 0 0 40px;
        z-index: 1;
    }
}

.ml-advices-item-wrapper:nth-child(5) {
    align-content: flex-end;
    justify-self: flex-end;
    margin-right: 54px;
    grid-area: 3 / 2 / 4 / 3;
    min-height: 370px;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(5) {
        position: relative;
        left: -14%;
        align-content: flex-start;
        justify-self: flex-start;
        min-height: unset;
        min-height: 508px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(5) {
        position: relative;
        left: unset;
        justify-self: center;
        min-height: unset;
        margin: 0 0 40px;
    }
}

.ml-advices-item-wrapper:nth-child(6) {
    align-content: flex-end;
    justify-self: flex-start;
    margin-left: 116px;
    grid-area: 4 / 1 / 5 / 3;
    min-height: 248px;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(6) {
        align-content: center;
        justify-self: flex-end;
        min-height: unset;
        margin: 20px 0;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(6) {
        justify-self: center;
        min-height: unset;
        margin: unset;
    }
}

.ml-advices-item-wrapper:nth-child(7) {
    align-content: center;
    justify-self: center;
    grid-area: 5 / 1 / 6 / 3;
    min-height: 460px;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(7) {
        align-content: center;
        justify-self: flex-start;
        min-height: unset;
        margin-left: 10%;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(7) {
        justify-self: center;
        min-height: unset;
        margin: 0 0 174px;
    }
}

.ml-advices-item-wrapper:nth-child(8) {
    align-content: flex-end;
    justify-self: flex-start;
    margin-left: 64px;
    grid-area: 6 / 1 / 7 / 2;
    min-height: 338px;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(8) {
        position: relative;
        right: -20%;
        align-content: flex-end;
        justify-self: flex-start;
        min-height: 540px;
        margin-right: 0;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(8) {
        right: unset;
        justify-self: center;
        min-height: unset;
        margin: unset;
    }
}

.ml-advices-item-wrapper:nth-child(9) {
    align-content: flex-start;
    justify-self: flex-end;
    margin-right: 4px;
    grid-area: 6 / 2 / 7 / 3;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(9) {
        position: relative;
        left: -15%;
        align-content: flex-start;
        justify-self: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(9) {
        left: unset;
        justify-self: center;
        min-height: unset;
        margin: unset;
    }
}

.ml-advices-item-wrapper:nth-child(2) > img {
    position: absolute;
    bottom: -110px;
    right: -20px;
    width: 372px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(2) > img {
        bottom: unset;
        top: -140px;
        right: 0;
        width: 300px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(2) > img {
        top: 190px;
        right: -80px;
        width: 265px;
    }
}

.ml-advices-item-wrapper:nth-child(4) > img {
    position: absolute;
    top: -220px;
    left: -40px;
    width: 94px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(4) > img {
        top: -160px;
        left: 80px;
        z-index: -1;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(4) > img {
        top: -660px;
        left: -20px;
        width: 70px;
    }
}

.ml-advices-item-wrapper:nth-child(5) > img {
    position: absolute;
    bottom: -320px;
    right: -40px;
    width: 200px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(5) > img {
        bottom: -720px;
        right: unset;
        left: -180px;
        width: 140px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(5) > img {
        bottom: -124px;
        left: 10px;
        width: 80px;
    }
}

.ml-advices-item-wrapper:nth-child(7) > img {
    position: absolute;
    bottom: -100px;
    left: -300px;
    width: 318px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(7) > img {
        bottom: unset;
        top: -240px;
        left: 0;
        width: 252px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(7) > img {
        top: 220px;
        left: -40px;
        width: 200px;
    }
}

.ml-advices-item-wrapper:nth-child(9) > img {
    position: absolute;
    bottom: -100px;
    left: -180px;
    width: 350px;
    height: auto;
}

@media (max-width: 1220px) {
    .ml-advices-item-wrapper:nth-child(9) > img {
        bottom: unset;
        top: -180px;
        left: unset;
        right: -120px;
        width: 282px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-wrapper:nth-child(9) > img {
        top: -100px;
        left: unset;
        right: -110px;
        width: 228px;
    }
}

.ml-advices-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 40px;
    border-radius: 20px;
}

.ml-advices-item h6 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1220px) {
    .ml-advices-item h6 {
        font-size: 24px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item h6 {
        font-size: 22px;
    }
}

.ml-advices-item p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 788px) {
    .ml-advices-item p {
        font-size: 14px;
    }
}

.ml-advices-item span {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.ml-advices-item-1 {
    width: 460px;
    margin-left: 60px;
    background-color: var(--pink-color);
    color: #ffffff;
    transform: rotate(-5.2deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-1 {
        width: 358px;
        margin-left: unset;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-1 {
        width: 318px;
        margin: unset;
        transform: rotate(-3.6deg);
    }
}

.ml-advices-item-2 {
    width: 434px;
    margin-right: 50px;
    background-color: var(--dark-color);
    color: #ffffff;
    transform: rotate(6.5deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-2 {
        width: 392px;
        margin-right: unset;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-2 {
        width: 300px;
        transform: rotate(3.9deg);
    }
}

.ml-advices-item-3 {
    z-index: 3;
    width: 436px;
    background-color: var(--yellow-color);
}

@media (max-width: 1220px) {
    .ml-advices-item-3 {
        width: 442px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-3 {
        width: 320px;
        margin: unset;
    }
}

.ml-advices-item-4 {
    width: 436px;
    background-color: var(--grey-color);
    transform: rotate(4.3deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-4 {
        width: 430px;
        transform: rotate(-5.3deg);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-4 {
        width: 334px;
        margin: 20px 0 0;
        transform: rotate(-1.8deg);
    }
}

.ml-advices-item-5 {
    z-index: 3;
    width: 482px;
    background-color: var(--blue-color);
    color: #ffffff;
    transform: rotate(-2.6deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-5 {
        width: 402px;
        transform: rotate(8.9deg);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-5 {
        width: 325px;
        margin: unset;
        transform: rotate(3.7deg);
    }

    .ml-advices-item-5 h6 br {
        display: none;
    }
}

.ml-advices-item-6 {
    width: 518px;
    background-color: var(--emerald-color);
    color: #ffffff;
    transform: rotate(-0.32deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-6 {
        width: 432px;
        transform: rotate(1deg);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-6 {
        width: 312px;
        margin: unset;
        transform: rotate(4.5deg);
    }
}

.ml-advices-item-7 {
    width: 483px;
    background-color: var(--dark-color);
    color: #ffffff;
}

@media (max-width: 1220px) {
    .ml-advices-item-7 {
        width: 418px;
        transform: rotate(4.7deg);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-7 {
        width: 314px;
        margin: 0 auto;
        transform: rotate(0);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-7 {
        width: 320px;
        margin: unset;
    }
}

.ml-advices-item-8 {
    width: 442px;
    background-color: var(--grey-color);
    transform: rotate(-3.2deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-8 {
        width: 402px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-8 {
        width: 334px;
        margin: unset;
    }
}

.ml-advices-item-9 {
    width: 483px;
    background-color: var(--pink-color);
    color: #ffffff;
    transform: rotate(6.2deg);
}

@media (max-width: 1220px) {
    .ml-advices-item-9 {
        width: 368px;
        transform: rotate(-5.4deg);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-9 {
        width: 326px;
        margin: unset;
        transform: rotate(6.2deg);
    }
}

.ml-advices-item-1 > img {
    position: absolute;
    bottom: -30px;
    right: -70px;
    width: 134px;
}

@media (max-width: 1220px) {
    .ml-advices-item-1 > img {
        bottom: -70px;
        right: 60px;
        width: 108px;

        transform: rotate(30deg);
    }
}

@media (max-width: 788px) {
    .ml-advices-item-1 > img {
        display: none;
    }
}

.ml-advices-item-4 > img {
    position: absolute;
    top: -50px;
    right: 4px;
    width: 134px;
}

@media (max-width: 1220px) {
    .ml-advices-item-4 > img {
        top: 10px;
        right: -70px;
        width: 108px;
    }
}

@media (max-width: 788px) {
    .ml-advices-item-4 > img {
        top: -40px;
        right: 4px;
        transform: rotate(-12deg);
    }
}

.ml-advices-item-8 > img {
    position: absolute;
    top: -12px;
    right: -30px;
    width: 134px;
}

.ml-advices-item-1 span:first-child:before {
    content: "";
    position: absolute;
    top: calc(100% + 10px);
    left: calc(50% + 8px);
    transform: rotate(8deg) translate(-50%, -50%) scale(1.3); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-advices-selection-1-1.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-advices-item-1 span:last-child:before {
    content: "";
    position: absolute;
    top: calc(100% + 18px);
    left: calc(50% + 8px);
    transform: rotate(6deg) translate(-50%, -50%) scale(1.3); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-advices-selection-1-2.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-advices-item-2 span:first-child:before {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% + 20px);
    transform: rotate(-3deg) translate(-50%, -50%) scale(1.5); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-advices-selection-2.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-advices-item-4 span:first-child:before {
    content: "";
    position: absolute;
    top: calc(100%);
    left: calc(50% + 40px);
    transform: rotate(-3deg) translate(-50%, -50%) scale(1.5); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-advices-selection-4.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-advices-item-7 span:first-child:before {
    content: "";
    position: absolute;
    top: calc(50%);
    left: calc(50%);
    transform: rotate(0deg) translate(-50%, -50%) scale(1.9); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-advices-selection-7.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ml-advices-item-9 span:first-child:before {
    content: "";
    position: absolute;
    top: calc(100% - 10px);
    left: calc(50%);
    transform: rotate(-8deg) translate(-50%, -50%) scale(1.2); /* масштабує рамку */
    width: 100%;
    height: 100%;
    background-image: url("/img/ml/ml-advices-selection-9.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ---------- Questions Dropdown ---------- */

.ml-questions-dropdown {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 40px 0 40px 45px;
}

@media (max-width: 1220px) {
    .ml-questions-dropdown {
        padding: 24px 0 24px 30px;
    }
}

@media (max-width: 788px) {
    .ml-questions-dropdown {
        padding: 20px 0 20px 0;
    }
}

.ml-questions-dropdown-item-wrapper {
    position: relative;
    display: flex;
    overflow: visible;
}

.ml-questions-dropdown-item-wrapper > img {
    position: absolute;
    top: 0;
    left: -45px;
    z-index: 1;
    height: 62px;
}

@media (max-width: 1220px) {
    .ml-questions-dropdown-item-wrapper > img {
        height: 50px;
    }
}

@media (max-width: 788px) {
    .ml-questions-dropdown-item-wrapper > img {
        display: none;
    }
}

.ml-questions-dropdown-item {
    position: relative;
    padding: 20px 40px;
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    background: white;
    box-shadow: inset 0 0 20px 1px #0084ff30, inset 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

@media (max-width: 1220px) {
    .ml-questions-dropdown-item {
        padding: 20px 32px;
    }
}

@media (max-width: 788px) {
    .ml-questions-dropdown-item {
        padding: 20px;
    }
}

.ml-questions-dropdown-item h3 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

@media (max-width: 1220px) {
    .ml-questions-dropdown-item h3 {
        font-size: 24px;
    }
}

@media (max-width: 788px) {
    .ml-questions-dropdown-item h3 {
        font-size: 22px;
    }
}

.ml-questions-dropdown-item h3 img {
    width: 28px;
    height: 28px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

@media (max-width: 788px) {
    .ml-questions-dropdown-item h3 img {
        width: 18px;
        height: 18px;
    }
}

.ml-questions-dropdown-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
    user-select: none;
}

.ml-questions-dropdown-item.active .ml-questions-dropdown-content {
    max-height: 500px;
    padding: 20px 0 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.ml-questions-dropdown-content p:not(:last-child) {
    margin: 0 0 10px;
}

.ml-questions-dropdown-item.active h3 img {
    transform: rotate(0);
}
