/*Команда*/
.team-section {
    background-color: #fff;
    overflow: hidden;
}

.swiper-pagination {
    position: static !important;
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    height: 4px;
    width: 10px;
    background: #24242f;
    border-radius: 0 !important;
}

.swiper-ordinary .swiper-pagination-bullet-active {
    width: 40px !important;
    background: #2F3140 !important;
}

.swiper-pagination {
    margin-top: 20px;
}

/* Шапка с заголовком и стрелками */
.team-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 20px;
}

.slider-logo {
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
}

.header-text {
    max-width: 700px;
}

.section-desc {
    font-family: var(--tilda-sans);
    font-size: 16px;
    color: var(--text);
    line-height: 110%;
    margin: 0;
    max-width: 650px;
    margin-bottom: 20px;
}

/* Кнопки навигации (стрелки) */
.nav-buttons {
    display: flex;
    gap: 20px;
    align-self: flex-start;
    margin-top: 10px;
    /* Выравнивание по оптической оси */
}

.nav-buttons svg {
    fill: #494B61;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.nav-buttons svg:hover {
    opacity: 1;
    transition: opacity 0.3s;
}

.swiper-btn-prev,
.swiper-btn-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.swiper-btn-prev:hover,
.swiper-btn-next:hover {
    opacity: 0.6;
}

.swiper-btn-prev svg,
.swiper-btn-next svg {
    display: block;
    width: 50px;
    /* Размер стрелок */
    height: auto;
}

/* --- Слайдер --- */
.team-slider {
    padding-bottom: 60px;
    /* Место под пагинацию */
}

.swiper-wrapper {
    align-items: stretch;
    /* Одинаковая высота слайдов */
}

/* Карточка дизайнера */
.team-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 450px;
    /* Высота фото */
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Эффект зума при наведении */
.team-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    color: var(--gray_3, #A9A9A9);
    font-family: "Tilda Sans";
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 500;
}

.card-name {
    color: var(--text, #514F5C);
    font-family: var(--tilda-sans);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
}

.swiper-pagination {
    position: absolute;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 4px;
    background: #333;
}

/* --- Кнопка внизу --- */
.team-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.complex-projects-archive {
    padding: 40px 0;
}

.archive-header {
    margin-bottom: 40px;
}

.complex-card {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray, #E1E1E3);
    padding-bottom: 20px;
}

.complex-card__left {
    flex: 0 0 55%;
    max-width: 55%;
}

.complex-card__img-link {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 15px;
}

.complex-card__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.complex-card__img-link:hover img {
    transform: scale(1.03);
}

.complex-card__address {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.complex-card__right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.complex-card__title {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: 500;
    line-height: 110%;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.complex-card__title a {
    color: #333;
    text-decoration: none;
}

.complex-card__desc {
    font-size: 15px;
    line-height: 110%;
    color: #555;
    margin-bottom: 30px;
}

.complex-btn {
    display: inline-block;
    padding: 12px 0;
    width: 100%;
    max-width: 344px;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.complex-btn:hover {
    border-color: #333;
    background: #333;
    color: #fff;
}

/* Линия разделитель между проектами */
.complex-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 60px 0;
    display: none;
}

/* Адаптив */
@media (max-width: 992px) {
    .complex-card {
        flex-direction: column;
        gap: 20px;
    }

    .complex-card__left {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .complex-card__title {
        font-size: 28px;
    }
}


/* --- Адаптивность --- */
@media (max-width: 900px) {

    .nav-buttons {
        align-self: flex-end;
        /* Стрелки справа под текстом или сверху */
        /* Или можно скрыть на мобильных, если есть пагинация */
    }

    .card-image {
        height: 350px;
    }
}

@media (max-width: 768px) {


    .nav-buttons {
        display: none;
        /* Скрываем стрелки на телефонах, свайпа достаточно */
    }
}