/* =========================================================
   ОБЩИЕ НАСТРОЙКИ СТРАНИЦЫ
   ========================================================= */

.main {
    padding: 0;
}

.about-page {
    --about-blue: #0785c8;
    --about-dark: #171717;
    --about-muted: #555555;
    /* --about-container: 1180px; */
    font-weight: 1.38em;
    overflow: hidden;
    color: var(--about-dark);
}

.about-page *,
.about-page *::before,
.about-page *::after {
    box-sizing: border-box;
}

.about-page img {
    display: block;
    max-width: 100%;
}

.about-container {
    width: min(calc(100% - 40px), var(--about-container));
    margin-left: 5%;
    margin-right: 5%;

}

.about-section {
    padding: 72px 0;
}

.about-title,
.about-heading {
    margin: 0;
    font-weight: 500;
    line-height: 1.15;
}

.about-title {
    margin-bottom: 34px;
    font-size: 3em;
}

.about-title--center {
    text-align: center;
}

.about-heading {
    margin-bottom: 12px;
    font-size: 3em;
}

.about-button,
.about-outline-button {
    display: inline-flex;
    font-size:1.38em;
    min-height: 52px;
    padding: 11px 28px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
    
}

.about-button {
    background: var(--about-blue);
    color: #ffffff;
}

.about-button:hover,
.about-outline-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   ГЛАВНЫЙ СЛАЙДЕР
   ========================================================= */

.about-hero {
    position: relative;
    min-height: clamp(500px, 56vw, 710px);
    background: #252525;
    isolation: isolate;
}

.about-hero__slides,
.about-hero__slide {
    position: absolute;
    inset: 0;
}

.about-hero__slide {
    opacity: 0;
    transition: opacity 1.1s ease;
}

.about-hero__slide.is-active {
    opacity: 1;
}

.about-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.22) 50%,
            rgba(0, 0, 0, 0.10) 100%
        );
}

.about-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: clamp(500px, 56vw, 710px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.about-hero__title {
    max-width: 820px;
    margin: 0 0 28px;
    color: #ffffff;
    font-size: clamp(38px, 5.1vw, 67px);
    font-weight: 500;
    line-height: 1.03;
    text-wrap: balance;
}

.about-hero__button {
    min-width: 270px;
    border-radius: 12px;
    font-size: 20px;
    text-transform: uppercase;
}

.about-hero__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 48px;
    height: 70px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    color: rgba(40, 40, 40, 0.75);
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
    transition: background-color 180ms ease;
}

.about-hero__arrow:hover {
    background: rgba(255, 255, 255, 0.80);
}

.about-hero__arrow--previous {
    left: 18px;
}

.about-hero__arrow--next {
    right: 18px;
}


/* =========================================================
   ИСТОРИЯ
   ========================================================= */

.about-history__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.14fr);
    gap: clamp(42px, 6vw, 84px);
    align-items: center;
}

.about-history__image {
    overflow: hidden;
    border-radius: 17px;
}

.about-history__image img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
}

.about-history__text {
    font-size: 1.38em;
    line-height: 1.35;
}

.about-history__text p {
    margin: 0 0 14px;
}

.about-history__second-heading {
    margin-top: 28px;
}

.about-history__toggle {
    display: none;
}


/* =========================================================
   СЛАЙДЕР УНИКАЛЬНЫХ ЭКСПОНАТОВ
   ========================================================= */

.about-exhibits {
    padding-top: 46px;
    padding-bottom: 76px;
}

.about-exhibits__container {
    width: min(calc(100% - 80px), 1900px);
    margin-inline: auto;
}

.about-exhibits-slider {
    position: relative;
}

.about-exhibits-slider__viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.about-exhibits-slider__track {
    --exhibits-visible: 4;
    --exhibits-gap: 22px;

    display: flex;
    gap: var(--exhibits-gap);
    transition: transform 500ms ease;
    will-change: transform;
}

.about-exhibit-card {
    flex: 0 0 calc(
        (
            100% -
            (
                var(--exhibits-gap) *
                (var(--exhibits-visible) - 1)
            )
        ) /
        var(--exhibits-visible)
    );
    min-width: 0;
}

.about-exhibit-card__link {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    background: #eeeeee;
    color: #ffffff;
    text-decoration: none;
}

.about-exhibit-card__image,
.about-exhibit-card__gradient {
    position: absolute;
    inset: 0;
}

