/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif; /* Можно заменить на Helvetica или Inter */
    background-color: #ffffff;
    color: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

/* Сетка макета */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Стили текста */
.main-title {
    font-size: 64px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.subtitle {
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px;
    margin-bottom: 50px;
}

.description-box {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;

    /* Отступы: сверху/снизу оставляем, слева ставим 0 для параллельности */
    padding: 30px 0;

    margin-top: 40px;
    max-width: 600px; /* Чтобы строка не была слишком длинной */
}


.description-box > p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 500px;
}

/* Стили фич (маленькие заголовки) */
.features {
    display: flex;
    gap: 30px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 12px;
    line-height: 1.4;
    color: #444;
}

/* Стили изображения */
.main-illustration {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: cover;
}

/* Подвал секции */
.section-footer {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .main-title {
        font-size: 48px;
    }
    .image-content {
        order: -1; /* Картинка будет сверху на мобильных */
        justify-content: center;
    }
}




.hero-footer-line {
    width: 100%;

    /* Верхняя черная линия */
    border-top: 1px solid #000000;



    /* Отступ сверху, чтобы линия не прилипала к тексту/фото */
    margin-top: 60px;

    /* Очистка обтекания на всякий случай */
    clear: both;
}






/* Стили для секции команды */
.team-section {
    padding: 60px 0;
    border-top: 1px solid #000;
    margin-top: 40px;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.team-main-title {
    font-size: 64px;
    font-weight: bold;
    margin: 0;
}

.leader-label {
    font-size: 18px;
    font-weight: bold;
}

/* Сетка команды */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr; /* Две маленькие колонки и одна большая */
    gap: 40px;
    align-items: start;
}

.member-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратные фото для маленьких карточек */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #eee;
}

.large-img {
    aspect-ratio: 1.5 / 1; /* Прямоугольное фото для лидера */
}

.member-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%); /* Черно-белый стиль как на примере */
    transition: filter 0.3s ease;
}

.member-photo:hover {
    filter: grayscale(0%); /* Цвет при наведении */
}

.member-info h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.member-info .position {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    max-width: 90%;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    .team-member.large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
         aspect-ratio: 4 / 5;
    }
    .team-member.large, .team-member.small {
        grid-column: span 1;
        aspect-ratio: 4 / 5;
    }
    .team-main-title {
        font-size: 40px;
    }
}



/* Основной контейнер */
.container {
    max-width: 1400px; /* Ограничивает ширину на очень больших экранах */
    margin: 0 auto;    /* Центрирует контейнер */
    padding: 0 40px;   /* Отступы слева и справа от края браузера */
}

/* Секция с общим отступом сверху и снизу */
.team-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Заголовок с выравниванием */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px; /* Отступ от заголовка до фото */
}

.team-main-title {
    font-size: 64px;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Изменяем сетку на три равные колонки */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Теперь все колонки одинаковой ширины */
    gap: 30px;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Создает идеальный квадрат. Можно заменить на 3/4 для прямоугольника */
    overflow: hidden; /* Обрезает лишнее, если фото не квадратное */
    margin-bottom: 20px;
}

.member-photo {
    width: 100%;
    height: 100%; /* Заполняет весь wrapper */
    display: block;
    object-fit: cover; /* Масштабирует фото без искажений, заполняя область */
    object-position: center; /* Центрирует изображение внутри */
}
/* Отступы для текста внутри блоков */
.member-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.member-info .position {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.member-info .member-bio {
    font-size: 13px;
    line-height: 1.6;
}

/* Для мобильных устройств уменьшаем отступы */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .team-grid {
        grid-template-columns: 1fr; /* В колонку на мобильных */
    }
}




/* Общая обертка секции */
.gallery-info-section {
    background-color: #ffffff;
    padding: 40px 0; /* Такой же отступ как у team-section */
}

/* Контейнер: используем те же параметры, что и в team-section */
.container1 {
    max-width: 1400px !important; /* Было 1200, приводим к стандарту team-section */
    margin: 0 auto !important;
    padding: 0 0px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Сетка */
.gallery-info-grid {
    display: grid !important;
    /* Три равные колонки как в Our Team (repeat(3, 1fr)) */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important; /* Такой же gap как в Our Team */
    align-items: end !important; /* Выравнивание по нижней линии */
}

/* Колонки */
.gi-left, .gi-center, .gi-right {
    width: 100% !important;
    max-width: none !important;
}

/* Принудительно делаем фото ОДИНАКОВЫМИ */
.gi-img-small,
.gi-img-large {
    width: 100% !important; /* Занимает всю ширину своей колонки */
    aspect-ratio: 2 / 3 !important; /* Сделаем квадратными, как фото команды, для единства стиля */
    overflow: hidden !important;
    display: block !important;
}

/* Или если нужны именно вертикальные (как на вашем скриншоте), используйте это:
   aspect-ratio: 2 / 3 !important;
*/

.gi-img-small img,
.gi-img-large img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: 0.3s;
}

.gi-img-small img:hover,
.gi-img-large img:hover {
    filter: grayscale(0%);
}

/* Заголовок и текст */
.gi-title {
    font-size: 64px ; /* Такой же размер как у 'Our Team' */
    font-weight: bold;
    margin: 0 0 20px 0 !important;
    line-height: 1;
}

.gi-description {
    font-size: 14px !important; /* Такой же размер как у био команды */
    line-height: 1.6;
    margin: 0;
}

.gi-arrow {
    font-size: 40px;
    margin-top: 20px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .gallery-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gi-right {
        grid-column: span 2;
    }
}








.team-full-description {
    margin-top: 40px; /* Отступ от фотографий */
    margin-bottom: 60px; /* Отступ до футера секции */
    max-width: 800px; /* Ограничиваем ширину для удобства чтения */
}

.team-full-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #555; /* Или белый, если фон темный */
    margin: 0;
}

/* Если нужно центрировать текст относительно сетки */
.team-full-description {
    /* margin-left: auto;
       margin-right: auto;
       text-align: center; */
}







.team-main-title,
.section-footer {
    width: 100%;
    display: flex;
    justify-content: space-between; /* для футера, чтобы распределить элементы */
}