
/* Секция специалистов */
.our-team-section {
    padding: 80px 0;
    background-color: var(--color-background);
}


.our-team-section .h1-text {
    position: relative;
    background: var(--color-background);
    padding: 0 20px;
    font-size: 48px;
    font-family: var(--font-heading);
    color: #a8845d;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    margin: -40px auto 30px auto;
    z-index: 1;
}

/* Стили заголовка "СПЕЦИАЛИСТЫ" */
.our-team-section .h1-title-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto;
}

.our-team-section .h1-title-line {
    position: absolute;
    width: 43%;
    max-width: 900px;
    height: 29px;
    border: 2px solid var(--color-gold);
    border-radius: 999px;
}

.our-team-section .h1-title-text {
    position: relative;
    background: var(--color-background);
    padding: 0 20px;
    font-size: 48px;
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

/* Контейнер слайдера */
.our-team-section .team-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.our-team-section .team-slider-viewport {
    flex-grow: 1;
    overflow: hidden;
}

.our-team-section .team-slider {
    display: flex;
    gap: 20px; /* Соответствует переменной gap в JS */
    transition: transform 0.5s ease;
}

/* Карточка специалиста */
.our-team-section .team-card {
    flex: 0 0 calc(25% - 15px); /* 4 колонки с учетом gap */
    background: #fff;
    /*padding: 30px 20px; *bug fix*/
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.our-team-section >.team-avatar {
    /* bug fix
    width: 180px;
    height: 180px;
    */
    width: 100%;
    height: 100%;    
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0e6d6;
}

.our-team-section .team-card .team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.our-team-section .team-avatar {
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
    padding: 2px;
    border: 1px solid #c6a47a;
}

.our-team-section .team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.our-team-section .team-card h3 {
    font-size: 20px;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    min-height: 60px;
    font-family: var(--font-heading);
}

.our-team-section .team-card p {
    color: #8c6b4f;
    font-size: 15px;
    margin-bottom: 20px;
}

.our-team-section .step-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
}

/* Кнопки управления */
.our-team-section .team-arrow {
    background: none;
    border: none;
    cursor: pointer;
    /*padding: 10px; * bug fix*/
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.our-team-section .team-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 25px;
    border: 1px solid var(--color-gold);
    border-radius: 25px;
    color: var(--color-gold);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.our-team-section .team-btn:hover {
    background-color: var(--color-gold);
    color: #fff;
}

.our-team-section .results-btn-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: -30px;
    z-index: 1;
}

.our-team-section .results-btn {
    display: inline-block;
    font-weight: 500;
    padding: 12px 35px;
    border-radius: 30px;
    background: linear-gradient(90deg, #BE9158 0%, #F7E0AA 50%, #BE9158 100%);
    color: #6D3F00;
    text-decoration: none;
    transition: 0.3s;    
}

.our-team-section a.results-btn:hover {
    text-decoration: none;
}








/* =================================== 
   ОБЪЕДИНЕННЫЙ БЛОК: Специалисты (Team Section)
   =================================== */

.our-team-section, .our-team-section .team-section {
    padding: 30px 0 80px 0;
    text-align: center;
}

/* Заголовок секции */
.our-team-section .team-title {
    color: #c6a47a;
    font-size: 36px; /* Взят приоритетный размер из index_styles.css */
    letter-spacing: 3px;
    margin-bottom: 50px;
    font-family: var(--font-heading);
}

.our-team-section .team-wrapper {
    position: relative;
    max-width: 1720px;
    margin: 0 auto;
}

.our-team-section .team-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.our-team-section .team-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Объединенная карточка специалиста */
.our-team-section .team-card {
    background: #f7f3ef;
    border-radius: 20px;
    width: calc(25% - 15px);
    flex-shrink: 0;
    border: 2px solid #c6a47a; /* Общий стиль рамки */
    text-align: left;
    display: flex;
    flex-direction: column;
    padding: 10px; /* Внутренний отступ */
    transition: all 0.3s ease;
}



/* Имя специалиста */
.our-team-section .team-card h3 {
    font-size: 25px;
    font-weight: 400;
    margin: 15px 0 5px;
    color: #3a2c2a;
    text-align: center;
}

/* Описание/список достижений */
.our-team-section .team-card ul {
    padding-left: 18px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #5d433f;
}

/* Кнопка в карточке */
.our-team-section .team-btn {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #c6a47a;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* Прижимает кнопку к низу */
    text-align: center;
    color: inherit;
}

.our-team-section .team-btn:hover {
    background-color: #c6a47a;
    color: #fff;
    text-decoration: none;
}

/* Навигация слайдера */
.our-team-section .team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    z-index: 2;
    cursor: pointer;
}

.our-team-section .team-arrow.left { left: -10px; }
.our-team-section .team-arrow.right { right: -10px; }



/* Адаптивность */
@media (max-width: 1199px) {
    .our-team-section .team-card { flex: 0 0 calc(33.333% - 14px); }
}

@media (max-width: 991px) {
    .our-team-section .team-card { flex: 0 0 calc(50% - 10px); }
    .our-team-section .h1-title-text { font-size: 38px; }
}

@media (max-width: 767px) {
    .our-team-section { padding: 30px 0 50px 0; }
    .our-team-section .h1-title-line { display: none; }
    .our-team-section .h1-title-wrap { margin: 20px auto; }
    /*.our-team-section .team-card { flex: 0 0 100%; }*/
    .our-team-section .team-card h3 { font-size: 22px; }
    .our-team-section .step-line { width: 50%; margin-bottom: 12px; }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .our-team-section {
        padding: 30px 0 50px 0;
        background: none;
    }

    .our-team-section .team-card {
        width: calc(80% - 15px); /* Увеличил ширину для мобильных, чтобы было удобно листать */
    }

    .our-team-section .team-card h3 {
        font-size: 22px;
    }

    .our-team-section .team-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

@media (max-width: 991px) {
    .our-team-section .h1-text {
    font-size: 38px;
    background: none;
    }
    .our-team-section .block-border-container {
    border: none;
    }  
    .our-team-section .block-border-container::after  {
    border: none;
    }       
    .block-border-element-right {
        display: none;
    }
    .block-border-element-left {
        display: none
    }
}