.cinf-grid {
    display: grid;
    grid-template-columns: repeat(var(--cinf-columns, 3), minmax(0, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.cinf-card {
    overflow: hidden;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(22, 22, 32, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cinf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(22, 22, 32, .13);
}

.cinf-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f3f7;
    text-decoration: none;
}

.cinf-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinf-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #a4a6af;
    font-size: 64px;
}

.cinf-card__body { padding: 22px; }
.cinf-card__title { margin: 0 0 10px; font-size: 1.35rem; }
.cinf-card__summary { margin: 0 0 20px; color: #5d6070; line-height: 1.6; }

.cinf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 9px;
    background: var(--cinf-button-color, #6c3bf5);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.cinf-button:hover { background: var(--cinf-button-hover, #572bc9); transform: translateY(-1px); }
.cinf-profile {
    width: 100%;
    margin: 32px 0 72px;
    clear: both;
}

.cinf-profile__intro {
    display: grid;
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.cinf-profile--without-image .cinf-profile__intro { grid-template-columns: 1fr; }
.cinf-profile__media { margin: 0; }

.cinf-profile__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(22, 22, 32, .12);
}

.cinf-profile__description > :first-child { margin-top: 0; }
.cinf-profile__address { padding: 14px 16px; border-radius: 10px; background: #f6f6f8; }
.cinf-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

.cinf-socials a {
    display: inline-grid;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    padding: 8px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--cinf-button-color, #6c3bf5);
    place-items: center;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.cinf-socials a:hover,
.cinf-socials a:focus-visible {
    background: var(--cinf-button-color, #6c3bf5);
    color: #fff;
    transform: translateY(-2px);
}

.cinf-socials svg { display: block; width: 100%; height: 100%; fill: currentColor; }

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

@media (max-width: 560px) {
    .cinf-grid { grid-template-columns: 1fr; }
    .cinf-profile { margin-bottom: 52px; }
    .cinf-profile__intro { grid-template-columns: 1fr; }
    .cinf-profile__media { max-width: 420px; }
}
