:root {
    --kf-home-primary: #03045E;
    --kf-home-primary-2: #071b4c;
    --kf-home-accent: #ef7c00;
    --kf-home-text: #172033;
    --kf-home-muted: #687387;
    --kf-home-soft: #f6f7f9;
    --kf-home-border: #e5e8ee;
    --kf-home-white: #ffffff;
}

body.home-layout {
    background: #fff;
    color: var(--kf-home-text);
}


.kf-home {
    overflow: hidden;
    background: #fff;
}

.kf-home-container {
    width: min(92%, 1460px);
    margin-inline: auto;
}

.kf-home-hero {
    position: relative;
    min-height: clamp(400px, 45vw, 500px);
    display: flex;
    align-items: center;
    isolation: isolate;
    background: var(--kf-home-primary);
}

.kf-home-hero__media,
.kf-home-hero__shade {
    position: absolute;
    inset: 0;
}

.kf-home-hero__media {
    z-index: -3;
}

.kf-home-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kf-home-hero__shade {
    z-index: -2;
    background: linear-gradient(90deg, rgba(3,4,94,.92) 0%, rgba(3,4,94,.70) 42%, rgba(3,4,94,.26) 72%, rgba(3,4,94,.18) 100%);
}

html[dir="rtl"] .kf-home-hero__shade {
    background: linear-gradient(270deg, rgba(3,4,94,.92) 0%, rgba(3,4,94,.70) 42%, rgba(3,4,94,.26) 72%, rgba(3,4,94,.18) 100%);
}

.kf-home-hero__content {
    width: min(92%, 1460px);
    min-height: inherit;
    margin-inline: auto;
    display: flex;
    align-items: center;
    padding-block: 72px;
    padding-inline: 0;
}

.kf-home-hero__copy {
    width: min(720px, 42%);
    margin-inline-end: auto;
    color: #fff;
}


.kf-home-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255,255,255,.82);
}

.kf-home-eyebrow--dark {
    color: var(--kf-home-accent);
}

.kf-home-hero h1 {
    color: #fff;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 18px;
    max-width: 630px;
}

.kf-home-hero p {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.95;
    max-width: 650px;
    margin: 0 0 24px;
}

.kf-home-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kf-home-btn {
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    border: 1px solid transparent;
    text-decoration: none !important;
}

.kf-home-btn:hover {
    transform: translateY(-2px);
}

.kf-home-btn--accent {
    color: #fff !important;
    background: var(--kf-home-accent);
    border-color: var(--kf-home-accent);
}

.kf-home-btn--accent:hover {
    background: #d96f00;
    border-color: #d96f00;
}

.kf-home-btn--outline {
    color: #fff !important;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.8);
}

.kf-home-btn--outline:hover {
    background: #fff;
    color: var(--kf-home-primary) !important;
}

.kf-home-btn--primary {
    color: #fff !important;
    background: var(--kf-home-primary);
    border-color: var(--kf-home-primary);
}

.kf-home-btn--primary:hover {
    background: var(--kf-home-accent);
    border-color: var(--kf-home-accent);
}

.kf-home-btn--light {
    color: var(--kf-home-primary) !important;
    background: #fff;
    border-color: #fff;
}

.kf-home-btn--light:hover {
    color: #fff !important;
    background: var(--kf-home-accent);
    border-color: var(--kf-home-accent);
}

.kf-home-hero__dots {
    position: absolute;
    left: max(26px, 4vw);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kf-home-hero__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
}

.kf-home-hero__dots span.is-active {
    height: 22px;
    border-radius: 10px;
    background: var(--kf-home-accent);
}

.kf-home-section {
    padding: 40px 0;
}

.kf-home-section--categories {
    padding-top: 38px;
    padding-bottom: 26px;
}

.kf-home-section--projects {
    padding-top: 18px;
}

.kf-home-section--products {
    background: linear-gradient(180deg, #fbfbfc 0%, #fff 100%);
}

.kf-home-section--blogs {
    padding-top: 30px;
}

.kf-home-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.kf-home-section-title span {
    width: 22px;
    height: 2px;
    background: var(--kf-home-accent);
    border-radius: 99px;
}

.kf-home-section-title h2 {
    margin: 0;
    color: var(--kf-home-text);
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.4;
    font-weight: 800;
}

.kf-home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.kf-home-category-card,
.kf-home-project-card,
.kf-home-product-card,
.kf-home-blog-card {
    border: 1px solid var(--kf-home-border);
    background: #fff;
    box-shadow: 0 6px 18px rgba(23,32,51,.045);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
    text-decoration: none !important;
}

.kf-home-category-card:hover,
.kf-home-project-card:hover,
.kf-home-product-card:hover,
.kf-home-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(3,4,94,.18);
    box-shadow: 0 14px 30px rgba(3,4,94,.10);
}

