/**
 * service.css — стили для single-service.php
 * Подключаются только на страницах услуг (conditional enqueue).
 *
 * @package RehabTheme
 */


/* ═══════════════════════════════════════════════════════════
   HERO — hero--service
   ═══════════════════════════════════════════════════════════ */

.hero--service {
    background: var(--brand-color);
    color: #fff;
    padding: var(--sp-3xl) 0;
    min-height: 420px;
    display: block;
    align-items: center;
}

/* Когда есть фоновое изображение — hero--has-overlay */
.hero--service.hero--has-overlay {
    background: var(--hero-bg, var(--brand-color)) center/cover no-repeat;
    color: #fff;
    position: relative;
}

.hero--service.hero--has-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 55, 0.72);
    z-index: 0;
    pointer-events: none;
}

.hero--service.hero--has-overlay .hero__inner {
    position: relative;
    z-index: 1;
}

/* На странице с overlay скрываем боковое фото (оно уже в фоне) */
.hero--service.hero--has-overlay .hero__image {
    display: none !important;
}

.hero--service .hero__title {
    color: #fff;
}

.hero--service .hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Список цен */
.hero__prices {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero__price-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.hero--service .hero__price-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    flex-shrink: 0;
}

.hero--service .hero__price-value {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.hero--service .hero__price-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Первая цена крупнее — «от» */
.hero__prices .hero__price-item:first-child .hero__price-value {
    font-size: 28px;
}

@media (max-width: 767px) {
    .hero__prices .hero__price-item:first-child .hero__price-value {
        font-size: 22px;
    }

    .hero--service .hero__price-value {
        font-size: 17px;
    }
}

/* Бейджи в hero */
.hero--service .badge {
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 18px;
}

/* Хлебные крошки поверх тёмного фона */
.hero--service .breadcrumbs,
.hero--service .breadcrumbs__link,
.hero--service .breadcrumbs__current {
    color: rgba(255, 255, 255, 0.65);
}

.hero--service .breadcrumbs__link:hover {
    color: #fff;
}

.hero--service .breadcrumbs__separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Изображение справа — аккуратные скругления */
.hero--service .hero__img {
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    object-fit: cover;
    width: 100%;
    max-height: 460px;
}

/* Btn outline в hero */
.hero--service .btn--outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
}

.hero--service .btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   HERO — двухколоночный макет + блок доверия
   ═══════════════════════════════════════════════════════════ */

/* Одна колонка: контент на всю ширину */
.hero--service:not(.hero--two-col) .hero__content {
    max-width: 760px;
}

/* Две колонки: сетка */
@media (min-width: 992px) {
    .hero--service.hero--two-col .hero__inner {
        grid-template-columns: 55% 1fr;
        gap: var(--sp-2xl);
        align-items: center;
    }
}

/* Карточка блока доверия */
.hero__trust-wrap {
    display: none;
}

@media (min-width: 992px) {
    .hero__trust-wrap {
        display: flex;
        justify-content: flex-end;
    }
}

.hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 100%;
    max-width: 340px;
}

.hero-trust__item {
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.07);
    transition: background var(--transition);
}

.hero-trust__item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-trust__num {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
}

.hero-trust__value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-trust__suffix {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
    line-height: 1;
}

.hero-trust__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════
   TOC — содержание по заголовкам
   ═══════════════════════════════════════════════════════════ */

.section--toc {
    padding: var(--sp-md) 0;
}


/* ═══════════════════════════════════════════════════════════
   CONSULT CTA
   ═══════════════════════════════════════════════════════════ */

.section--consult-cta {
    padding: var(--sp-xl) 0;
}

.consult-cta {
    position: relative;
    border: 2px solid var(--brand-color);
    border-radius: var(--radius-sm);
    padding: 40px 32px 32px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
}

.consult-cta__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 28px;
    white-space: nowrap;
    border-radius: var(--radius-xs);
}

.consult-cta__subtitle {
    font-size: var(--fs-base);
    color: var(--dark-color);
    line-height: 1.5;
}

.consult-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-color);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.consult-cta__phone:hover {
    color: var(--accent);
}

