/* Main */
/* Banner */
.banner {
    height: 660px;
    width: 100%;
    position: relative;
}
.banner__container {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.banner__swiper {
    display: flex;
    flex-direction: column;
}
.banner__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    display: flex;
    z-index: 10;
    padding: 20px 22px;
}
.banner__progress-line {
    flex: 1;
    background-color: var(--grey2);
    margin-right: 4px;
    position: relative;
    overflow: hidden;
    height: 8px;
}
.banner__progress-line:last-child {
    margin-right: 0;
}
.banner__progress-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: var(--white);
    transition: none;
}
.banner__progress-line.active::before {
    width: var(--progress-width, 0%);
    transition: none;
}
.banner__progress-line.completed::before {
    width: 100%;
    transition: none;
}
.banner__slide-content {
    max-width: 650px;
    padding: 150px 0 0 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 85%;
    z-index: 2;
}
.banner__text {
    font-size: 18px;
}
.banner__text_width {
    width: 280px;
}
.banner__buttons {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}
.banner__controls {
    position: absolute;
    bottom: 20px;
    left: 50px;
    z-index: 10;
}
.banner__buttons_mobile {
    display: none;
}
.banner__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.banner__background-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

.banner_white .banner__title,
.banner_white .banner__text {
    color: var(--grey);
}
.banner_white .banner__progress-line {
    background-color: var(--lightest-grey);
}
.banner_white .banner__progress-line::before {
    background-color: var(--lightest-grey2);
}
.banner_white .arrow {
    background-color: var(--lightest-grey);
}
.banner_white .arrow img {
    filter: invert(1);
}
.banner_white .button_info {
    background: transparent;
    border: 1px solid var(--grey);
    color: var(--grey);
}
.banner_white .button_info:hover {
    background-color: var(--lightest-grey);
    color: var(--grey);
}
.banner_white .counter {
    color: var(--grey6);
}

.banner_dark .banner__title,
.banner_dark .banner__text {
    color: var(--white);
}
.banner_dark .banner__progress-line {
    background-color: var(--grey2);
}
.banner_dark .banner__progress-line::before {
    background-color: var(--white);
}
.banner_dark .arrow {
    background: var(--grey2);
    color: var(--white);
}
.banner_dark .arrow.arrow_dark-grey {
    background: var(--grey2);
    color: var(--white);
}
.banner_dark .button_student {
    background-color: var(--main-yellow);
    color: var(--grey);
}
.banner_dark .button_student:hover {
    background-color: var(--yellow);
}
.banner_dark .button_info {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}
.banner_dark .button_info:hover {
    background-color: var(--white);
    color: var(--grey);
}
.banner_dark .counter {
    color: var(--white);
}

.banner_yellow .banner__title,
.banner_yellow .banner__text {
    color: var(--grey);
}
.banner_yellow .banner__progress-line {
    background-color: rgba(226, 226, 226, 0.3);
}
.banner_yellow .banner__progress-line::before {
    background-color: var(--lightest-grey2);
}
.banner_yellow .arrow {
    background-color: var(--yellow3);
}
.banner_yellow .arrow img {
    filter: invert(1);
}
.banner_yellow .button_student {
    background-color: var(--grey);
    color: var(--white);
}
.banner_yellow .button_student:hover {
    background-color: var(--white);
    color: var(--grey);
}
.banner_yellow .button_info {
    background: transparent;
    border: 1px solid var(--grey);
    color: var(--grey);
}
.banner_yellow .button_info:hover {
    background: var(--white);
    color: var(--grey);
}
.banner_yellow .counter {
    color: var(--grey);
}

