

/* Start:/bitrix/templates/novadent_new/components/bitrix/catalog.section.list/uslugi_sections/style.css?177729629819623*/
/* =========================================================
   Шаблон uslugi_sections — стили новой страницы /uslugi/
   Шрифт Inter Tight подключается в шапке шаблона сайта.
   ========================================================= */

/* HOTFIX: родительский шаблон выводит свой H1 «Услуги стоматологии
   НоваДент» и абзац «Полный прайс-лист.» ДО нашего Hero. У нашего
   Hero уже есть собственный заголовок и ссылка на прайс — прячем дубликат.
   Целимся в первый h1 и первый абзац внутри section.services > .holder. */
.services > .holder > h1:first-child,
.services > .holder > h1:first-child + p {
    display: none !important;
}

/* Сбрасываем рамку у самой обёртки страницы, если родительский
   шаблон оборачивает компонент в section.services с лишним padding */
/* Возвращаем родительскому .holder боковые отступы на десктопе/лаптопе.
   На мобильном (≤640px) padding обнуляем — у каждого блока свой margin от края. */
.services .holder { padding: 0 20px; }
@media (max-width: 640px) {
    .services .holder { padding: 0 !important; }
}

/* Глобальный сброс декораций ссылок ВНУТРИ наших блоков */
.uslugi-hero a,
.uslugi-quick a,
.uslugi-layout a,
.uslugi-calc-section a,
.uslugi-why a,
.uslugi-cta a,
.uslugi-card a,
.uslugi-services a,
.uslugi-subgroup a {
    text-decoration: none !important;
    border-bottom: 0 !important;
    background-image: none !important;
}
.uslugi-hero__subtitle a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* На главной странице наш шаблон вложен в <section class="offers offers23">.
   На /uslugi/ — нет. Скрываем дополнительные блоки только на главной. */
.offers23 .uslugi-calc-section,
.offers23 .uslugi-why,
.offers23 .uslugi-cta,
.offers23 .uslugi-sidebar,
.offers23 > .holder > h2.h1 {
    display: none !important;
}
/* Когда сайдбар скрыт — каталог занимает всю ширину */
.offers23 .uslugi-layout {
    grid-template-columns: 1fr !important;
}
/* На главной скрываем оригинал «Особый уход» (он клонируется JS во вторую группу) */
.offers23 .uslugi-subgroup--cloned-source {
    display: none !important;
}

/* CTA-карточка «Все услуги и цены» — добавляется через JS в конец второй группы на главной.
   Структура повторяет карточку сайдбара (заголовок + описание + кнопка),
   но с синим фоном и светлой кнопкой. */
.uslugi-subgroup.uslugi-subgroup--cta,
.uslugi-subgroup.uslugi-subgroup--cta:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%) !important;
    border: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(44,90,160,0.20) !important;
    transform: none !important;
}
.uslugi-subgroup.uslugi-subgroup--cta {
    display: flex !important;
    flex-direction: column;
    padding: 24px !important;
}
.uslugi-subgroup--cta__title {
    margin: 0 0 12px !important;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.3;
    text-wrap: balance;
}
.uslugi-subgroup--cta__desc {
    margin: 0 0 18px !important;
    font-size: 14px;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.45;
    flex-grow: 1;
    text-wrap: balance;
}
.uslugi-subgroup--cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #2c5aa0 !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s;
}
.uslugi-subgroup.uslugi-subgroup--cta:hover .uslugi-subgroup--cta__btn {
    background: #f0f5fc;
}

/* === HERO === */
.uslugi-hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%);
    color: #fff;
    padding: 50px 40px 60px;
    margin: 24px 0 50px;
    border-radius: 14px;
}
.uslugi-hero h1 {
    margin: 0 0 12px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}