.consult-cta__btn {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: var(--radius-xs);
    border: 2px solid;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}

.consult-cta__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .consult-cta {
        padding: 36px 20px 24px;
    }

    .consult-cta__badge {
        font-size: 13px;
        padding: 8px 16px;
        white-space: normal;
        width: calc(100% - 40px);
    }
}

/* ═══════════════════════════════════════════════════════════ */

.toc-block {
    background: var(--bg-section);
    border-left: 4px solid var(--brand-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    max-width: 780px;
}

.toc-block__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    cursor: default;
}

.toc-block__icon {
    color: var(--brand-color);
    flex-shrink: 0;
}

.toc-block__title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--brand-color);
    flex: 1;
}

.toc-block__toggle {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--brand-color);
    line-height: 1;
    transition: transform 0.25s;
    display: flex;
    align-items: center;
}

.toc-block__toggle--collapsed {
    transform: rotate(-90deg);
}

.toc-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.2s;
}

.toc-block__list--collapsed {
    display: none;
}

.toc-block__item {
    line-height: 1.4;
}

.toc-block__item--sub {
    padding-left: 20px;
}

.toc-block__item--sub .toc-block__link {
    font-size: var(--fs-sm);
    color: #555;
}

.toc-block__link {
    color: var(--brand-color);
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color 0.15s;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.toc-block__link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.toc-block__link--active {
    color: var(--accent);
    font-weight: 600;
}

.toc-block__num {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    min-width: 18px;
}

/* ═══════════════════════════════════════════════════════════
   INTRO — контент из редактора WordPress (the_content)
   ═══════════════════════════════════════════════════════════ */

.section--intro .content-block {
    max-width: 860px;
}

/* Заголовки */
.section--intro .content-block h2 {
    font-size: var(--fs-3xl);
    color: var(--brand-color);
    margin: var(--sp-2xl) 0 var(--sp-md);
    padding-bottom: var(--sp-sm);
    border-bottom: 2px solid var(--border-light);
}

.section--intro .content-block h3 {
    font-size: var(--fs-xl);
    color: var(--brand-color);
    margin: var(--sp-xl) 0 var(--sp-sm);
}

.section--intro .content-block h4 {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--dark-color);
    margin: var(--sp-lg) 0 var(--sp-sm);
}

.section--intro .content-block h5,
.section--intro .content-block h6 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--middle-color);
    margin: var(--sp-md) 0 var(--sp-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Параграфы */
.section--intro .content-block p {
    font-size: var(--fs-base);
    line-height: var(--lh);
    color: var(--dark-color);
    margin-bottom: var(--sp-md);
}

/* Маркированные списки — кастомный bullet через псевдоэлемент */
.section--intro .content-block ul {
    list-style: none;
    padding-left: 0;
    margin: var(--sp-md) 0 var(--sp-lg);
}

.section--intro .content-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: var(--sp-sm);
    font-weight: 400;
    font-size: var(--fs-base);
    color: var(--dark-color);
    line-height: 1.5;
}

.section--intro .content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    flex-shrink: 0;
}

/* Нумерованные списки */
.section--intro .content-block ol {
    list-style: none;
    padding-left: 0;
    counter-reset: service-ol;
    margin: var(--sp-md) 0 var(--sp-lg);
}

.section--intro .content-block ol li {
    position: relative;
    padding-left: 36px;
    margin-bottom: var(--sp-sm);
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--dark-color);
    line-height: 1.5;
    counter-increment: service-ol;
}

.section--intro .content-block ol li::before {
    content: counter(service-ol);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--brand-color);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Цитата */
.section--intro .content-block blockquote {
    border-left: 4px solid var(--accent-red);
    background: var(--bg-alt);
    padding: var(--sp-lg) var(--sp-xl);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--sp-xl) 0;
    font-style: italic;
    color: var(--middle-color);
}

.section--intro .content-block blockquote p:last-child {
    margin-bottom: 0;
}

/* Таблицы (Gutenberg или классический редактор) */
.section--intro .content-block table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--sp-xl) 0;
    font-size: var(--fs-sm);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.section--intro .content-block table thead th {
    background: var(--brand-color);
    color: #fff;
    font-weight: 600;
    padding: var(--sp-sm) var(--sp-md);
    text-align: left;
}

