.history-item__content {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 30px;
}

#history-dates {
    .benefits__carousel-title-container {
        margin-left: auto;
        margin-right: 0;
    }
    .swiper-wrapper {
        height: 598px;
    }
}

.history-year-item {
    cursor: pointer;
}

#history-dates .swiper-slide,
.history-item__image-wrapper {
    height: 100%;
}

.history-item__image-wrapper img {
    border-radius: 5px;
}

.history-item__date {
    color: var(--White, #fff);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.history-item__date-description {
    color: var(--White, #fff);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
}

.images-carousel__thin,
.history-faces__container,
.history__periods-carousel {
    margin-top: 100px;
}

.history-faces__container {
    overflow: hidden;
}

.periods-carousel__dates-list {
    padding-bottom: 50px;
}

.periods-carousel__dates-list ul li {
    cursor: pointer;
    text-wrap: nowrap;
}

.periods-carousel__dates-list .active {
    color: var(--blue-gradient, #1c86ff);
}

.period-content__text {
    bottom: 0;
    left: 0;
    color: #f7f7f7;
    font-size: 128px;
    font-style: normal;
    font-weight: 400;
    line-height: 70%;
}

.period-content__container {
    border-radius: 5px;
    overflow: hidden;
    height: 863px;
}

.period-content__container img {
    height: 100%;
    object-fit: cover;
}

#history-periods {
    margin-bottom: 50px;
    .swiper-slide {
        transition: opacity 0.2s ease-in-out;
    }
}

#history-periods .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
}

.history-periods__content ul {
    display: flex;
    flex-direction: column;
    gap: 100px;

    margin-bottom: 50px;
}

.history-periods__content ul li {
    padding-bottom: 30px;
}

.history-periods__content ul li:not(:last-of-type) {
    border-bottom: 1px solid black;
}

.period-year__content p {
    width: 713px;
}

.period-year__content h1 {
    color: var(--Black, #101010);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
}

.history-periods__buttons {
    margin-top: 50px;
    gap: 10px;
}

.history-periods__buttons button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.history-periods__buttons button img {
    width: 24px;
    height: 24px;
}

.history-faces__navbar {
    padding-top: 85px;

    display: flex;
    flex-direction: column;
    gap: 30px;
}

.history-faces__item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 30px;

    max-width: fit-content;
}

.history-faces__item h1 {
    width: 10em;
    text-transform: capitalize;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
}

.history-faces__item img {
    object-fit: cover;
    border: 8px solid transparent;
    border-radius: 50%;

    width: 250px;
    height: 250px;
}

.history-faces__item.swiper-slide-active img {
    border: 8px solid #1c86ff;
}

.history-faces__list {
    gap: 10px;
    justify-content: space-between;
    width: 100%;

    padding-bottom: 30px;
    scrollbar-width: thin; /* Firefox: thin | auto | none */
    scrollbar-color: #1c86ff #e8e8e8; /* thumb-color track-color */
}

.history-faces__list::-webkit-scrollbar {
    height: 1px;
    background-color: #e8e8e8; /* or add it to the track */
}

.history-faces__list::-webkit-scrollbar-thumb {
    background: #1c86ff;
}

.history-faces__photo-container {
    height: 716px;
}

.history-faces__content {
    margin-top: 100px;
    width: 100%;
}

.history-faces__photo-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;

    border-radius: 5px;
}

.history-faces__name {
    text-transform: capitalize;
    transition: var(--history-face-transition);
    transform: translateX(-50px);
    opacity: 0;

    bottom: 0;
    left: -4.05em;

    width: 8em;

    color: var(--White, #fff);
    font-size: 128px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 128px */
}

.history-faces__text,
.history-faces__photo {
    transition: var(--history-face-transition);
    transform: translateX(50px);
    opacity: 0;
}

.history-faces__text.rendered,
.history-faces__photo.rendered,
.history-faces__name.rendered {
    transform: unset;
    opacity: 1;
}

.history-faces__awards {
    display: flex;
    flex-direction: column;
    justify-content: end;

    gap: 139px;
    padding-right: 5px;
}

.history-faces__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 10px;
}