@media (max-width: 1024px) {
    .banner__slide-content {
        max-width: 500px;
    }
    .banner__text {
        margin-bottom: 20px;
    }
    .banner__buttons {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 768px) {
    .banner {
        height: auto;
    }
    .banner__container {
        height: auto;
    }
    .banner__swiper-slide {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .banner__background {
        position: relative;
        height: 480px;
        width: 100%;
    }
    .banner__slide-content {
        max-width: 300px;
        padding: 70px 0 0 40px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        height: auto;
    }
    .banner__buttons {
        display: none;
    }
    .banner__buttons_mobile {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: unset;
        gap: 15px;
        padding: 20px 0;
        box-sizing: border-box;
        z-index: 2;
        height: auto;
    }
    .banner__controls {
        display: none;
    }
    .banner__buttons_mobile .button {
        text-align: center;
    }
    .banner__buttons_mobile .button_info {
        background-color: var(--white);
        color: var(--grey);
        border: 1px solid var(--dark-grey);
    }
    .banner__buttons_mobile .button_info:hover {
        background-color: var(--dark-grey);
        color: var(--white);
    }
}
@media (max-width: 600px) {
    .banner__slide-content {
        max-width: unset;
        padding: 40px 15px 0;
    }
    .banner__text {
        display: none;
    }
    .banner__buttons_mobile {
        padding: 15px 0;
    }
}
@media (max-width: 425px) {
    .banner__background {
        height: 440px;
    }
    .banner__progress {
        padding: 22px 15px;
    }
    .banner__slide-content {
        padding: 70px 0 0 15px;
    }
}
/* Features */
.features__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.features__link {
    transition: all 0.3s ease;
}
.features__link:hover {
    background-color: var(--dark-grey);
}
.features__link:hover .features__block-title,
.features__link:hover .features__text {
    color: var(--white);
}
.features__link:hover .features__icon-header,
.features__link:hover .features__icon {
    filter: brightness(0) invert(1);
}
.features__link:hover .features__icon-header {
    z-index: 10;
}
.features__link:hover .features__img-wrap {
    z-index: 1;
}
.features__item {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
    cursor: pointer;
}
.features__header {
    display: flex;
    justify-content: space-between;
    flex: 1;
}
.features__icon-header-wrap {
    max-width: 50px;
    max-height: 50px;
    display: flex;
}
.features__icon-header {
    width: 100%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.features__images {
    position: relative;
}
.features__img-wrap {
    position: absolute;
    top: 0;
    right: -10px;
    display: flex;
    z-index: -1;
}
.features__img {
    flex-shrink: 0;
}
.features__icon-wrap {
    max-width: 15px;
    max-height: 15px;
    display: flex;
}
.features__icon {
    width: 100%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.features__block-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--grey);
    flex: 1;
    transition: all 0.3s ease;
}
.features__text {
    font-weight: 300;
    color: var(--grey3);
    flex: 1;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .features__item {
        padding: 20px;
    }
}
@media (max-width: 888px) {
    .features__list {
        grid-template-columns: 1fr;
    }
    .features__item {
        gap: 15px;
        border: 1px solid var(--lightest-grey2);
    }
    .features__header,
    .features__block-title,
    .features__text {
        flex: unset;
    }
    .features__header {
        margin-bottom: 30px;
    }
    .features__img-wrap {
        max-width: 30px;
    }
}

/* Consultation-form */
@media (max-width: 600px) {
    .consultation-form .wrapper {
        padding: 0;
    }
}

/* About */
.about__content {
    background-color: var(--dark-grey);
    padding: 70px 50px;
}
.about__list {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--grey2);
    padding: 50px 30px;
}
.about__list li {
    position: relative;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    padding-right: 30px;
}

.about__wrapper-icon {
    max-width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.about__description {
    max-width: 620px;
    width: 100%;
}
.about h2 {
    color: var(--white);
    margin-bottom: 70px;
}

.gallery h2 {
    color: var(--grey);
}

.about__blocks {
    display: flex;
    gap: 5px;
    margin-bottom: 70px;
}
.about__block {
    display: flex;
    gap: 130px;
}
.about__count-blocks {
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 70px;
}
.about__count-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 37px;
}
.about__count-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-height: 80px;
}
.about__number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
}

