.khs-home-enhanced {
    --khs-color-ink: #3f2b2f;
    --khs-color-muted: #74666a;
    --khs-color-brand: #8b2635;
    --khs-color-brand-dark: #6f1e2b;
    --khs-color-forest: #31584b;
    --khs-color-blush: #fff4f7;
    --khs-color-line: rgba(99, 61, 70, 0.14);
    --khs-shadow-soft: 0 16px 38px rgba(83, 50, 58, 0.11);
}

.khs-hero__content {
    max-width: 720px !important;
    align-items: center !important;
    text-align: center;
}

.khs-hero #brxe-htbqun,
.khs-hero #brxe-stxynv {
    align-self: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

.khs-hero #brxe-htbqun {
    line-height: 1.08 !important;
}

.khs-hero #brxe-stxynv {
    margin-top: clamp(8px, 1vw, 14px) !important;
    line-height: 1.15 !important;
}

.khs-hero__intro {
    width: 100%;
    max-width: 650px;
    margin: 20px auto 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0;
    text-shadow: 0 2px 16px rgba(31, 19, 22, 0.42);
    text-wrap: pretty;
}

.khs-hero__intro-line,
.khs-home-services__subtitle-line {
    display: block;
}

.khs-hero__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px auto 0;
}

.khs-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 750 !important;
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.khs-button--primary {
    color: #ffffff !important;
    background: var(--khs-color-brand);
    border-color: var(--khs-color-brand-dark);
    box-shadow: 0 10px 24px rgba(74, 21, 31, 0.24);
}

.khs-button--primary:hover {
    color: #ffffff !important;
    background: var(--khs-color-brand-dark);
    transform: translateY(-2px);
}

.khs-button--glass {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.khs-button--glass:hover {
    color: var(--khs-color-ink) !important;
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.khs-trust-band {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 18px 24px;
    background: #fff8fa;
    border-bottom: 1px solid var(--khs-color-line);
}

.khs-trust-band__inner {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto;
}

.khs-trust-band__item {
    position: relative;
    min-width: 0;
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--khs-color-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(83, 50, 58, 0.07);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.khs-trust-band__item::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    background: var(--khs-color-brand);
    opacity: 0.72;
}

.khs-trust-band__item:nth-child(even)::after {
    background: var(--khs-color-forest);
}

.khs-trust-band__item:hover {
    border-color: rgba(139, 38, 53, 0.25);
    box-shadow: 0 12px 30px rgba(83, 50, 58, 0.12);
    transform: translateY(-2px);
}

.khs-trust-band__mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--khs-color-brand);
    border: 1px solid var(--khs-color-brand-dark);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.khs-trust-band__item:nth-child(even) .khs-trust-band__mark {
    background: var(--khs-color-forest);
    border-color: #27483d;
}

.khs-trust-band__content {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.khs-trust-band__content strong,
.khs-trust-band__content > span {
    display: block;
    letter-spacing: 0;
}

.khs-trust-band__content strong {
    color: var(--khs-color-forest);
    font-size: 15px;
    font-weight: 750 !important;
    line-height: 1.35;
}

.khs-trust-band__content > span {
    color: var(--khs-color-muted);
    font-size: 13px;
    line-height: 1.55;
}

.khs-home-services {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    margin-inline: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: clamp(64px, 7vw, 96px) !important;
    padding-bottom: clamp(68px, 8vw, 108px) !important;
    background: var(--khs-color-blush);
}

.khs-home-services #brxe-napvob {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.khs-home-services #brxe-olgiok {
    max-width: 780px;
    margin-inline: auto;
    color: var(--khs-color-ink);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    font-size: 44px;
    font-weight: 750 !important;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-shadow: none !important;
    text-wrap: balance;
}

.khs-home-services #brxe-xexxlw {
    max-width: 680px;
    margin: 14px auto 0;
    color: var(--khs-color-muted);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0;
    text-align: center;
    text-wrap: pretty;
}

.khs-home-enhanced #brxe-yajyty {
    display: none !important;
}

.khs-services-slider {
    width: 100%;
    min-width: 0;
    margin-top: 40px;
}

.khs-services-slider__viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.khs-services-slider__viewport::-webkit-scrollbar {
    display: none;
}

.khs-services-slider__viewport:focus-visible {
    outline: 3px solid #c7a56d;
    outline-offset: 4px;
}

.khs-services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    grid-auto-rows: 1fr;
    gap: 20px;
    margin: 0;
}

.khs-service-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--khs-color-line);
    border-radius: 8px;
    box-shadow: var(--khs-shadow-soft);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.khs-service-card:hover {
    border-color: rgba(139, 38, 53, 0.28);
    box-shadow: 0 20px 46px rgba(83, 50, 58, 0.16);
    transform: translateY(-4px);
}

.khs-service-card__media {
    aspect-ratio: 3 / 2;
    display: block;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--khs-color-line);
}

.khs-service-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.khs-service-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.khs-service-card__eyebrow {
    color: var(--khs-color-brand);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.khs-service-card h3 {
    margin: 8px 0 0;
    color: var(--khs-color-ink);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0;
    text-wrap: balance;
}

.khs-service-card p {
    margin: 12px 0 18px;
    color: var(--khs-color-muted);
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0;
}

.khs-service-card__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: var(--khs-color-forest) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(49, 88, 75, 0.35);
    text-underline-offset: 4px;
}