.section--intro .content-block table tbody td {
    padding: var(--sp-sm) var(--sp-md);
    border-bottom: 1px solid var(--border-light);
    color: var(--dark-color);
    vertical-align: top;
}

.section--intro .content-block table tbody tr:nth-child(2n) td {
    background: var(--bg-alt);
}

.section--intro .content-block table tbody tr:last-child td {
    border-bottom: none;
}

/* Ссылки внутри контента */
.section--intro .content-block a {
    color: var(--brand-color);
    text-decoration: underline;
    text-decoration-color: rgba(31, 58, 95, 0.3);
    transition: color var(--transition), text-decoration-color var(--transition);
}

.section--intro .content-block a:hover {
    color: var(--accent-red);
    text-decoration-color: var(--accent-red);
}

/* Жирный и курсив */
.section--intro .content-block strong,
.section--intro .content-block b {
    font-weight: 700;
    color: var(--dark-color);
}

.section--intro .content-block em,
.section--intro .content-block i {
    font-style: italic;
}

/* Изображения */
.section--intro .content-block img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin: var(--sp-lg) 0;
    box-shadow: var(--shadow-sm);
}

/* Горизонтальный разделитель */
.section--intro .content-block hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: var(--sp-2xl) 0;
}

/* Таблица на мобайле — горизонтальный скролл */
@media (max-width: 767px) {
    .section--intro .content-block table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ═══════════════════════════════════════════════════════════
   PRICE TABLE — section--prices
   ═══════════════════════════════════════════════════════════ */

.section--prices {
    background: var(--bg-alt);
}

.price-table__row:first-child {
    border-left: 3px solid var(--accent-red);
}

.price-table__col--price {
    color: var(--accent-red);
}

/* Footer таблицы цен */
.price-table__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    padding: var(--sp-lg) var(--sp-xl);
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

.price-table__disclaimer {
    margin: 0;
    flex: 1 1 200px;
}


/* ═══════════════════════════════════════════════════════════
   STEPS — section--steps
   ═══════════════════════════════════════════════════════════ */

.section--steps {
    background: var(--brand-color);
    position: relative;
    overflow: hidden;
}

.section--steps::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.section--steps .section__title {
    color: #fff;
}

/* Вертикальный коннектор на мобильных */
@media (max-width: 767px) {
    .steps__item {
        position: relative;
    }

    .steps__item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 29px;
        top: 68px;
        width: 2px;
        height: calc(100% - 20px);
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Горизонтальные стрелки на десктопе */
@media (min-width: 768px) {
    .steps__item {
        position: relative;
    }

    .steps__item:not(:last-child)::after {
        content: '→';
        position: absolute;
        top: 30px;
        right: -10px;
        font-size: 22px;
        color: rgba(255, 255, 255, 0.4);
        line-height: 1;
    }
}


/* ═══════════════════════════════════════════════════════════
   FAQ — section--faq
   ═══════════════════════════════════════════════════════════ */
/* Обёртка — убираем лишние отступы из main.css */
.section--faq .faq {
    max-width: 860px;
    padding: 0;
    gap: var(--sp-sm);
}

/* Каждый пункт — белая карточка */
.section--faq .faq__item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.section--faq .faq__item:first-child {
    border-top: 1px solid var(--border-light);
}

.section--faq .faq__item:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(31, 58, 95, 0.25);
}

/* Кнопка вопроса */
.section--faq .faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--brand-color);
    gap: var(--sp-md);
    transition: color var(--transition);
    line-height: 1.4;
}

.section--faq .faq__question:hover {
    color: var(--accent-red);
}

/* Иконка-стрелка */
.section--faq .faq__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    color: var(--brand-color);
    background: transparent;
    transition: all var(--transition);
}

.section--faq .faq__icon svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

/* Открытый пункт */
.section--faq .faq__item--open {
    border-color: var(--accent-red);
    box-shadow: 0 1px 5px rgba(220, 54, 70, .06);
}

