.template-page,
.template-page * {
    box-sizing: border-box;
}

.template-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.template-name,
.template-title,
.template-role,
.template-text {
    overflow-wrap: anywhere;
}

.tpl-line-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.template-social-link {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #0B1F43;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
}

.template-social-link:hover {
    opacity: .78;
    transform: translateY(-1px);
}

.template-social-link svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.template-social-label {
    display: none;
}

.template-img {
    display: block;
    max-width: 100%;
}

.template-avatar-img,
.template-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpl-hidden {
    display: none !important;
}

@media (max-width: 380px) {
    .template-social-link {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .template-social-link svg {
        width: 15px;
        height: 15px;
    }
}
