.akhome-block,
.akhome-block * {
    box-sizing: border-box;
}

.akhome-block {
    --ak-orange: #ff5a1f;
    --ak-orange2: #ff7a1a;
    --ak-dark: #202632;
    --ak-muted: #667085;
    --ak-border: #e8ebef;
    --ak-bg: #f7f8fa;
    --ak-ui-orange: var(--ak-orange, #ff5a1f);
    --ak-ui-orange-2: var(--ak-orange2, #ff7a1a);
    --ak-ui-dark: var(--ak-dark, #202632);
    --ak-ui-white: #fff;
    --ak-ui-card-radius: 20px;
    --ak-ui-card-radius-classic: 22px;
    --ak-ui-pill-radius: 999px;
    --ak-ui-btn-radius: 14px;
    --ak-ui-btn-radius-small: 12px;
    --ak-ui-brand-text: #c43a0a;
    --ak-ui-card-shadow-compact: 0 10px 26px rgba(32,38,50,.065);
    --ak-ui-card-shadow: 0 14px 34px rgba(32,38,50,.07);
    --ak-ui-action-shadow: 0 10px 22px rgba(255,90,31,.18);
    --ak-ui-btn-shadow-hover: 0 16px 32px rgba(255,90,31,.24);
    --ak-ui-focus-ring: 0 0 0 4px rgba(255,90,31,.14);
    color: var(--ak-dark);
    width: 100%;
}

.akhome-wrap {
    width: min(var(--ak-container, 1320px), calc(100% - 32px));
    margin: 0 auto;
}

.akhome-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin: 0 0 20px;
}

.akht-head--left .akhome-head {
    align-items: flex-start !important;
    text-align: left !important;
}

.akht-head--center .akhome-head {
    align-items: center !important;
    text-align: center !important;
}

.akht-head--right .akhome-head {
    align-items: flex-end !important;
    text-align: right !important;
}

.akht-head--left .akhome-head h2,
.akht-head--left .akhome-head p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.akht-head--center .akhome-head h2,
.akht-head--center .akhome-head p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.akht-head--right .akhome-head h2,
.akht-head--right .akhome-head p {
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.akhome-head h2 {
    margin: 0;
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.02em;
}

.akhome-head p {
    margin: 0;
    max-width: 720px;
    color: var(--ak-muted);
    line-height: 1.45;
}

/* v1.2.2 — Trust block rebuilt to match Services card design */
.akht {
    padding: 34px 0;
    background: var(--ak-bg);
}

.akht-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--akht-cols-d, 4), minmax(0, 1fr)) !important;
    gap: var(--akht-gap-d, 14px) !important;
    align-items: stretch;
}

.akht-card {
    position: relative;
    min-width: 0;
    min-height: 100%;
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    border: 1px solid rgba(232,235,239,.95);
    border-radius: var(--ak-ui-card-radius, 20px);
    background:
        radial-gradient(circle at 18% 0%, rgba(255,90,31,.075), rgba(255,255,255,0) 36%),
        var(--ak-ui-white, #fff);
    text-decoration: none !important;
    color: var(--ak-dark) !important;
    box-shadow: var(--ak-ui-card-shadow-compact, 0 10px 26px rgba(32,38,50,.065));
    overflow: hidden;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.akht-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 var(--ak-ui-pill-radius, 999px) var(--ak-ui-pill-radius, 999px);
    background: linear-gradient(90deg, var(--ak-orange), var(--ak-orange2));
    opacity: .95;
}

/* Important: hover is available even when links are disabled.
   The block can stay informational, but still feel alive and premium. */
.akht-card:hover,
.akht-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255,90,31,.46);
    box-shadow:
        0 18px 42px rgba(32,38,50,.12),
        0 0 26px rgba(255,90,31,.10);
    outline: none;
}

.akht-links-off .akht-card {
    cursor: default;
}

.akht-links-off .akht-card:hover {
    cursor: default;
}

.akht-media {
    height: var(--akht-img-h, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 14px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,90,31,.13), rgba(255,255,255,0) 58%);
}

.akht-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.akht-media--image {
    background:
        linear-gradient(180deg, rgba(255,90,31,.055), rgba(255,255,255,0));
}

.akhome-svg-icon {
    width: min(var(--ak-icon-size, 50px), 54px);
    height: min(var(--ak-icon-size, 50px), 54px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ak-orange);
}

.akhome-svg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.akht-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 16px 16px;
}

.akht-card b {
    display: block;
    color: var(--ak-dark);
    font-size: 17px;
    line-height: 1.14;
    font-weight: 850;
    letter-spacing: -.015em;
}

.akht-card small {
    display: block;
    margin-top: 8px;
    color: var(--ak-muted);
    line-height: 1.38;
    font-size: 13px;
}

.akht-desc-d--0 .akht-card small {
    display: none;
}