.about__count-number {
    display: block;
    font-weight: 700;
    font-size: 80px;
    color: var(--main-yellow);
    text-align: center;
    font-variant-numeric: tabular-nums;
    min-width: 100%;
}
.about__count-text {
    font-weight: 600;
    color: var(--grey7);
}
.about__img-wrap {
    max-width: 660px;
    max-height: 480px;
}
.about__footer-block {
    width: 100%;
    background-image: url('../img/about-mti.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    padding: 100px 50px;
}
.about__footer-content {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
}
.about .about__footer-title {
    font-weight: 700;
    font-size: 60px;
    color: var(--white);
    margin-bottom: 0;
}
.about__footer-text {
    font-size: 18px;
    color: var(--white);
}

@media (max-width: 1200px) {
    .about__count-blocks,
    .about__count-grid {
        gap: 30px;
    }
}
@media (max-width: 1024px) {
    .about h2 {
        margin-bottom: 50px;
    }

    .about .about__title-mobile {
        margin-bottom: 30px;
    }

    .about .about__footer-title {
        font-size: 40px;
    }

    .about__blocks {
        flex-wrap: wrap;
        gap: 50px;
        margin-bottom: 30px;
    }

    .about__description {
        max-width: 100%;
    }

    .about__count-blocks {
        width: 100%;
        order: 1;
    }
}
@media (max-width: 950px) {
    .about__description {
        max-width: 100%;
    }
    .about__img-wrap {
        max-width: 100%;
        max-height: 100%;
    }
    .about__number-wrapper {
        min-width: 110px;
    }
}
@media (max-width: 768px) {
    .about__content {
        padding: 50px 15px;
    }

    .about__content.margin-bottom {
        margin-bottom: 0;
    }
    .about__block {
        display: none;
    }
    .about h2 {
        font-size: 26px;
        position: relative;
    }

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

    .about__number-wrapper {
        min-width: 105px;
    }
    .about__count-grid {
        gap: 30px 70px;
    }
    .about__count-blocks {
        align-self: flex-start;
    }
    .about__title::before {
        content: '';
        position: absolute;
        top: -10px;
        right: -35px;
        background-image: url(../img/icons/icon-hat.png);
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateX(-50%);
        width: 70px;
        height: 70px;
    }
    .about__list {
        background-color: transparent;
        padding: 0;
        padding: 20px 0;
    }

    .about__list li {
        padding: 0;
        padding-right: 30px;
    }

    .about__list::before {
        display: none;
    }
    .about__description {
        order: -2;
    }
    .about__img-wrap {
        order: -1;
    }
    .about__list li:nth-child(2)::after {
        top: -15px;
        right: 128px;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .about__blocks {
        margin-bottom: 0;
    }

    .about .wrapper {
        padding: 0;
    }
}
@media (max-width: 425px) {
    .about__list {
        padding: 10px 2px;
    }
}
@media (max-width: 375px) {
    .about__count-grid {
        grid-template-columns: 1fr;
    }
    .about__number-wrapper {
        min-width: 100px;
    }
    .about__count-number {
        font-size: 60px;
    }
    .about__title::before {
        top: -7px;
        right: -25px;
        width: 50px;
        height: 50px;
    }
    .about__list li:nth-child(2)::after {
        right: 30px;
    }
}
@media (max-width: 320px) {
    .about__list li:nth-child(2)::after {
        right: 90px;
    }
}
/* History */
.history {
    position: relative;
    width: 100%;
}
.history__timeline-container {
    width: 100%;
    height: 396px;
    overflow-y: auto;
    position: relative;
    padding-left: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.history__timeline-container.mask-both {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
}
.history__timeline-container.mask-bottom:not(.mask-top) {
    -webkit-mask-image: linear-gradient(to bottom, black, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black, black 70%, transparent 100%);
}
.history__timeline-container.mask-top:not(.mask-bottom) {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black);
}
.history__timeline-container:not(.mask-top):not(.mask-bottom) {
    -webkit-mask-image: none;
    mask-image: none;
}
.history__timeline-container::-webkit-scrollbar {
    display: none;
}
.history__timeline-scrollable {
    position: relative;
    padding-left: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
}
.history__timeline-line {
    position: absolute;
    left: 21px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--main-yellow);
    z-index: 0;
}
.history__timeline-dot {
    position: absolute;
    left: -13px;
    top: 8px;
    width: 30px;
    height: 30px;
    background-color: var(--main-yellow);
    border-radius: 50%;
    z-index: 1;
}
.history__slide {
    position: relative;
    text-align: left;
    opacity: 1;
    color: var(--white);
    padding-left: 40px;
    margin-bottom: 30px;
    transition: opacity 0.3s;
}
.history__timeline-content {
    display: flex;
    flex-direction: column;
    margin-left: 40px;
}
.history__timeline-year {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 15px;
}
.history__timeline-text {
    font-weight: 300;
}
.history__img-wrap {
    max-width: 24px;
    justify-self: center;
}
.history__img-wrap_up,
.history__img-wrap_down {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: opacity 0.2s;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}
.history__img-wrap_up {
    top: 0;
}
.history__img-wrap_down {
    bottom: 0;
}
.history__img-wrap_up.hidden,
.history__img-wrap_down.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .history__timeline-container {
        padding-left: 0;
    }
}