.kf-home-category-card {
    border-radius: 6px;
}

.kf-home-category-card__image {
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    background: #f2f3f5;
}

.kf-home-category-card__image img,
.kf-home-project-card__image img,
.kf-home-product-card__image img,
.kf-home-blog-card__image img,
.kf-home-about__image > img,
.kf-home-quality__media img,
.kf-home-quality__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.kf-home-category-card:hover img,
.kf-home-project-card:hover img,
.kf-home-product-card:hover img,
.kf-home-blog-card:hover img {
    transform: scale(1.035);
}

.kf-home-category-card__body {
    position: relative;
    min-height: 60px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kf-home-category-card__body strong {
    color: var(--kf-home-text);
    font-size: 13px;
    line-height: 1.7;
}

.kf-home-round-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--kf-home-primary);
    border: 3px solid #fff;
    box-shadow: 0 5px 14px rgba(3,4,94,.22);
}

.kf-home-project-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.kf-home-project-card {
    border-radius: 6px;
}

.kf-home-project-card__image {
    aspect-ratio: 1.32 / 1;
    background: #f1f2f4;
    overflow: hidden;
}

.kf-home-project-card__body {
    padding: 13px 13px 14px;
}

.kf-home-project-card__body strong {
    display: block;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--kf-home-text);
    font-size: 13px;
    line-height: 1.75;
}

.kf-home-project-card__body span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: var(--kf-home-muted);
    font-size: 11px;
}

.kf-home-project-card__body span i {
    color: var(--kf-home-accent);
}

.kf-home-center-action {
    margin-top: 24px;
    text-align: center;
}

.kf-home-quality {
    padding: 34px 0;
    color: #fff;
    background: var(--kf-home-primary);
}

.kf-home-quality__grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 54px;
    align-items: center;
    direction: ltr;
}

html[dir="rtl"] .kf-home-quality__content {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .kf-home-quality__content {
    direction: ltr;
    text-align: left;
}

.kf-home-quality__media {
    position: relative;
    aspect-ratio: 1.52 / 1;
    overflow: hidden;
    border-radius: 9px;
    background: #08104b;
    box-shadow: 0 16px 42px rgba(0,0,0,.16);
}

.kf-home-quality__media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3,4,94,.01), rgba(3,4,94,.08));
}

.kf-home-play {
    position: absolute;
    padding: 0;
    border: 0;
    cursor: pointer;
    z-index: 2;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--kf-home-primary);
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 25px rgba(0,0,0,.22);
}

.kf-home-quality__content h2 {
    color: #fff;
    margin: 0 0 11px;
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 800;
}

.kf-home-quality__content > p {
    color: rgba(255,255,255,.78);
    line-height: 2;
    margin: 0 0 24px;
    font-size: 13px;
}

.kf-home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.kf-home-stats > div {
    text-align: center;
    min-width: 0;
}

.kf-home-stats i {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,.85);
    font-size: 25px;
}

.kf-home-stats strong {
    display: block;
    color: var(--kf-home-accent);
    font-size: 23px;
    line-height: 1.1;
}

.kf-home-stats span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    line-height: 1.5;
}

.kf-home-about {
    background: #fff;
}

.kf-home-about__grid {
    display: grid;
    grid-template-columns: .84fr 1.16fr;
    gap: 42px;
    align-items: center;
    direction: ltr;
}

html[dir="rtl"] .kf-home-about__content {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .kf-home-about__content {
    direction: ltr;
    text-align: left;
}

.kf-home-about__image {
    position: relative;
    min-height: 0;
    aspect-ratio: 1.12 / 1;
    border-radius: 9px;
    overflow: hidden;
    background: #f1f2f4;
}

.kf-home-experience-badge {
    position: absolute;
    inset-inline-start: 18px;
    bottom: 18px;
    min-width: 108px;
    min-height: 92px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--kf-home-accent);
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(239,124,0,.28);
}

.kf-home-experience-badge strong {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.kf-home-experience-badge span {
    margin-top: 7px;
    font-size: 11px;
}

.kf-home-about__content h2 {
    margin: 0 0 12px;
    color: var(--kf-home-text);
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 800;
}

.kf-home-about__content > p {
    margin: 0 0 20px;
    color: var(--kf-home-muted);
    line-height: 2;
    font-size: 13px;
    text-align: justify;
}

.kf-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.kf-home-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.kf-home-feature-item > span {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--kf-home-primary);
    font-size: 17px;
}