.section--faq .faq__item--open .faq__question {
    color: var(--accent-red);
}

.section--faq .faq__item--open .faq__icon {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.section--faq .faq__item--open .faq__icon svg {
    transform: rotate(180deg);
}

/* Ответ */
.faq__answer {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.section--faq .faq__answer-inner {
    padding: var(--sp-xl) var(--sp-xl);
    color: var(--middle-color);
    font-size: var(--fs-base);
    line-height: var(--lh);
    border-top: 1px solid var(--border-light);
    min-height: unset;
}

.section--faq .faq__answer-inner p:last-child {
    margin-bottom: 0;
}

/* ── Нативные <details> (если данные введены в редакторе) ── */
.section--faq details,
.faq__answer-inner details {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: var(--sp-sm);
    transition: box-shadow var(--transition);
}

.section--faq details[open],
.faq__answer-inner details[open] {
    border-color: var(--accent-red);
    box-shadow: 0 1px 5px rgba(220, 54, 70, .06);
}

.section--faq details summary,
.faq__answer-inner details summary {
    display: flex;
    align-items: center;
    padding: var(--sp-lg) var(--sp-xl);
    cursor: pointer;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--brand-color);
    list-style: none;
    gap: var(--sp-md);
    transition: color var(--transition);
    user-select: none;
}

/* Убираем дефолтный треугольник браузера */
.section--faq details summary::-webkit-details-marker,
.faq__answer-inner details summary::-webkit-details-marker {
    display: none;
}

.section--faq details summary::marker,
.faq__answer-inner details summary::marker {
    display: none;
}

/* Кастомная иконка для <summary> */
.section--faq details summary::after,
.faq__answer-inner details summary::after {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: transparent;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231F3A5F' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all var(--transition);
}

.section--faq details[open] summary::after,
.faq__answer-inner details[open] summary::after {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 15 12 9 18 15'/%3E%3C/svg%3E");
    transform: none;
}

.section--faq details[open] summary,
.faq__answer-inner details[open] summary {
    color: var(--accent-red);
    border-bottom: 1px solid var(--border-light);
}

/* Контент внутри <details> */
.section--faq details>*:not(summary),
.faq__answer-inner details>*:not(summary) {
    padding: var(--sp-lg) var(--sp-xl);
    color: var(--middle-color);
    font-size: var(--fs-base);
    line-height: var(--lh);
}

/* Карточка эксперта */
.faq-expert-card {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    margin-top: var(--sp-2xl);
    padding: var(--sp-lg) var(--sp-xl);
    background: var(--bg-white);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-red);
    max-width: 600px;
}

.faq-expert-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}

.faq-expert-card__label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.faq-expert-card__name {
    font-weight: 700;
    color: var(--brand-color);
    font-size: var(--fs-lg);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.faq-expert-card__name:hover {
    color: var(--accent-red);
}

.faq-expert-card__position {
    font-size: var(--fs-sm);
    color: var(--middle-color);
}

/* Мобайл */
@media (max-width: 767px) {
    .section--faq .faq__question {
        padding: var(--sp-md);
        font-size: var(--fs-base);
    }

    .section--faq .faq__answer-inner {
        padding: 0 var(--sp-md) var(--sp-md);
    }

    .section--faq details summary {
        padding: var(--sp-md);
        font-size: var(--fs-base);
    }

    .section--faq details>*:not(summary) {
        padding: var(--sp-md);
    }

    .faq-expert-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}


/* ═══════════════════════════════════════════════════════════
   REVIEWS — section--reviews
   ═══════════════════════════════════════════════════════════ */

.section--reviews .review-card {
    border-left: 3px solid var(--accent-red);
}


/* ═══════════════════════════════════════════════════════════
   RELATED SERVICES — nav-card стиль
   ═══════════════════════════════════════════════════════════ */

/* Иконка-миниатюра или начальная буква */
.nav-card__icon-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.nav-card__icon-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto;
}

