/* Hero block */

.hero.hero-app--marketplace {
    padding-bottom: 50px;
}

.hero-app--marketplace .hero-app-marketplace {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-app--marketplace .app-icon-block--marketplace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    --icon-scale: 0.7;
}

.hero-app--marketplace .app-icon.hossted.app-icon--cloud {
    margin-top: -40px;
}

.hero-app--marketplace .hero-app-marketplace__title {
    font-size: clamp(27px, 4vw, 56px);
}

@media screen and (max-width: 992px) {
    .hero-app--marketplace .app-icon.hossted.app-icon--cloud {
        margin-left: -30px;
        margin-top: -30px;
    }

    .hero-app--marketplace .app-icon-block--marketplace {
        --icon-scale: 0.6;
    }
}

/* Content */

.mp-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 992px) {
    .mp-cards__grid {
        grid-template-columns: 1fr;
    }
}

.mp-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid #F0F0F2;
    box-shadow: 0px 1px 20px 4px rgba(134, 144, 172, 0.06), 0px 3px 12px rgba(134, 144, 172, 0.09);
    border-radius: 16px;
}

.mp-card__media {
    width: 100%;
    height: 280px;
    background: #F1F1F1;
    border-radius: 12px;
}

.mp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.mp-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.mp-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    background: linear-gradient(255.41deg, #1AB67D -10.11%, #267061 108.49%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mp-card__line {
    display: inline-block;
    width: 12px;
    transform: rotate(-180deg);
    border: 1px solid #267061;
}

.mp-card__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: -0.02em;
    text-transform: capitalize;
    color: #1F3E46;
    margin: 0;
}

.mp-card__cta {
}

.mp-btn {
    width: 100%;
}

.mp-card__divider {
    width: 100%;
    height: 1px;
    background: rgba(31, 62, 70, 0.1);
    transform: matrix(1, 0, 0, -1, 0, 0);
}

.mp-card__text {
    /* collapse via JS: we’ll set --clamp-lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: var(--clamp-lines, 2);
    font-size: 16px;
    line-height: 150%;
    color: #4F647E;
}

.mp-card__text.is-expanded {
    -webkit-line-clamp: unset;
}

.mp-readmore {
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    width: fit-content;
    background: #F8F9FB;
    border: 1px solid #EAEAEC;
    box-shadow: 0px 3px 8px rgba(39, 65, 97, 0.09);
    border-radius: 44px;
    font-size: 14px;
    line-height: 120%;
    color: #1F3E46;
    transition: 1s transform ease-in-out;
}

.mp-readmore svg {
    transition: transform 0.25s ease;
    transform: rotate(180deg);
}

.mp-readmore[aria-expanded="true"] svg {
    transform: rotate(0deg);
}

/* Contact Form */

.cf-prefooter {
    position: relative;
    z-index: 5;
    margin-bottom: -180px;
}

.cf-prefooter .buttons-h button,
.popup-cloud .buttons-h button {
    margin-top: 12px;
    width: 100%;
}

.cf-card {
    padding: 60px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    background: linear-gradient(93deg, rgba(21, 25, 40, 1) -13.23%, rgba(32, 62, 69, 1) 81.14%, rgba(43, 98, 98, 1) 188.1%);
    border-radius: 32px;
}

.cf-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.cf-head > h2 {
    margin-bottom: 0;
    font-weight: 500;
    line-height: 110%;
    letter-spacing: -0.02em;
}

.cf-lead {
    max-width: 356px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #D6ECE4 0%, #D6ECE4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 992px) {
    .cf-card {
        padding: 32px;
        border-radius: 28px;
    }

    .cf-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }

    .cf-head > h2 {
        font-size: 26px;
    }

    .cf-lead {
        max-width: none;
        line-height: 16px;
    }

    .cf-prefooter .col-md-4:not(.buttons-h),
    .popup-cloud .col-md-4:not(.buttons-h) {
        order: 1;
    }

    .cf-prefooter .buttons-h,
    .popup-cloud .buttons-h {
        order: 3;
    }

    .cf-prefooter .buttons-h button,
    .popup-cloud .buttons-h button {
        margin-top: 0;
    }

    .cf-prefooter .form-check,
    .popup-cloud .form-check {
        order: 2;
    }
}

.footer {
    padding-top: 220px;
}

/* Popup */

.popup-cloud,
.popup-thanks {
    border-radius: 32px;
    background: none;
}

.popup-cloud,
.popup-thanks,
.popup-cloud .container,
.popup-thanks .container {
    padding: 0;
}

.popup-cloud .fancybox-close-small svg,
.popup-thanks .fancybox-close-small svg {
    stroke: #fff;
}

/* Thanks modal */

.popup-thanks {
    width: 100%;
    background: linear-gradient(93.14deg, #151928 -13.23%, #2B6262 188.1%);
}

@media (min-width: 576px) {
    .popup-thanks {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .popup-thanks {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .popup-thanks {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .popup-thanks {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .popup-thanks {
        max-width: 1320px;
    }
}

.thanks-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    justify-content: center;
    background-image: url(../images/gfx/header-left-home.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    padding: 90px 60px;
}

.thanks-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.thanks-modal__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.thanks-modal__title {
    font-size: 48px;
    line-height: 64px;
    text-align: center;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 0;
}

.thanks-modal__text {
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    letter-spacing: -0.02em;
    color: #B5C3D6;
    margin: 0;
}

@media screen and (max-width: 992px) {
    .thanks-modal {
        background-size: 135%;
    }
}