@media (max-width: 950px) {
    .history {
        max-width: 100%;
    }
    .history__timeline-container {
        padding: 0;
    }
    .history__timeline-content {
        margin-left: 0;
    }
    .history__timeline-line {
        left: 14px;
    }
    .history__timeline-dot {
        left: -20px;
    }
}
@media (max-width: 768px) {
    .history__timeline-year {
        font-size: 26px;
    }
}
/* Gallery desktop */
.gallery__swiper-wrapper {
    align-items: center;
    min-height: 500px;
    margin-bottom: 33px;
}
.gallery__slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery__slide:not(.gallery__slide_active) .gallery__img-wrap {
    position: relative;
}
.gallery__slide:not(.gallery__slide_active) .gallery__img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(80, 80, 80, 0.3);
    transition: opacity 0.3s ease;
}
.gallery__slide_active .gallery__img-wrap {
    max-width: 600px;
    width: 100%;
    height: 500px;
    z-index: 10;
}
.gallery__slide_active .gallery__img-wrap::after {
    opacity: 0;
}
.gallery__img-wrap {
    width: 100%;
    height: 407px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.gallery__img {
    height: 100%;
}

.gallery__slide.swiper-slide {
    width: 488px;
}

.gallery__slide.swiper-slide-active {
    width: 600px !important;
}

.gallery__arrows {
    gap: 15px;
}

@media (max-width: 768px) {
    .gallery {
        display: none;
    }
}
/* Gallery mobile */
.gallery-mobile {
    display: none;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-mobile {
        display: block;
        order: 2;
    }
    .gallery-mobile__swiper-wrapper {
        align-items: center;
    }
    .gallery-mobile__slide {
        transition: all 0.3s ease;
    }
    .gallery-mobile__img-wrap {
        transition: all 0.3s ease;
        overflow: hidden;
    }
    .gallery-mobile__pagination {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        z-index: 10;
        pointer-events: none;
    }
    .gallery-mobile__pagination .arrow {
        width: 25px;
        height: 25px;
        background-color: white;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: auto;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
    .gallery-mobile__pagination .arrow.arrow_next svg {
        transform: rotate(180deg);
    }
}
@media (max-width: 480px) {
    .gallery-mobile__img-wrap {
        height: 250px;
    }
    .gallery-mobile__pagination {
        padding: 0 10px;
    }
    .gallery-mobile__pagination .arrow {
        width: 22px;
        height: 22px;
    }
    .gallery-mobile__pagination .arrow .arrow__dark-img {
        width: 10px;
        height: 10px;
    }
}

/* Gallery desktop */
.gallery-desktop {
    width: 100%;
    max-width: 620px;
    max-height: 480px;
    position: relative;
    min-width: 0;
}

.gallery-desktop__slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-desktop__img-wrap {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-desktop__img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.gallery-desktop__pagination {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.gallery-desktop__pagination_mobile {
    display: none;
}

.gallery-desktop__pagination_mobile .arrow {
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.gallery-desktop__pagination_mobile .arrow.arrow_next svg {
    transform: rotate(180deg);
}

.gallery-desktop__pagination_desktop {
    display: flex;
}

.gallery-desktop__pagination_desktop .arrow {
    background: rgba(242, 242, 242, 0.5);
    padding: 10px;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.gallery-desktop__pagination_desktop .arrow__icon {
    width: 20px;
    height: 20px;
}

.gallery-desktop__pagination_desktop .arrow__icon_prev {
    transform: rotate(180deg);
}

.gallery-desktop__pagination_desktop .arrow__icon_next {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .gallery-desktop {
        max-width: 100%;
        max-height: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .gallery-desktop__pagination_mobile {
        display: flex;
    }
    .gallery-desktop__pagination_desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-desktop__pagination {
        padding: 0 10px;
    }
    .gallery-desktop__pagination_mobile .arrow {
        width: 22px;
        height: 22px;
    }
}

/* Articles */

.articles h2 {
    margin-bottom: 0;
}

.articles__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 70px;
}

.articles__link {
    display: flex;
    justify-self: flex-end;
    gap: 5px;
    color: var(--grey);
    background-color: var(--lightest-grey);
    transition: all 0.3s ease;
    padding: 10px 15px;
    margin-top: 20px;
}
.articles__link:hover {
    background-color: var(--lightest-grey2);
}

.articles__swiper {
    padding: 5px 3px;
}

.articles__swiper-wrap {
    min-height: 540px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--lightest-grey2);
    padding-bottom: 15px;
}

.articles__block {
    transition: all 0.3s ease;
}

.articles__block:hover {
    transform: scale(1.01);
}

.articles__img-wrap {
    max-height: 220px;
}

.articles__block-title {
    flex: 1;
    font-weight: 600;
    font-size: 20px;
    color: var(--black);
    padding: 10px 15px 0 15px;
}
.articles__block:visited .articles__block-title {
    color: #b5b5b5;
}

.articles__text-block {
    color: var(--grey);
    padding: 0 15px;
}

.articles__comments-block {
    overflow: hidden;
    padding: 10px 15px;
}

.articles__comment-title {
    color: var(--grey);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.articles__comments-list {
    max-height: 200px;
    min-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 5px 0;
}

.articles__comment-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--grey);
    line-height: 1.3;
    cursor: default;
    padding: 6px 0;
}

.articles__person {
    display: flex;
    align-items: center;
    gap: 4px;
}

.articles__person-img {
    max-width: 20px;
}

.articles__comment-item:not(:last-child) {
    position: relative;
    padding-bottom: 10px;
}

.articles__comment-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35%;
    width: 25%;
    height: 1px;
    background-color: var(--lightest-grey);
}

.articles__comments-list::-webkit-scrollbar,
.articles__comments-list::-webkit-scrollbar-track,
.articles__comments-list::-webkit-scrollbar-thumb,
.articles__comments-list::-webkit-scrollbar-button {
    display: none;
}

.articles__comments-list.mask-both {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 20%, white 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, white 20%, white 70%, transparent 100%);
}

.articles__comments-list.mask-bottom:not(.mask-top) {
    -webkit-mask-image: linear-gradient(to bottom, white, white 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, white, white 70%, transparent 100%);
}

.articles__comments-list.mask-top:not(.mask-bottom) {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 20%, white);
    mask-image: linear-gradient(to bottom, transparent 0%, white 20%, white);
}

.articles__comments-list:not(.mask-top):not(.mask-bottom) {
    -webkit-mask-image: none;
    mask-image: none;
}

.articles .hand-swipe__tapperoo {
    background-color: var(--black);
}

.articles__nested-comments {
    margin-top: 8px;
    margin-left: 6px;
    border-left: 1px solid var(--lightest-grey2);
    padding-left: 10px;
}
.articles__nested-comments .articles__comment-item {
    position: relative;
    padding-left: 5px;
    margin-left: 0;
}

@media (max-width: 768px) {
    .articles__img-wrap {
        max-height: 380px;
    }

    .articles__comments-block {
        padding: 0 15px;
    }
    .articles__block {
        min-height: 100%;
    }
    .articles__nested-comments {
        margin-top: 6px;
        padding-left: 5px;
    }
}

@media (max-width: 600px) {
    .articles__pagination {
        display: none;
    }
    .articles__link {
        justify-self: flex-start;
    }
    .articles__header {
        margin-bottom: 50px;
    }
    .articles__nested-comments {
        margin-left: 5px;
        padding-left: 3px;
    }
}

@media (max-width: 425px) {
    .articles__nested-comments {
        margin-left: 0;
        margin-top: 0;
    }
}
/* News */
.news h2 {
    margin-bottom: 0;
}
.news__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 70px;
}

