html {
    background: var(--button-text);
}

.about {
    width: calc(100% - 40px);
    margin: 20px auto;
    max-width: 1460px;
    padding: 2rem 40px;
}

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    max-width: 520px;
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
}

/* ===== STATS ===== */
.stats {
    max-width: 1040px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 2.5rem 0;
    padding: 0 40px;
    background: #ffffff;
    border-radius: 1.5rem;
}

.stats-block {
    text-align: center;
    flex: 1;
    position: relative;
}

.stats-block:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #dcdcdc;
}

.stats .number {
    font-family: "Inter-Medium", sans-serif;
    font-size: 3rem;
    color: var(--secondary-text);
    margin: 0;
}

.stats .decoration {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--additional-text);
}

/* ===== MISSION ===== */
.mission {
    width: 100%;
    background: #e8ebff;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mission-header {
    max-width: 1460px;
    width: calc(100% - 40px);
    margin: 20px auto 2rem;
    padding: 0 40px;
    font-family: "Inter-Medium", sans-serif;
    font-size: 1.4rem;
    color: var(--secondary-text);
}

.mission-list {
    max-width: 1460px;
    width: calc(100% - 40px);
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mission-block {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem;
}

.mission-block img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

.mission-block h3 {
    font-family: "Inter-Medium", sans-serif;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.mission-block p,
.mission-block li {
    font-family: "Inter-Regular", sans-serif;
    font-size: 0.95rem;
}

.mission-block ul {
    padding-left: 1.2rem;
    margin: 0;
}

/* ===== MEMBER ===== */
.member {
    max-width: 1460px;
    width: calc(100% - 40px);
    margin: 20px auto;
    display: flex;
    gap: 2rem;
    background: #ffffff;
    padding: 0 40px;
    border-radius: 1.5rem;
}

.member-image {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 1.2rem;
}

.member-text h3 {
    font-family: "Inter-Medium", sans-serif;
    color: var(--secondary-text);
    margin-bottom: 0.2rem;
}

.member-text .position {
    font-size: 0.95rem;
    color: var(--additional-text);
    margin-bottom: 1rem;
}

.news-header-columns {
    width: 100%;
    max-width: 1460px;
    display: inline-flex;
    gap: 2rem;
    padding: 20px 60px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about {
        width: 100%;
    }
    
    .mission-header {
        width: 100%;
    }
    
    .mission-list {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .member {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .member-image {
        width: 100%;
        height: auto;
        max-width: 320px;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-block::after {
        display: none;
    }
}

.images {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Обгортка великого зображення + підпис */
.big-image-wrapper {
    width: fit-content;
    max-width: 100%;
    margin: 2rem auto 1rem;
    text-align: center;
}

/* Велике зображення */
.big-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

.big-image-inside-wrapper {
    padding: 0 20px;
    display: flex;
    justify-content: center;
}
/* Підпис до великого зображення */
.big-image-caption {
    margin-top: 0.75rem;
    font-family: "e-Ukraine-Medium", sans-serif;
    font-size: 0.95rem;
    color: var(--additional-text);
    line-height: 1.4;
    max-width: 800px;
    padding: 0 20px;
}

/* Галерея мініатюр */
.news-gallery {
    width: calc(100% - 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
    padding: 0 20px;
    justify-content: center;
    max-width: 1460px;
}

/* Мініатюри */
.small-image {
    width: calc(100% / 6 - 20px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-sizing: border-box;
    border-radius: 10%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.small-image:hover {
    transform: translateY(-6px);
    box-shadow: rgba(0, 0, 0, 0.35) 0 12px 25px;
}

.small-image.active {
    opacity: 0.5;
    border: solid 3px var(--secondary-text);
}

@media (min-width: 1024px) {
    .images {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 2rem;
        align-items: start;
        
        width: 100%;
        margin: 0 auto;

        box-sizing: border-box;
    }

    /* МІНІАТЮРИ — ЗЛІВА */
    .news-gallery {
        grid-column: 1 / 2;
        grid-row: 1 / 2;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;

        padding: 2rem 0;
        width: 100%;
    }

    .small-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    /* ВЕЛИКЕ ФОТО — СПРАВА */
    .big-image-wrapper {
        grid-column: 2 / 3;
        grid-row: 1 / 2;

        margin: 2rem 0;
        text-align: center;
        
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