.kf-home-feature-item strong,
.kf-home-feature-item small {
    display: block;
}

.kf-home-feature-item strong {
    color: var(--kf-home-text);
    font-size: 12px;
    margin-bottom: 4px;
}

.kf-home-feature-item small {
    color: var(--kf-home-muted);
    font-size: 11px;
    line-height: 1.6;
}

.kf-home-text-link {
    min-height: 34px;
    padding: 6px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--kf-home-primary) !important;
    background: #fff;
    border: 1px solid #d9dde5;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.kf-home-text-link:hover {
    color: var(--kf-home-accent) !important;
}

.kf-home-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.kf-home-product-card {
    border-radius: 6px;
}

.kf-home-product-card__image {
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    background: #f3f4f5;
}

.kf-home-product-card__image img {
    object-fit: cover;
    padding: 0;
}

.kf-home-product-card__body {
    padding: 12px 12px 13px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kf-home-product-card__body strong {
    color: var(--kf-home-text);
    font-size: 11px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-home-product-card__body i {
    flex: 0 0 auto;
    color: var(--kf-home-accent);
    font-size: 10px;
}

.kf-home-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kf-home-blog-card {
    border-radius: 6px;
}

.kf-home-blog-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1.48 / 1;
    overflow: hidden;
    background: #f2f3f5;
}

.kf-home-blog-card__image > span {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: var(--kf-home-text);
    background: rgba(255,255,255,.92);
    border-radius: 4px;
    font-size: 10px;
}

.kf-home-blog-card__body {
    padding: 14px;
}

.kf-home-blog-card__body h3 {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.75;
    font-weight: 800;
}

.kf-home-blog-card__body h3 a {
    color: var(--kf-home-text);
}

.kf-home-blog-card__body p {
    margin: 0;
    color: var(--kf-home-muted);
    font-size: 11px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-home-cta {
    padding: 0 0 20px;
}

.kf-home-cta__inner {
    padding: 13px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    background: #f1f2f4;
    border-radius: 6px;
    border: 1px solid #e3e5e9;
}

.kf-home-cta__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--kf-home-primary);
    font-size: 24px;
}

.kf-home-cta__copy h2 {
    margin: 0 0 4px;
    color: var(--kf-home-text);
    font-size: 17px;
    font-weight: 800;
}

.kf-home-cta__copy p {
    margin: 0;
    color: var(--kf-home-muted);
    font-size: 12px;
}

.kf-home-cta__actions {
    display: flex;
    gap: 9px;
}

.kf-home-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #a5adba;
    background: #f1f2f4;
    font-size: 35px;
}

.kf-home-empty {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: var(--kf-home-muted);
    background: #f7f8fa;
    border: 1px dashed var(--kf-home-border);
    border-radius: 6px;
}


@media (max-width: 1100px) {
    .kf-home-project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .kf-home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-quality__grid,
    .kf-home-about__grid {
        gap: 34px;
    }

    .kf-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .kf-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-quality__grid,
    .kf-home-about__grid {
        grid-template-columns: 1fr;
    }

    .kf-home-quality__media {
        max-width: 680px;
        width: 100%;
        margin-inline: auto;
    }

    .kf-home-about__image {
        min-height: 0;
        aspect-ratio: 1.12 / 1;
        order: 2;
    }

    .kf-home-about__content {
        order: 1;
    }

    .kf-home-cta__inner {
        grid-template-columns: auto 1fr;
    }

    .kf-home-cta__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .kf-home-container {
        width: calc(100% - 28px);
    }

    .kf-home-hero {
        min-height: 460px;
    }

    .kf-home-hero__content {
        padding-block: 58px;
    }

    .kf-home-hero__copy {
        width: 100%;
        margin-inline: 0;
    }

    .kf-home-hero h1 {
        font-size: 34px;
    }

    .kf-home-hero p {
        font-size: 13px;
        line-height: 1.9;
    }

    .kf-home-hero__dots {
        display: none;
    }

    .kf-home-section {
        padding: 42px 0;
    }

    .kf-home-project-grid,
    .kf-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 12px;
    }

    .kf-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-about__image {
        min-height: 0;
        aspect-ratio: 1.12 / 1;
    }
}