/* На мобильных — 2 колонки */
@media (max-width: 767px) {
    .related-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 420px) {
    .related-services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   DOCTORS — round photo style (service page)
   ═══════════════════════════════════════════════════════════ */

.section--doctors .doctor-card {
    text-align: center;
    box-shadow: none;
    border-radius: 0;
}

.section--doctors .doctor-card:hover {
    box-shadow: none;
}

.section--doctors .doctor-card__photo {
    width: 140px;
    height: 140px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--sp-md);
    border: 3px solid var(--border-light);
    transition: border-color var(--transition);
}

.section--doctors .doctor-card:hover .doctor-card__photo {
    border-color: var(--accent-red);
}

.section--doctors .doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.section--doctors .doctor-card__name {
    font-size: var(--fs-base);
    font-weight: 700;
    text-align: center;
}

.section--doctors .doctor-card__position,
.section--doctors .doctor-card__experience {
    text-align: center;
    font-size: var(--fs-sm);
}

.section--doctors .doctor-card__action {
    justify-content: center;
}

/* Слайдер — всегда, независимо от кол-ва */
.section--doctors .doctors-slider {
    padding: 0 50px var(--sp-md);
}

/* Фиксированная ширина карточки в слайдере */
.section--doctors .swiper-slide.doctor-card {
    width: 200px;
    flex-shrink: 0;
    padding: var(--sp-md) var(--sp-sm);
    box-shadow: 0 7px 10px #eeeeee;
    border: 1px solid #eeeeee;
    border-radius: 7px;
}

/* Кнопки навигации */
.section--doctors .doctors-slider .swiper-button-prev,
.section--doctors .doctors-slider .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    top: 50% 265.2px;
    transform: translateY(-50%);
}

.section--doctors .doctors-slider .swiper-button-prev::after,
.section--doctors .doctors-slider .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.section--doctors .doctors-slider .swiper-button-prev {
    left: 0;
}

.section--doctors .doctors-slider .swiper-button-next {
    right: 0;
}

@media (max-width: 767px) {
    .section--doctors .doctors-slider {
        padding: 0 40px var(--sp-md);
    }

    .section--doctors .swiper-slide.doctor-card {
        width: 160px;
    }

    .section--doctors .doctor-card__photo {
        width: 110px;
        height: 110px;
    }
}


/* ═══════════════════════════════════════════════════════════
   FEATURES CTA BLOCK — flex-features-cta
   ═══════════════════════════════════════════════════════════ */

.section--features-cta {
    position: relative;
    padding: var(--sp-3xl) 0;
    overflow: hidden;
    color: #fff;
}

/* Фон: цвет */
.features-cta--bg-color {
    background-color: var(--fcta-bg-color, var(--brand-color));
}

/* Фон: изображение */
.features-cta--bg-image {
    background: var(--fcta-bg, var(--brand-color)) center/cover no-repeat;
}

/* Затемняющий слой поверх изображения */
.features-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--fcta-overlay, 0.55));
    pointer-events: none;
}

.features-cta--bg-color .features-cta__overlay {
    display: none;
}

/* Контент поверх оверлея */
.features-cta__inner {
    position: relative;
    z-index: 1;
}

/* Заголовок */
.features-cta__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-xl);
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em;
}

.features-cta__title-text {
    color: #fff;
}

/* Цена — красным */
.features-cta__price {
    color: var(--accent-red);
    white-space: nowrap;
}

/* Список — 2 колонки */
.features-cta__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-2xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-sm) var(--sp-xl);
}

.features-cta__item {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-base);
    color: #fff;
    line-height: 1.4;
}

.features-cta__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-red);
}

/* Кнопка — по всей ширине (как на DLE) */
.features-cta__action {
    text-align: center;
}

.features-cta__btn {
    min-width: 280px;
    font-size: var(--fs-xl);
    padding: var(--sp-lg) var(--sp-3xl);
}