.uslugi-hero__subtitle {
    margin: 0 0 28px;
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
}
.uslugi-hero__subtitle a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Поиск (форма Bitrix /search/) */
.uslugi-search {
    position: relative;
    max-width: 720px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: block;
}
.uslugi-search input {
    width: 100%;
    border: 0;
    padding: 18px 56px 18px 24px;
    font-size: 17px;
    border-radius: 14px;
    outline: none;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
    background: transparent;
}
.uslugi-search__btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.uslugi-search__btn:hover { background: #eaf1fb; }
.uslugi-search__icon {
    width: 22px;
    height: 22px;
    color: #2c5aa0;
}

/* Быстрые теги «Часто ищут» */
.uslugi-quick {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.uslugi-quick span {
    opacity: 0.85;
    font-size: 14px;
    margin-right: 6px;
}
.uslugi-quick a {
    color: #fff;
    background: rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.15s;
    text-decoration: none;
}
.uslugi-quick a:hover { background: rgba(255,255,255,0.22); }

/* === Двухколоночная сетка: каталог + сайдбар === */
.uslugi-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin: 0 0 60px;
    align-items: start;
}

.uslugi-group { margin-bottom: 50px; }
.uslugi-group:last-child { margin-bottom: 0; }
.uslugi-group__title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.uslugi-subgroups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.uslugi-subgroup {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.uslugi-subgroup:hover {
    border-color: #2c5aa0;
    box-shadow: 0 6px 20px rgba(44,90,160,0.15);
    transform: translateY(-2px);
}
.uslugi-subgroup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e9ecef;
}
.uslugi-subgroup__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eaf1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2c5aa0;
}
.uslugi-subgroup__icon svg { width: 24px; height: 24px; }
.uslugi-subgroup__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.uslugi-services {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}
.uslugi-services li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.uslugi-services li:last-child { border-bottom: 0; }
.uslugi-services a,
.uslugi-services a:link,
.uslugi-services a:visited,
.uslugi-services a:hover {
    color: #333;
    font-size: 15px;
    flex: 1;
    transition: color 0.15s;
    text-decoration: none !important;
    border-bottom: 0 !important;
    background: none !important;
}
.uslugi-services li:hover a { color: #2c5aa0; }
.uslugi-services__price {
    font-size: 14px;
    font-weight: 600;
    color: #2c5aa0;
    white-space: nowrap;
}

/* === Сайдбар === */
.uslugi-sidebar {
    position: sticky;
    top: 120px;
}
.uslugi-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.uslugi-card--accent {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%);
    color: #fff;
    border: 0;
}
.uslugi-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-wrap: balance;
}
.uslugi-card--accent h3 { color: #fff; }
.uslugi-card p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    text-wrap: balance;
}
.uslugi-card--accent p { color: rgba(255,255,255,0.9); }

.uslugi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
    border: 0;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
    font-family: inherit;
}
.uslugi-btn--primary {
    background: #2c5aa0;
    color: #fff;
}
.uslugi-btn--primary:hover { background: #1a3a6e; color: #fff; text-decoration: none; }
.uslugi-btn--light {
    background: #fff;
    color: #2c5aa0;
}
.uslugi-btn--light:hover { background: #f8f9fa; color: #2c5aa0; text-decoration: none; }
.uslugi-btn--inline {
    width: auto;
    padding: 14px 32px;
}

/* === Секция-обёртка для калькулятора === */
.uslugi-calc-section {
    padding: 60px 40px 40px;
    background: #fff;
    border-radius: 14px;
    margin: 0 0 24px;
}
.uslugi-calc-section__header {
    text-align: center;
    margin-bottom: 30px;
}
.uslugi-calc-section__header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
}
.uslugi-calc-section__header p {
    margin: 0 auto;
    max-width: 640px;
    color: #666;
    font-size: 16px;
}
.uslugi-calc-section .dental-calculator-container {
    max-width: none;
    padding: 0;
}

/* === Блок «Почему НоваДент» === */
.uslugi-why {
    background: transparent;
    padding: 60px 40px;
    border-radius: 14px;
    margin: 0 0 24px;
}
.uslugi-why h2 {
    text-align: center;
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
}
.uslugi-why__lead {
    text-align: center;
    color: #666;
    margin: 0 auto 40px;
    max-width: 600px;
    font-size: 17px;
}
.uslugi-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.uslugi-why__card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.uslugi-why__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eaf1fb;
    color: #2c5aa0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.uslugi-why__icon svg { width: 28px; height: 28px; }
.uslugi-why__number {
    font-size: 32px;
    font-weight: 800;
    color: #2c5aa0;
    line-height: 1;
    margin-bottom: 6px;
}
.uslugi-why__card h4 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}
.uslugi-why__card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* === Финальный CTA === */
.uslugi-cta {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%);
    color: #fff;
    padding: 50px 40px;
    text-align: center;
    border-radius: 14px;
    margin: 0 auto 24px;
    max-width: 800px;
}
.uslugi-cta h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.uslugi-cta p {
    margin: 0 0 24px;
    opacity: 0.9;
    font-size: 17px;
}

/* =========================================================
   SEO-блок «Наши услуги» внизу страницы.
   Оборачивается родительским шаблоном в .content-holder > .holder.
   Приводим типографику к стилю остальной страницы.
   ========================================================= */