@media (max-width: 560px) {
    .kf-home-actions,
    .kf-home-cta__actions {
        width: 100%;
    }

    .kf-home-actions .kf-home-btn,
    .kf-home-cta__actions .kf-home-btn {
        flex: 1 1 100%;
    }

    .kf-home-feature-grid {
        grid-template-columns: 1fr;
    }

    .kf-home-category-grid,
    .kf-home-project-grid,
    .kf-home-product-grid,
    .kf-home-blog-grid {
        grid-template-columns: 1fr;
    }

    .kf-home-category-card,
    .kf-home-project-card,
    .kf-home-product-card,
    .kf-home-blog-card {
        max-width: 420px;
        width: 100%;
        margin-inline: auto;
    }

    .kf-home-product-card__image {
        aspect-ratio: 1.28 / 1;
    }

    .kf-home-blog-grid {
        gap: 10px;
    }

    .kf-home-quality {
        padding: 32px 0;
    }

    .kf-home-quality__grid {
        gap: 26px;
    }

    .kf-home-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 16px;
    }

    .kf-home-cta__icon {
        margin-inline: auto;
    }

    .kf-home-cta__actions {
        grid-column: auto;
        flex-direction: column;
    }
}


html[dir="rtl"] .kf-home-project-card__body,
html[dir="rtl"] .kf-home-product-card__body,
html[dir="rtl"] .kf-home-category-card__body,
html[dir="rtl"] .kf-home-blog-card__body,
html[dir="rtl"] .kf-home-cta__copy {
    text-align: right;
}

.kf-home-category-card__body strong,
.kf-home-product-card__body strong {
    flex: 1 1 auto;
    min-width: 0;
}

.kf-home-blog-card__body h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-home-feature-item div {
    min-width: 0;
}

.kf-home-feature-item small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-home-quality__content,
.kf-home-about__content {
    padding-block: 6px;
}

.kf-home-cta__actions .kf-home-btn {
    min-width: 160px;
}


html[dir="rtl"] .kf-home-hero__copy {
    padding-inline-start: 0;
}

html[dir="ltr"] .kf-home-hero__copy {
    padding-inline-end: 0;
}


html[dir="rtl"] .kf-home-quality__content {
    padding-inline-start: clamp(8px, 1vw, 16px);
    padding-inline-end: clamp(18px, 3vw, 42px);
}

html[dir="ltr"] .kf-home-quality__content {
    padding-inline-start: clamp(18px, 3vw, 42px);
    padding-inline-end: clamp(8px, 1vw, 16px);
}

@media (max-width: 1100px) {
    .kf-home-hero__copy {
        width: min(760px, 48%);
    }

    .kf-home-quality__grid {
        gap: 34px;
    }
}

@media (max-width: 767px) {
    html[dir="rtl"] .kf-home-hero__copy,
    html[dir="ltr"] .kf-home-hero__copy,
    html[dir="rtl"] .kf-home-quality__content,
    html[dir="ltr"] .kf-home-quality__content {
        padding-inline: 0;
    }
}


html[dir="rtl"] .kf-home-stats {
    direction: rtl;
}

html[dir="ltr"] .kf-home-stats {
    direction: ltr;
}

