/*
 * Epil: главная (страница 6444) - компактный первый экран на телефоне: заголовок, форма поиска и начало
 * «Лучших студий» помещаются в экран 375×812. Подключается только на is_front_page() (Catalog\Hooks\FrontendHooks).
 *
 * Селекторы - по data-id элементов Elementor главной:
 *   17de015 - секция героя: spacer 6768783, 129e17e, 820783e, 22c2a2e, dda9045, 400aeb7; заголовок cf96857;
 *             мозаика фото e55bf71; подсказка «Введите например» 3e24558; форма поиска 7a6d155;
 *   6df2a8f - «Лучшие студии»: spacer 17c33af (над заголовком), a2be2f1 (под заголовком).
 * Элемент удалили или пересобрали в редакторе - правило просто перестаёт действовать, вид на ПК не меняется.
 */
@media (max-width: 767px) {
    .elementor-element-17de015 .elementor-element-6768783 .elementor-spacer-inner {
        height: 16px !important;
    }

    .elementor-element-17de015 .elementor-element-129e17e .elementor-spacer-inner,
    .elementor-element-17de015 .elementor-element-820783e .elementor-spacer-inner,
    .elementor-element-17de015 .elementor-element-22c2a2e .elementor-spacer-inner,
    .elementor-element-17de015 .elementor-element-dda9045 .elementor-spacer-inner {
        height: 12px !important;
    }

    .elementor-element-17de015 .elementor-element-400aeb7 .elementor-spacer-inner {
        height: 20px !important;
    }

    /* Декоративная мозаика фото и подсказка с примерами - только на ПК */
    .elementor-element-17de015 .elementor-element-e55bf71,
    .elementor-element-17de015 .elementor-element-3e24558 {
        display: none !important;
    }

    .elementor-element-17de015 .elementor-element-cf96857 h1,
    .elementor-element-17de015 .elementor-element-cf96857 h2,
    .elementor-element-17de015 .elementor-element-cf96857 .listivo-heading-v2__text {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    .elementor-element-6df2a8f .elementor-element-17c33af .elementor-spacer-inner {
        height: 24px !important;
    }

    .elementor-element-6df2a8f .elementor-element-a2be2f1 .elementor-spacer-inner {
        height: 14px !important;
    }
}

/* ===== Заголовок первого экрана: «Выберите студию [слово ↻] в [городе ▾]» (виджет epil_home_hero_heading) =====
 * Размеры - как у прежнего заголовка Listivo: 48/58 на ПК, 40 на планшете, 30 на телефоне (правило выше по cf96857). */
html body .epil-hero-heading {
    margin: 0;
    color: var(--e-global-color-lcolor1, #374b5c);
    font-family: var(--epil-font-heading, Manrope, Inter, sans-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: left;
}

.epil-hero-heading__prefix,
.epil-hero-heading__city {
    display: block;
}

/* Слот слова: слова лежат в одной ячейке сетки, уходящее уезжает вверх, новое - снизу */
.epil-hero-heading__slot {
    display: inline-grid;
    overflow: hidden;
    max-width: 100%;
    padding-bottom: .08em;
    vertical-align: bottom;
    transition: width .45s cubic-bezier(.2, .7, .2, 1);
}

html body .epil-hero-heading__word {
    grid-area: 1 / 1;
    color: var(--e-global-color-lprimary1, #d86eec);
    white-space: nowrap;
    text-decoration: none;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s ease;
}

html body .epil-hero-heading__word:hover,
html body .epil-hero-heading__word:focus-visible {
    color: #c55fe6;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.epil-hero-heading__word.is-entering {
    transform: translateY(100%);
    opacity: 0;
}

.epil-hero-heading__word.is-leaving {
    transform: translateY(-100%);
    opacity: 0;
}

html body .epil-hero-heading__city-btn {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-bottom: 3px dashed rgba(216, 110, 236, .45);
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    cursor: pointer;
}

html body .epil-hero-heading__city-btn:hover,
html body .epil-hero-heading__city-btn:focus-visible {
    border-bottom-color: #d86eec;
    background: none;
    color: #c55fe6;
}

.epil-hero-heading__city-btn:focus-visible {
    outline: 2px solid #d86eec;
    outline-offset: 4px;
}

.epil-hero-heading__caret {
    align-self: center;
    width: .55em;
    height: .55em;
    transition: transform .15s ease;
}

.epil-hero-heading__city-btn:hover .epil-hero-heading__caret {
    transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
    .epil-hero-heading__slot,
    .epil-hero-heading__word {
        transition: none;
    }
}

@media (max-width: 1024px) {
    html body .epil-hero-heading {
        font-size: 40px;
        line-height: 1.15;
        text-align: center;
    }
}

@media (max-width: 767px) {
    html body .epil-hero-heading {
        font-size: 30px;
        letter-spacing: -.5px;
    }
}

/* ===== Заголовок первого экрана: «Выберите студию [слово ↻] в [городе ▾]» (виджет epil_home_hero_heading) =====
 * Размеры - как у прежнего заголовка Listivo: 48 на ПК, 40 на планшете, 30 на телефоне. */
html body .epil-hero-heading {
    margin: 0;
    color: var(--e-global-color-lcolor1, #374b5c);
    font-family: var(--epil-font-heading, Manrope, Inter, sans-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: left;
}

.epil-hero-heading__prefix,
.epil-hero-heading__city {
    display: block;
}

/* Слот слова: слова лежат в одной ячейке сетки, уходящее уезжает вверх, новое - снизу */
.epil-hero-heading__slot {
    display: inline-grid;
    overflow: hidden;
    max-width: 100%;
    padding-bottom: .08em;
    vertical-align: bottom;
    transition: width .45s cubic-bezier(.2, .7, .2, 1);
}

html body .epil-hero-heading__word {
    grid-area: 1 / 1;
    color: var(--e-global-color-lprimary1, #d86eec);
    white-space: nowrap;
    text-decoration: none;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s ease;
}

html body .epil-hero-heading__word:hover,
html body .epil-hero-heading__word:focus-visible {
    color: #c55fe6;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.epil-hero-heading__word.is-entering {
    transform: translateY(100%);
    opacity: 0;
}

.epil-hero-heading__word.is-leaving {
    transform: translateY(-100%);
    opacity: 0;
}

html body .epil-hero-heading__city-btn {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-bottom: 3px dashed rgba(216, 110, 236, .45);
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    cursor: pointer;
}

html body .epil-hero-heading__city-btn:hover,
html body .epil-hero-heading__city-btn:focus-visible {
    border-bottom-color: #d86eec;
    background: none;
    color: #c55fe6;
}

.epil-hero-heading__city-btn:focus-visible {
    outline: 2px solid #d86eec;
    outline-offset: 4px;
}

.epil-hero-heading__caret {
    align-self: center;
    width: .55em;
    height: .55em;
    transition: transform .15s ease;
}

.epil-hero-heading__city-btn:hover .epil-hero-heading__caret {
    transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
    .epil-hero-heading__slot,
    .epil-hero-heading__word {
        transition: none;
    }
}

@media (max-width: 1024px) {
    html body .epil-hero-heading {
        font-size: 40px;
        line-height: 1.15;
        text-align: center;
    }
}

@media (max-width: 767px) {
    html body .epil-hero-heading {
        font-size: 30px;
        letter-spacing: -.5px;
    }
}
