﻿/*
    Conditions, GDPR
*/
body {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
}

/* Закрытое состояние - голубой фон */
.accordion-button {
    background-color: #A8D3FF;
    border-radius: 0 !important;
    font-weight: 600;
}

    .accordion-button i {
        font-weight: 600;
        font-size: 1.1em;
    }

    /* Открытое состояние - белый фон */
    .accordion-button:not(.collapsed) {
        background-color: white;
    }

.accordion-item {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

ol > li {
    margin-top: 10px;
}

.accordion-header i {
    margin-right: 10px;
}

.accordion-body {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}


/* 
    Contact 
*/

.team-photo-wrapper {
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.team-photo {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
}

.card {
    transition: all 0.3s ease-in-out;
}

/* Стиль для контактной карточки */
.contact-card {
    border-radius: 1rem;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Общий контейнер */
.content-container {
    max-width: 1700px;
    margin: 0 auto;
}

/* Для карточек команды */
.team-card {
    background-color: #A8D3FF;
    border-radius: 1rem;
    min-height: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/*
    INDEX
*/

.hero-section {
    margin-bottom: 2rem;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.title-section {
    margin-bottom: 1.5rem;
    text-align: center; /* Сделаем заголовки по центру, как на последнем скриншоте */
    padding-top: 2rem; /* Небольшой отступ сверху для заголовков */
}

    .title-section h1 {
        font-size: 2.8rem;
        font-weight: 700;
        color: #212529;
        margin-bottom: 0.5rem;
    }

    .title-section h3 {
        font-size: 1.4rem;
        font-weight: 500; /* Чуть более жирный, чем 400 */
        color: #6c757d;
    }

.content-area {
    overflow: hidden;
}

.carousel-container {
    float: right;
    width: 65%;
    max-width: 700px;
    margin-left: 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.carousel-wrapper {
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.carousel-inner img {
    height: 400px; /* Фиксируем высоту для изображений */
    width: 100%;
    object-fit: cover; /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: Изображение будет заполнять весь контейнер, обрезая лишнее */
    border-radius: 0;
}

.carousel-indicators button {
    background-color: #6c757d;
    opacity: 0.7;
}

    .carousel-indicators button.active {
        background-color: #007bff;
        opacity: 1;
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 1rem;
}

/* Стили для всего текста */
.full-content-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* === АДАПТИВ === */

@media (max-width: 991.98px) {
    .carousel-container {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
    }

    .carousel-inner img {
        height: auto; 
        max-height: 300px; 
        object-fit: cover;
    }

    .full-content-text {
        clear: both;
    }

    .title-section h1 {
        font-size: 2rem;
    }

    .title-section h3 {
        font-size: 1.4rem;
    }

    .full-content-text p {
        font-size: 1.2rem;
        line-height: 1.6;
    }
}

/* --- Смартфоны --- */
@media (max-width: 575.98px) {
    .title-section {
        padding-top: 1.5rem;
    }

        .title-section h1 {
            font-size: 1.7rem;
        }

        .title-section h3 {
            font-size: 1.2rem;
        }

    .carousel-inner img {
        max-height: 220px;
    }

    .full-content-text p {
        font-size: 1.2rem;
        text-align: left;
    }
}


/*
    PARTNER
*/

.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

    .partner-card:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

.partner-logo {
    max-height: 100px;
    object-fit: contain;
}