.khs-services-slider__controls {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.khs-services-slider__button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--khs-color-forest);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(49, 88, 75, 0.22);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(83, 50, 58, 0.09);
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.khs-services-slider__button:not(:disabled):hover {
    color: #ffffff;
    background: var(--khs-color-forest);
    border-color: var(--khs-color-forest);
    transform: translateY(-2px);
}

.khs-services-slider__button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.khs-services-slider__button-icon {
    width: 20px;
    height: 20px;
    display: block;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.khs-services-slider__button--next .khs-services-slider__button-icon {
    transform: rotate(180deg);
}

.khs-services-slider__counter {
    min-width: 58px;
    color: var(--khs-color-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}

.khs-services-all {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 34px auto 0;
    padding: 12px 22px;
    color: #ffffff !important;
    background: var(--khs-color-forest);
    border: 1px solid #27483d;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none !important;
}

.khs-services-all:hover {
    color: #ffffff !important;
    background: #27483d;
}

.khs-button:focus-visible,
.khs-service-card__media:focus-visible,
.khs-service-card__link:focus-visible,
.khs-services-all:focus-visible {
    outline: 3px solid #c7a56d;
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .khs-hero__intro {
        font-size: 18px;
    }

    .khs-home-services #brxe-olgiok {
        font-size: 36px;
    }

    .khs-trust-band__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 768px) and (max-width: 1199px) {
    .khs-hero {
        width: var(--khs-viewport-width, 100vw) !important;
        min-width: 0 !important;
        max-width: var(--khs-viewport-width, 100vw) !important;
        margin: 0 !important;
    }

    .khs-hero #brxe-khzsil {
        display: none !important;
    }

    .khs-hero #brxe-rmrptp {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
    }

    .khs-hero__content {
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 64px) !important;
        max-width: 700px !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
    }

    .khs-hero #brxe-htbqun {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(60px, 9vw, 72px) !important;
        line-height: 1.08 !important;
        text-align: center !important;
        white-space: nowrap;
    }

    .khs-hero #brxe-stxynv {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(40px, 6vw, 48px) !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .khs-hero__content {
        top: 34px !important;
        bottom: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    .khs-hero__intro {
        max-width: 34rem;
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.55;
        text-wrap: balance;
    }

    .khs-hero__intro-line,
    .khs-home-services__subtitle-line {
        display: inline;
    }

    .khs-hero__actions {
        width: calc(100% - 52px);
        gap: 10px;
        margin-top: 20px;
    }

    .khs-button {
        flex: 1 1 145px;
        padding-inline: 14px;
        font-size: 14px;
    }

    .khs-trust-band {
        padding: 14px 16px;
    }

    .khs-trust-band__inner {
        grid-auto-rows: 1fr;
        align-items: stretch;
    }

    .khs-trust-band__item {
        min-height: 116px;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 12px 16px;
    }

    .khs-trust-band__mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 10px;
    }

    .khs-trust-band__content strong {
        font-size: 14px;
    }

    .khs-trust-band__content > span {
        font-size: 12px;
    }

    .khs-home-services #brxe-napvob {
        width: calc(100% - 32px) !important;
    }

    .khs-home-services {
        padding-bottom: 32px !important;
    }

    .khs-home-services #brxe-olgiok {
        font-size: 29px;
    }

    .khs-home-services #brxe-xexxlw {
        font-size: 15px;
        text-wrap: balance;
    }

    .khs-services-grid {
        grid-template-columns: none;
        grid-auto-columns: calc((100% - 12px) / 2);
        gap: 12px;
        margin: 0;
    }

    .khs-services-slider {
        margin-top: 30px;
    }

    .khs-services-all {
        margin-top: 20px;
    }

    .khs-service-card__body {
        padding: 14px;
    }

    .khs-service-card__eyebrow {
        font-size: 10px;
    }

    .khs-service-card h3 {
        margin-top: 6px;
        font-size: 16px;
        line-height: 1.3;
    }

    .khs-service-card p {
        margin: 10px 0 14px;
        font-size: 12px;
        line-height: 1.55;
    }

    .khs-service-card__link {
        min-height: 40px;
        font-size: 12px;
    }

    #brxe-bltgvu {
        padding-top: 32px !important;
    }

    .kh-mobile-testimonial-v2 {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 40px !important;
    }

    .kh-mobile-testimonial-v2__inner,
    .kh-mobile-testimonial-v2__slider,
    .kh-mobile-testimonial-v2__slider .splide__track,
    .kh-mobile-testimonial-v2__slider .splide__list,
    .kh-mobile-testimonial-v2__card {
        height: auto !important;
        min-height: 0 !important;
    }

    .kh-mobile-testimonial-v2__slider {
        padding: 8px 8px 18px !important;
    }

    .kh-mobile-testimonial-v2__card {
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 6px !important;
    }

    .kh-mobile-testimonial-v2__content {
        display: none !important;
    }

    .kh-mobile-testimonial-v2__slider .splide__pagination {
        position: relative !important;
        inset: auto !important;
        height: 22px !important;
        margin: 8px auto 0 !important;
        padding: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .khs-button,
    .khs-service-card {
        scroll-behavior: auto;
        transition: none;
    }

    .khs-button:hover,
    .khs-service-card:hover {
        transform: none;
    }
}
