/* User reference: native program cards and icons, original decorative wave. */
.card.home-programs {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    min-width: 0;
    border: 1px solid #fff;
    border-radius: 16px;
    background: #fffcfc;
    box-shadow: 0 5px 16px rgb(68 45 51 / .07);
}
.home-programs .home-programs__header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 16px;
    border-bottom: 1px solid #f3edef;
}
.home-programs__heading { display: flex; flex: 1 1 auto; align-items: flex-start; gap: 10px; min-width: 0; }
.home-programs__heading > div { min-width: 0; }
.home-programs__heading > i,
.home-programs__heading > svg { flex-shrink: 0; width: 28px; height: 28px; margin-top: 1px; color: #c41120; stroke-width: 1.8; }
.home-programs .card-title { display: block; margin: 0; color: #171d29; font-size: clamp(18px, 3.5cqw, 22px); line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.home-programs__heading p { margin: 5px 0 0; color: #65636e; font-size: 12px; line-height: 1.5; }
.home-programs .home-programs__all { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 13px; border: 1px solid #d72a35; border-radius: 22px; background: #fffafa; color: #ba1220; font-size: 12px; font-weight: 750; line-height: 1.4; white-space: nowrap; }
.home-programs .home-programs__all:hover { background: #fff0f1; }
.home-programs .home-programs__all svg { width: 17px; height: 17px; }
.home-programs > .card-body { padding: 14px 14px 0; }
.home-programs .programs-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.home-programs .programs-tab { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto; gap: 7px; min-width: 0; min-height: 40px; padding: 8px 13px; border: 1px solid #d9d4db; border-radius: 11px; background: #fff; color: #67636e; font: inherit; font-size: 13px; line-height: 1.3; font-weight: 750; box-shadow: 0 2px 6px rgb(76 52 59 / .03); }
.home-programs .programs-tab.active { border-color: #ca0e1c; background: #cc101e; color: #fff; }
.home-programs .programs-tab:not(.active):hover { background: #fff3f4; color: #a71220; }
.home-programs .programs-tab-count { display: inline-grid; place-items: center; min-width: 24px; min-height: 23px; padding: 2px 6px; border-radius: 7px; font-size: 12px; line-height: 1; background: rgb(255 255 255 / .2); color: inherit; }
.home-programs .programs-tab:not(.active) .programs-tab-count { background: #eeecef; color: #65616c; }
.home-programs .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-programs [data-progs-panel][hidden] { display: none !important; }
.home-programs .program-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 84px;
    padding: 10px;
    border: 1px solid #efdfe4;
    border-radius: 13px;
    background: #fffdfd;
    color: #171d29;
    box-shadow: 0 2px 7px rgb(76 52 59 / .045);
    transition: background-color .15s ease, border-color .15s ease;
}
.home-programs .program-item:hover { border-color: #dfb5be; background: #fff6f6; box-shadow: 0 2px 7px rgb(76 52 59 / .045); }
.home-programs .program-icon { width: 38px; height: 38px; margin: 0; border: 1px solid #f4d9dd; border-radius: 11px; background: #fff1f1; box-shadow: 0 2px 5px rgb(160 35 48 / .07); }
.home-programs .program-icon :is(i,svg) { width: 23px; height: 23px; color: #cb1020; stroke-width: 1.8; }
.home-programs .program-item:hover .program-icon { border-color: #e9c0c6; background: #ffecee; }
.home-programs .program-item:hover .program-icon :is(i,svg) { color: #cb1020; }
.home-programs .program-info { min-width: 0; }
.home-programs .program-name { margin: 0; padding: 0; color: #171d29; font-size: 13px; font-weight: 750; line-height: 1.3; overflow-wrap: normal; }
.home-programs .program-price { width: max-content; max-width: 100%; margin-top: 5px; color: #c21120; font-size: 13px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.home-programs .program-code { top: auto; right: 10px; bottom: 10px; padding: 3px 6px; border-radius: 8px; background: #f3f0f3; color: #66636d; font-size: 12px; line-height: 1; font-weight: 600; transform: none; }
.home-programs .program-arrow { display: grid; place-items: center; align-self: start; width: 24px; height: 25px; margin-top: 2px; border-radius: 50%; background: #fff0f2; color: #c41625; }
.home-programs .program-arrow svg { width: 15px; height: 15px; }
.home-programs .home-programs__footer { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1194 / 125; max-height: 64px; margin-top: 9px; border-radius: 0 0 16px 16px; pointer-events: none; mask-image: linear-gradient(180deg, transparent, #000 27%); }
.home-programs__footer img { position: absolute; top: 0; left: 0; display: block; width: 102.847571189%; max-width: none; height: auto; transform: translate(-1.465798046%, -87.041373927%); }
.home-programs :is(a,button):focus-visible { outline: 2px solid #6b7280; outline-offset: 3px; }
@container (min-width: 720px) {
    .home-programs .program-item { grid-template-columns: 42px minmax(0, 1fr) 26px; gap: 12px; min-height: 90px; padding: 12px; }
    .home-programs .program-icon { width: 42px; height: 42px; }
    .home-programs .program-name { font-size: 15px; padding-right: 60px; }
    .home-programs .program-price { font-size: 14px; }
    .home-programs .program-code { top: 10px; bottom: auto; }
    .home-programs .program-arrow { align-self: end; margin: 0; }
}
@container (max-width: 520px) {
    .home-programs .home-programs__header { flex-wrap: wrap; gap: 10px; padding: 14px 12px; }
    .home-programs__heading { flex: 1 1 100%; gap: 8px; }
    .home-programs__heading > i, .home-programs__heading > svg { width: 25px; height: 25px; }
    .home-programs .home-programs__all { min-height: 36px; margin-left: auto; padding: 7px 12px; }
    .home-programs > .card-body { padding: 12px 12px 0; }
    .home-programs .programs-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .home-programs .program-item { min-height: 80px; }
    .home-programs .programs-tab { flex: 1 1 0; gap: 5px; padding: 8px; font-size: 12px; }
    .home-programs .programs-tab-count { min-width: 21px; padding-inline: 5px; }
}
@container (max-width: 300px) {
    .home-programs .card-title { font-size: 17px; }
    .home-programs .programs-tab { gap: 4px; padding-inline: 6px; }
    .home-programs .programs-tab :is(i,svg) { width: 14px; height: 14px; }
    .home-programs .program-item { grid-template-columns: 32px minmax(0, 1fr) 22px; gap: 7px; padding: 9px; }
    .home-programs .program-icon { width: 32px; height: 34px; border-radius: 9px; }
    .home-programs .program-icon :is(i,svg) { width: 20px; height: 20px; }
    .home-programs .program-arrow { width: 22px; height: 23px; }
    .home-programs .program-code { right: 9px; bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) { .home-programs .program-item, .home-programs .programs-tab { transition: none; } }