.akht-button {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 10px 15px;
    border-radius: var(--ak-ui-btn-radius, 14px);
    font-weight: 850;
    font-size: 13px;
    line-height: 1;
    transition:
        transform .18s ease,
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.akht-button::after {
    content: "→";
    color: currentColor;
    transform: translateX(0);
    transition: transform .18s ease;
}

.akht-btn--brand .akht-button {
    border: 1px solid rgba(255,90,31,.62);
    background: linear-gradient(135deg, var(--ak-ui-orange, #ff5a1f), var(--ak-ui-orange-2, #ff7a1a));
    color: var(--ak-ui-white, #fff);
    box-shadow: var(--ak-ui-action-shadow, 0 10px 22px rgba(255,90,31,.18));
}

.akht-btn--brand .akht-card:hover .akht-button,
.akht-btn--brand .akht-card:focus-visible .akht-button {
    color: #fff;
    border-color: rgba(255,90,31,.72);
    background: linear-gradient(135deg, var(--ak-ui-orange, #ff5a1f), var(--ak-ui-orange-2, #ff7a1a));
    box-shadow: var(--ak-ui-btn-shadow-hover, 0 14px 28px rgba(255,90,31,.18));
    transform: translateY(-1px);
}

.akht-btn--brand .akht-card:hover .akht-button::after,
.akht-btn--brand .akht-card:focus-visible .akht-button::after {
    transform: translateX(3px);
}

.akht-btn--dark .akht-button {
    border: 1px solid transparent;
    background: var(--ak-ui-dark, #202632);
    color: #fff;
    box-shadow: 0 10px 22px rgba(32,38,50,.14);
}

.akht-btn--dark .akht-button::after {
    color: var(--ak-orange);
}

.akht-btn--link .akht-button {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ak-ui-brand-text, #c43a0a);
}

.akht-style--classic {
    padding: 38px 0;
}

.akht-style--classic .akht-grid {
    gap: max(var(--akht-gap-d, 14px), 18px) !important;
}

.akht-style--classic .akht-card {
    border-radius: var(--ak-ui-card-radius-classic, 22px);
    box-shadow: var(--ak-ui-card-shadow, 0 14px 34px rgba(32,38,50,.07));
}

.akht-style--classic .akht-card::before {
    left: 18px;
    right: 18px;
    height: 4px;
}

.akht-style--classic .akht-media {
    min-height: 120px;
}

.akht-style--classic .akhome-svg-icon {
    width: var(--ak-icon-size, 58px);
    height: var(--ak-icon-size, 58px);
}

.akht-style--classic .akht-body {
    padding: 16px 20px 20px;
}

.akht-style--classic .akht-card b {
    font-size: 19px;
    line-height: 1.16;
}

.akht-style--classic .akht-card small {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .akht-card-hide-d {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .akht-grid {
        grid-template-columns: repeat(var(--akht-cols-t, 2), minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .akhome-wrap {
        width: min(100% - 24px, var(--ak-container, 1320px));
    }

    .akhome-head {
        margin-bottom: 16px;
    }

    .akht {
        padding: 30px 0;
    }

    .akhome-block.akht.akht-v120.akht-mobile--one .akht-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--akht-gap-m, 10px) !important;
    }

    .akhome-block.akht.akht-v120.akht-mobile--two .akht-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: var(--akht-gap-m, 10px) !important;
    }

    .akhome-block.akht.akht-v120.akht-mobile--scroll .akht-grid {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(190px, 74vw);
        grid-template-columns: none !important;
        gap: var(--akht-gap-m, 10px) !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .akht-mobile--scroll .akht-card {
        scroll-snap-align: start;
    }

    .akht-media {
        height: var(--akht-img-h-m, 68px);
        padding: 10px 8px 0;
    }

    .akhome-svg-icon {
        width: min(var(--ak-icon-size, 50px), 38px);
        height: min(var(--ak-icon-size, 50px), 38px);
    }

    .akht-body {
        padding: 10px 10px 12px;
    }

    .akht-card {
        border-radius: 17px;
    }

    .akht-card::before {
        left: 12px;
        right: 12px;
        height: 3px;
    }

    .akht-card b {
        font-size: 13px;
        line-height: 1.12;
    }

    .akht-card small {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.25;
    }

    .akht-button {
        margin-top: 10px;
        min-height: 32px;
        padding: 8px 10px;
        border-radius: var(--ak-ui-btn-radius-small, 12px);
        font-size: 11px;
        box-shadow: none;
    }

    .akht-desc-m--0 .akht-card small,
    .akht-card-hide-m {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .akhome-block.akht.akht-v120.akht-mobile--two .akht-grid {
        gap: max(6px, calc(var(--akht-gap-m, 10px) - 2px)) !important;
    }

    .akht-media {
        height: min(var(--akht-img-h-m, 68px), 60px);
    }

    .akhome-svg-icon {
        width: 32px;
        height: 32px;
    }

    .akht-card b {
        font-size: 12px;
    }

    .akht-card small {
        display: none !important;
    }
}


/* v1.2.3 — match Services block title/intro spacing */
.akhome-block.akht.akht-v120 .akhome-head {
    gap: 3px !important;
}

.akhome-block.akht.akht-v120 .akhome-head p {
    margin-top: 0 !important;
}


/* v1.2.4 — homepage equal-height group support.
   Only min-height is synchronized by JS on desktop; mobile keeps natural height. */
@media (min-width: 992px) {
    .akhome-block[data-akh-equal-group] {
        height: auto;
        transition: min-height .18s ease;
    }
}

@media (max-width: 991px) {
    .akhome-block[data-akh-equal-group] {
        min-height: 0 !important;
    }
}


/* v1.2.5 — unified top padding for homepage paired blocks */
.akhome-block.akht {
    padding-top: 24px !important;
}

@media (max-width: 767px) {
    .akhome-block.akht {
        padding-top: 22px !important;
    }
}
