:root {
    --km24-ink: #15120e;
    --km24-cream: #f6f0e6;
    --km24-warm: #c6a46d;
    --km24-muted: rgba(246, 240, 230, 0.74);
    --km24-line: rgba(198, 164, 109, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--km24-ink);
    color: var(--km24-cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.km24-home {
    min-height: 100vh;
    background: var(--km24-ink);
}

.km24-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 86vh;
    overflow: hidden;
    isolation: isolate;
}

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

.km24-hero__media {
    z-index: -2;
}

.km24-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.km24-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(13, 11, 8, 0.86) 0%, rgba(13, 11, 8, 0.66) 34%, rgba(13, 11, 8, 0.18) 68%, rgba(13, 11, 8, 0.04) 100%),
        linear-gradient(180deg, rgba(13, 11, 8, 0.18) 0%, rgba(13, 11, 8, 0.10) 58%, rgba(13, 11, 8, 0.76) 100%);
}

.km24-hero__content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 112px 0 128px clamp(80px, 7vw, 120px);
}

.km24-hero__eyebrow {
    margin: 0 0 22px;
    color: var(--km24-warm);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.km24-hero__title {
    max-width: 720px;
    margin: 0;
    color: var(--km24-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 5.85vw, 6.12rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0;
}

.km24-hero__text {
    max-width: 610px;
    margin: 30px 0 0;
    color: var(--km24-muted);
    font-size: clamp(1.08rem, 1.4vw, 1.34rem);
    font-weight: 400;
    line-height: 1.62;
}

.km24-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.km24-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.km24-button:hover {
    transform: translateY(-2px);
}

.km24-button--primary {
    background: var(--km24-warm);
    color: #17120c;
}

.km24-button--secondary {
    border-color: rgba(246, 240, 230, 0.44);
    background: rgba(246, 240, 230, 0.06);
    color: var(--km24-cream);
}

.km24-button--secondary:hover {
    border-color: var(--km24-warm);
}

.km24-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: min(1180px, calc(100% - 48px));
    margin: -42px auto 0;
    position: relative;
    z-index: 3;
    border: 1px solid var(--km24-line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--km24-line);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.km24-trust__item {
    min-height: 86px;
    padding: 20px 24px;
    background: rgba(23, 19, 14, 0.88);
}

.km24-trust__label,
.km24-trust__value {
    display: block;
}

.km24-trust__label {
    color: var(--km24-warm);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.km24-trust__value {
    margin-top: 8px;
    color: var(--km24-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.98rem, 1.15vw, 1.16rem);
    line-height: 1.24;
}

.km24-categories {
    padding: 116px 0 124px;
    background:
        radial-gradient(circle at 18% 4%, rgba(198, 164, 109, 0.12), transparent 34%),
        linear-gradient(180deg, #15120e 0%, #1b1711 100%);
}

.km24-categories__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.km24-categories__header {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.62fr);
    column-gap: clamp(48px, 7vw, 112px);
    align-items: end;
    margin-bottom: 42px;
}

.km24-section-kicker {
    grid-column: 1 / -1;
    margin: 0 0 16px;
    color: var(--km24-warm);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.km24-categories__title {
    margin: 0;
    color: var(--km24-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4.35vw, 4.8rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0;
}

.km24-categories__text {
    margin: 0;
    color: var(--km24-muted);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.62;
}

.km24-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.km24-category-card {
    position: relative;
    display: flex;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(198, 164, 109, 0.22);
    border-radius: 18px;
    background: #211c15;
    color: var(--km24-cream);
    text-decoration: none;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
    isolation: isolate;
    transform: translateY(0);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.km24-category-card:hover,
.km24-category-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(198, 164, 109, 0.56);
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(198, 164, 109, 0.12);
}

.km24-category-card:focus-visible {
    outline: 2px solid var(--km24-warm);
    outline-offset: 4px;
}

.km24-category-card__media,
.km24-category-card__shade {
    position: absolute;
    inset: 0;
}

.km24-category-card__media {
    z-index: -2;
}

.km24-category-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9) contrast(1.02);
    transform: scale(1);
    transition: transform 600ms ease, filter 220ms ease;
}

.km24-category-card:hover .km24-category-card__image,
.km24-category-card:focus-visible .km24-category-card__image {
    filter: saturate(1) contrast(1.04);
    transform: scale(1.045);
}

.km24-category-card__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 14, 9, 0.05) 0%, rgba(18, 14, 9, 0.34) 44%, rgba(18, 14, 9, 0.9) 100%),
        linear-gradient(90deg, rgba(18, 14, 9, 0.42) 0%, rgba(18, 14, 9, 0.08) 52%, rgba(18, 14, 9, 0.26) 100%);
    transition: background 220ms ease;
}

