.bh-tpl {
    --bh-tpl-primary: var(--red-2, #f44c36);
    --bh-tpl-primary-hover: #e14432;
    --bh-tpl-accent: #534ab7;
    --bh-tpl-ink: var(--grey-2, #2c2c51);
    --bh-tpl-muted: var(--grey-3, #677294);
    --bh-tpl-hint: var(--grey-4, #858da8);
    --bh-tpl-row: #fbfaff;
    --bh-tpl-border: #efedf7;

    position: relative;
    max-width: 560px;
    margin: 32px auto;
    border: 1px solid #ece9f5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px -22px rgba(83, 74, 183, 0.35);
    line-height: 1.4;
    overflow: hidden;
}

.bh-tpl * {
    box-sizing: border-box;
}

.bh-tpl__bar {
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--bh-tpl-accent) 0%, #f0997b 55%, var(--bh-tpl-primary) 100%);
}

.bh-tpl__body {
    padding: 24px 24px 26px;
}

.bh-tpl__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eeedfe;
    color: #3c3489;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.bh-tpl__title {
    margin: 0 0 6px;
    color: var(--bh-tpl-ink);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.bh-tpl__subtitle {
    margin: 0 0 18px;
    color: var(--bh-tpl-muted);
    font-size: 15px;
    line-height: 1.5;
}

.bh-tpl__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bh-tpl a.bh-tpl__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border: 1px solid var(--bh-tpl-border);
    border-radius: 14px;
    background: var(--bh-tpl-row);
    text-decoration: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bh-tpl a.bh-tpl__item:hover {
    border-color: #d7d2f0;
    background: #fff;
    box-shadow: 0 10px 22px -14px rgba(83, 74, 183, 0.5);
}

.bh-tpl__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    line-height: 1;
}

.bh-tpl__icon--1 {
    background: #eeedfe;
    color: #534ab7;
}

.bh-tpl__icon--2 {
    background: #faece7;
    color: #d85a30;
}

.bh-tpl__icon--3 {
    background: #e1f5ee;
    color: #0f6e56;
}

.bh-tpl__text {
    flex: 1;
    min-width: 0;
}

.bh-tpl__name {
    display: block;
    color: var(--bh-tpl-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.bh-tpl__desc {
    display: block;
    margin-top: 2px;
    color: var(--bh-tpl-hint);
    font-size: 13px;
    line-height: 1.3;
}

.bh-tpl__arrow {
    flex: none;
    display: flex;
    align-self: center;
    color: #b3b0c7;
    line-height: 1;
    transition: transform 0.18s ease, color 0.18s ease;
}

.bh-tpl a.bh-tpl__item:hover .bh-tpl__arrow {
    color: var(--bh-tpl-accent);
    transform: translateX(3px);
}

.bh-tpl a.bh-tpl__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    margin-top: 18px;
    padding: 0;
    border-radius: 14px;
    background: var(--bh-tpl-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 24px -10px rgba(244, 76, 54, 0.7);
    transition: background 0.18s ease;
}

.bh-tpl a.bh-tpl__cta:hover {
    background: var(--bh-tpl-primary-hover);
    color: #fff;
}

@media (max-width: 600px) {
    .bh-tpl {
        margin: 24px auto;
        border-radius: 16px;
    }

    .bh-tpl__body {
        padding: 20px 16px 22px;
    }

    .bh-tpl__title {
        font-size: 19px;
    }

    .bh-tpl a.bh-tpl__item {
        gap: 12px;
        padding: 12px;
    }

    .bh-tpl__icon {
        width: 38px;
        height: 38px;
    }

    .bh-tpl a.bh-tpl__cta {
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bh-tpl a.bh-tpl__item,
    .bh-tpl .bh-tpl__arrow,
    .bh-tpl a.bh-tpl__cta {
        transition: none;
    }

    .bh-tpl a.bh-tpl__item:hover .bh-tpl__arrow {
        transform: none;
    }
}