.history-faces__text p {
    width: 80%;
}

.history-faces__award-item {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 34px;
}

.history-faces__award-item h1 {
    color: var(--blue-gradient, #1c86ff);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
}

.history-faces__award-item span {
    color: var(--Grey, #b2b2b2);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
}

.award-wrapper__text {
    display: flex;
    flex-direction: column;
    gap: 17px;

    width: 160px;
}

.history-faces__quote {
    display: flex;
    flex-direction: column;
    gap: 50px;

    width: 525px;
}

.history-faces__quote img {
    width: 47px;
    height: 33px;
}

.history-faces__quote p {
    color: var(--Grey, #b2b2b2);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
}

.history-faces__text-container {
    gap: 100px;
}

.history-faces__carousel {
    margin-top: 100px;
    padding-bottom: 100px;
}

.history-faces__carousel-container {
    height: 705px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}

.history-faces__carousel-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.swiper#history-dates {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.history-dates__border-bottom {
    padding-top: 30px;
    border-bottom: 1px solid black;
}

.main__images-carousel:has(#history-dates) {
}

.history-faces__carousel .carousel__rulers button img {
    filter: invert(1);
}

.history-faces__carousel .carousel__rulers {
    justify-content: flex-end;

    padding-bottom: 30px;
}

.history-faces__carousel .carousel__rulers button {
    width: fit-content;
}

.draggable * {
    user-select: none;
}

.history-faces__title {
    width: 100%;

    color: var(--White, #FFF);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
}

.history-faces__list {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.award-wrapper__image img {
    width: 100px;
}

.award-wrapper__text {
    height: 18em;
    overflow: hidden;
}

.history-faces__swiper .swiper-wrapper {
    height: auto !important;
}

.history-faces__text.rendered {
    max-height: 45%;
    padding-right: 1em;
}

@media screen and (max-width: 1440px) {
    #history-dates .swiper-wrapper {
        height: 500px;
    }

    .period-year__content p {
        width: 774px;
    }

    .periods-carousel__dates-list {
        max-width: 100%;
        overflow: hidden;
    }

    .periods-carousel__dates-list ul {
        gap: 34px;
        max-width: 100%;
        overflow-x: scroll;
    }

    .periods-carousel__dates-list ul li:last-child {
        padding-right: 5em;
    }

    .periods-carousel__dates-list ul li:first-child {
        padding-left: 5em;
    }

    .periods-carousel__dates-list ul::-webkit-scrollbar {
        display: none;
    }

    .period-content__container {
        height: 600px;
    }

    .history-faces__carousel-container {
        height: 591px;
    }

    .history-faces__photo-container {
        height: 600px;
    }

    .history-faces__text-container {
        width: 75%;
    }

    .history-faces__name {
        left: -1.5em;
    }

    .history-faces__awards {
        width: 20%;
    }

    .history-faces__award-item {
        flex-direction: column;
    }

    .history-faces__quote {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1240px) {
    .history-faces__photo-container {
        height: 354px;
    }

    .history-faces__awards {
        width: 35%;
    }

    .history-faces__text p {
        width: 100%;
    }

    .history-faces__quote {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .history-faces__text-container {
        width: 65%;
    }

    .history-faces__awards {
        width: 30%;
    }

    .history-faces__name {
        font-size: 64px;
    }

    #history-dates .swiper-wrapper {
        height: 358px;
    }

    .period-year__content p {
        width: 60%;
    }

    .benefits__carousel-title-container > h1 {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .history-faces__content {
        flex-direction: column;
    }

    .history-faces__text-container {
        width: 100%;
    }

    .history-faces__photo-container {
        display: flex;
        flex-direction: row;
        justify-content: end;
    }

    .history-faces__photo-container img {
        width: 65%;
    }

    .history-faces__name {
        left: 0;
        font-size: 48px;
    }

    .history-faces__awards {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 17px;
    }

    .history-faces__award-item {
        align-items: end;
    }

    .history-faces__carousel {
        margin-top: 48px;
    }

    .history-faces__carousel-container {
        height: 349px;
    }

    .period-content__text {
        font-size: 48px;
    }

    .period-content__container {
        height: 346px;
    }

    .history-periods__content ul {
        gap: 32px;
    }

    .period-year__content p {
        font-size: 14px;
    }

    .banner__article p {
        width: 100%;
        font-size: 14px;
    }

    .history-faces__list {
        max-width: unset;
    }

    .images-carousel__thin,
    .history-faces__container,
 {
        margin-top: 79px;
    }

    .period-year__content p {
        width: 60%;
    }

    .history__periods-carousel {
        margin-top: 64px;
    }

    #history-dates .swiper-wrapper {
        height: 262px;
    }

    .header__breadcrumbs_history {
        margin-top: 35px;
    }

    .banner__with-title_history {
        margin-top: 26px;
        gap: 9px;

        padding-bottom: 18px;

        > h1 {
            margin-bottom: 15px;
        }
    }

    .benefits__carousel-title-container > h1 {
        font-size: 24px;
    }

    .images-carousel__thin,
    .history-faces__container,
 {
        margin-top: 63px;
    }

    .benefits__carousel-title-container {
        margin-bottom: 10px;
    }

    #history-dates .swiper-slide,
    .history-item__image-wrapper {
        width: 277px;
    }

    .history-dates__border-bottom {
        padding-top: 16px;
    }

    .history__periods-carousel {
        margin-top: 58px;
    }

    .periods-carousel__dates-list {
        padding-bottom: 28px;
    }

    .period-year__content h1 {
        font-size: 20px;
    }

    .period-year__content p {
        width: 75%;
    }

    .history-periods__content ul li {
        padding-bottom: 30px;
    }

    .history-periods__buttons {
        margin-top: 65px;
    }

    .history-faces__navbar {
        padding-top: 56px;
    }

    .history-faces__title {
        font-size: 24px;
    }

    .history-faces__item img {
        width: 110px;
    }

    .history-faces__navbar {
        gap: 23px;
    }

    .history-faces__item h1 {
        font-size: 12px;
        width: 100%;
    }

    .history-faces__item {
        gap: 10px;
        max-width: 92px;
    }

    .history-faces__content {
        margin-top: 31px;
    }

    .history-faces__photo-container img {
        width: 75%;
    }

    .history-faces__name {
        bottom: -4px;
    }

    .history-faces__text-container {
        gap: 57px;
        font-size: 14px;
    }

    .history-faces__text p {
        margin-bottom: 17px;
    }

    .history-faces__quote img {
        width: 25px;
    }

    .history-faces__awards {
        align-items: flex-start;
    }

    .award-wrapper__image img {
        width: 50px;
    }

    .history-faces__awards {
        padding-top: 41px;
    }

    .history-faces__award-item h1 {
        font-size: 24px;
    }

    .history-faces__award-item span {
        font-size: 12px;
    }

    .history-faces__award-item {
        gap: 7px;
    }

    .award-wrapper__text {
        gap: 0;
    }

    .history-faces__quote {
        gap: 9px;
    }

    .history-faces__quote p {
        font-size: 12px;
    }

    .history-faces__award-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-faces__carousel {
        margin-top: 43px;
        padding-bottom: 66px;

        .carousel__rulers {
            padding-bottom: 8px;
        }
    }
}

@media screen and (max-width: 700px) {
    .swiper#history-dates {
        border-top-right-radius: unset;
        border-bottom-right-radius: unset;
    }

    #history-faces__1.margin-overflow__reversed,
    #history-dates.margin-overflow__reversed {
        max-width: calc(var(--container-width) + var(--container-offset-right));
        margin-right: var(--carousel-margin-right) !important;
        margin-left: auto !important;
    }

    #history-periods.swiper {
        max-width: var(--container-width);
        margin-left: auto;
        margin-right: auto;
    }

    .period-content__container {
        height: 186px;
    }

    #history-periods .swiper-slide:not(.swiper-slide-active) {
        opacity: 1;
    }

    .periods-carousel__dates-list ul li:first-child {
        padding-left: 1em;
    }

    .periods-carousel__dates-list ul li:last-child {
        padding-right: 1em;
    }

    .period-year__content {
        flex-direction: column;
        gap: 16px;
    }

    .period-year__content p {
        width: 100%;
    }

    .period-year__content h1 {
        font-size: 20px;
    }

    .history-periods__content ul li {
        padding-bottom: 20px;
    }


    .history-periods__buttons {
        flex-direction: column;
    }

    .history-faces__item img {
        width: 92px;
        height: 92px;
    }

    .history-faces__item h1 {
        font-size: 12px;
    }

    .history-faces__list {
        max-width: var(--container-width);
        margin: 0 auto;
    }

    .history-faces__photo-container {
        flex-direction: column-reverse;
    }

    .history-faces__name {
        position: relative;
    }

    .history-faces__photo-container {
        height: fit-content;
    }

    .history-faces__photo-container img {
        width: 100%;
        height: 231px;
    }

    .history-faces__text p {
        width: 100%;
    }

    .history-faces__text-container {
        gap: 32px;
    }

    .history-faces__awards {
        flex-direction: column;
        padding-top: 32px;
        gap: 32px;
    }

    .award-wrapper__text,
    .history-faces__quote {
        width: 100%;
    }

    .history-faces__award-item {
        flex-direction: column;
        align-items: start;
    }

    .history-faces__carousel-container {
        height: 168px;
    }

    .history-faces__content {
        margin-top: 32px;
    }

    .history-faces__name {
        padding-bottom: 16px;
    }

    .history-item__date-description {
        font-size: 16px;
    }

    .history-item__date {
        font-size: 14px;
    }

    .history-item__content {
        padding: 16px;
    }

    .main__images-carousel:has(#history-dates) .benefits__carousel-title-container {
        display: flex;
    }

    .main__images-carousel:has(#history-dates) .carousel__rulers {
        display: none;
    }

    .benefits__carousel-title-container > h1 {
        font-size: 18px;
    }

    .header__breadcrumbs_history {
        margin-top: 14px;
    }

    .banner__with-title_history {
        .banner__article p {
            margin-top: 55px;
        }
    }

    .images-carousel__thin {
        margin-top: 54px;
    }

    .benefits__carousel-title-container {
        margin-bottom: 28px;
    }

    #history-dates .swiper-slide,
    .history-item__image-wrapper {
        width: 269px;
        height: 241px;
    }

    .history-dates__border-bottom {
        padding-top: 4px;
    }

    .history-periods__content {
        margin-top: 10px;
    }


    .period-year__content {
        gap: 7px;
    }

    .history-periods__content ul li {
        padding-bottom: 27px;
    }

    .history-periods__content ul {
        gap: 28px;
    }

    .period-year__content p {
        width: 97%;
    }

    .history-periods__content ul li {
        padding-bottom: 30px;
    }

    .history-periods__buttons {
        margin-top: 32px;
    }

    .history-faces__navbar {
        padding-top: 22px;
    }

    .history-faces__navbar {
        gap: 10px;
    }

    .history-faces__list {
        padding-bottom: 11px;
    }

    .history-faces__name {
        font-size: 32px;
        width: 100%;
    }

    .history-faces__content {
        margin-top: 21px;
    }

    .history-faces__name {
        padding-bottom: 26px;
    }
}