.news__link {
    display: flex;
    justify-self: flex-end;
    gap: 5px;
    color: var(--grey);
    background-color: var(--lightest-grey);
    transition: all 0.3s ease;
    padding: 10px 15px;
    margin-top: 20px;
}
.news__link:hover {
    background-color: var(--lightest-grey2);
}

.news__swiper {
    padding: 5px 3px;
}

.news__swiper-wrap {
    max-width: 320px;
    min-height: 540px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--lightest-grey2);
}

.news__block {
    transition: all 0.3s ease;
}
.news__block:hover {
    transform: scale(1.01);
}
.news__img-wrap {
    max-width: 320px;
    max-height: 220px;
}

.news__block-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--black);
    flex: 1;
    padding: 10px 15px 0 15px;
}
.news__block:visited .news__block-title {
    color: #b5b5b5;
}
.news__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px 15px 15px;
}
.news__tags span {
    color: var(--grey);
    background-color: var(--lightest-grey);
    padding: 10px 15px;
}

.news__date-block {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 15px 0 15px;
}

.news__date-block span {
    color: var(--grey4);
}

.news__date-img {
    max-width: 20px;
    opacity: 0.5;
}

.news__icon {
    width: 100%;
    display: flex;
    flex-shrink: 0;
}

.news .hand-swipe__tapperoo {
    background-color: var(--black);
}

