/* Основные стили */
.main-content {
    max-width: 1374px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.project-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 60px;
    color: #333;
}

/* Карусель */
.project-carousel {
    margin-bottom: 60px;
    position: relative;
    max-width: 900px; /* Максимальная ширина */
    margin-left: auto;
    margin-right: auto;
}

/* Для экранов шире 900px - фиксированный размер */
@media (min-width: 901px) {
    .carousel-container {
        width: 900px;
        padding-bottom: 636.39px; /* 900 / 1.4142 */
        height: auto;
    }
}

.carousel-container {
    width: 100%;
    height: 0;
    padding-bottom: 70.71%; /* Соотношение 1.4142:1 (ширина/высота) для горизонтального А4 */
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; /* Плавное изменение opacity */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Убираем transition у изображения */
}

/* Описание проекта */
.project-description {
    font-size: 26px;
    line-height: 1.5;
    margin-bottom: 80px;
    color: #333;
}

/* Команда */
.team-section {
    margin-bottom: 40px;
}

.team-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #333;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: flex-start;
}

.team-member {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 250px; /* Большой размер для десктопа */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #d0d0d0;
    transition: border-color 0.3s ease;
}

.team-member:hover .member-photo {
    border-color: #333;
}

.member-name {
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

/* Адаптивность для команды */
@media (max-width: 1200px) {
    .team-members {
        gap: 40px;
    }
    
    .member-photo {
        width: 200px;
        height: 200px;
    }
    
    .member-name {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    .team-title {
        font-size: 36px;
    }
    
    .team-members {
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .project-title {
        font-size: 26px; /* Уменьшено на 30% */
        margin-bottom: 42px;
    }
    
    .project-description {
        font-size: 21px; /* Уменьшено на 30% */
        margin-bottom: 56px;
    }
    
    .team-title {
        font-size: 31.5px; /* Уменьшено на 30% */
        margin-bottom: 28px;
    }
    
    /* Увеличение team-member на 15% */
    .team-members {
        gap: 31.5px; /* 30px + 15% */
    }
    
    .member-photo {
        width: 160px; /* 150px + 15% */
        height: 160px;
    }
    
    .member-name {
        font-size: 21px; /* 20px + 15% */
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 20px; /* Уменьшено на 40% */
        margin-bottom: 36px;
    }
    
    .project-description {
        font-size: 18px; /* Уменьшено на 40% */
        margin-bottom: 48px;
    }
    
    .team-title {
        font-size: 27px; /* Уменьшено на 40% */
        margin-bottom: 24px;
    }
    
    /* Увеличение team-member на 30% */
    .team-members {
        grid-template-columns: repeat(3, 1fr);
        gap: 17.5px; /* 15px + 30% */
    }
    
    .member-photo {
        width: 110px; /* 100px + 30% */
        height: 110px;
        margin-bottom: 11px; /* 10px + 30% */
    }
    
    .member-name {
        font-size: 17px; /* 16px + 30% */
    }
}

/* Индикаторы карусели */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Позиционирование кнопок */
.project-carousel {
    position: relative;
    margin-bottom: 40px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    pointer-events: auto;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}