.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    height: 100vh;
    max-height: 900px;
}

.intro__wrapper {
    max-width: 1920px;
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.intro__wrapper>picture {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.intro__wrapper::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #00000033;
}

.intro__wrapper>picture>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro__wrapper__content {
    text-align: center;
    margin-top: 64px;
}

.intro-secondary {
    margin: 128px 0;
}

.intro-secondary__wrapper {
    gap: 2rem;
}

.intro-secondary__wrapper__text-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.intro-secondary__wrapper__text-block h1 {
    color: var(--color-main);
}

.intro-secondary__wrapper__text-block h1,
.intro-secondary__wrapper__text-block p {
    max-width: 90%;
}

.intro-secondary__wrapper__media-block video,
.intro-secondary__wrapper__media-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}

.intro-2 .intro-secondary__wrapper__text-block h1 {
    font-size: 48px;
}

.intro-2 .intro-secondary__wrapper__text-block p {
    font-size: 24px;
}

.stats {
    margin: 128px 0;
}

.stats>.container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.stats>.container>h1 {
    text-align: center;
    color: var(--color-main);
}

.stats>.container>.number-cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.number-cards>.number-cards-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 300px;
    width: 100%;
    border-radius: 1rem;
    color: #fff;
    background-color: var(--color-main);
    border-color: transparent;
    padding: 32px 16px;
    text-align: center;
}

.number-cards>.number-cards-item>h3 {
    margin: 32px 0 8px;
    font-size: 48px;
}

.news {
    margin: 32px 0;
}

.news>div>h1 {
    text-align: center;
    color: var(--color-main);
}

.news>.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.news article {
    position: relative;
    border: 1px solid var(--color-main);
    border-radius: 1rem;
    transition: box-shadow .3s linear, transform .3s linear;
}

.news article>a {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news article small {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--color-main);
}

.news-item-right-top article h6 {
    font-size: 1.3rem;
}

.news-item-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.news-item-card-bottom>div {
    display: flex;
    align-items: center;
    transform: translateX(-150%);
    transition: transform .3s linear;
}

.news article:focus-within,
.news article:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--color-main);
    outline-offset: -2px;
    transform: scale(1.01);
}

.news article:focus-within .news-item-card-bottom>div,
.news article:hover .news-item-card-bottom>div {
    transform: translateX(0);
}

.news-item-card-bottom>div>p {
    margin-bottom: 0;
}

.news>.container>a {
    background-color: var(--color-main);
    color: #fff;
}

.news>.container>a:hover,
.news>.container>a:focus-visible {
    background-color: #48c57c;
}

.news-card-media {
    position: relative;
}

.news-card-media-views-count {
    position: absolute;
    left: 8px;
    top: 8px;
    width: fit-content;
    height: fit-content;
    background-color: #333333dd;
    color: #fff;
    border-radius: 1rem;
    padding: 4px 6px;
    font-size: 14px;
    z-index: 2;
}

.institute-structure>.container>h1 {
    text-align: center;
    color: var(--color-main);
}

.institute-structure .swiper {
    width: 100%;
    height: fit-content;
}


.institute-structure .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 600px;
    border-radius: 1rem;
}

.institute-structure .swiper-slide .card a {
    height: 100%;
    position: relative;
}

.institute-structure .swiper-slide .card .card-img-overlay {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    transition: color .3s linear, transform .3s linear;
    transform: translateY(30px);
    z-index: 1;
}

.institute-structure .swiper-slide .card .card-img-overlay p {
    text-align: left;
    opacity: 0;
    transition: opacity .3s linear;
}

.institute-structure .swiper-slide .card a:hover .card-img-overlay p,
.institute-structure .swiper-slide .card a:focus-visible .card-img-overlay p {
    opacity: 1;
}

.institute-structure .swiper-slide .card a::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000000ff, #ffffff00 40%);
    transition: opacity .3s linear;
    opacity: .7;
}


.institute-structure .swiper-slide .card a:hover::before,
.institute-structure .swiper-slide .card a:focus-visible::before {
    opacity: 1;
}

.institute-structure .swiper-slide .card a:hover .card-img-overlay,
.institute-structure .swiper-slide .card a:focus-visible .card-img-overlay {
    color: var(--color-main);
    transform: translateY(0);
}

.institute-structure .swiper-slide .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .intro {
        max-height: none;
        overflow: hidden;
        height: auto;
    }

    .intro__wrapper {
        flex-direction: column-reverse;
    }

    .intro__wrapper__left__wrapper {
        padding: 1rem 0;
        max-width: none;
        min-height: 400px;
        justify-content: center;
    }

    .intro__wrapper__left__wrapper h1,
    .intro__wrapper__left__wrapper h3 {
        text-align: center;
    }

    .intro-secondary {
        margin: 32px 0;
    }

    .intro-secondary__wrapper__text-block h1,
    .intro-secondary__wrapper__text-block p {
        max-width: 100%;
    }

    .stats>.container>.number-cards {
        gap: 1rem;
    }

    .stats>.container>.number-cards>.number-cards-item {
        flex-basis: calc(50% - .5rem);
        max-width: none;
    }

    .news-item-right-top article h6 {
        font-size: 1rem;
    }

    .news-item-left article h3 {
        font-size: 1rem;
    }

    /* ------------------------------------------ */

    .institute-structure .swiper-slide {
        min-height: none;
        border-radius: 1rem;
    }

    /* .institute-structure .swiper-slide .card a {
        height: 100%;
        position: relative;
    } */

    .institute-structure .swiper-slide .card .card-img-overlay {
        transition: color .3s linear;
        transform: none;
    }

    .institute-structure .swiper-slide .card .card-img-overlay p {
        opacity: 1;
        transition: none;
    }

    .institute-structure .swiper-slide .card a::before {
        content: "";
        position: absolute;
        z-index: 0;
        transition: none;
        opacity: 1;
    }

    .institute-structure .swiper-slide .card a:hover .card-img-overlay,
    .institute-structure .swiper-slide .card a:focus-visible .card-img-overlay {
        transform: none;
    }
}

@media (max-width: 769px) {

    .intro-2 .intro-secondary__wrapper__text-block h1 {
        font-size: 36px;
        text-align: center;
    }

    .intro-2 .intro-secondary__wrapper__text-block p {
        font-size: 20px;
        text-align: center;
    }

    .institute-structure .swiper-slide .card a::before {
        background: linear-gradient(to top, #000000ff, #ffffff00 60%);
    }
}

@media (max-width: 576px) {
    .intro-2 .intro-secondary__wrapper__text-block h1 {
        font-size: 32px;
    }


    .stats>.container>.number-cards {
        justify-content: center;
    }

    .stats>.container>.number-cards>.number-cards-item {
        flex-basis: 100%;
        max-width: 300px;
    }

    .institute-structure .swiper-slide .card a::before {
        background: linear-gradient(to top, #000000ff, #ffffff00 80%);
    }
}