/* Виджеты главной страницы одним файлом (было 4 запроса): IndexMainBanner, IndexCards, IndexAbout, IndexNews. */

/* IndexMainBanner */
.index-main-banner {
    background: linear-gradient(180deg, #E0F7FF 0%, white 100%);
}

/* До mount() Splide скрывает .splide (visibility:hidden) — первый слайд (LCP) показываем сразу,
   остальные прячем, чтобы не было прыжка после инициализации. */
.index-main-banner .splide:not(.is-initialized) {
    visibility: visible;
}

.index-main-banner .splide:not(.is-initialized) .splide__slide {
    flex: 0 0 100%;
    width: 100%;
}

.index-main-banner .splide:not(.is-initialized) .splide__slide:not(:first-child) {
    display: none;
}

.index-main-banner .index-main-banner__app-content {
    background: url("/wp-content/plugins/elementor-custom-blocks/assets/img/index/IndexMainBanner/phone-mobile.webp") no-repeat;
    background-size: contain;
    background-position-x: right;
    background-position-y: bottom;
}

.index-main-banner .index-main-banner__open-house-content {
    background: url("/wp-content/plugins/elementor-custom-blocks/assets/img/index/IndexMainBanner/open-house-day-mobile.webp") no-repeat;
    background-size: contain;
    background-position-x: right;
    background-position-y: bottom;
}

.index-main-banner .index-main-banner__app-title, .index-main-banner .index-main-banner__open-house-title {
    color: #212529;
    font-size: 26px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 30px;
    word-wrap: break-word
}

.index-main-banner .index-main-banner__open-house-description {
    font-size: 16px;
    line-height: 24px;
}

.index-main-banner .index-main-banner__app-description {
    color: #343A40;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    display: none;
    max-width: 468px;
}

.index-main-banner .index-main-banner__app-description--highlight {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, #EB00FF, #FF9900, #FFB800, #FF00F5, #8F00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.index-main-banner .index-main-banner__app-title-icon {
    display: none;
}

.index-main-banner .index-main-banner__app-title-icon > svg {
    height: 27px;
    width: 24px;
}

.index-main-banner .splide__arrow {
    display: none;
    background: none;
    height: auto;
    width: auto;
    z-index: 50;
}

.index-main-banner .splide__arrow svg {
    height: 2.5em;
    width: 2.5em;
}

.index-main-banner .index-main-banner__school img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 640px) {
    .index-main-banner .index-main-banner__app-title, .index-main-banner .index-main-banner__open-house-title {
        font-size: 32px;
        line-height: 35px;
    }

    .index-main-banner .index-main-banner__open-house-description {
        font-size: 18px;
        line-height: 30px;
    }

    .index-main-banner .index-main-banner__app-description {
        display: block;
        font-size: 18px;
    }

    .index-main-banner .index-main-banner__app-title-icon{
        display: block;
    }

    .index-main-banner .index-main-banner__app-title-icon > svg {
        height: 27px;
        width: 23px;
    }

    .index-main-banner .index-main-banner__app-content {
        background: url("/wp-content/plugins/elementor-custom-blocks/assets/img/index/IndexMainBanner/phone-tablet.webp") no-repeat;
        background-size: contain;
        background-position-x: right;
        background-position-y: bottom;
    }

    .index-main-banner .index-main-banner__open-house-content {
        background: url("/wp-content/plugins/elementor-custom-blocks/assets/img/index/IndexMainBanner/open-house-day-tablet.webp") no-repeat;
        background-size: contain;
        background-position-x: right;
        background-position-y: bottom;
    }
}

@media (min-width: 1024px) {
    .index-main-banner .index-main-banner__app-title, .index-main-banner .index-main-banner__open-house-title {
        font-size: 40px;
        line-height: 50px;
    }

    .index-main-banner .index-main-banner__open-house-description {
        font-size: 24px;
        line-height: 50px;
    }

    .index-main-banner .index-main-banner__app-description {
        display: block;
        font-size: 16px;
    }

    .index-main-banner .index-main-banner__app-title-icon > svg {
        height: 45px;
        width: 40px;
    }

    .index-main-banner .splide__arrow {
        display: block;
    }

    .index-main-banner .index-main-banner__app-content {
        background: url("/wp-content/plugins/elementor-custom-blocks/assets/img/index/IndexMainBanner/phone-desktop.webp") no-repeat;
        background-size: contain;
        background-position: right;
    }

    .index-main-banner .index-main-banner__open-house-content {
        background: url("/wp-content/plugins/elementor-custom-blocks/assets/img/index/IndexMainBanner/open-house-day-desktop.webp") no-repeat;
        background-size: contain;
        background-position: right;
    }
}

@media (min-width: 1280px) {
    .index-main-banner .index-main-banner__app-title, .index-main-banner .index-main-banner__open-house-title {
        font-size: 60px;
        line-height: 70px;
    }

    .index-main-banner .index-main-banner__open-house-description {
        font-size: 24px;
        line-height: 50px;
    }

    .index-main-banner .index-main-banner__app-description {
        display: block;
    }

    .index-main-banner .index-main-banner__app-title-icon > svg {
        height: 70px;
        width: 65px;
    }

    .index-main-banner .splide__arrow {
        display: block;
    }
}

/* IndexCards */
.index-cards__item .index-cards__card-image {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* IndexAbout */
.index-about-video-play-button {
    position: absolute;
    width: 75px;
    height: 75px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: #00000080;
}

.index-about-video-play-icon {
    width: 38px;
    height: 33px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -19px;
    margin-top: -16.5px;
}

/* IndexNews */
.index-news .index-news__item-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    overflow: hidden;
    text-overflow: ellipsis;
}

.index-news .index-news__item-image {
    border-radius: 1rem;
}