@media (max-width: 768px) {
    .news__blocks {
        grid-template-columns: repeat(2, 1fr);
    }
    .news__block,
    .news__img-wrap {
        max-width: 100%;
    }
    .news__img-wrap {
        max-height: -moz-min-content;
        max-height: min-content;
    }
}
@media (max-width: 600px) {
    .news__pagination {
        display: none;
    }
    .news__link {
        justify-self: flex-start;
    }
    .news__swiper-wrap {
        max-width: 100%;
    }
    .news__header {
        margin-bottom: 50px;
    }
    .news__blocks {
        grid-template-columns: 1fr;
    }
    .news__block {
        min-height: 462px;
    }
    .news__img-wrap {
        height: 220px;
    }
}
/* Socials-block */
.socials-block__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 70px;
    background-color: var(--main-yellow);
    padding: 70px 30px;
}
.socials-block__wrapper::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    background-image: url(../img/socials-phone.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 584px;
    height: 300px;
    z-index: 1;
}
.socials-block__text {
    font-weight: 600;
    font-size: 30px;
    position: relative;
    z-index: 100;
}
.socials-block__list {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 100;
}
.socials-block__social-link {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-grey);
    background-color: var(--yellow2);
    transition: all 0.3s ease;
    padding: 20px;
}
.socials-block__social-link:hover {
    background-color: var(--yellow-hover);
}
.socials-block__link-icon {
    max-width: 30px;
}