/* Десктоп: 2-колоночный список */
@media (min-width: 600px) {
    .features-cta__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .features-cta__title {
        font-size: var(--fs-4xl);
    }

    .features-cta__btn {
        min-width: 360px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PHONE CONSULT — flex-phone-consult
   ═══════════════════════════════════════════════════════════ */

.section--phone-consult {
    padding: var(--sp-xl) 0;
}

.phone-consult {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.phone-consult__info {
    flex: 1 1 360px;
}

.phone-consult__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.phone-consult__subtitle {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, .8);
    margin: 0;
    line-height: 1.5;
}

.phone-consult__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
}

.phone-consult__phone {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
    line-height: 1;
}

.phone-consult__phone:hover {
    color: rgba(255, 255, 255, .85);
}

.phone-consult__btn {
    min-width: 200px;
}

@media (max-width: 767px) {
    .phone-consult {
        flex-direction: column;
        gap: 24px;
    }

    .phone-consult__title {
        font-size: var(--fs-xl);
    }

    .phone-consult__phone {
        font-size: var(--fs-xl);
    }

    .phone-consult__btn {
        width: 100%;
    }
}


/* ═══════════════════════════════════════════════════════════
   PROMO BANNER — flex-promo-banner
   Градиент слева → прозрачный → фото справа
   ═══════════════════════════════════════════════════════════ */

.section--promo-banner {
    position: relative;
    padding: var(--sp-2xl) 0;
    overflow: hidden;
}

/* С фоновым изображением */
.promo-banner--has-image {
    background:
        linear-gradient(to right,
            var(--pbanner-color, #1F3A5F) 35%,
            color-mix(in srgb, var(--pbanner-color, #1F3A5F) 60%, transparent) 60%,
            transparent 80%),
        var(--pbanner-bg) center right / cover no-repeat;
}

.promo-banner__inner {
    position: relative;
    padding: var(--sp-2xl);
    z-index: 1;
}

/* Контент — левая часть */
.promo-banner__content {
    max-width: 520px;
}

/* Заголовок */
.promo-banner__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-sm);
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em;
}

.promo-banner__title-text {
    color: #fff;
}

.promo-banner__price {
    color: var(--accent-red);
}

/* Подзаголовок */
.promo-banner__subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--sp-xl);
    line-height: 1.4;
}

/* Кнопка */
.promo-banner__btn {
    min-width: 180px;
}