.content-holder {
    padding: 50px 0 60px;
}
.content-holder .holder {
    max-width: 900px;
}
.content-holder > p:first-child {
    display: none;
}
.content-holder h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}
.content-holder p {
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    margin: 0 0 16px;
}
.content-holder ol.number-list,
.content-holder ol {
    counter-reset: nd-counter;
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.content-holder ol.number-list > li,
.content-holder ol > li {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 20px 20px 64px;
    position: relative;
    font-size: 15px;
    line-height: 1.55;
    color: #444;
    counter-increment: nd-counter;
    list-style: none;
    transition: all 0.2s;
}
.content-holder ol.number-list > li::marker,
.content-holder ol > li::marker {
    content: '';
}
.content-holder ol.number-list > li::before,
.content-holder ol > li::before {
    content: counter(nd-counter);
    position: absolute;
    left: 16px;
    top: 18px;
    width: 32px;
    height: 32px;
    background: #eaf1fb;
    color: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.content-holder ol.number-list > li:hover,
.content-holder ol > li:hover {
    border-color: #2c5aa0;
    box-shadow: 0 4px 12px rgba(44,90,160,0.10);
}
.content-holder a {
    color: #2c5aa0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.content-holder a:hover { color: #1a3a6e; }

@media (max-width: 1024px) {
    .content-holder ol.number-list,
    .content-holder ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .content-holder { padding: 40px 0; }
    .content-holder h2 { font-size: 22px; }
    .content-holder p { font-size: 15px; }
}

/* === Адаптив === */
@media (max-width: 1024px) {
    .uslugi-subgroups { grid-template-columns: repeat(2, 1fr); }
    .uslugi-why__grid { grid-template-columns: repeat(2, 1fr); }
    .uslugi-layout { grid-template-columns: 1fr; }
    .uslugi-sidebar { position: static; }
}
@media (max-width: 640px) {
    /* === HERO === */
    .uslugi-hero {
        padding: 24px 18px 28px;
        margin: 16px 16px 20px;
        text-align: left !important;
    }
    .uslugi-hero h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        margin: 0 0 10px !important;
    }
    .uslugi-hero__subtitle {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 0 20px !important;
    }

    /* === КАТАЛОГ === */
    .uslugi-catalog { padding: 0 16px; }
    .uslugi-sidebar { padding: 0 16px; }

    .uslugi-group { margin-bottom: 28px !important; }
    .uslugi-group__title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        margin: 0 0 16px !important;
        padding-bottom: 8px !important;
    }
    .uslugi-subgroups { grid-template-columns: 1fr; gap: 12px !important; }
    .uslugi-subgroup { padding: 18px !important; }
    .uslugi-subgroup__title {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    /* Сайдбар-карточки (Узнайте стоимость / Не знаете что нужно) */
    .uslugi-card { padding: 18px !important; }
    .uslugi-card h3 {
        font-size: 17px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        margin: 0 0 8px !important;
    }
    .uslugi-card p {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 0 14px !important;
    }

    /* === Калькулятор === */
    .uslugi-calc-section {
        padding: 28px 18px 20px;
        margin: 0 16px 16px;
    }
    .uslugi-calc-section__header { text-align: left !important; margin-bottom: 18px !important; }
    .uslugi-calc-section__header h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        margin: 0 0 8px !important;
    }
    .uslugi-calc-section__header p {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 !important;
    }

    /* Внутренний синий блок-баннер калькулятора (inline-стили из Template_Calculator) */
    .uslugi-calc-section [style*="linear-gradient"] {
        padding: 20px !important;
    }
    .uslugi-calc-section [style*="linear-gradient"] h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        max-width: 200px !important;
    }
    .uslugi-calc-section [style*="linear-gradient"] p {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: left !important;
    }

    /* === Почему НоваДент === */
    .uslugi-why {
        padding: 28px 18px;
        margin: 0 16px 16px;
    }
    .uslugi-why h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        margin: 0 0 8px !important;
    }
    .uslugi-why__lead {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 0 20px !important;
    }
    .uslugi-why__grid { grid-template-columns: 1fr; gap: 12px !important; }
    .uslugi-why__card {
        padding: 18px !important;
    }
    .uslugi-why__icon { margin: 0 auto 12px !important; }
    .uslugi-why__number {
        font-size: 26px !important;
    }
    .uslugi-why__card h4 {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
    .uslugi-why__card p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    /* === CTA === */
    .uslugi-cta {
        padding: 24px 18px;
        margin: 0 16px 16px;
        text-align: left !important;
    }
    .uslugi-cta h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        margin: 0 0 8px !important;
    }
    .uslugi-cta p {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 0 16px !important;
    }
    .uslugi-btn--inline { padding: 12px 20px !important; font-size: 15px !important; }
}

/* End */
/* /bitrix/templates/novadent_new/components/bitrix/catalog.section.list/uslugi_sections/style.css?177729629819623 */
