/* === Team page redesign === */

.team-article {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Заголовок */
.article-title {
    font-family: "Mariupol-Bold", sans-serif;
    color: var(--secondary-text);
    font-size: 2.1rem;
    margin: 20px 0 1rem 0;
    padding-left: 20px;
    position: relative;
}

.article-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 5px;
    background: var(--logo-blue);
    border-radius: 2px;
}

/* Картка */
.team-article .paragraph {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;

    padding: 1.5rem;
    border-radius: 1.25rem;

    background: var(--secondary-background);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);

    transition: all 0.25s ease;
}

/* Hover */
.team-article .paragraph:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Ліва частина */
.team-article .paragraph-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: 0.75rem;
}

/* Фото */
.team-article .paragraph-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: top;

    border-radius: 50%;
    border: 4px solid var(--secondary-background);
}

/* Ім’я */
.team-article .paragraph-image p {
    margin: 0;
    font-size: 0.95rem;
    font-family: "Mariupol-Bold", sans-serif;
    color: var(--secondary-text);
    line-height: 1.3;
}

/* Текст справа */
.team-article h3 {
    font-family: "Mariupol-Bold", sans-serif;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--secondary-text);
}

/* Роль (виділяємо окремо) */
.team-article h3 span {
    font-family: "Mariupol-Regular", sans-serif;
    color: var(--additional-text);
    font-size: 0.95rem;
}

/* Опис */
.team-article .paragraph > div p {
    margin: 0;
    line-height: 1.6;
    color: var(--primary-text);
}

/* === Mobile === */
@media (max-width: 750px) {

    .team-article .paragraph {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .team-article .paragraph-image {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .team-article .paragraph-image img {
        width: 64px;
        height: 64px;
    }

    .team-article .paragraph-image p {
        font-size: 1rem;
    }
}