.kh-topic,
.kh-topic * {
    box-sizing: border-box;
}

.kh-topic {
    width: min(1220px, calc(100vw - 34px));
    max-width: none !important;
    position: relative;
    left: 50%;
    margin: 34px 0 72px;
    transform: translateX(-50%);
    color: #253238;
    font-family: inherit;
}

.kh-topic-crumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 8px 18px;
    color: #68736d;
    font-size: 14px;
}

.kh-topic-crumb a {
    color: #55713d !important;
    text-decoration: none !important;
}

.kh-topic-hero {
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid rgba(89, 113, 66, .18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 20%, rgba(231, 186, 79, .14), transparent 31%),
        radial-gradient(circle at 90% 12%, rgba(130, 166, 92, .18), transparent 35%),
        #fbfcf8;
    text-align: center;
}

.kh-topic-kicker,
.kh-topic-section__head > span,
.kh-topic-practice > div > span {
    display: inline-block;
    color: #5c763f;
    font-size: 14px;
    font-weight: 800;
}

.kh-topic-kicker {
    padding: 7px 13px;
    border-radius: 999px;
    background: #edf4e5;
}

.kh-topic-hero h1 {
    max-width: 900px;
    margin: 14px auto 16px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -.025em;
}

.kh-topic-hero > p {
    max-width: 820px;
    margin: 0 auto;
    color: #617077;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.75;
}

.kh-topic-grades {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.kh-topic-grades a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 7px 15px;
    border: 1px solid rgba(55, 69, 58, .15);
    border-radius: 999px;
    background: #fff;
    color: #485c36 !important;
    font-weight: 800;
    text-decoration: none !important;
}

.kh-topic-section {
    margin-top: 48px;
}

.kh-topic-section__head {
    margin-bottom: 20px;
}

.kh-topic-section__head h2,
.kh-topic-practice h2,
.kh-topic-cross h2 {
    margin: 5px 0 0;
    font-size: clamp(28px, 3.3vw, 40px);
    line-height: 1.15;
}

.kh-topic-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.kh-topic-points article {
    min-height: 180px;
    padding: 25px;
    border: 1px solid rgba(38, 50, 56, .11);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(38, 50, 56, .06);
}

.kh-topic-points strong {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf4e5;
    color: #56723d;
}

.kh-topic-points p {
    margin: 16px 0 0;
    color: #617077;
    font-size: 16px;
    line-height: 1.65;
}

.kh-topic-practice {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 18px;
    margin-top: 48px;
}

.kh-topic-practice > div,
.kh-topic-tools {
    padding: 28px;
    border: 1px solid rgba(89, 113, 66, .15);
    border-radius: 22px;
    background: #f7faf3;
}

.kh-topic-practice p {
    margin: 14px 0 0;
    color: #617077;
    font-size: 16px;
    line-height: 1.72;
}

.kh-topic-tools h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.kh-topic-tools a {
    display: block;
    margin: 9px 0;
    color: #55713d !important;
    font-weight: 800;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.kh-topic-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kh-topic-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(38, 50, 56, .11);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(38, 50, 56, .06);
}

.kh-topic-product__img {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f4f5f2;
}

.kh-topic-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kh-topic-product h3 {
    margin: 18px 18px 8px;
    font-size: 19px;
    line-height: 1.35;
}

.kh-topic-product__price {
    margin: auto 18px 14px;
    color: #55713d;
    font-size: 17px;
    font-weight: 900;
}

.kh-topic-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 14px;
    background: #5f804a;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
}

.kh-topic-btn--small {
    margin: 0 18px 18px;
}

.kh-topic-cross {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 28px 30px;
    border: 1px solid rgba(89, 113, 66, .16);
    border-radius: 22px;
    background: #f7faf3;
}

.kh-topic-cross p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #617077;
    line-height: 1.65;
}

.kh-topic-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.kh-topic-hub-card {
    display: block;
    min-height: 250px;
    padding: 30px;
    border: 1px solid rgba(38, 50, 56, .11);
    border-radius: 24px;
    background: #fff;
    color: #253238 !important;
    box-shadow: 0 10px 30px rgba(38, 50, 56, .06);
    text-decoration: none !important;
}

.kh-topic-hub-card > span {
    color: #607b47;
    font-size: 14px;
    font-weight: 800;
}

.kh-topic-hub-card h2 {
    margin: 8px 0 10px;
    font-size: 30px;
}

.kh-topic-hub-card p {
    margin: 0 0 20px;
    color: #617077;
    line-height: 1.65;
}

.kh-topic-hub-card strong {
    color: #55713d;
}

.kh-topic-grade-links {
    width: min(1180px, calc(100% - 28px));
    margin: 36px auto;
    padding: 22px 24px;
    border: 1px solid rgba(89, 113, 66, .16);
    border-radius: 20px;
    background: #f7faf3;
}

.kh-topic-grade-links > strong {
    display: block;
    margin-bottom: 10px;
    color: #526d3b;
    font-size: 17px;
}

.kh-topic-grade-links > div {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.kh-topic-grade-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 6px 13px;
    border: 1px solid rgba(89, 113, 66, .18);
    border-radius: 999px;
    background: #fff;
    color: #526d3b !important;
    font-weight: 800;
    text-decoration: none !important;
}

@media (max-width: 980px) {
    .kh-topic-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kh-topic-practice {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .kh-topic {
        width: min(100vw - 18px, 680px);
        margin-top: 20px;
    }

    .kh-topic-hero {
        padding: 30px 18px;
        border-radius: 22px;
    }

    .kh-topic-points,
    .kh-topic-products,
    .kh-topic-hub-grid {
        grid-template-columns: 1fr;
    }

    .kh-topic-points article {
        min-height: 0;
    }

    .kh-topic-cross {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .kh-topic-cross > .kh-topic-btn {
        width: 100%;
    }
}


.kh-topic-related,
.kh-topic-related * {
    box-sizing: border-box;
}

.kh-topic-related {
    width: min(1180px, calc(100% - 28px));
    margin: 34px auto;
    padding: 24px;
    border: 1px solid rgba(89, 113, 66, .16);
    border-radius: 22px;
    background: #f7faf3;
    color: #253238;
    font-family: inherit;
}

.kh-topic-related__head h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
}

.kh-topic-related__head p {
    max-width: 760px;
    margin: 0;
    color: #617077;
    line-height: 1.6;
}

.kh-topic-related__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.kh-topic-related__links > a {
    display: flex;
    min-width: 0;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid rgba(89, 113, 66, .16);
    border-radius: 14px;
    background: #fff;
    color: #40542f !important;
    text-decoration: none !important;
}

.kh-topic-related__links strong {
    font-size: 16px;
    line-height: 1.3;
}

.kh-topic-related__links span {
    margin-top: 4px;
    color: #6b756d;
    font-size: 12px;
    line-height: 1.4;
}

.kh-topic-related__all {
    display: table;
    margin-top: 14px;
    color: #55713d !important;
    font-weight: 800;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.single-product .kh-topic-related {
    clear: both;
}

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

@media (max-width: 560px) {
    .kh-topic-related {
        width: min(100% - 18px, 680px);
        margin: 24px auto;
        padding: 18px;
        border-radius: 18px;
    }

    .kh-topic-related__links {
        grid-template-columns: 1fr;
    }
}
