/* ===== MHX homepage sections ===== */
.mhx-home-section {
    width: 100%;
}

.mhx-home-shell {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

/* Benefits */
.mhx-home-benefits {
    padding: 30px 0;
    background: #edf4f8;
}

.mhx-home-benefits__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    align-items: stretch;
    gap: 28px;
}

.mhx-home-benefits__sample {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(150px, 1.05fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mhx-home-benefits__sample-copy h2 {
    margin: 0 0 5px;
    font-size: clamp(18px, 1.6vw, 25px);
    font-weight: 500;
    line-height: 1.25;
}

.mhx-home-benefits__highlight {
    margin: 0 0 10px;
    color: #2855ff;
    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.mhx-home-benefits__description {
    max-width: 350px;
    color: #4e5964;
    font-size: 14px;
    line-height: 1.65;
}

.mhx-home-benefits__description p,
.mhx-home-benefits__feature-description p {
    margin: 0;
}

.mhx-home-benefits__sample-image {
    min-width: 0;
}

.mhx-home-benefits__sample-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mhx-home-benefits__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(46, 66, 84, 0.035);
}

.mhx-home-benefits__feature {
    position: relative;
    min-width: 0;
    padding: 35px 28px 30px;
}

.mhx-home-benefits__feature + .mhx-home-benefits__feature::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 1px;
    background: #edf0f3;
}

.mhx-home-benefits__feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
}

.mhx-home-benefits__feature-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mhx-home-benefits__feature h3 {
    margin: 0 0 10px;
    color: #24272b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.mhx-home-benefits__feature-description {
    color: #9aa1a8;
    font-size: 13px;
    line-height: 1.65;
}

/* Product tabs */
.mhx-home-product-tabs {
    padding: 30px 0 44px;
    background: #fff;
}

.mhx-home-product-tabs__nav {
    display: grid;
    grid-template-columns: repeat(var(--mhx-home-tab-count, 4), minmax(0, 1fr));
    align-items: stretch;
    border-bottom: 1px solid #8d8d8d;
}

.mhx-home-product-tabs__button {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 102px;
    padding: 15px 10px 25px;
    border: 0;
    background: transparent;
    color: #202020;
    font: inherit;
    text-align: center;
    cursor: pointer;
    opacity: 0.48;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.mhx-home-product-tabs__button:hover,
.mhx-home-product-tabs__button:focus-visible,
.mhx-home-product-tabs__button.is-active {
    opacity: 1;
}

.mhx-home-product-tabs__button:focus-visible {
    outline: 2px solid #2855ff;
    outline-offset: -2px;
}

.mhx-home-product-tabs__button.is-active::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 2px;
    background: currentColor;
}

.mhx-home-product-tabs__title {
    position: relative;
    font-size: clamp(18px, 1.65vw, 24px);
    font-weight: 400;
    line-height: 1.2;
}

.mhx-home-product-tabs__subtitle {
    margin-top: 6px;
    color: #a5a5a5;
    font-size: 15px;
    line-height: 1.2;
}

.mhx-home-product-tabs__button.is-active .mhx-home-product-tabs__subtitle {
    color: #2855ff;
}

.mhx-home-product-tabs__star {
    position: absolute;
    top: -7px;
    right: -19px;
    color: #f47a00;
    font-size: 18px;
    line-height: 1;
}

.mhx-home-product-tabs__panel {
    padding-top: 32px;
}

.mhx-home-product-tabs__panel[hidden] {
    display: none !important;
}

.mhx-home-product-tabs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px 7px;
}

.mhx-home-product-card {
    min-width: 0;
}

.mhx-home-product-card__media {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #efede8;
}

.mhx-home-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mhx-home-product-card__media:hover .mhx-home-product-card__image {
    transform: scale(1.025);
}

.mhx-home-product-card__content {
    padding-top: 13px;
}

.mhx-home-product-tabs__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 32px;
    margin-top: 26px;
    padding: 4px 12px;
    border: 1px solid #222;
    background: transparent;
    color: #222;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.mhx-home-product-tabs__more:hover {
    background: #f7f7f7;
}

.mhx-home-product-tabs__more:disabled {
    cursor: wait;
    opacity: 0.58;
}

.mhx-home-product-tabs__more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transform-origin: center;
}

.mhx-home-product-tabs__more.is-loading
.mhx-home-product-tabs__more-icon {
    animation: mhx-home-load-more-spin 0.85s linear infinite;
}

@keyframes mhx-home-load-more-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feedback */
.mhx-home-feedback {
    padding: 34px 0 48px;
    background: #fbf8f1;
}

.mhx-home-feedback__title {
    margin: 0 0 26px;
    color: #222;
    font-size: clamp(24px, 2.15vw, 36px);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.mhx-home-feedback__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.mhx-home-feedback__item {
    min-width: 0;
    margin: 0;
}

.mhx-home-feedback__item a {
    display: block;
}

.mhx-home-feedback__image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .mhx-home-benefits__layout {
        grid-template-columns: 1fr;
    }

    .mhx-home-product-tabs__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mhx-home-shell {
        width: min(100% - 24px, 1160px);
    }

    .mhx-home-benefits {
        padding: 22px 0;
    }

    .mhx-home-benefits__sample {
        grid-template-columns: minmax(0, 1fr) minmax(125px, 0.8fr);
    }

    .mhx-home-benefits__features {
        border-radius: 18px;
    }

    .mhx-home-benefits__feature {
        padding: 24px 16px 22px;
    }

    .mhx-home-benefits__feature h3 {
        font-size: 14px;
    }

    .mhx-home-benefits__feature-description {
        font-size: 12px;
    }

    .mhx-home-product-tabs__nav {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .mhx-home-product-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .mhx-home-product-tabs__button {
        flex: 0 0 44%;
        min-height: 88px;
        scroll-snap-align: start;
    }

    .mhx-home-product-tabs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 7px;
    }

    .mhx-home-feedback__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 540px) {
    .mhx-home-benefits__sample {
        grid-template-columns: 1fr;
    }

    .mhx-home-benefits__sample-image {
        max-width: 300px;
        margin-inline: auto;
    }

    .mhx-home-benefits__features {
        grid-template-columns: 1fr;
    }

    .mhx-home-benefits__feature + .mhx-home-benefits__feature::before {
        top: 0;
        right: 18px;
        bottom: auto;
        left: 18px;
        width: auto;
        height: 1px;
    }

    .mhx-home-benefits__feature {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 3px 14px;
    }

    .mhx-home-benefits__feature-icon {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .mhx-home-benefits__feature h3,
    .mhx-home-benefits__feature-description {
        grid-column: 2;
    }

    .mhx-home-product-tabs__button {
        flex-basis: 58%;
    }
}