.about-exhibit-card__image {
    display: flex;
    padding: 12px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f1f1f1 55%,
            #d2d2d2 100%
        );

    align-items: center;
    justify-content: center;
}

.about-exhibit-card__image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center center;

    transition: transform 350ms ease;
}
.about-exhibit-card__gradient {
    background:
        linear-gradient(
            180deg,
            transparent 52%,
            rgba(0, 0, 0, 0.58) 100%
        );
    pointer-events: none;
}

.about-exhibit-card__title {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    left: 16px;
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
}

.about-exhibit-card__link:hover
.about-exhibit-card__image img {
    transform: scale(1.04);
}

.about-exhibits-slider__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 42px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    color: #555555;
    font-size: 22px;
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
    transition:
        background-color 180ms ease,
        opacity 180ms ease;
}

.about-exhibits-slider__arrow:hover {
    background: #ffffff;
}

.about-exhibits-slider__arrow--previous {
    left: 8px;
}

.about-exhibits-slider__arrow--next {
    right: 8px;
}

.about-exhibits-slider__arrow[hidden] {
    display: none;
}

.about-empty {
    width: 100%;
    margin: 0;
    text-align: center;
}


/* =========================================================
   ДОСТИЖЕНИЯ
   ========================================================= */

.about-achievements {
    margin-top: 22px;
    padding: 74px 0;
    background:
        linear-gradient(
            105deg,
            #8AB3E2 0%,
            #607AA6 100%
        );
    color: #ffffff;
}

.about-achievements__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 70px;
    align-items: center;
}
/* .about-container{
    display:flex;
    flex-wrap: wrap;
} */
.about-achievements__images {
    position: relative;
    min-height: 455px;
}

.about-achievements__image {
    position: absolute;
    width: min(58%, 350px);
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 18px 23px rgba(0, 0, 0, 0.20));
}

.about-achievements__image--1 {
    top: 0;
    left: 5%;
    transform: rotate(-11deg);
    z-index: 2;
}

.about-achievements__image--2 {
    right: 20%;
    bottom: 0;
    transform: rotate(12deg);
    z-index: 1;
}

.about-achievements__empty {
    margin: 0;
}

.about-achievements__title {
    margin: 0 0 24px;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 500;
    line-height: 1.1;
}

.about-achievements__content p {
    max-width: 580px;
    margin: 0 0 40px;
    font-size: 1.38em;
    line-height: 1.35;
}

.about-outline-button {
    width: min(100%, 410px);
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
    justify-content: space-between;
}


/* =========================================================
   ОБРАЗОВАТЕЛЬНАЯ ДЕЯТЕЛЬНОСТЬ
   ========================================================= */

.about-education {
    padding-top: 88px;
    padding-bottom: 88px;
}

.about-education__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.about-education__content p {
    margin: 0 0 18px;
    font-size: 1.8em;
    line-height: 1.4;
}
.about-education__content h2 {
    font-size:5em;
}
.about-education__content p a {
    color: #4b70dc;
}

.about-education__button {
    width: min(100%, 410px);
    margin-top: 14px;
    justify-content: space-between;
}

.about-education__image {
    overflow: hidden;
    border-radius: 18px;
}

