/* =========================================
   CONTACTS SECTION STYLES
   ========================================= */

.mp-contacts-section {
    padding: 90px 0 80px 0;
    background-color: var(--bg-light);
}

.mp-contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* --- Common Card Styles --- */
.mp-contact-card {
    background: var(--bg-light);
    border: 1px solid var(--border-card); /* Или border-light */
    border-radius: var(--border-radius-main);
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.05); /* Тень как на макете */
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden; /* Важно для border-radius нижней полоски */
}

.mp-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
}

/* --- Personal Cards (Alexey & Alexander) --- */

.mp-avatar-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.mp-contact-name {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 26px;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.mp-contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.mp-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 400;
    transition: opacity 0.2s;
}

.mp-link-item:hover {
    opacity: 0.8;
}

.mp-link-item img {
    width: 20px;
    height: auto;
    /* Если иконки svg инлайном - можно задать fill, 
       если img - нужна цветная картинка */
}


/* --- Info Card (3rd card) Styles --- */

/* Специфика для третьей карточки */
.mp-card-info-highlight {
    align-items: flex-start; /* Выравнивание по левому краю */
    text-align: left;
    justify-content: space-between;
    border-bottom: 12px solid var(--primary-blue); /* Синяя полоса снизу */
    padding-bottom: 28px; /* Компенсация, чтобы контент не прилип к полосе */
}

.mp-info-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.mp-info-email {
    display: block;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.mp-info-email:hover {
    color: var(--primary-blue);
}

.mp-info-address {
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.mp-socials-label {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.mp-socials-icons {
    display: flex;
    gap: 12px;
}

.mp-social-circle-black {
    width: 44px;
    height: 44px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.mp-social-circle-black:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

.mp-social-circle-black img {
    width: 24px;
    height: 24px;
    display: block;
}


/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet (max 992px) */
@media (max-width: 992px) {
    .mp-contacts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
    
    /* Растягиваем последнюю карточку на всю ширину, если их 3 */
    .mp-contacts-grid .mp-contact-card:last-child {
        grid-column: span 2; 
        flex-direction: row; /* На планшете инфо-карточку можно сделать горизонтальной */
        align-items: center;
        gap: 40px;
    }
    
    .mp-card-info-highlight {
        padding-bottom: 40px; /* Возвращаем паддинг, так как flex */
        border-bottom: 12px solid var(--primary-blue);
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .mp-contacts-grid {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 20px;
    }

    .mp-contacts-grid .mp-contact-card:last-child {
        grid-column: span 1;
        flex-direction: column; /* Возвращаем вертикаль */
        align-items: flex-start;
        gap: 0;
    }

    .mp-contact-card {
        padding: 30px 20px;
    }

    .mp-avatar-wrapper {
        width: 160px;
        height: 160px;
    }

    .mp-contact-name {
        font-size: 24px;
    }

    .mp-link-item, 
    .mp-info-address, 
    .mp-socials-la