/* Блок «Примеры шаблонов» на главной IT-Aegis */
.templates-showcase__badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t4w-primary);
    background: rgba(232, 184, 74, 0.12);
    border: 1px solid rgba(232, 184, 74, 0.28);
}

.templates-showcase__group {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--t4w-muted, #94a3b8);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.templates-showcase__group:first-of-type {
    margin-top: 0;
}

.template-card {
    height: 100%;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
    border-color: rgba(232, 184, 74, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.template-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.template-card__preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.template-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.template-card:hover .template-card__preview img {
    transform: scale(1.04);
}

.template-card__preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.55) 0%, transparent 45%);
    pointer-events: none;
}

.template-card__type {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    backdrop-filter: blur(4px);
}

.template-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.template-card__body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--t4w-text-bright, #f8fafc);
}

.template-card__body p {
    font-size: 0.82rem;
    color: var(--t4w-muted, #94a3b8);
    margin-bottom: 0.75rem;
    flex: 1;
    line-height: 1.45;
}

.template-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t4w-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.template-card__cta i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.template-card:hover .template-card__cta i {
    transform: translateX(3px);
}