.about-education__image img {
    width: 100%;
    aspect-ratio: 1.25 / 1;
    object-fit: cover;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 980px) {
    .about-exhibits__container {
        width: min(calc(100% - 52px), 1900px);
    }

    .about-exhibits-slider__track {
        --exhibits-visible: 3;
        --exhibits-gap: 18px;
    }

    .about-achievements__layout {
        gap: 34px;
    }

    .about-achievements__images {
        min-height: 380px;
        
    }
    
    .about-education__content p1{
        font-size:1.5em
    }
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 768px) {
    .about-container {
        width: min(calc(100% - 34px), var(--about-container));
    }

    .about-section {
        padding: 32px 0;
    }

    .about-hero,
    .about-hero__content {
        min-height: 570px;
    }

    .about-hero__slide img {
        object-position: center;
    }

    .about-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.52),
                rgba(0, 0, 0, 0.18)
            );
    }

    .about-hero__content {
        justify-content: flex-start;
        padding-top: 78px;
    }

    .about-hero__title {
        max-width: 440px;
        margin: 0;
        font-size: clamp(34px, 10.5vw, 48px);
        line-height: 1.02;
    }

    .about-hero__button {
        display: none;
    }

    .about-hero__arrow {
        top: 53%;
        width: 38px;
        height: 64px;
        border-radius: 6px;
    }

    .about-hero__arrow--previous {
        left: 10px;
    }

    .about-hero__arrow--next {
        right: 10px;
    }

    .about-history__layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }

    .about-history__column {
        order: 1;
    }

    .about-history__image {
        order: 2;
        margin-inline: -17px;
        border-radius: 0;
    }

    .about-history__image img {
        aspect-ratio: 1.48 / 1;
    }

    .about-history__text {
        position: relative;
        max-height: 172px;
        overflow: hidden;
        font-size: 1.2em;
        line-height: 1.3;
        transition: max-height 420ms ease;
    }

    .about-history__text::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 62px;
        background:
            linear-gradient(
                transparent,
                #ffffff 82%
            );
        content: "";
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .about-history__text.is-expanded {
        max-height: 1300px;
    }

    .about-history__text.is-expanded::after {
        opacity: 0;
    }

    .about-history__toggle {
        display: flex;
        width: min(100%, 250px);
        min-height: 44px;
        margin-top: 14px;
        padding: 9px 18px;
        border: 0;
        border-radius: 14px;
        background: var(--about-blue);
        color: #ffffff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .about-history__toggle-icon {
        font-size: 23px;
        line-height: 1;
        transition: transform 220ms ease;
    }

    .about-history__toggle.is-expanded
    .about-history__toggle-icon {
        transform: rotate(180deg);
    }

    .about-title {
        margin-bottom: 24px;
        font-size: 3em;
    }

    .about-exhibits {
        padding-top: 16px;
        padding-bottom: 40px;
    }

    .about-exhibits__container {
        width: min(calc(100% - 18px), 1900px);
    }

    .about-exhibits-slider__track {
        --exhibits-visible: 2;
        --exhibits-gap: 14px;
    }

    .about-exhibit-card__link {
        aspect-ratio: 1.05 / 1;
    }

    .about-exhibit-card__title {
        right: 11px;
        bottom: 11px;
        left: 11px;
        font-size: 15px;
    }

    .about-exhibits-slider__arrow {
        width: 34px;
        height: 54px;
        font-size: 18px;
    }

    .about-exhibits-slider__arrow--previous {
        left: 2px;
    }

    .about-exhibits-slider__arrow--next {
        right: 2px;
    }

    .about-achievements {
        margin-top: 22px;
        padding: 42px 0 48px;
    }

    .about-achievements__layout {
        display: flex;
        flex-direction: column;
        gap: 22px;
        align-items: stretch;
    }

    .about-achievements__content {
        order: 1;
    }

    .about-achievements__images {
        order: 2;
        min-height: 390px;
    }

    .about-achievements__title {
        margin-bottom: 18px;
        font-size: 3em;
    }

    .about-achievements__content p {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .about-achievements__image {
        width: auto;
        height: auto;

        max-width: 220px;
        max-height: 320px;
    }

    /* .about-achievements__image--1 {
        left: 12%;
    }

    .about-achievements__image--2 {
        right: 5%;
    } */

    .about-outline-button {
        width: min(100%, 270px);
        min-height: 44px;
        padding: 8px 16px;
        border-width: 1px;
        border-radius: 14px;
        font-size: 1.38em;
    }

    .about-education {
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .about-education__layout {
        display: flex;
        flex-direction: column;
        gap: 26px;
        align-items: stretch;
    }

    .about-education__content {
        order: 2;
    
    }
     .about-education__content h2{
        font-size:2.3em;
    }
    .about-education__image {
        order: 1;
        margin-inline: -17px;
        border-radius: 0;
    }

    .about-education__image img {
        aspect-ratio: 1.42 / 1;
    }

    .about-education__content p {
        font-size: 17px;
        line-height: 1.35;
    }

    .about-education__button {
        display: none;
    }
}


/* =========================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 410px) {
    .about-hero,
    .about-hero__content {
        min-height: 540px;
    }

    .about-hero__title {
        font-size: 32px;
    }

    .about-exhibits-slider__track {
        --exhibits-gap: 10px;
    }

    .about-achievements__images {
        min-height: 340px;
        /* max-width: 220px;
        max-height: 280px; */
    }
}


/* =========================================================
   УМЕНЬШЕНИЕ АНИМАЦИИ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .about-hero__slide,
    .about-history__text,
    .about-history__toggle-icon,
    .about-exhibits-slider__track,
    .about-exhibit-card__image img {
        transition: none;
    }
}
