.team-page {
    color: #FFFFFF;
}
.team-hero-container {
    background-image: url("../../../images/26/team/hero-png.png");
    background-repeat: no-repeat;
    background-position: 100% -3%;
    background-size: inherit;
}

.team-main {
    padding-bottom: 96px;
}

/* Hero section */
.team-hero {
    position: relative;
    max-width: 720px;
    margin-bottom: 50px;
    min-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

}

.team-hero__image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.team-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TEXT OVER IMAGE */

.team-hero__description p{
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 24px;
    line-height: 117%;
}

/* TEXT */
.team-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.team-hero__title {
    font-size: 48px;
    margin: 16px 0;
}

.team-hero__description {
    max-width: 710px;
    opacity: 0.85;
}

/* IMAGE */
.team-hero__image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.team-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-breadcrumbs {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666A70;
    max-width: 1200px;
    margin: 30px auto;
}

.team-breadcrumbs__item {
    color: inherit;
}

.team-breadcrumbs__item[href] {
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-breadcrumbs__item[href]:hover {
    color: #FFFFFF;
}

.team-breadcrumbs__item--current {
    color: #9CA0A6;
}

.team-breadcrumbs__sep {
    margin: 0 6px;
    color: #4B4F55;
}

.team-hero__text-block {
    max-width: 520px;
}

.team-hero__title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 50px;
    line-height: 1.06;
    color: var(--color-white);
    margin-bottom: 40px;
}

.team-hero__description {
    font-size: 27px;
    line-height: 1.7;
    color: #C8CCD2;
}

.team-hero__meta {
    font-size: 21px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #B49A5D;
}

.team-hero__est {
    display: inline-block;
    color: #B49A5D;
    font-size: 21px;
    margin-bottom: 1rem;
}

.team-hero-des {
    margin-top: 2rem;
}

/* Team section */
.team-section {
    max-width: 1200px;
    margin: 0 auto;
}

.team-section__header {
    max-width: 680px;
    margin-bottom: 48px;
}

.team-section__title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-section__subtitle {
    font-size: 14px;
    line-height: 1.7;
    color: #A5A9B0;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-item {
    border-top: 1px solid #8D97A6;
    padding-top: 3rem;
    display: grid;
    grid-template-columns: 180px 220px minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #181B21;
}

.team-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-item__exp {
    font-size: 23px;
    line-height: 1.3;
}

.team-item__photo-wrapper {
    overflow: hidden;
    max-height: 320px;
    max-width: 220px;
}

.team-item__photo {
    width: 220px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-item__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
    line-height: 130%;
}

.team-item__name {
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 117%;
    color: #F6F7F8;
}

.team-item__position-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 1rem;
}

.team-item__position {
    font-weight: 400;
    font-size: 23px;
    line-height: 117%;
}

.team-item__toggle {
    display: none;
    /* Hidden on desktop */
}

.team-citata {
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    line-height: 117%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.team-item__bio {
    font-size: 16px;
    line-height: 150%;
}

/* CTA block */
.team-cta {
    margin: 72px auto 0;
    padding: 50px 30px;
    background: #323A48;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
}
.team-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: inherit;
    z-index: -1;
}

.team-cta__content {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team-cta__content .gold-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.team-cta__title {
    font-size: 43px;
    line-height: 1.2;
    font-weight: 200;
    margin-bottom: 20px;
}

.team-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid #C6A665;
    background: transparent;
    color: #C6A665;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.team-cta__btn:hover {
    background-color: #C6A665;
    color: #050608;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.gold-button {
    margin-top: 20px;
}

.gold-button button {
    width: auto;
    padding: 20px 50px;
}



/* Responsive */
@media (max-width: 1024px) {
    .team-breadcrumbs {
        display: none;
    }
    .contacts-breadcrumbs {
        display: none;
    }
    .team-hero-container {
        background-image: none;
    }

    .team-section {
        margin-left: 20px;
        margin-right: 20px;
    }

    .team-list {
        width: 100%;
    }

    .team-hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .team-hero__content {
        width: 100%;
        padding: 30px 32px;
    }

    .team-hero__image-wrapper {
        display: none;
    }

    .team-item {
        display: flex;
        flex-direction: row;
        gap: 20px;
        border-top: 1px solid #8D97A6;
        padding-top: 2rem;
    }

    .team-item__photo-wrapper {
        order: 1;
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .team-item__info {
        order: 2;
    }

    .team-item__exp {
        order: 3;
        font-size: 20px;
    }

    .team-item__name {
        font-size: 32px;
    }

    .team-item__position {
        font-size: 20px;
    }

    .team-citata,
    .team-item__bio {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .team-hero__content {
        padding: 15px;
        max-width: 92%;
        width: 100%;
    }

    .team-hero__description p {
        font-size: 18px;
        color: #fff;
    }
    .team-item__photo {
        width: 107px;
    }
    .team-hero__title {
        font-size: 36px;
    }

    .team-hero__description {
        font-size: 17px;
    }

    .team-main {
        padding-bottom: 72px;
    }

    .team-hero {
        /*margin: 30px 0 50px;*/
    }

    .team-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    .team-item__exp, .team-citata {
        display: none;
    }

    .team-item {
        padding-top: 1.5rem;
        display: grid;
        grid-template-columns: 107px 1fr auto;
        column-gap: 16px;
        row-gap: 4px;
    }

    .team-item__photo-wrapper {
        width: 107px;
        height: 155px;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .team-item__info {
        display: contents;
    }

    .team-item__name,
    .team-item__position-wrapper {
        grid-column: 2 / span 2;
    }

    .team-item__name {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 23px;
        line-height: 1.2;
    }

    .team-item__position-wrapper {
        display: contents;
    }

    .team-item__position {
        grid-column: 2 / span 2;
        grid-row: 2;
        align-self: start;
        margin-top: 4px;
        font-size: 17px;
    }

    .team-item__toggle {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        align-self: center;
        justify-self: end;
        /* Visible on mobile */
    }

    .team-citata,
    .team-item__bio {
        grid-column: 1 / span 2;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, margin 0.4s ease, opacity 0.4s ease;
        margin-top: 0;
        opacity: 0;
    }

    .team-item--active .team-citata,
    .team-item--active .team-item__bio {
        max-height: 1000px;
        margin-top: 1rem;
        opacity: 1;
    }

    .team-citata {
        font-size: 18px;
    }

    .team-item__bio {
        font-size: 13px;
    }

    .team-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }

    .team-cta__title {
        font-size: 22px;
    }
}