/* Десктоп */
@media (min-width: 768px) {
    .section--promo-banner {
        padding: var(--sp-3xl) 0;
    }

    .promo-banner__title {
        font-size: var(--fs-3xl);
    }

    /* Градиент занимает больше места */
    .promo-banner--has-image {
        background:
            linear-gradient(to right,
                var(--pbanner-color, #1F3A5F) 40%,
                color-mix(in srgb, var(--pbanner-color, #1F3A5F) 50%, transparent) 65%,
                transparent 85%),
            var(--pbanner-bg) center right / cover no-repeat;
    }
}

/* color-mix() fallback для старых браузеров */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .promo-banner--has-image {
        background:
            linear-gradient(to right, var(--pbanner-color, #1F3A5F) 40%, transparent 80%),
            var(--pbanner-bg) center right / cover no-repeat;
    }
}

/* Кнопка + подпись в ряд */
.promo-banner__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.promo-banner__signature {
    width: 110px;
    height: 64px;
    flex-shrink: 0;
    opacity: .6;
}

@media (max-width: 767px) {
    .promo-banner__signature {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════════
   LICENSE BLOCK — flex-license-block
   ═══════════════════════════════════════════════════════════ */

.section--license-block {
    padding: var(--sp-2xl) 0;
    overflow: hidden;
}

.license-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    align-items: center;
    background: var(--lic-bg, #EEF1F8);
    padding: var(--sp-xl) 0 var(--sp-xl) var(--sp-xl);
}

/* Заголовок — uppercase, тёмно-синий, жирный */
.license-block__title {
    font-size: var(--fs-2xl);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--brand-color);
    line-height: 1.2;
    margin-bottom: var(--sp-lg);
    letter-spacing: 0.02em;
}

.license-block__text {
    font-size: var(--fs-base);
    color: var(--dark-color);
    line-height: var(--lh);
}

.license-block__text p {
    margin-bottom: var(--sp-sm);
}

.license-block__text p:last-child {
    margin-bottom: 0;
}

/* Изображение с цветным кругом */
.license-block__image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

/* Круг-акцент */
.license-block__circle {
    position: absolute;
    background: var(--lic-accent, #DC3646);
    width: 360px;
    height: 360px;
    border-radius: 100%;
    top: 70%;
    left: 95%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* Фото поверх круга */
.license-block__img {
    top: 57px;
    left: 100px;
    width: 98px;
    height: 150px;
    position: absolute;
    z-index: 1;
    max-width: 160px;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--r-sm);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    margin-right: 10px;
}

/* Десктоп — 2 колонки: контент + изображение */
@media (min-width: 768px) {
    .license-block__grid {
        grid-template-columns: 1fr auto;
        gap: var(--sp-2xl);
        padding: var(--sp-xl) 0 var(--sp-xl) var(--sp-xl);
    }

    .license-block__title {
        font-size: var(--fs-3xl);
    }

    .license-block__image-wrap {
        min-width: 220px;
        min-height: 200px;
    }

    .license-block__img {
        max-width: 190px;
        max-height: 240px;
    }
}


/* ═══════════════════════════════════════════════════════════
   FLEX PHONE CTA — flex-phone-cta
   ═══════════════════════════════════════════════════════════ */

.section--flex-phone-cta {
    background: var(--phcta-bg, #EEF1F8);
    padding: var(--sp-2xl) 0;
}

.flex-phone-cta {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.flex-phone-cta__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--brand-color);
    margin: 0 0 var(--sp-sm);
    line-height: 1.3;
}

.flex-phone-cta__main {
    text-align: center;
}

.flex-phone-cta__phone {
    display: inline-block;
    font-size: var(--fs-4xl);
    font-weight: 900;
    text-align: center;
    color: var(--accent-red);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: opacity var(--transition);
}

.flex-phone-cta__phone:hover {
    opacity: 0.8;
}

.flex-phone-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.flex-phone-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-md) var(--sp-xl);
    background: #1E2A4A;
    border-radius: var(--r-full);
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.flex-phone-cta__btn:hover {
    background: #2a3a66;
    transform: translateY(-1px);
    color: #fff;
}

.flex-phone-cta__btn svg {
    flex-shrink: 0;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .flex-phone-cta {
        align-items: center;
        gap: var(--sp-xl);
    }

    .flex-phone-cta__main {
        flex: 1 1;
    }

    .flex-phone-cta__title {
        font-size: var(--fs-2xl);
    }

    .flex-phone-cta__phone {
        font-size: 38px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PRICE TABLE — расширенные стили (группы + промо-метки)
   ═══════════════════════════════════════════════════════════ */

.price-table__subtitle {
    color: var(--middle-color);
    font-size: var(--fs-base);
    margin-bottom: var(--sp-xl);
    margin-top: calc(-1 * var(--sp-md));
}

/* Заголовок группы — синяя полоса на всю ширину */
.price-table__group-header {
    background: #5BAEC8;
    color: #fff;
    font-weight: 600;
    font-size: var(--fs-base);
    padding: var(--sp-sm) var(--sp-lg);
    letter-spacing: 0.01em;
}

/* Промо-метка рядом с названием */
.price-table__promo {
    font-weight: 700;
    font-size: var(--fs-sm);
    margin-left: 4px;
}

/* Строка с голубым фоном */
.price-table__row--highlight {
    background: #E8F4F8;
}

/* Строка без цены — скрываем колонку цены */
.price-table__row--no-price .price-table__col--price {
    visibility: hidden;
}

/* Ссылка «Заказать» — текстовая, не кнопка */
.price-table__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 24px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--brand-color);
    border: 2px solid var(--brand-color, #2E2751);
    border-radius: 6px;
    transition: all var(--transition) ease;
    text-decoration: none;
    white-space: nowrap;
}

.price-table__link:hover {
    background: var(--brand-color, #2E2751);
    color: #fff;
    text-decoration: underline;
}

/* Цена как текст (теперь text, не number) */
.price-table__col--price {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--brand-white);
    white-space: nowrap;
}

/* Шапка таблицы — uppercase */
.price-table__header {
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.05em;
    color: var(--color-white);
}

/* Первая строка без красной рамки (теперь роль выполняет group-header) */
.price-table__row:first-of-type {
    border-left: none;
}