/* ============================================
   СЕКЦИЯ КОНТАКТОВ - СОВРЕМЕННЫЙ СТИЛЬ 2025
   ============================================ */

/* Общие стили для всех заголовков секций с подчеркиванием */
.section-title {
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3e75d4, #5a9ff5);
    border-radius: 2px;
}

#team {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 80px 0;
}

/* Обеспечиваем одинаковую высоту карточек в ряду */
#team .row {
    display: flex;
    flex-wrap: wrap;
}

#team .row > [class*="col-"] {
    display: flex;
}

#team .col-md-12 {
    text-align: center;
}

.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(62, 117, 212, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(62, 117, 212, 0.25);
    border-color: rgba(62, 117, 212, 0.3);
}

.contact-card-header {
    background: linear-gradient(135deg, #3e75d4 0%, #5a9ff5 100%);
    padding: 25px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    flex-shrink: 0;
}

.contact-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.contact-card-header i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.95;
}

.contact-position {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #ffffff;
    font-family: 'Muli', sans-serif;
}

.contact-card-body {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    text-align: center;
    font-family: 'Muli', sans-serif;
}

.contact-phones {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.phone-link i {
    font-size: 1.1rem;
    color: #3e75d4;
    min-width: 20px;
}

.phone-link span {
    flex: 1;
}

.phone-link small {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
    margin-left: 32px;
}

.phone-link:hover {
    background: linear-gradient(135deg, #3e75d4 0%, #5a9ff5 100%);
    color: #ffffff;
    transform: translateX(5px);
    border-color: #3e75d4;
    box-shadow: 0 4px 15px rgba(62, 117, 212, 0.3);
}

.phone-link:hover i {
    color: #ffffff;
}

.phone-link:hover small {
    color: rgba(255, 255, 255, 0.9);
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: auto;
}

.contact-email i {
    font-size: 1.1rem;
    color: #3e75d4;
}

.contact-email:hover {
    background: #3e75d4;
    color: #ffffff;
    border-color: #3e75d4;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(62, 117, 212, 0.3);
}

.contact-email:hover i {
    color: #ffffff;
}

.contact-email span {
    word-break: break-word;
}

/* Адаптивность */
@media (max-width: 768px) {
    #team {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    #team .section-title h2::after {
        width: 60px;
        height: 3px;
    }

    /* На планшетах 2 карточки в ряд */
    #team .row > [class*="col-"] {
        margin-bottom: 20px;
    }

    .contact-card {
        margin-bottom: 20px;
        min-height: auto;
        border-radius: 16px;
    }

    .contact-card-header {
        padding: 18px 15px;
    }

    .contact-card-header i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .contact-position {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .contact-card-body {
        padding: 18px 15px;
    }

    .contact-name {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .contact-phones {
        gap: 8px;
        margin-bottom: 15px;
    }

    .phone-link {
        padding: 10px 12px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .phone-link i {
        font-size: 1rem;
    }

    .contact-email {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .contact-email i {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    #team {
        padding: 30px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }

    /* На маленьких экранах 1 карточка в ряд */
    #team .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-card {
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .contact-card-header {
        padding: 16px 12px;
    }

    .contact-card-header i {
        font-size: 1.6rem;
    }

    .contact-position {
        font-size: 0.85rem;
    }

    .contact-card-body {
        padding: 16px 12px;
    }

    .contact-name {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    #team {
        padding: 25px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    #team .section-title h2::after {
        width: 50px;
        height: 3px;
    }

    .contact-card {
        margin-bottom: 15px;
        min-height: auto;
        border-radius: 12px;
    }

    .contact-card:hover {
        transform: translateY(-3px);
    }

    .contact-card-header {
        padding: 14px 10px;
    }

    .contact-card-header i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .contact-position {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .contact-card-body {
        padding: 14px 10px;
    }

    .contact-name {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .contact-phones {
        gap: 6px;
        margin-bottom: 12px;
    }

    .phone-link {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 8px;
        border-radius: 10px;
    }

    .phone-link i {
        font-size: 0.95rem;
        min-width: 16px;
    }

    .phone-link small {
        font-size: 0.7rem;
        margin-left: 24px;
    }

    .contact-email {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 6px;
        border-radius: 10px;
    }

    .contact-email i {
        font-size: 0.9rem;
    }
}

/* ============================================
   СТИЛИ ДЛЯ ВАКАНСИЙ
   ============================================ */

.vacancy-card {
    min-height: 320px;
}

.vacancy-salary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #1a1a2e;
    margin: auto 0;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.vacancy-salary i {
    font-size: 1.3rem;
    color: #3e75d4;
}

.vacancy-salary span {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .vacancy-card {
        min-height: auto;
    }

    .vacancy-salary {
        padding: 15px 12px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .vacancy-salary i {
        font-size: 1.2rem;
    }

    .vacancy-salary span {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .vacancy-salary {
        padding: 14px 10px;
        font-size: 0.95rem;
    }

    .vacancy-salary i {
        font-size: 1.1rem;
    }

    .vacancy-salary span {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .vacancy-card {
        min-height: auto;
    }

    .vacancy-salary {
        font-size: 0.85rem;
        padding: 12px 10px;
        border-radius: 10px;
        gap: 8px;
    }

    .vacancy-salary i {
        font-size: 1rem;
    }

    .vacancy-salary span {
        font-size: 0.85rem;
    }
}