@media (max-width: 1024px) {
    .socials-block__text {
        max-width: 370px;
    }
}
@media (max-width: 920px) {
    .socials-block__wrapper::after {
        width: 463px;
        height: 238px;
    }
}
@media (max-width: 600px) {
    .socials-block__wrapper {
        gap: 30px;
        padding: 30px 15px;
    }
    .socials-block__wrapper::after {
        background-image: url(../img/socials-phone-mobile.png);
        width: 243px;
        height: 236px;
    }
    .socials-block__list {
        flex-direction: column;
        align-items: flex-start;
    }
    .socials-block__text {
        font-size: 22px;
    }
    .socials-block__social-link span {
        display: none;
    }
    .socials-block__social-link {
        padding: 18px;
    }
    .socials-block__link-icon {
        max-width: 24px;
    }
}
/* License */
.license__blocks {
    display: flex;
    gap: 30px;
}
.license__block {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--lightest-grey2);
    padding: 50px 30px;
    transition: transform 0.3s ease;
}
.license__block:hover .license__img-wrap,
.license__block:active .license__img-wrap {
    transform: translateY(-5px);
}
.license__text {
    font-weight: 500;
    font-size: 20px;
    color: var(--grey);
}
.license__img-wrap {
    max-width: 134px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .license__blocks {
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .license__block {
        padding: 20px;
    }
    .license__text {
        font-size: 16px;
    }
}
/* Apps */
.apps__container {
    overflow: visible;
}
.apps__wrapper {
    position: relative;
    background-color: var(--dark-grey);
    padding: 70px 30px;
}
.apps__wrapper::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -30px;
    right: 8px;
    background-image: url(../img/icons/lms.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 584px;
    height: 502px;
    z-index: 1;
}
.apps__header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
    margin-bottom: 50px;
}
.apps__title {
    color: var(--white);
    margin-bottom: 0;
}
.apps__text {
    font-weight: 500;
    font-size: 22px;
    color: var(--grey7);
}
.apps__links {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 10;
}
.apps__link {
    background-color: var(--grey2);
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 15px 17px;
}
.apps__link:hover {
    background-color: var(--grey3);
}

@media (max-width: 1234px) {
    .apps__wrapper::after {
        right: 0;
    }
}
@media (max-width: 1116px) {
    .apps__wrapper::after {
        width: 484px;
        height: 422px;
    }
}
@media (max-width: 1024px) {
    .apps__wrapper::after {
        bottom: 20px;
        right: 18px;
        width: 390px;
        height: 342px;
    }
}
@media (max-width: 936px) {
    .apps__wrapper::after {
        bottom: -40px;
        width: 330px;
        height: 302px;
    }
}
@media (max-width: 768px) {
    .apps__wrapper::after {
        right: 18px;
        width: 370px;
        height: 352px;
    }
}

@media (max-width: 680px) {
    .apps__wrapper::after {
        right: 8px;
        bottom: -20px;
        width: 310px;
        height: 272px;
    }
}
@media (max-width: 600px) {
    .apps__wrapper {
        height: 400px;
        padding: 30px 15px;
    }
    .apps__wrapper::after {
        right: 8px;
        width: 380px;
        height: 332px;
    }
    .apps__header {
        margin-bottom: 30px;
    }
    .apps__title {
        font-size: 30px;
    }
    .apps__text {
        font-size: 16px;
    }
}
@media (max-width: 425px) {
    .apps__wrapper::after {
        right: 5px;
        width: 273px;
        height: 238px;
    }
}

@media (max-width: 375px) {
    .apps__wrapper::after {
        right: -2px;
        width: 243px;
        height: 208px;
    }
}

@media (max-width: 320px) {
    .apps__title {
        font-size: 26px;
    }
}
