/* ========== СТИЛІ ДЛЯ СТОРІНКИ КОМАНДИ ========== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", sans-serif;
    background-color: #f8f9fa;
}

/* ========== Hero-секція ========== */
.team-hero {
    background-color: #262625;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-hero h1 {
    font-size: clamp(40px, 8vw, 70px);
    color: white;
    margin: 0;
    z-index: 2;
    position: relative;
    font-weight: 700;
}

.wave-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-container svg {
    display: block;
    width: 100%;
    height: 120px;
}

.wave-container svg path {
    fill: #f8f9fa;
}

@media (max-width: 768px) {
    .wave-container svg {
        height: 60px;
    }
}

/* ========== Основний контейнер ========== */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Вступний блок */
.team-intro {
    text-align: center;
    margin-bottom: 50px;
}

.badge {
    display: inline-block;
    background: #262625;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.team-intro h2 {
    font-size: 38px;
    font-weight: 700;
    color: #262625;
    margin-bottom: 20px;
}

.team-intro p {
    font-size: 18px;
    line-height: 1.5;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== Сітка карток ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin: 50px 0;
}

.team-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

/* ========== КВАДРАТНЕ ФОТО (1:1) — НЕ РОЗТЯГУЄТЬСЯ ========== */
.team-photo {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Це створює квадрат 1:1 */
    overflow: hidden;
    background-color: #e2e8f0;
}

.team-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заповнює квадрат, обрізаючи зайве */
    object-position: center center; /* Центруємо зображення */
    transition: transform 0.4s ease;
}


/* Інформація */
.team-info {
    padding: 24px 24px 30px;
}

.team-info h3 {
    font-size: 22px;
    font-weight: 800;
    color: #262625;
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-position {
    font-size: 14px;
    font-weight: 600;
    color: #85abba;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-left: 3px solid #85abba;
    padding-left: 12px;
}

.team-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #2d3e50;
    margin: 0;
}

/* ========== Блок приєднання ========== */
.team-join {
    margin-top: 40px;
}

.highlight {
    background: #e8f0f4;
    padding: 35px 30px;
    border-radius: 28px;
    text-align: center;
    border-left: 5px solid #85abba;
}

.highlight h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e2a32;
}

.highlight p {
    font-size: 18px;
    color: #2c3e4e;
    max-width: 650px;
    margin: 0 auto;
}



/* ========== Адаптивність ========== */
@media (max-width: 768px) {
    .team-hero {
        min-height: 220px;
        height: 30vh;
    }

    .team-intro h2 {
        font-size: 28px;
    }

    .team-intro p {
        font-size: 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-info {
        padding: 20px;
    }

    .team-info h3 {
        font-size: 20px;
    }

    .team-position {
        font-size: 13px;
    }

    .team-desc {
        font-size: 14px;
    }

    .highlight h3 {
        font-size: 24px;
    }

    .highlight p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .team-container {
        padding: 20px 15px 40px;
    }

    .team-info {
        padding: 16px;
    }

    .team-info h3 {
        font-size: 18px;
    }

    .team-position {
        font-size: 12px;
        padding-left: 10px;
    }

    .team-desc {
        font-size: 13px;
    }

    .highlight {
        padding: 25px 18px;
    }

}