
.team-section {
    padding: 100px 0;
    background: #fff;
}


.team-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(20, 155, 215, 0.1);
    border-radius: 100px;
    margin-bottom: 14px;
}

.team-subtitle span {
    font-weight: 600;
    font-size: 14px;
    color: #149bd7;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.team-header h2 {
    font-weight: 700;
    font-size: 38px;
    line-height: 1.15;
    color: #004540;
    margin: 0 0 60px;
}


.team-card {
    background: #f8f7f0;
    padding: 10px;
    border-radius: 14px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 69, 64, 0.1);
}

.team-card-link {
    text-decoration: none;
    display: block;
}

.team-card-thumb {
    overflow: hidden;
    border-radius: 10px;
    display: block;
    aspect-ratio: 3/4;
}

.team-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-thumb img {
    transform: scale(1.06);
}

.team-card-info {
    text-align: center;
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.team-card:hover .team-card-info {
    background: #004540;
}

.team-card-info h5 {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #004540;
    margin: 0 0 4px;
    transition: color 0.3s ease;
}

.team-card:hover .team-card-info h5 {
    color: #149bd7;
}

.team-card-info p {
    font-size: 14px;
    color: #868681;
    margin: 0;
    transition: color 0.3s ease;
}

.team-card:hover .team-card-info p {
    color: rgba(248, 247, 240, 0.7);
}


.team-card-socials {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

.team-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #149bd7;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.team-share-btn:hover {
    background: #004540;
    border-color: #149bd7;
    color: #149bd7;
}

.team-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.team-card-socials.is-open .team-social-links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.team-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    color: #004540;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.team-social-links a:hover {
    background: #149bd7;
    color: #fff;
}


.team-cta-wrap {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    border: 2px solid rgba(0, 69, 64, 0.1);
    border-radius: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-join-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #004540;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.team-join-link:hover {
    color: #149bd7;
}

.team-join-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(0, 69, 64, 0.15);
    color: #004540;
    font-size: 16px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.team-join-link:hover .team-join-link-icon {
    background: #149bd7;
    border-color: #149bd7;
    color: #fff;
}

.team-card-avatar {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #004540 0%, #149bd7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.team-card-vizitka {
    position: absolute;
    bottom: 78px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #149bd7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(20,155,215,0.5);
    transition: background 0.2s, transform 0.15s;
    z-index: 3;
}

.team-card-vizitka:hover {
    background: #004540;
    transform: scale(1.12);
    color: #fff;
}

@media (max-width: 992px) {
    .team-section {
        padding: 60px 0 70px 0;
    }
    .team-header h2 {
        font-size: 30px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .team-header h2 {
        font-size: 26px;
    }
    .team-cta-wrap {
        flex-direction: column;
        border: none;
        padding: 0;
        gap: 16px;
    }
}