.km24-category-card:hover .km24-category-card__shade,
.km24-category-card:focus-visible .km24-category-card__shade {
    background:
        linear-gradient(180deg, rgba(18, 14, 9, 0.02) 0%, rgba(18, 14, 9, 0.28) 44%, rgba(18, 14, 9, 0.88) 100%),
        linear-gradient(90deg, rgba(18, 14, 9, 0.32) 0%, rgba(18, 14, 9, 0.06) 52%, rgba(18, 14, 9, 0.22) 100%);
}

.km24-category-card__content {
    align-self: flex-end;
    width: 100%;
    padding: 30px;
}

.km24-category-card__title,
.km24-category-card__text {
    display: block;
}

.km24-category-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.15vw, 2.38rem);
    line-height: 1.04;
}

.km24-category-card__text {
    max-width: 320px;
    margin-top: 12px;
    color: rgba(246, 240, 230, 0.78);
    font-size: 0.96rem;
    line-height: 1.48;
}

@media (max-width: 980px) {
    .km24-hero {
        min-height: 78vh;
    }

    .km24-hero__shade {
        background:
            linear-gradient(90deg, rgba(13, 11, 8, 0.88) 0%, rgba(13, 11, 8, 0.58) 52%, rgba(13, 11, 8, 0.22) 100%),
            linear-gradient(180deg, rgba(13, 11, 8, 0.10) 0%, rgba(13, 11, 8, 0.78) 100%);
    }

    .km24-hero__content {
        padding: 92px 0 116px clamp(36px, 5vw, 64px);
    }

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

    .km24-categories {
        padding: 96px 0 104px;
    }

    .km24-categories__header {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .km24-categories__text {
        max-width: 680px;
    }

    .km24-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .km24-category-card {
        min-height: 380px;
    }
}

@media (max-width: 680px) {
    .km24-hero {
        align-items: flex-end;
        min-height: 82vh;
    }

    .km24-hero__image {
        object-position: 57% center;
    }

    .km24-hero__shade {
        background:
            linear-gradient(180deg, rgba(13, 11, 8, 0.05) 0%, rgba(13, 11, 8, 0.42) 42%, rgba(13, 11, 8, 0.92) 100%),
            linear-gradient(90deg, rgba(13, 11, 8, 0.44) 0%, rgba(13, 11, 8, 0.10) 100%);
    }

    .km24-hero__content,
    .km24-trust {
        width: min(100% - 32px, 520px);
    }

    .km24-hero__content {
        padding: 110px 0 86px;
    }

    .km24-hero__eyebrow {
        margin-bottom: 16px;
        font-size: 0.68rem;
    }

    .km24-hero__title {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
        line-height: 0.98;
    }

    .km24-hero__text {
        margin-top: 22px;
        font-size: 1rem;
        line-height: 1.52;
    }

    .km24-hero__actions {
        flex-direction: column;
        margin-top: 30px;
    }

    .km24-button {
        width: 100%;
        min-height: 50px;
        padding: 0 18px;
    }

    .km24-trust {
        grid-template-columns: 1fr;
        margin-top: 0;
        border-radius: 0;
        border-right: 0;
        border-left: 0;
        width: 100%;
    }

    .km24-trust__item {
        min-height: 82px;
        padding: 18px 24px;
    }

    .km24-categories {
        padding: 74px 0 82px;
    }

    .km24-categories__inner {
        width: min(100% - 32px, 520px);
    }

    .km24-categories__header {
        margin-bottom: 30px;
    }

    .km24-section-kicker {
        margin-bottom: 12px;
        font-size: 0.66rem;
    }

    .km24-categories__title {
        font-size: clamp(2.28rem, 11vw, 3.35rem);
        line-height: 1;
    }

    .km24-categories__text {
        font-size: 1rem;
        line-height: 1.54;
    }

    .km24-categories__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .km24-category-card {
        min-height: 340px;
        border-radius: 16px;
    }

    .km24-category-card__content {
        padding: 24px;
    }

    .km24-category-card__title {
        font-size: 2rem;
    }

    .km24-category-card__text {
        font-size: 0.94rem;
    }
}