html[dir="rtl"] .kf-home-feature-grid {
    direction: rtl;
}
/* ===== Final responsive pass: home page ===== */
@media (max-width: 991px) {
    .kf-home-container,
    .kf-home-hero__content {
        width: min(calc(100% - 40px), 760px);
        margin-inline: auto;
    }

    .kf-home-hero {
        min-height: 520px;
    }

    .kf-home-hero__content {
        min-height: 520px;
        padding-block: 54px;
    }

    .kf-home-hero__copy,
    html[dir="rtl"] .kf-home-hero__copy,
    html[dir="ltr"] .kf-home-hero__copy {
        width: 100% !important;
        max-width: 620px;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }

    html[dir="rtl"] .kf-home-hero__copy {
        margin-left: auto !important;
        text-align: right;
    }

    html[dir="ltr"] .kf-home-hero__copy {
        margin-right: auto !important;
        text-align: left;
    }

    .kf-home-hero__media video {
        object-position: center center;
    }

    .kf-home-hero__shade {
        background: linear-gradient(90deg, rgba(3,4,94,.88) 0%, rgba(3,4,94,.72) 52%, rgba(3,4,94,.48) 100%);
    }

    html[dir="rtl"] .kf-home-hero__shade {
        background: linear-gradient(270deg, rgba(3,4,94,.91) 0%, rgba(3,4,94,.76) 52%, rgba(3,4,94,.48) 100%);
    }

    .kf-home-hero h1 {
        max-width: 100%;
        font-size: clamp(30px, 5vw, 40px);
    }

    .kf-home-hero p {
        max-width: 590px;
    }

    .kf-home-quality__grid,
    .kf-home-about__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .kf-home-quality__media,
    .kf-home-about__image {
        width: 100%;
        max-width: 680px;
        margin-inline: auto;
    }

    .kf-home-quality__content,
    html[dir="rtl"] .kf-home-quality__content,
    html[dir="ltr"] .kf-home-quality__content {
        padding-inline: 0;
    }

    .kf-home-about__content {
        order: 1;
    }

    .kf-home-about__image {
        order: 2;
    }

    .kf-home-stats {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .kf-home-project-grid,
    .kf-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-cta__inner {
        grid-template-columns: auto 1fr;
    }

    .kf-home-cta__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .kf-home-container,
    .kf-home-hero__content {
        width: calc(100% - 32px);
    }

    .kf-home-hero,
    .kf-home-hero__content {
        min-height: 500px;
    }

    .kf-home-hero__content {
        padding-block: 48px;
    }

    .kf-home-eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .kf-home-hero h1 {
        margin-bottom: 14px;
        font-size: clamp(27px, 8vw, 35px);
        line-height: 1.45;
    }

    .kf-home-hero p {
        margin-bottom: 20px;
        font-size: 12.5px;
        line-height: 1.95;
    }

    .kf-home-actions {
        gap: 8px;
    }

    .kf-home-actions .kf-home-btn {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 12px;
    }

    .kf-home-section {
        padding: 34px 0;
    }

    .kf-home-section--categories {
        padding-top: 32px;
        padding-bottom: 22px;
    }

    .kf-home-section--projects {
        padding-top: 18px;
    }

    .kf-home-section-title {
        gap: 8px;
        margin-bottom: 18px;
    }

    .kf-home-section-title h2 {
        font-size: 20px;
    }

    .kf-home-section-title span {
        width: 18px;
    }

    .kf-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .kf-home-project-grid,
    .kf-home-product-grid,
    .kf-home-blog-grid {
        gap: 12px;
    }

    .kf-home-quality {
        padding: 30px 0;
    }

    .kf-home-quality__content h2,
    .kf-home-about__content h2 {
        font-size: 25px;
    }

    .kf-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .kf-home-stats i {
        font-size: 22px;
    }

    .kf-home-stats strong {
        font-size: 21px;
    }

    .kf-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kf-home-cta__inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 16px;
        text-align: center;
    }

    .kf-home-cta__icon {
        margin-inline: auto;
    }

    .kf-home-cta__actions {
        grid-column: auto;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .kf-home-container,
    .kf-home-hero__content {
        width: calc(100% - 28px);
    }

    .kf-home-hero,
    .kf-home-hero__content {
        min-height: 490px;
    }

    .kf-home-hero__content {
        padding-block: 42px;
    }

    .kf-home-hero__media video {
        object-position: 42% center;
    }

    html[dir="rtl"] .kf-home-hero__shade {
        background: linear-gradient(270deg, rgba(3,4,94,.94) 0%, rgba(3,4,94,.84) 55%, rgba(3,4,94,.62) 100%);
    }

    .kf-home-hero h1 {
        font-size: clamp(26px, 8.5vw, 32px);
        line-height: 1.5;
    }

    .kf-home-hero p {
        font-size: 12px;
        line-height: 1.9;
    }

    .kf-home-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .kf-home-actions .kf-home-btn {
        width: 100%;
        flex: 0 0 auto;
    }

    .kf-home-category-grid,
    .kf-home-project-grid,
    .kf-home-product-grid,
    .kf-home-blog-grid {
        grid-template-columns: 1fr;
    }

    .kf-home-category-card,
    .kf-home-project-card,
    .kf-home-product-card,
    .kf-home-blog-card {
        width: 100%;
        max-width: none;
    }

    .kf-home-quality__grid,
    .kf-home-about__grid {
        gap: 22px;
    }

    .kf-home-quality__media {
        aspect-ratio: 1.38 / 1;
    }

    .kf-home-play {
        width: 50px;
        height: 50px;
    }

    .kf-home-quality__content h2,
    .kf-home-about__content h2 {
        font-size: 23px;
        line-height: 1.55;
    }

    .kf-home-quality__content > p,
    .kf-home-about__content > p {
        font-size: 12px;
        line-height: 1.9;
    }

    .kf-home-feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .kf-home-feature-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: start;
    }

    html[dir="rtl"] .kf-home-feature-item {
        text-align: right;
    }

    .kf-home-cta__actions {
        flex-direction: column;
    }

    .kf-home-cta__actions .kf-home-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .kf-home-container,
    .kf-home-hero__content {
        width: calc(100% - 22px);
    }

    .kf-home-hero,
    .kf-home-hero__content {
        min-height: 470px;
    }

    .kf-home-hero h1 {
        font-size: 25px;
    }

    .kf-home-section-title h2 {
        font-size: 18px;
    }
}
