/* Первый экран услуг и главная: единая сетка.
   Префикс html body повышает специфичность над inline-стилями из partials/extra_css
   (цепочки только из классов не перебивают html body + тип section). */

html body .modern-service-page section.modern-hero-section,
html body .modern-service-page section.modern-hero-section.heating-hero,
html body .modern-heating-page section.modern-hero-section,
html body .modern-verification-page section.modern-hero-section,
html body section.modern-hero-section-home {
    display: flex !important;
    /* center по вертикали ломал страницы с коротким контентом (Аварийная и др.):
       блок уезжал вниз — огромный зазор над плашкой; эталон — контент от верха героя */
    align-items: flex-start !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    /* слот под панель «Услуги» внутри героя — заливается фоном этой секции (градиент страницы) */
    padding-top: calc(16px + var(--services-panel-slot, 0px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 100px !important;
    min-height: calc(100vh - var(--header-offset, 72px)) !important;
    min-height: calc(100svh - var(--header-offset, 72px)) !important;
}

/* ============================================================
   Единый стиль кнопок навигации (nav-pills)
   Оставляем на страницах только текст и цвета (через CSS vars).
   ============================================================ */

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .nav-pills-section {
    background: var(--nav-pills-bg, #f8f9fa);
    padding: 24px 0 0 0;
    border-bottom: none;
}

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .nav-pills {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding: 12px 0;
}

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--nav-pill-bg, #fff);
    border: 2px solid var(--nav-pill-border, rgba(30, 26, 107, 0.18));
    border-radius: 50px;
    color: var(--nav-pill-text, #1e1a6b);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
}

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .pill-btn:hover,
html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .pill-btn.active {
    background: var(--nav-pill-hover-bg, var(--nav-pill-active-bg, linear-gradient(135deg, var(--nav-accent, #1e1a6b), var(--nav-accent-2, #dc267f))));
    color: var(--nav-accent-text, #fff);
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--nav-accent, #1e1a6b) 75%, transparent);
    box-shadow: 0 10px 25px var(--nav-accent-shadow, rgba(30, 26, 107, 0.22));
}

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .pill-icon,
html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .pill-btn .ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .progress-bar {
    height: 4px;
    background: var(--nav-progress-track, color-mix(in srgb, var(--nav-accent, #1e1a6b) 18%, #ffffff));
    border-radius: 2px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

html body :is(.modern-service-page, .modern-heating-page, .modern-verification-page, .page-home) .progress-fill {
    height: 100%;
    background: var(--nav-progress, linear-gradient(90deg, var(--nav-accent, #1e1a6b), var(--nav-accent-2, #dc267f)));
    border-radius: 2px;
    width: 25%;
    transition: width 0.5s ease;
}

/* Десктоп: первый экран ниже 100vh, чтобы читался следующий блок */
@media (min-width: 769px) {
    html body .modern-service-page section.modern-hero-section,
    html body .modern-service-page section.modern-hero-section.heating-hero,
    html body .modern-heating-page section.modern-hero-section,
    html body .modern-verification-page section.modern-hero-section,
    html body section.modern-hero-section-home {
        min-height: calc(75vh - var(--header-offset, 72px)) !important;
        min-height: calc(75svh - var(--header-offset, 72px)) !important;
        height: calc(75vh - var(--header-offset, 72px)) !important;
        height: calc(75svh - var(--header-offset, 72px)) !important;
        max-height: calc(75vh - var(--header-offset, 72px)) !important;
        max-height: calc(75svh - var(--header-offset, 72px)) !important;
    }

    /* Десктоп: единая «высотка» и плотность первого экрана как на странице
       «Подготовка к отопительному сезону в Москве». */
    html body .modern-service-page section.modern-hero-section,
    html body .modern-service-page section.modern-hero-section.heating-hero,
    html body .modern-heating-page section.modern-hero-section,
    html body .modern-verification-page section.modern-hero-section,
    html body section.modern-hero-section-home {
        padding-bottom: 84px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-badge,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-badge,
    html body .modern-heating-page section.modern-hero-section .hero-badge,
    html body .modern-verification-page section.modern-hero-section .hero-badge,
    html body section.modern-hero-section-home .hero-badge {
        margin-bottom: 22px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-description,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-description,
    html body .modern-heating-page section.modern-hero-section .hero-description,
    html body .modern-verification-page section.modern-hero-section .hero-description,
    html body section.modern-hero-section-home .hero-description {
        margin-bottom: 20px !important;
        font-size: 1.12rem !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-offer,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-offer,
    html body .modern-heating-page section.modern-hero-section .hero-offer,
    html body .modern-verification-page section.modern-hero-section .hero-offer,
    html body section.modern-hero-section-home .hero-offer {
        margin-bottom: 14px !important;
        font-size: 1rem !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-stats,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats,
    html body .modern-heating-page section.modern-hero-section .hero-stats,
    html body .modern-verification-page section.modern-hero-section .hero-stats,
    html body section.modern-hero-section-home .hero-stats {
        margin-bottom: 22px !important;
        gap: 28px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-stats .stat-number,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-number,
    html body .modern-heating-page section.modern-hero-section .hero-stats .stat-number,
    html body .modern-verification-page section.modern-hero-section .hero-stats .stat-number,
    html body section.modern-hero-section-home .hero-stats .stat-number {
        font-size: 2.6rem !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-actions,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions,
    html body .modern-heating-page section.modern-hero-section .hero-actions,
    html body .modern-verification-page section.modern-hero-section .hero-actions,
    html body section.modern-hero-section-home .hero-actions {
        margin-bottom: 26px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-actions .btn-modern,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions .btn-modern,
    html body .modern-heating-page section.modern-hero-section .hero-actions .btn-modern,
    html body .modern-verification-page section.modern-hero-section .hero-actions .btn-modern,
    html body section.modern-hero-section-home .hero-actions .btn-modern {
        padding: 14px 28px !important;
        min-width: 190px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-triggers,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers,
    html body .modern-heating-page section.modern-hero-section .hero-triggers,
    html body .modern-verification-page section.modern-hero-section .hero-triggers,
    html body section.modern-hero-section-home .hero-triggers {
        margin-top: 10px !important;
        gap: 10px 12px;
    }

    html body .modern-service-page section.modern-hero-section .hero-triggers li,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li,
    html body .modern-heating-page section.modern-hero-section .hero-triggers li,
    html body .modern-verification-page section.modern-hero-section .hero-triggers li,
    html body section.modern-hero-section-home .hero-triggers li {
        padding: 10px 12px;
        font-size: 0.92rem;
    }
}

/* Оффер рядом с CTA + триггеры под кнопками (п.6) */
html body .modern-service-page section.modern-hero-section .hero-offer,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-offer,
html body .modern-heating-page section.modern-hero-section .hero-offer,
html body .modern-verification-page section.modern-hero-section .hero-offer,
html body section.modern-hero-section-home .hero-offer {
    margin: 0 auto 18px !important;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.55;
}

html body .modern-service-page section.modern-hero-section .hero-triggers,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers,
html body .modern-heating-page section.modern-hero-section .hero-triggers,
html body .modern-verification-page section.modern-hero-section .hero-triggers,
html body section.modern-hero-section-home .hero-triggers {
    list-style: none !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    max-width: 740px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}

/* Убираем маркеры списка (синие точки) у "плашек" */
html body .modern-service-page section.modern-hero-section .hero-triggers li::marker,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li::marker,
html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-triggers li::marker,
html body .modern-heating-page section.modern-hero-section .hero-triggers li::marker,
html body .modern-verification-page section.modern-hero-section .hero-triggers li::marker,
html body section.modern-hero-section-home .hero-triggers li::marker {
    content: '' !important;
}

html body .modern-service-page section.modern-hero-section .hero-triggers li,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li,
html body .modern-heating-page section.modern-hero-section .hero-triggers li,
html body .modern-verification-page section.modern-hero-section .hero-triggers li,
html body section.modern-hero-section-home .hero-triggers li {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* В styles.css задан глобальный маркер через li::before (синяя точка) */
html body .modern-service-page section.modern-hero-section .hero-triggers li::before,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li::before,
html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-triggers li::before,
html body .modern-heating-page section.modern-hero-section .hero-triggers li::before,
html body .modern-verification-page section.modern-hero-section .hero-triggers li::before,
html body section.modern-hero-section-home .hero-triggers li::before {
    content: none !important;
    display: none !important;
}

html body .modern-service-page section.modern-hero-section .hero-triggers li,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li,
html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-triggers li,
html body .modern-heating-page section.modern-hero-section .hero-triggers li,
html body .modern-verification-page section.modern-hero-section .hero-triggers li,
html body section.modern-hero-section-home .hero-triggers li {
    padding-left: 14px !important; /* сбрасываем глобальный padding-left:25px из styles.css */
    margin-bottom: 0 !important; /* сбрасываем глобальный margin-bottom */
}

@media (max-width: 768px) {
    html body .modern-service-page section.modern-hero-section .hero-offer,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-offer,
    html body .modern-heating-page section.modern-hero-section .hero-offer,
    html body .modern-verification-page section.modern-hero-section .hero-offer,
    html body section.modern-hero-section-home .hero-offer {
        font-size: 0.98rem;
        margin-bottom: 14px !important;
        padding: 0 2px;
    }

    html body .modern-service-page section.modern-hero-section .hero-triggers,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers,
    html body .modern-heating-page section.modern-hero-section .hero-triggers,
    html body .modern-verification-page section.modern-hero-section .hero-triggers,
    html body section.modern-hero-section-home .hero-triggers {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-triggers li,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li,
    html body .modern-heating-page section.modern-hero-section .hero-triggers li,
    html body .modern-verification-page section.modern-hero-section .hero-triggers li,
    html body section.modern-hero-section-home .hero-triggers li {
        font-size: 0.92rem;
        padding: 12px 14px;
    }
}

html body .modern-service-page section.modern-hero-section .hero-content-wrapper,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-content-wrapper,
html body .modern-heating-page section.modern-hero-section .hero-content-wrapper,
html body .modern-verification-page section.modern-hero-section .hero-content-wrapper,
html body section.modern-hero-section-home .hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px !important;
    padding-top: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-badge,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-badge,
html body .modern-heating-page section.modern-hero-section .hero-badge,
html body .modern-verification-page section.modern-hero-section .hero-badge,
html body section.modern-hero-section-home .hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    /* компактная «плашка» как на эталоне (комплексное обслуживание) */
    padding: 10px 28px !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

html body .modern-service-page section.modern-hero-section .hero-title,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-title,
html body .modern-heating-page section.modern-hero-section .hero-title,
html body .modern-verification-page section.modern-hero-section .hero-title,
html body section.modern-hero-section-home .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-title .title-main,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-main,
html body .modern-heating-page section.modern-hero-section .hero-title .title-main,
html body .modern-verification-page section.modern-hero-section .hero-title .title-main,
html body section.modern-hero-section-home .hero-title .title-main {
    display: block !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-title .title-accent,
html body .modern-heating-page section.modern-hero-section .hero-title .title-accent,
html body .modern-verification-page section.modern-hero-section .hero-title .title-accent,
html body section.modern-hero-section-home .hero-title .title-accent {
    display: block !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-accent {
    margin-bottom: 8px !important;
}

/* Третья строка заголовка (только «Подготовка к отопительному сезону») */
html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-guarantee {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Подготовка к отопительному сезону: шире блок заголовка, воздушнее основная строка, подзаголовки мельче */
html body .modern-service-page section.modern-hero-section.heating-hero .hero-content-wrapper {
    max-width: 1080px !important;
}

html body .modern-service-page section.modern-hero-section.heating-hero .hero-title {
    font-size: clamp(2.55rem, 5.2vw, 4.2rem) !important;
    line-height: 1.26 !important;
    margin-bottom: 20px !important;
}

html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-main {
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-accent {
    font-size: clamp(0.98rem, 2.5vw, 1.28rem) !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.01em !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-guarantee {
    font-size: clamp(1.02rem, 2.65vw, 1.32rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* Вентиляция: шире блок заголовка, основная строка не «сжата», подзаголовок читаемее */
html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-content-wrapper {
    max-width: 1080px !important;
}

html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title {
    font-size: clamp(2.55rem, 5.2vw, 4.2rem) !important;
    line-height: 1.26 !important;
    margin-bottom: 20px !important;
}

html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title .title-main {
    margin-bottom: 12px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em !important;
}

html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title .title-accent {
    font-size: clamp(1.05rem, 2.75vw, 1.4rem) !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.01em !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

html body .modern-service-page section.modern-hero-section .hero-description,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-description,
html body .modern-heating-page section.modern-hero-section .hero-description,
html body .modern-verification-page section.modern-hero-section .hero-description,
html body section.modern-hero-section-home .hero-description {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .modern-service-page section.modern-hero-section .hero-stats,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats,
html body .modern-heating-page section.modern-hero-section .hero-stats,
html body .modern-verification-page section.modern-hero-section .hero-stats,
html body section.modern-hero-section-home .hero-stats {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-stats .stat-item,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-item,
html body .modern-heating-page section.modern-hero-section .hero-stats .stat-item,
html body .modern-verification-page section.modern-hero-section .hero-stats .stat-item,
html body section.modern-hero-section-home .hero-stats .stat-item {
    text-align: center !important;
    margin: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-stats .stat-number,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-number,
html body .modern-heating-page section.modern-hero-section .hero-stats .stat-number,
html body .modern-verification-page section.modern-hero-section .hero-stats .stat-number,
html body section.modern-hero-section-home .hero-stats .stat-number {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-stats .stat-label,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-label,
html body .modern-heating-page section.modern-hero-section .hero-stats .stat-label,
html body .modern-verification-page section.modern-hero-section .hero-stats .stat-label,
html body section.modern-hero-section-home .hero-stats .stat-label {
    font-size: 0.9rem !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.35 !important;
}

html body .modern-service-page section.modern-hero-section .hero-actions,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions,
html body .modern-heating-page section.modern-hero-section .hero-actions,
html body .modern-verification-page section.modern-hero-section .hero-actions,
html body section.modern-hero-section-home .hero-actions {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    margin-top: 0 !important;
}

html body .modern-service-page section.modern-hero-section .hero-actions .btn-modern,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions .btn-modern,
html body .modern-heating-page section.modern-hero-section .hero-actions .btn-modern,
html body .modern-verification-page section.modern-hero-section .hero-actions .btn-modern,
html body section.modern-hero-section-home .hero-actions .btn-modern {
    min-width: 200px !important;
    padding: 16px 32px !important;
    font-size: 1rem !important;
    border-radius: 50px !important;
}

html body .modern-service-page section.modern-hero-section .scroll-indicator,
html body .modern-service-page section.modern-hero-section.heating-hero .scroll-indicator,
html body .modern-heating-page section.modern-hero-section .scroll-indicator,
html body .modern-verification-page section.modern-hero-section .scroll-indicator,
html body section.modern-hero-section-home .scroll-indicator {
    bottom: 28px !important;
    /* Центр через margin auto; сбрасываем translateX(-50%) из inline/partials — иначе блок и текст уезжают */
    left: 0 !important;
    right: 0 !important;
    width: fit-content !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    animation: none !important;
}

/* Скролл-индикатор удалён с сайта */
html body .scroll-indicator {
    display: none !important;
}

/* ИТП/ЦТП: индикатор остаётся внизу hero, а следующий блок не должен к нему прилипать */
@media (min-width: 769px) {
    html body .modern-heating-page section.modern-hero-section {
        padding-bottom: 132px !important; /* место под индикатор, чтобы он не налезал на секцию ниже */
    }

    html body .modern-heating-page section.modern-hero-section .scroll-indicator {
        bottom: 26px !important;
    }
}

/* Задача 10: без зацикленных анимаций hero-слоя (перебивает inline/partials, кроме AOS) */
html body .modern-service-page section.modern-hero-section .hero-gradient,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-gradient,
html body .modern-heating-page section.modern-hero-section .hero-gradient,
html body .modern-verification-page section.modern-hero-section .hero-gradient,
html body section.modern-hero-section-home .hero-gradient,
html body .modern-service-page section.modern-hero-section .hero-particles,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-particles,
html body .modern-heating-page section.modern-hero-section .hero-particles,
html body .modern-verification-page section.modern-hero-section .hero-particles,
html body section.modern-hero-section-home .hero-particles,
html body .modern-service-page section.modern-hero-section .hero-badge,
html body .modern-service-page section.modern-hero-section.heating-hero .hero-badge,
html body .modern-heating-page section.modern-hero-section .hero-badge,
html body .modern-verification-page section.modern-hero-section .hero-badge,
html body section.modern-hero-section-home .hero-badge,
html body .modern-service-page section.modern-hero-section .badge-icon,
html body .modern-service-page section.modern-hero-section.heating-hero .badge-icon,
html body .modern-heating-page section.modern-hero-section .badge-icon,
html body .modern-verification-page section.modern-hero-section .badge-icon,
html body section.modern-hero-section-home .badge-icon,
html body .modern-service-page section.modern-hero-section .scroll-wheel,
html body .modern-service-page section.modern-hero-section.heating-hero .scroll-wheel,
html body .modern-heating-page section.modern-hero-section .scroll-wheel,
html body .modern-verification-page section.modern-hero-section .scroll-wheel,
html body section.modern-hero-section-home .scroll-wheel {
    animation: none !important;
}

@keyframes heroScrollHintFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Один span в h1 (напр. «Аварийная служба») — без лишнего зазора под строкой */
html body .modern-service-page section.modern-hero-section .hero-title .title-main:only-child,
html body .modern-heating-page section.modern-hero-section .hero-title .title-main:only-child,
html body .modern-verification-page section.modern-hero-section .hero-title .title-main:only-child {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {

    /* Мобилка: hero НЕ ограничиваем по высоте (как есть), только адаптируем типографику/отступы */
    html body .modern-service-page section.modern-hero-section,
    html body .modern-service-page section.modern-hero-section.heating-hero,
    html body .modern-heating-page section.modern-hero-section,
    html body .modern-verification-page section.modern-hero-section,
    html body section.modern-hero-section-home {
        padding-bottom: 72px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-stats,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats,
    html body .modern-heating-page section.modern-hero-section .hero-stats,
    html body .modern-verification-page section.modern-hero-section .hero-stats,
    html body section.modern-hero-section-home .hero-stats {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 28px !important;
        margin-bottom: 26px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-stats .stat-item,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-item,
    html body .modern-heating-page section.modern-hero-section .hero-stats .stat-item,
    html body .modern-verification-page section.modern-hero-section .hero-stats .stat-item,
    html body section.modern-hero-section-home .hero-stats .stat-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-description,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-description,
    html body .modern-heating-page section.modern-hero-section .hero-description,
    html body .modern-verification-page section.modern-hero-section .hero-description,
    html body section.modern-hero-section-home .hero-description {
        margin-bottom: 26px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-badge,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-badge,
    html body .modern-heating-page section.modern-hero-section .hero-badge,
    html body .modern-verification-page section.modern-hero-section .hero-badge,
    html body section.modern-hero-section-home .hero-badge {
        margin-bottom: 28px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-title,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title,
    html body .modern-heating-page section.modern-hero-section .hero-title,
    html body .modern-verification-page section.modern-hero-section .hero-title,
    html body section.modern-hero-section-home .hero-title {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-content-wrapper,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-content-wrapper {
        max-width: 100% !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title {
        line-height: 1.3 !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-accent,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title .title-accent {
        font-size: clamp(0.9rem, 3.1vw, 1.1rem) !important;
        line-height: 1.42 !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-guarantee {
        font-size: clamp(0.93rem, 3.3vw, 1.14rem) !important;
        line-height: 1.38 !important;
    }

    /* Вентиляция: длинный h1 + overflow:hidden у героя — без уменьшения кегля и переноса края букв обрезаются */
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-content-wrapper {
        padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
        box-sizing: border-box !important;
    }

    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title {
        font-size: clamp(1.35rem, 4.2vw, 1.9rem) !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-wrap: break-word !important;
    }

    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title .title-main {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-badge {
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
        row-gap: 8px !important;
        column-gap: 10px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 13px !important;
    }

    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-badge .badge-icon {
        flex-shrink: 0 !important;
    }

    html body main.main-content {
        min-height: 0 !important;
    }
}

@media (max-width: 480px) {

    html body .modern-service-page section.modern-hero-section,
    html body .modern-service-page section.modern-hero-section.heating-hero,
    html body .modern-heating-page section.modern-hero-section,
    html body .modern-verification-page section.modern-hero-section,
    html body section.modern-hero-section-home {
        padding-bottom: 64px !important;
        padding-top: calc(12px + var(--services-panel-slot, 0px)) !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-badge,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-badge,
    html body .modern-heating-page section.modern-hero-section .hero-badge,
    html body .modern-verification-page section.modern-hero-section .hero-badge,
    html body section.modern-hero-section-home .hero-badge {
        margin-top: 0 !important;
        margin-bottom: 24px !important;
        padding: 10px 20px !important;
        font-size: 15px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-title,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title,
    html body .modern-heating-page section.modern-hero-section .hero-title,
    html body .modern-verification-page section.modern-hero-section .hero-title,
    html body section.modern-hero-section-home .hero-title {
        margin-bottom: 14px !important;
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    }

    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title {
        font-size: clamp(1.2rem, 5.5vw, 1.65rem) !important;
    }

    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-badge {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-accent,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title .title-accent {
        font-size: clamp(0.82rem, 3.6vw, 0.98rem) !important;
        line-height: 1.4 !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-guarantee {
        font-size: clamp(0.85rem, 3.7vw, 1.02rem) !important;
        line-height: 1.36 !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-title .title-main,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-main,
    html body .modern-heating-page section.modern-hero-section .hero-title .title-main,
    html body .modern-verification-page section.modern-hero-section .hero-title .title-main,
    html body section.modern-hero-section-home .hero-title .title-main {
        margin-bottom: 6px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-title .title-accent,
    html body .modern-heating-page section.modern-hero-section .hero-title .title-accent,
    html body .modern-verification-page section.modern-hero-section .hero-title .title-accent,
    html body section.modern-hero-section-home .hero-title .title-accent {
        margin-bottom: 0 !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title .title-accent {
        margin-bottom: 6px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-description,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-description,
    html body .modern-heating-page section.modern-hero-section .hero-description,
    html body .modern-verification-page section.modern-hero-section .hero-description,
    html body section.modern-hero-section-home .hero-description {
        font-size: 1.1rem !important;
        margin-bottom: 24px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-stats,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats,
    html body .modern-heating-page section.modern-hero-section .hero-stats,
    html body .modern-verification-page section.modern-hero-section .hero-stats,
    html body section.modern-hero-section-home .hero-stats {
        gap: 20px !important;
        margin-bottom: 24px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-stats .stat-number,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-number,
    html body .modern-heating-page section.modern-hero-section .hero-stats .stat-number,
    html body .modern-verification-page section.modern-hero-section .hero-stats .stat-number,
    html body section.modern-hero-section-home .hero-stats .stat-number {
        font-size: 2.5rem !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-actions,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions,
    html body .modern-heating-page section.modern-hero-section .hero-actions,
    html body .modern-verification-page section.modern-hero-section .hero-actions,
    html body section.modern-hero-section-home .hero-actions {
        gap: 16px !important;
        margin-bottom: 32px !important;
    }

    html body .modern-service-page section.modern-hero-section .hero-actions .btn-modern,
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions .btn-modern,
    html body .modern-heating-page section.modern-hero-section .hero-actions .btn-modern,
    html body .modern-verification-page section.modern-hero-section .hero-actions .btn-modern,
    html body section.modern-hero-section-home .hero-actions .btn-modern {
        min-width: 0 !important;
        width: 100%;
        max-width: 300px;
    }
}

/* main.main-content { min-height: 100vh } в styles.css — убираем лишний «хвост» под первым экраном. */
html body main.main-content:has(.modern-service-page),
html body main.main-content:has(.modern-heating-page),
html body main.main-content:has(.modern-verification-page),
html body main.main-content:has(> .modern-hero-section-home) {
    min-height: unset;
}

/* ============================================================
   FIX: фиксированная высота hero + разное наполнение.
   Уплотняем контент, чтобы не было обреза (2 страницы):
   - Подготовка к отопительному сезону (heating-hero)
   - Обслуживание вентиляции (ventilation-hero)
   ============================================================ */

@media (min-width: 769px) {
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-title,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-title {
        font-size: clamp(2.15rem, 4.6vw, 3.55rem) !important;
        line-height: 1.18 !important;
        margin-bottom: 12px !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-description,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-description {
        font-size: 1.06rem !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
        max-width: 760px !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-offer,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-offer {
        font-size: 0.98rem !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
        max-width: 760px !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-stats {
        gap: 22px !important;
        margin-bottom: 16px !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-stats .stat-number,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-stats .stat-number {
        font-size: 2.25rem !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-actions,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-actions {
        margin-bottom: 14px !important;
    }

    /* Триггеры: не “плитка”, а компактные чипсы */
    html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-triggers {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 10px !important;
        margin-top: 8px !important;
        max-width: 860px !important;
    }

    html body .modern-service-page section.modern-hero-section.heating-hero .hero-triggers li,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .hero-triggers li {
        padding: 8px 12px !important;
        font-size: 0.86rem !important;
        line-height: 1.25 !important;
        border-radius: 999px !important;
        width: auto !important;
    }

    /* На десктопе скролл-индикатор не критичен, но и не прячем (для единообразия) */
}

/* Мобилка: скролл-индикатор всегда видим и выше нижних элементов */
@media (max-width: 768px) {
    html body .modern-service-page section.modern-hero-section .scroll-indicator,
    html body .modern-service-page section.modern-hero-section.heating-hero .scroll-indicator,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .scroll-indicator,
    html body .modern-heating-page section.modern-hero-section .scroll-indicator,
    html body .modern-verification-page section.modern-hero-section .scroll-indicator,
    html body section.modern-hero-section-home .scroll-indicator {
        display: flex !important;
        bottom: 12px !important;
        z-index: 6 !important;
        pointer-events: none;
    }

    html body .modern-service-page section.modern-hero-section .scroll-mouse,
    html body .modern-service-page section.modern-hero-section.heating-hero .scroll-mouse,
    html body .modern-service-page section.modern-hero-section.ventilation-hero .scroll-mouse,
    html body .modern-heating-page section.modern-hero-section .scroll-mouse,
    html body .modern-verification-page section.modern-hero-section .scroll-mouse,
    html body section.modern-hero-section-home .scroll-mouse {
        opacity: 0.9;
    }
}
