#primary {
    --article-blue: #0876e8;
    --article-blue-dark: #0668cb;
    --article-blue-soft: #edf5fd;
    --article-text: #20262c;
    --article-muted: #6b747c;
    --article-line: #dfe4e8;
    --article-grid-line: rgba(130, 143, 154, 0.26);
    --article-surface: #f3f5f6;
    --article-surface-light: #fafbfc;
    --article-warning: #fff7f2;
    --article-warning-line: #eabfa9;
}

.blog-single__article .wp-content-area {
    width: 100%;
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

/*
 * Основная тема скрывает переполнение у .blog-single и .wp-content-area.
 * Для широких фоновых секций статьи переполнение должно быть видимым,
 * иначе браузер обрезает заголовки, плитки и таблицы по ширине 900 px.
 */
.blog-single {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.blog-single__article,
.blog-single__article .wp-content-area,
.blog-single__content {
    overflow: visible !important;
}

.blog-single__header {
    max-width: 900px;
    margin: 68px auto 0;
}

.blog-single__header ._h1 {
    max-width: 900px;
    margin: 0;
    color: #111;
    font-size: clamp(36px, 4.2vw, 54px);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 34px;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.5;
}

.article-meta__author {
    color: #4b535a;
}

.article-meta__separator {
    color: #acb4bb;
}

.article-meta__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta__reading-time::before {
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: '';
}

/* Первый информационный экран: TL;DR + обложка */
.article-opening {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 48px;
    padding: 0;
    background: transparent;
}

.article-opening__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--article-line);
}

.article-opening--with-image .article-opening__inner {
    grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
}

.article-summary {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    padding: 30px 36px;
    background: #fff;
}

.article-summary__title {
    margin: 0 0 14px;
    color: #15191d;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
}

.article-summary__text {
    color: var(--article-text);
    font-size: 15px;
    line-height: 1.52;
}

.article-summary__text > :first-child {
    margin-top: 0;
}

.article-summary__text > :last-child {
    margin-bottom: 0;
}

.article-summary__text ul,
.article-summary__text ol {
    display: grid;
    gap: 7px;
    margin: 8px 0 0;
    padding-left: 22px;
}

.article-summary__text li {
    margin: 0;
    padding-left: 2px;
}

.article-summary__text li + li {
    margin-top: 0;
}

.article-summary__text li::marker {
    color: var(--article-blue);
}

.article-featured-image {
    position: relative;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: #e9eef2;
}

.article-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
}

/* Содержание статьи */
.article-toc {
    margin: 0 0 48px;
    padding: 24px;
    background: var(--article-surface);
}

.article-toc__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: stretch;
    background: #fff;
}

.article-toc__content {
    min-width: 0;
    padding: 32px 36px 30px;
}

.article-toc__title {
    margin: 0 0 20px;
    color: #15191d;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.article-toc__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin: 0;
    padding: 0;
    counter-reset: article-toc;
    list-style: none;
}

.article-toc.is-expanded .article-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 30px;
}

.article-toc__item {
    position: relative;
    min-width: 0;
    margin: 0;
    padding-left: 34px;
    counter-increment: article-toc;
    list-style: none;
}

.article-toc__item::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    color: var(--article-blue);
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
    content: counter(article-toc) '.';
}

.article-toc:not(.is-expanded) .article-toc__item--collapsed {
    display: none;
}

.article-toc__list a {
    color: #2b3238;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-toc__list a:hover,
.article-toc__list a:focus,
.article-toc__list a.is-active {
    color: var(--article-blue);
    text-decoration: none;
}

.article-toc__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 22px;
    padding: 10px 0;
    color: var(--article-blue);
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    font: inherit;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

.article-toc__button:focus-visible {
    outline: 2px solid var(--article-blue);
    outline-offset: 4px;
}

.article-toc__button-icon {
    position: relative;
    width: 18px;
    height: 18px;
}

.article-toc__button-icon::before,
.article-toc__button-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    content: '';
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.article-toc__button-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.article-toc.is-expanded .article-toc__button-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.article-toc__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: var(--article-blue);
    background: var(--article-blue-soft);
}

.article-toc__visual svg {
    width: 132px;
    height: 132px;
}

/* Основной текст */
.blog-single__content {
    color: var(--article-text);
    font-size: 17px;
    line-height: 1.76;
}

.blog-single__content a:not(._button) {
    color: var(--article-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-single__content p,
.blog-single__content ul,
.blog-single__content ol {
    margin-top: 0;
    margin-bottom: 20px;
}

.blog-single__content li + li {
    margin-top: 9px;
}

.blog-single__content ul:not([class]),
.blog-single__content ol:not([class]) {
    padding-left: 34px;
}

.blog-single__content ul:not([class]) li::marker,
.blog-single__content ol:not([class]) li::marker {
    color: var(--article-blue);
}

.article-intro {
    max-width: 800px;
    margin: 0 auto 48px;
}

.article-intro__lead {
    color: #171b1f;
    font-size: 19px;
    line-height: 1.72;
}

.article-content-section {
    position: relative;
    margin-top: 52px;
    padding-top: 6px;
}

.article-content-section + .article-content-section {
    padding-top: 48px;
    border-top: 1px solid var(--article-line);
}

.article-content-section--surface {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 56px max(20px, calc((100vw - 1170px) / 2)) 50px;
    overflow: visible;
    background: #F7F9FA;
    border-top: 0 !important;
    box-sizing: border-box;
}

.article-content-section--surface + .article-content-section {
    border-top: 0;
}

.blog-single__content h2 {
    position: relative;
    max-width: 830px;
    scroll-margin-top: 110px;
    margin: 0 0 22px;
    padding-top: 4px;
    color: #13171a;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.blog-single__content h2::before {
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--article-blue);
    content: '';
}

.blog-single__content h3 {
    max-width: 800px;
    margin: 38px auto 16px;
    padding-left: 14px;
    color: #171c20;
    border-left: 3px solid var(--article-blue);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
}

.blog-single__content h4 {
    max-width: 800px;
    margin: 28px auto 12px;
    color: #273038;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

/*
 * Заголовки основных разделов статьи выровнены по центру,
 * как на страницах услуг Epion. Внутренние заголовки карточек,
 * TL;DR, содержания, FAQ и коммерческих блоков не затрагиваются.
 */
.blog-single__content .article-content-section > h2 {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.blog-single__content .article-content-section > h3,
.blog-single__content .article-content-section > h4 {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

.blog-single__content .article-content-section > h2::before {
    margin-right: auto;
    margin-left: 0;
}

.article-content-section > p,
.article-content-section > ul,
.article-content-section > ol,
.article-content-section > h3,
.article-content-section > h4,
.article-content-section > blockquote,
.article-intro > p,
.article-intro > ul,
.article-intro > ol {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

/* Цитата эксперта */
.blog-single__content blockquote {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    padding: 30px 34px 28px 78px;
    color: #26313a;
    background: #fff;
    border: 1px solid var(--article-line);
}

.blog-single__content blockquote::before {
    position: absolute;
    top: 22px;
    left: 28px;
    color: rgba(8, 118, 232, 0.28);
    font-size: 58px;
    font-weight: 400;
    line-height: 1;
    content: '“';
}

.blog-single__content blockquote cite {
    display: block;
    margin-top: 14px;
    color: var(--article-muted);
    font-size: 14px;
    font-style: normal;
}

.article-expert-quote--managed {
    max-width: 800px;
    margin: 42px auto;
    padding: 24px;
    color: var(--article-text);
    background: var(--article-surface);
    border: 0;
}

.article-expert-quote--managed::before {
    display: none;
    content: none;
}

.article-expert-quote__text {
    position: relative;
    padding: 30px 34px 28px 64px;
    background: #fff;
    border-left: 3px solid var(--article-blue);
    font-size: 18px;
    line-height: 1.7;
}

.article-expert-quote__text::before {
    position: absolute;
    top: 22px;
    left: 22px;
    color: rgba(8, 118, 232, 0.28);
    font-size: 52px;
    line-height: 1;
    content: '“';
}

.article-expert-quote__text > :first-child {
    margin-top: 0;
}

.article-expert-quote__text > :last-child {
    margin-bottom: 0;
}

.article-expert-quote__person {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--article-blue-soft);
    border-top: 1px solid #d7e5f1;
}

.article-expert-quote__photo {
    flex: 0 0 70px;
    width: 70px;
    height: 82px;
    overflow: hidden;
    background: #fff;
}

.article-expert-quote__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.article-expert-quote__person-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.article-expert-quote__label {
    margin-bottom: 4px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.4;
}

.article-expert-quote__name {
    color: var(--article-blue) !important;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
}

.article-expert-quote__name:hover,
.article-expert-quote__name:focus {
    text-decoration: underline !important;
}

.article-expert-quote__position {
    margin-top: 3px;
    color: #3e474f;
    font-size: 14px;
    line-height: 1.45;
}

/* Плитки причин: визуальная логика существующих плиток Epion без конфликтов legacy-классов */
.article-reason-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1170px !important;
    margin: 32px auto 8px !important;
    padding: 0 !important;
    counter-reset: article-reason;
    list-style: none !important;
}

.article-reason-list > li {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 260px;
    margin: 0 !important;
    padding: 32px 30px 72px;
    overflow: hidden;
    background: #fff;
    border: 0;
    box-shadow: 1px 1px 6px -2px #ccc;
    counter-increment: article-reason;
    list-style: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-reason-list > li:hover,
.article-reason-list > li:focus-within {
    z-index: 2;
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(31, 51, 69, 0.12);
}

.article-reason-list > li::before {
    position: absolute;
    right: 20px;
    bottom: 14px;
    color: rgba(118, 128, 137, 0.24);
    font-family: "Apercu Pro";
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    content: counter(article-reason);
}

.article-reason-list strong {
    display: block;
    margin-bottom: 14px;
    color: var(--article-blue);
    font-family: "Apercu Pro";
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

/* Этапы операции: сетка с острыми углами вместо кругов */
.article-step-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 800px !important;
    margin-top: 26px !important;
    padding: 0 !important;
    border-top: 1px solid var(--article-grid-line);
    border-left: 1px solid var(--article-grid-line);
    counter-reset: article-step;
    list-style: none !important;
}

.article-step-list > li {
    position: relative;
    min-height: 132px;
    margin: 0 !important;
    padding: 28px 72px 28px 28px;
    overflow: hidden;
    color: #171c20;
    background: rgba(255, 255, 255, 0.76);
    border-right: 1px solid var(--article-grid-line);
    border-bottom: 1px solid var(--article-grid-line);
    counter-increment: article-step;
    list-style: none !important;
}

.article-step-list > li::before {
    position: absolute;
    right: 18px;
    bottom: 10px;
    color: rgba(116, 127, 137, 0.2);
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    content: counter(article-step);
}

/* Информационные списки */
.article-grid-list,
.article-list,
.article-cost-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    max-width: 800px !important;
    margin-top: 22px !important;
    padding: 22px 30px 22px 38px !important;
    list-style: none !important;
}

.article-grid-list {
    background: #fff;
    border: 1px solid var(--article-line);
}

.article-grid-list > li,
.article-list > li,
.article-cost-list > li {
    position: relative;
    margin: 0 !important;
    padding-left: 28px !important;
    list-style: none !important;
}

.article-grid-list > li::before,
.article-list--check > li::before,
.article-list--neutral > li::before,
.article-cost-list > li::before {
    position: absolute;
    top: 0.72em;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--article-blue);
    content: '';
    transform: translateY(-50%);
}

.article-list--check {
    background: #f0f6fc;
    border-left: 3px solid var(--article-blue);
}

.article-list--neutral {
    background: #f4f5f6;
    border-left: 3px solid #9ba7b1;
}

.article-list--neutral > li::before {
    background: #7c8790;
}

.article-list--alert {
    background: var(--article-warning);
    border-left: 3px solid var(--article-warning-line);
}

.article-list--alert > li::before {
    position: absolute;
    top: 0.69em;
    left: 3px;
    width: 12px;
    height: 2px;
    background: #c66c45;
    content: '';
}

.article-cost-list {
    background: #fff;
    border: 1px solid var(--article-line);
}

/* Резервный вид списка цен, если строку нельзя безопасно преобразовать в таблицу */
.article-price-list {
    max-width: 800px !important;
    margin: 26px auto !important;
    padding: 0 !important;
    background: #fff;
    border-top: 1px solid var(--article-grid-line);
    border-left: 1px solid var(--article-grid-line);
    list-style: none !important;
}

.article-price-list > li {
    margin: 0 !important;
    padding: 20px 24px;
    border-right: 1px solid var(--article-grid-line);
    border-bottom: 1px solid var(--article-grid-line);
    list-style: none !important;
}

/* Таблицы */
.article-table-hint {
    display: none;
    max-width: 800px;
    margin: 0 auto 8px;
    color: var(--article-muted);
    font-size: 13px;
}

.article-table-scroll,
.blog-single__content .wp-block-table,
.article-price-table {
    width: 100%;
    max-width: 100%;
    margin: 28px 0 36px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--article-line);
    -webkit-overflow-scrolling: touch;
}

.article-table-scroll:focus-visible,
.blog-single__content .wp-block-table:focus-visible,
.article-price-table:focus-visible {
    outline: 2px solid var(--article-blue);
    outline-offset: 3px;
}

/*
 * Глобальный style.css задаёт таблицам margin: 20px 0. Внутри
 * обёртки это выглядит как пустая белая строка над синей шапкой.
 */
.wp-content-area .article-table-scroll > table,
.blog-single__content .article-table-scroll > table,
.wp-content-area .wp-block-table > table,
.blog-single__content .wp-block-table > table {
    margin: 0 !important;
}

.blog-single__content table {
    width: 100%;
    min-width: 760px;
    height: auto !important;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
}

.blog-single__content tr,
.blog-single__content th,
.blog-single__content td {
    height: auto !important;
    min-height: 0 !important;
}

.blog-single__content th,
.blog-single__content td {
    padding: 16px 18px;
    border-right: 1px solid var(--article-line);
    border-bottom: 1px solid var(--article-line);
    vertical-align: top !important;
    line-height: 1.55;
    text-align: left;
}

.blog-single__content tr:last-child th,
.blog-single__content tr:last-child td {
    border-bottom: 0;
}

.blog-single__content th:last-child,
.blog-single__content td:last-child {
    border-right: 0;
}

.blog-single__content th {
    color: #fff;
    background: var(--article-blue);
    font-weight: 500;
    line-height: 1.4;
}

.blog-single__content tbody tr:nth-child(even) td {
    background: #fafbfd;
}

.blog-single__content td:first-child {
    color: #171c20;
    font-weight: 500;
}

.article-content-section--methods table {
    min-width: 0;
    table-layout: fixed;
}

.article-content-section--methods th:nth-child(1),
.article-content-section--methods td:nth-child(1) {
    width: 18%;
}

.article-content-section--methods th:nth-child(2),
.article-content-section--methods td:nth-child(2) {
    width: 29%;
}

.article-content-section--methods th:nth-child(3),
.article-content-section--methods td:nth-child(3) {
    width: 24%;
}

.article-content-section--methods th:nth-child(4),
.article-content-section--methods td:nth-child(4) {
    width: 29%;
}

.article-content-section--methods th,
.article-content-section--methods td {
    padding: 15px 17px !important;
    white-space: normal !important;
}

/* Цена в стиле существующих таблиц Epion */
.article-price-table {
    display: block;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--article-grid-line);
    border-color: var(--article-grid-line);
}

.wp-content-area .article-price-table > table,
.blog-single__content .article-price-table > table {
    display: table;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
    table-layout: fixed;
}

.article-price-table th,
.article-price-table td {
    padding: 18px 22px !important;
    color: #171c20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--article-grid-line) !important;
}

.article-price-table th {
    width: 72%;
    font-weight: 600;
}

.article-price-table td {
    width: 28%;
    font-weight: 600;
    text-align: right;
}

/* Основная услуга внутри статьи */
.article-primary-service {
    margin: 54px 0;
    padding: 28px;
    overflow: visible;
    background: var(--article-blue-soft);
    border: 0 !important;
    box-shadow: none !important;
}

.article-primary-service__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 26px;
    align-items: center;
}

.article-primary-service__content {
    min-width: 0;
    padding: 10px 8px 10px 4px;
}

.article-primary-service__label {
    margin-bottom: 12px;
    color: var(--article-blue);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-primary-service__title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #12171b;
    font-size: 31px !important;
    font-weight: 400;
    line-height: 1.2 !important;
}

.article-primary-service__title::before {
    display: none !important;
}

.article-primary-service__text {
    max-width: 650px;
    margin: 0 0 24px;
    color: #343c43;
    line-height: 1.65;
}

.article-primary-service__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-primary-service__actions ._button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 205px;
    min-height: 54px;
    padding: 13px 22px;
    color: #fff !important;
    background: var(--article-blue);
    border: 1px solid var(--article-blue);
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.article-primary-service__actions ._button:hover,
.article-primary-service__actions ._button:focus {
    color: #fff !important;
    background: var(--article-blue-dark);
    border-color: var(--article-blue-dark);
    text-decoration: none !important;
}

.article-primary-service__actions ._button--secondary {
    color: var(--article-blue) !important;
    background: #fff;
    border-color: var(--article-blue);
}

.article-primary-service__actions ._button--secondary:hover,
.article-primary-service__actions ._button--secondary:focus {
    color: #fff !important;
    background: var(--article-blue);
}

.article-primary-service__doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 22px 20px;
    text-align: center;
    background: #fff;
    border: 0 !important;
    box-shadow: 0 8px 22px rgba(41, 61, 79, 0.08);
}

.article-primary-service__doctor-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    min-height: 120px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #f3f5f6;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
}

.article-primary-service__doctor-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 132px;
    object-fit: contain;
    object-position: center;
}

.article-primary-service__doctor-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.article-primary-service__doctor-label {
    display: block;
    margin-bottom: 7px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.4;
}

.article-primary-service__doctor-name {
    color: var(--article-blue) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none !important;
}

.article-primary-service__doctor-name:hover,
.article-primary-service__doctor-name:focus {
    text-decoration: underline !important;
}

.article-primary-service__doctor-position {
    display: block;
    margin-top: 5px;
    color: #46515a;
    font-size: 13px;
    line-height: 1.45;
}

/* Контекст консультации */
.article-consultation-context {
    position: relative;
    margin: 46px 0;
    padding: 30px 34px;
    background: var(--article-surface);
    border-left: 3px solid var(--article-blue);
}

.article-consultation-context__title {
    margin: 0 0 12px;
    color: #15191d;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.article-consultation-context__text {
    color: var(--article-text);
    font-size: 16px;
    line-height: 1.7;
}

.article-consultation-context__text > :first-child {
    margin-top: 0;
}

.article-consultation-context__text > :last-child {
    margin-bottom: 0;
}

.article-consultation-context__text ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.article-consultation-context__text li {
    position: relative;
    margin: 0;
    padding-left: 24px;
}

.article-consultation-context__text li::before {
    position: absolute;
    top: 0.7em;
    left: 2px;
    width: 7px;
    height: 7px;
    background: var(--article-blue);
    content: '';
    transform: translateY(-50%);
}

/* FAQ: используется существующий компонент Epion из style.css */
.article-faq.row {
    width: 100vw;
    margin: 64px calc(50% - 50vw) 0;
    padding: 52px max(20px, calc((100vw - 1170px) / 2)) 54px;
    background: #F7F9FA !important;
    box-sizing: border-box;
}

.article-faq__inner {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

.article-faq__title,
.article-faq__title._h1 {
    margin: 0 0 30px;
    color: #15191d;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.article-faq__list.faq-container {
    max-width: 840px;
    margin-right: auto;
    margin-left: auto;
    background: #fff;
}

.article-faq__item.faq-block {
    margin: 0;
}

.article-faq__question.faq-title {
    display: block;
    width: 100%;
    margin: 0;
    color: #171b1f;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    font-family: "Apercu Pro";
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    appearance: none;
}

.article-faq__question.faq-title:focus-visible {
    outline: 2px solid var(--article-blue);
    outline-offset: -4px;
}

.article-faq__answer.faq-text[hidden] {
    display: none !important;
}

.article-faq__item.faq-block.active .article-faq__answer.faq-text:not([hidden]) {
    display: block;
}

.article-faq__answer > div > :first-child {
    margin-top: 0;
}

.article-faq__answer > div > :last-child {
    margin-bottom: 0;
}

/* Автор и рецензент */
.blog-single-author-container {
    margin-top: 0;
    padding: 48px 0 38px;
    background: #fff;
}

.blog-single-author-container .wrapper {
    max-width: 960px;
}

.blog-single-author-full {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-single-author {
    display: flex;
    align-items: center;
    min-height: 150px;
    padding: 24px;
    background: var(--article-surface);
    border: 1px solid #e6eaed;
}

.blog-single-author--link,
.blog-single-author--link:link,
.blog-single-author--link:visited {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.blog-single-author--link:hover,
.blog-single-author--link:focus {
    color: inherit !important;
    text-decoration: none !important;
    border-color: #cbd8e4;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 51, 69, 0.08);
}

.blog-single-author--link:focus-visible {
    outline: 2px solid var(--article-blue);
    outline-offset: 3px;
}

.blog-single-author--link:hover .blog-single-author-content .name,
.blog-single-author--link:focus .blog-single-author-content .name {
    color: var(--article-blue);
}

.blog-single-author-img {
    flex: 0 0 92px;
    width: 92px;
    height: 108px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 0;
}

.blog-single-author-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0 !important;
}

.blog-single-author-content .title {
    margin-bottom: 5px;
    color: var(--article-muted);
    font-size: 13px;
}

.blog-single-author-content .name {
    margin-bottom: 5px;
    color: #111;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.blog-single-author-content .position {
    color: #3f474e;
    line-height: 1.45;
}

.blog-single-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
    color: var(--article-muted);
    font-size: 14px;
}

/* Форма */
.article-lead-form {
    margin: 0;
    padding: 58px 0;
    background: var(--article-surface);
}

.article-lead-form .wrapper {
    max-width: 1120px;
}

.article-lead-form .call-to-us {
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 12px 36px rgba(31, 51, 69, 0.08);
}

.article-lead-form .call-to-us__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: 54px;
    align-items: center;
    padding: 48px 52px;
}

.article-lead-form .call-to-us__left,
.article-lead-form .call-to-us__right,
.article-lead-form .wpcf7,
.article-lead-form .wpcf7-form,
.article-lead-form .call-to-us__form,
.article-lead-form .call-to-us_input,
.article-lead-form .call-to-us__submit {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.article-lead-form .call-to-us__title {
    max-width: 560px;
    margin: 0 0 18px;
    color: #111;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: -0.02em;
}

.article-lead-form .call-to-us__text {
    max-width: 570px;
    color: #3c444b;
    font-size: 16px;
    line-height: 1.6;
}

.article-lead-form .call-to-us__form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(176px, 0.78fr);
    gap: 16px;
    align-items: end;
}

.article-lead-form .call-to-us_input,
.article-lead-form .call-to-us__submit {
    margin: 0 !important;
}

.article-lead-form .call-to-us_input .wpcf7-form-control-wrap,
.article-lead-form .call-to-us_input input {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.article-lead-form .call-to-us__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 56px;
    margin: 0 !important;
    box-sizing: border-box;
    white-space: normal;
}

/* Связанные услуги и статьи */
.blog-single__related {
    max-width: 1120px;
    padding-top: 50px;
    padding-bottom: 64px;
}

.blog-single__related .additional-services-links,
.blog-single__related .additional-blog-links {
    margin-top: 0;
    margin-bottom: 58px;
}

.blog-single__related .additional-services-links ._h1,
.blog-single__related .additional-blog-links ._h1 {
    margin-bottom: 34px;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 400;
}

.blog-single__related .additional-services-links .d-flex {
    align-items: stretch;
    justify-content: center;
    gap: 18px;
}

.blog-single__related .additional-services-links-block {
    position: relative;
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    max-width: 410px;
    min-height: 270px;
    padding: 30px 30px 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ec;
    border-top: 3px solid var(--article-blue);
    box-shadow: 0 10px 28px rgba(31, 51, 69, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-single__related .additional-services-links-block:hover {
    border-color: #cbd8e4;
    border-top-color: var(--article-blue-dark);
    box-shadow: 0 14px 34px rgba(31, 51, 69, 0.11);
    transform: translateY(-3px);
}

.blog-single__related .additional-services-links-text {
    flex: 1 1 auto;
}

.blog-single__related .additional-services-links-text ._h3 {
    margin: 0 0 14px;
    color: var(--article-blue) !important;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.3;
}

.blog-single__related .additional-services-links-text ._text {
    color: #46515a;
    font-size: 15px;
    line-height: 1.65;
}

.blog-single__related .additional-services-links-block > a,
.blog-single__related .additional-services-links-block > a:link,
.blog-single__related .additional-services-links-block > a:visited,
.blog-single__related .additional-services-links-block:hover > a,
.blog-single__related .additional-services-links-block:focus-within > a {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 56px;
    margin: 24px 0 0 !important;
    padding: 14px 24px !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--article-blue) !important;
    background-image: none !important;
    border: 1px solid var(--article-blue) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    filter: none !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none !important;
    transform: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-single__related .additional-services-links-block > a::before,
.blog-single__related .additional-services-links-block > a::after {
    display: none !important;
    content: none !important;
}

.blog-single__related .additional-services-links-block > a:hover,
.blog-single__related .additional-services-links-block > a:focus,
.blog-single__related .additional-services-links-block > a:focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--article-blue-dark) !important;
    border-color: var(--article-blue-dark) !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.blog-single__related .additional-services-links-block > a:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.blog-single__related .articles-stom-clinic-block_section {
    min-height: 270px;
    overflow: hidden;
}

/* Устаревшая мобильная копия таблицы больше не используется. */
.article-mobile-comparison {
    display: none !important;
}

@media (min-width: 1200px) {
    .article-opening {
        width: min(1120px, calc(100vw - 48px));
        max-width: 1120px;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1100px) {
    .article-opening--with-image .article-opening__inner {
        grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    }

    .article-lead-form .call-to-us__wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
        gap: 34px;
        padding: 42px;
    }

    .article-lead-form .call-to-us__form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .article-opening--with-image .article-opening__inner {
        grid-template-columns: 1fr;
    }

    .article-featured-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .article-reason-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-toc__card {
        grid-template-columns: minmax(0, 1fr) 170px;
    }

    .article-toc__visual svg {
        width: 112px;
        height: 112px;
    }
}

@media (max-width: 767px) {
    .blog-single__article .wp-content-area,
    .blog-single-author-container .wrapper {
        max-width: 100%;
    }

    .blog-single__header {
        margin-top: 42px;
    }

    .blog-single__header ._h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .article-meta {
        gap: 6px;
        margin-bottom: 24px;
        font-size: 13px;
    }

    .article-opening,
    .article-toc {
        width: auto;
        max-width: none;
        margin-right: -16px;
        margin-left: -16px;
        padding: 16px;
        transform: none;
    }

    .article-summary {
        padding: 24px 22px;
    }

    .article-summary__title {
        margin-bottom: 12px;
        font-size: 21px;
    }

    .article-summary__text {
        font-size: 15px;
        line-height: 1.5;
    }

    .article-summary__text ul,
    .article-summary__text ol {
        gap: 7px;
        padding-left: 21px;
    }

    .article-featured-image {
        order: -1;
    }

    .article-featured-image img {
        aspect-ratio: 16 / 10;
    }

    .article-toc__card {
        grid-template-columns: 1fr;
    }

    .article-toc__content {
        padding: 25px 22px 24px;
    }

    .article-toc__title {
        font-size: 22px;
    }

    .article-toc.is-expanded .article-toc__list {
        grid-template-columns: 1fr;
    }

    .article-toc__visual {
        display: none;
    }

    .blog-single__content {
        font-size: 16px;
        line-height: 1.72;
    }

    .blog-single__content ul:not([class]),
    .blog-single__content ol:not([class]) {
        padding-left: 28px;
    }

    .article-intro {
        margin-bottom: 38px;
    }

    .article-intro__lead {
        font-size: 18px;
    }

    .article-content-section,
    .article-content-section + .article-content-section {
        margin-top: 40px;
        padding-top: 36px;
    }

    .article-content-section:first-of-type {
        padding-top: 0;
    }

    .article-content-section--surface {
        margin-right: -16px;
        margin-left: -16px;
        padding: 36px 16px 32px;
    }

    .blog-single__content h2 {
        scroll-margin-top: 80px;
        font-size: 28px;
    }

    .blog-single__content h3 {
        margin-top: 30px;
        padding-left: 12px;
        font-size: 21px;
    }

    .blog-single__content h4 {
        margin-top: 24px;
        font-size: 18px;
    }

    .blog-single__content blockquote {
        padding: 26px 22px 24px 58px;
    }

    .blog-single__content blockquote::before {
        left: 18px;
    }

    .article-expert-quote--managed {
        margin-right: -16px;
        margin-left: -16px;
        padding: 16px;
    }

    .article-expert-quote__text {
        padding: 26px 20px 24px 54px;
        font-size: 17px;
    }

    .article-expert-quote__text::before {
        left: 18px;
    }

    .article-reason-list,
    .article-step-list,
    .article-grid-list,
    .article-list,
    .article-cost-list {
        grid-template-columns: 1fr;
    }

    .article-reason-list > li {
        min-height: 180px;
    }

    .article-step-list > li {
        min-height: 112px;
    }

    .article-grid-list,
    .article-list,
    .article-cost-list {
        padding: 20px 20px 20px 30px !important;
    }

    .article-table-hint {
        display: block;
    }

    .article-table-scroll,
    .blog-single__content .wp-block-table {
        margin-right: -2px;
        margin-left: -2px;
    }

    .article-content-section--methods .article-table-hint {
        display: block !important;
    }

    /*
     * Широкие сравнительные таблицы на мобильном не сжимаем до ширины
     * экрана. Обёртка остаётся в пределах контента и прокручивается
     * горизонтально, а сама таблица сохраняет читаемую ширину.
     *
     * Поддерживаются оба варианта разметки:
     * - кастомная .article-table-scroll / .article-table-scroll--methods;
     * - стандартная Gutenberg .wp-block-table.
     */
    .article-content-section--methods .article-table-scroll,
    .article-content-section--methods .article-table-scroll--methods,
    .article-content-section--methods .wp-block-table {
        display: block !important;
        width: calc(100% + 16px);
        max-width: calc(100% + 16px);
        margin-right: -16px;
        padding-bottom: 8px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .article-content-section--methods .article-table-scroll > table,
    .article-content-section--methods .article-table-scroll--methods > table,
    .article-content-section--methods .wp-block-table > table {
        display: table !important;
        width: 760px !important;
        min-width: 760px !important;
        max-width: none !important;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    .article-content-section--methods .article-table-scroll th,
    .article-content-section--methods .article-table-scroll td,
    .article-content-section--methods .article-table-scroll--methods th,
    .article-content-section--methods .article-table-scroll--methods td,
    .article-content-section--methods .wp-block-table th,
    .article-content-section--methods .wp-block-table td {
        padding: 14px 15px !important;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .article-price-table table {
        min-width: 0 !important;
    }

    .article-price-table th,
    .article-price-table td {
        padding: 15px 14px !important;
    }

    .article-price-table th {
        width: 67%;
    }

    .article-price-table td {
        width: 33%;
    }

    .article-primary-service {
        margin-right: -16px;
        margin-left: -16px;
        padding: 20px 16px 22px;
    }

    .article-primary-service__body {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-primary-service__content {
        padding: 8px 4px 0;
    }

    .article-primary-service__title {
        font-size: 26px !important;
    }

    .article-primary-service__actions {
        flex-direction: column;
    }

    .article-primary-service__actions ._button {
        width: 100%;
        min-width: 0;
    }

    .article-primary-service__doctor-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 18px;
        text-align: left;
    }

    .article-primary-service__doctor-image {
        flex: 0 0 82px;
        width: 82px;
        min-height: 96px;
        margin: 0 16px 0 0;
    }

    .article-primary-service__doctor-image img {
        max-height: 108px;
    }

    .article-primary-service__doctor-content {
        align-items: flex-start;
    }

    .article-consultation-context {
        padding: 24px 20px;
    }

    .article-consultation-context__title {
        font-size: 21px;
    }

    .article-consultation-context__text ul {
        grid-template-columns: 1fr;
    }

    .article-faq.row {
        margin-right: -16px;
        margin-left: -16px;
        padding: 38px 16px 34px;
    }

    .article-faq__title {
        font-size: 29px;
    }

    .article-faq__question.faq-title {
        font-size: 20px;
        padding: 15px 35px 15px 15px;
    }

    .blog-single-author-full {
        grid-template-columns: 1fr;
    }

    .blog-single-author {
        min-height: 0;
        padding: 20px;
    }

    .blog-single-author-img {
        flex-basis: 76px;
        width: 76px;
        height: 90px;
        margin-right: 16px;
    }

    .blog-single-author-content .name {
        font-size: 18px;
    }

    .article-lead-form {
        padding: 38px 0;
    }

    .article-lead-form .call-to-us__wrapper {
        display: block;
        padding: 30px 24px;
    }

    .article-lead-form .call-to-us__left {
        margin-bottom: 28px;
    }

    .article-lead-form .call-to-us__title {
        font-size: 32px;
    }

    .article-lead-form .call-to-us__form {
        grid-template-columns: 1fr;
    }

    .blog-single__related,
    .blog-single__related.wrapper {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding: 38px 16px 44px !important;
        overflow: hidden;
        box-sizing: border-box;
        transform: none !important;
    }

    .blog-single__related .additional-services-links,
    .blog-single__related .additional-blog-links,
    .blog-single__related .additional-services-links .d-flex {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        box-sizing: border-box;
        transform: none !important;
    }

    .blog-single__related .additional-services-links .d-flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .blog-single__related .additional-services-links-block {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0;
        margin: 0 !important;
        padding: 26px 24px 24px !important;
        box-sizing: border-box;
        transform: none;
    }

    .blog-single__related .additional-services-links-block:hover {
        transform: none;
    }

    .blog-single__related .additional-services-links-block > a,
    .blog-single__related .additional-services-links-block > a:link,
    .blog-single__related .additional-services-links-block > a:visited {
        min-height: 52px;
        margin-top: 20px !important;
        padding: 13px 18px !important;
    }
}

@media (max-width: 420px) {
    .article-opening,
    .article-toc {
        padding: 12px;
    }

    .article-summary,
    .article-toc__content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-reason-list > li {
        padding-right: 24px;
        padding-left: 24px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .article-toc__button-icon::after,
    .article-primary-service__actions ._button,
    .blog-single__related .additional-services-links-block,
    .blog-single__related .additional-services-links-block > a {
        transition: none;
    }
}

.article-opening--image-only .article-opening__inner {
    display: block;
}

.article-opening--image-only .article-featured-image img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

/* Залипающая форма в боковом поле статьи */
.article-sticky-lead[hidden] {
    display: none !important;
}

@media (min-width: 1200px) and (min-height: 620px) {
    .article-sticky-lead {
        position: fixed;
        top: 150px;
        right: var(--article-sticky-right, 16px);
        z-index: 80;
        width: var(--article-sticky-width, 210px);
        min-width: 0;
        max-height: calc(100vh - 180px);
        padding: 20px 18px 18px;
        overflow-x: hidden;
        overflow-y: auto;
        border: 1px solid var(--article-line);
        border-top: 3px solid var(--article-blue);
        background: #fff;
        box-shadow: 0 14px 36px rgba(31, 55, 76, 0.11);
        box-sizing: border-box;
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .article-sticky-lead.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .article-sticky-lead__eyebrow {
        margin: 0 0 8px;
        color: var(--article-blue);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .article-sticky-lead__title {
        margin: 0 0 10px;
        color: #111;
        font-size: clamp(18px, 1.3vw, 22px);
        font-weight: 500;
        line-height: 1.25;
        text-align: left;
    }

    .article-sticky-lead__text {
        margin: 0 0 16px;
        color: #4b535a;
        font-size: 13px;
        line-height: 1.55;
    }

    .article-sticky-lead__text p {
        margin: 0;
    }

    .article-sticky-lead__actions {
        width: 100%;
        margin-top: 18px;
    }

    .article-sticky-lead__button,
    .article-sticky-lead__button:link,
    .article-sticky-lead__button:visited {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 50px;
        margin: 0 !important;
        padding: 12px 14px !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: var(--article-blue) !important;
        border: 1px solid var(--article-blue) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box;
        font-family: inherit;
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
        text-decoration: none !important;
        white-space: normal;
        cursor: pointer;
        appearance: none;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    .article-sticky-lead__button:hover,
    .article-sticky-lead__button:focus,
    .article-sticky-lead__button:focus-visible {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: var(--article-blue-dark) !important;
        border-color: var(--article-blue-dark) !important;
        text-decoration: none !important;
        outline: none;
    }

    .article-sticky-lead__button:focus-visible {
        box-shadow: 0 0 0 3px rgba(8, 118, 232, 0.22) !important;
    }
}

@media (max-width: 1199px), (max-height: 619px) {
    .article-sticky-lead {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-sticky-lead {
        transition: none;
    }
}
/* Списки внутри блока TL;DR */
.article-tldr__text ul,
.article-tldr__text ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 22px;
}

.article-tldr__text li {
    margin: 0;
    padding-left: 2px;
    line-height: 1.52;
}

.article-tldr__text ul li::marker,
.article-tldr__text ol li::marker {
    color: #087be8;
    font-weight: 600;
}

.article-tldr__text li strong {
    font-weight: 600;
}

.article-tldr__text p {
    margin: 0 0 14px;
}

.article-tldr__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .article-tldr__text ul,
    .article-tldr__text ol {
        gap: 7px;
        padding-left: 21px;
    }

    .article-tldr__text li {
        padding-left: 2px;
        line-height: 1.5;
    }
}

/* ==========================================================================
 * ARTICLE LAYOUT UPDATE — 03.08.2026
 * Первый экран: заголовок и краткий обзор слева, крупное изображение справа.
 * Содержание: полноширинный серый фон, иконка слева, ровная сетка.
 * Блок основной услуги: полноширинный серый фон вместо голубой карточки.
 * ========================================================================== */

/*
 * Общая сетка стала шире только на странице статьи. Основной текст,
 * таблицы и внутренние блоки по-прежнему ограничены собственными max-width.
 */
.blog-single__article .wp-content-area {
    max-width: 1120px;
}

/* --------------------------------------------------------------------------
 * Первый экран статьи
 * Поддерживается актуальная разметка single-blog.php:
 * .blog-single__header + .article-opening--with-image.
 * -------------------------------------------------------------------------- */
@media (min-width: 901px) {
    .blog-single__article .wp-content-area {
        display: grid;
        grid-template-columns: minmax(0, 47%) minmax(0, 53%);
        grid-auto-rows: auto;
        align-items: stretch;
    }

    .blog-single__article .wp-content-area > * {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .blog-single__header {
        grid-column: 1 !important;
        grid-row: 1 !important;
        max-width: none;
        margin: 30px 0 0;
        padding: 50px 48px 12px 54px;
        background: #fff;
        border-top: 1px solid var(--article-line);
        border-left: 1px solid var(--article-line);
        box-sizing: border-box;
    }

    .blog-single__header ._h1 {
        max-width: 100%;
        font-size: clamp(34px, 3.25vw, 48px);
        line-height: 1.14;
    }

    .article-meta {
        margin: 18px 0 0;
    }

    /*
     * display: contents позволяет объединить существующие header,
     * summary и figure в одну CSS-grid-композицию, не ломая PHP-разметку.
     */
    .article-opening--with-image {
        display: contents;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        transform: none;
    }

    .article-opening--with-image .article-opening__inner {
        display: contents;
        min-height: 0;
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .article-opening--with-image .article-summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start;
        padding: 20px 48px 48px 54px;
        background: #fff;
        border-bottom: 1px solid var(--article-line);
        border-left: 1px solid var(--article-line);
        box-sizing: border-box;
    }

    .article-opening--with-image .article-featured-image {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        min-height: 620px;
        border-top: 1px solid var(--article-line);
        border-right: 1px solid var(--article-line);
        border-bottom: 1px solid var(--article-line);
        box-sizing: border-box;
    }

    .article-opening--with-image .article-featured-image img {
        min-height: 620px;
    }

    .article-summary__title {
        font-size: 22px;
    }

    .article-summary__title::before {
        display: block;
        width: 38px;
        height: 3px;
        margin-bottom: 14px;
        background: var(--article-blue);
        content: '';
    }

    .article-toc,
    .blog-single__content,
    .article-expert-quote--managed,
    .article-consultation-context,
    .article-primary-service,
    .article-faq {
        grid-column: 1 / -1 !important;
    }
}

/*
 * Совместимость с вариантом шаблона, где первый экран уже обёрнут
 * в отдельный .article-hero.
 */
.article-hero {
    width: 100%;
    max-width: 1120px;
    margin: 30px auto 54px;
    background: #fff;
}

.article-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    align-items: stretch;
    min-height: 620px;
    border: 1px solid var(--article-line);
}

.article-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 50px 48px 48px 54px;
}

.article-hero__title,
.article-hero ._h1 {
    margin: 0;
    color: #111;
    font-size: clamp(34px, 3.25vw, 48px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.article-hero .article-meta {
    margin: 18px 0 28px;
}

.article-hero .article-summary {
    justify-content: flex-start;
    padding: 0;
    border: 0;
}

.article-hero .article-summary__title::before {
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--article-blue);
    content: '';
}

.article-hero__media,
.article-hero .article-featured-image {
    min-height: 620px;
    margin: 0;
    overflow: hidden;
}

.article-hero__media img,
.article-hero .article-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center;
}

/* --------------------------------------------------------------------------
 * Содержание статьи — серый фон на всю ширину, иконка слева.
 * -------------------------------------------------------------------------- */
.article-toc {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw) 54px;
    padding: 54px max(20px, calc((100vw - 1120px) / 2));
    background: #f3f5f6;
    box-sizing: border-box;
}

.article-toc__card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    background: transparent;
}

.article-toc__visual {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 0 0;
    color: var(--article-blue);
    background: transparent;
}

.article-toc__visual svg {
    width: 92px;
    height: 92px;
}

.article-toc__content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0;
}

.article-toc__content::before {
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 16px;
    background: var(--article-blue);
    content: '';
}

.article-toc__title {
    margin: 0 0 22px;
    font-family: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
}

.article-toc__list,
.article-toc.is-expanded .article-toc__list {
    gap: 11px 34px;
    margin: 0;
    padding: 0;
}

.article-toc__item {
    padding-left: 30px;
}

.article-toc__item::before {
    width: 22px;
    text-align: left;
}

.article-toc__list a,
.article-toc__list a:link,
.article-toc__list a:visited {
    color: #2b3238;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none !important;
}

.article-toc__list a:hover,
.article-toc__list a:focus,
.article-toc__list a.is-active,
.article-toc__list a[aria-current='location'],
.article-toc__list a[aria-current='true'] {
    color: var(--article-blue);
    text-decoration: none !important;
}

.article-toc__button {
    gap: 9px;
    min-height: 40px;
    margin-top: 20px;
    padding: 8px 0;
    color: var(--article-blue);
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
}

.article-toc__button:hover,
.article-toc__button:focus {
    color: var(--article-blue-dark);
    text-decoration: none !important;
}

.article-toc__button-icon {
    width: 16px;
    height: 16px;
}

.article-toc__button-icon::before {
    top: 45%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: transparent;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.article-toc__button-icon::after {
    display: none;
    content: none;
}

.article-toc.is-expanded .article-toc__button-icon::before {
    top: 58%;
    transform: translate(-50%, -50%) rotate(-135deg);
}

/* --------------------------------------------------------------------------
 * Основная услуга внутри статьи — полноширинный серый блок.
 * -------------------------------------------------------------------------- */
.article-primary-service {
    width: 100vw;
    max-width: 100vw;
    margin: 58px calc(50% - 50vw);
    padding: 56px max(20px, calc((100vw - 1120px) / 2));
    overflow: visible;
    background: #f3f5f6;
    box-sizing: border-box;
}

.article-primary-service__body {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 42px;
    background: transparent;
}

.article-primary-service__content {
    position: relative;
    padding: 8px 0;
}

.article-primary-service__content::before {
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 16px;
    background: var(--article-blue);
    content: '';
}

.article-primary-service__label {
    margin-bottom: 10px;
    font-family: inherit;
}

.article-primary-service__title {
    font-family: inherit;
    font-size: clamp(29px, 3vw, 38px) !important;
}

.article-primary-service__text {
    max-width: 700px;
}

.article-primary-service a,
.article-primary-service a:link,
.article-primary-service a:visited,
.article-primary-service a:hover,
.article-primary-service a:focus {
    text-decoration: none !important;
}

.article-primary-service__doctor-card {
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--article-line) !important;
    box-shadow: none;
}

.article-primary-service__doctor-name:hover,
.article-primary-service__doctor-name:focus {
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
 * Адаптивность обновлённого первого экрана и содержания.
 * -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .blog-single__article .wp-content-area {
        display: block;
        max-width: 960px;
    }

    .blog-single__header {
        max-width: 900px;
        margin: 42px auto 0;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .article-opening--with-image {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 24px 0 48px;
        transform: none;
    }

    .article-opening--with-image .article-opening__inner {
        display: grid;
        grid-template-columns: 1fr;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--article-line);
    }

    .article-opening--with-image .article-featured-image {
        order: -1;
        min-height: 0;
        border: 0;
    }

    .article-opening--with-image .article-featured-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .article-opening--with-image .article-summary {
        padding: 28px 30px 32px;
        border: 0;
    }

    .article-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .article-hero__content {
        padding: 38px 34px 36px;
    }

    .article-hero__media,
    .article-hero .article-featured-image {
        order: -1;
        min-height: 0;
    }

    .article-hero__media img,
    .article-hero .article-featured-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .article-toc__card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 28px;
    }

    .article-toc__visual svg {
        width: 76px;
        height: 76px;
    }

    .article-primary-service__body {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .blog-single__header {
        margin-top: 34px;
    }

    .blog-single__header ._h1 {
        font-size: 33px;
    }

    .article-opening--with-image,
    .article-hero {
        width: auto;
        max-width: none;
        margin: 22px -16px 42px;
    }

    .article-opening--with-image .article-opening__inner,
    .article-hero__inner {
        border-right: 0;
        border-left: 0;
    }

    .article-opening--with-image .article-summary,
    .article-hero__content {
        padding: 26px 22px 30px;
    }

    .article-summary__title::before,
    .article-hero .article-summary__title::before {
        margin-bottom: 12px;
    }

    .article-toc {
        width: 100vw;
        max-width: 100vw;
        margin: 0 calc(50% - 50vw) 42px;
        padding: 38px 16px;
    }

    .article-toc__card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-toc__visual {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        padding: 0;
    }

    .article-toc__visual svg {
        width: 58px;
        height: 58px;
    }

    .article-toc__content {
        grid-column: 1;
        grid-row: 2;
    }

    .article-toc__title {
        margin-bottom: 18px;
        font-size: 24px;
    }

    .article-toc.is-expanded .article-toc__list {
        grid-template-columns: 1fr;
    }

    .article-toc__list a {
        font-size: 15px;
    }

    .article-primary-service {
        width: 100vw;
        max-width: 100vw;
        margin: 48px calc(50% - 50vw);
        padding: 38px 16px;
    }

    .article-primary-service__body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-primary-service__content {
        padding: 0;
    }

    .article-primary-service__doctor-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .article-opening--with-image .article-summary,
    .article-hero__content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-toc {
        padding-right: 14px;
        padding-left: 14px;
    }

    .article-toc__item {
        padding-left: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-toc__button-icon::before {
        transition: none;
    }
}



/* ==========================================================================
 * ARTICLE HERO V17 — полноширинный первый экран по образцу страниц услуг.
 * Важное отличие: заголовок, метаданные и краткий обзор собраны в одном
 * реальном компоненте .article-hero, без display: contents.
 * ========================================================================== */

@media (min-width: 901px) {
    .blog-single__article .wp-content-area {
        display: block !important;
        width: 100%;
        max-width: 960px;
        margin-right: auto;
        margin-left: auto;
    }

    .article-hero {
        position: relative;
        left: 50%;
        width: 100vw;
        max-width: 1600px;
        margin: 0 0 56px;
        background: #fff;
        transform: translateX(-50%);
    }

    .article-hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 52%) minmax(0, 48%);
        align-items: stretch;
        width: 100%;
        min-height: 640px;
        border: 0;
        background: #fff;
    }

    .article-hero__content {
        display: flex;
        min-width: 0;
        min-height: 640px;
        flex-direction: column;
        justify-content: center;
        padding: clamp(48px, 5vw, 78px) clamp(48px, 6vw, 104px);
        background: #fff;
        box-sizing: border-box;
    }

    .article-hero .blog-single__header {
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        text-align: center;
    }

    .article-hero .blog-single__header ._h1,
    .article-hero__title {
        max-width: 720px;
        margin: 0 auto;
        color: #111;
        font-size: clamp(36px, 3vw, 48px);
        font-weight: 400;
        line-height: 1.13;
        letter-spacing: -0.025em;
        text-align: center;
    }

    .article-hero .article-meta {
        justify-content: center;
        max-width: 720px;
        margin: 16px auto 28px;
        font-size: 13px;
        text-align: center;
    }

    .article-hero .article-summary {
        display: block;
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
        padding: 0;
        background: transparent;
        border: 0;
        text-align: left;
    }

    .article-hero .article-summary__title {
        margin: 0 0 16px;
        font-size: 21px;
        font-weight: 500;
        line-height: 1.3;
        text-align: center;
    }

    .article-hero .article-summary__title::before {
        display: block;
        width: 38px;
        height: 3px;
        margin: 0 auto 14px;
        background: var(--article-blue);
        content: '';
    }

    .article-hero .article-summary__text {
        color: var(--article-text);
        font-size: 15px;
        line-height: 1.5;
    }

    .article-hero .article-summary__text ul,
    .article-hero .article-summary__text ol,
    .article-hero .article-tldr__text ul,
    .article-hero .article-tldr__text ol {
        gap: 7px;
        margin-top: 0;
        padding-left: 22px;
    }

    .article-hero__media,
    .article-hero .article-featured-image {
        position: relative;
        min-height: 640px;
        margin: 0;
        overflow: hidden;
        background: #e9eef2;
    }

    .article-hero__media img,
    .article-hero .article-featured-image img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0 !important;
        object-fit: cover;
        object-position: center 42%;
    }

    .article-hero--without-image {
        max-width: 1120px;
    }

    .article-hero--without-image .article-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .article-hero--without-image .article-hero__content {
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .article-hero__inner {
        grid-template-columns: minmax(0, 55%) minmax(0, 45%);
        min-height: 620px;
    }

    .article-hero__content {
        min-height: 620px;
        padding: 42px 46px;
    }

    .article-hero .blog-single__header ._h1,
    .article-hero__title {
        font-size: clamp(34px, 3.3vw, 42px);
    }

    .article-hero__media,
    .article-hero .article-featured-image {
        min-height: 620px;
    }
}

@media (max-width: 900px) {
    .article-hero {
        position: relative;
        left: 50%;
        width: 100vw;
        max-width: none;
        margin: 0 0 44px;
        transform: translateX(-50%);
        background: #fff;
    }

    .article-hero__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
        border: 0;
    }

    .article-hero__content {
        order: 1;
        min-height: 0;
        padding: 40px clamp(22px, 6vw, 54px) 34px;
        text-align: left;
    }

    .article-hero .blog-single__header {
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .article-hero .blog-single__header ._h1,
    .article-hero__title {
        margin: 0;
        font-size: clamp(32px, 6vw, 42px);
        line-height: 1.16;
        text-align: left;
    }

    .article-hero .article-meta {
        justify-content: flex-start;
        margin: 16px 0 26px;
        text-align: left;
    }

    .article-hero .article-summary {
        padding: 0;
        text-align: left;
    }

    .article-hero .article-summary__title {
        text-align: left;
    }

    .article-hero .article-summary__title::before {
        margin-right: 0;
        margin-left: 0;
    }

    .article-hero__media,
    .article-hero .article-featured-image {
        order: 2;
        min-height: 0;
        margin: 0;
    }

    .article-hero__media img,
    .article-hero .article-featured-image img {
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center 42%;
    }
}

@media (max-width: 480px) {
    .article-hero__content {
        padding: 32px 20px 28px;
    }

    .article-hero .blog-single__header ._h1,
    .article-hero__title {
        font-size: 30px;
    }

    .article-hero .article-summary__text {
        font-size: 15px;
        line-height: 1.5;
    }
}


/* ==========================================================================
 * ARTICLE HERO V18 — краткий обзор вынесен ниже первого экрана.
 * Первый экран теперь соответствует логике страниц услуг: заголовок и мета
 * слева, крупное изображение справа. Краткий обзор — отдельным блоком ниже.
 * ========================================================================== */

.article-summary-section {
    position: relative;
    left: 50%;
    width: 100vw;
    margin: 0 0 0;
    padding: 48px max(20px, calc((100vw - 1120px) / 2));
    background: #f7f9fa;
    box-sizing: border-box;
    transform: translateX(-50%);
}

.article-summary--standalone {
    display: block;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 34px 40px 32px;
    background: #fff;
    border: 1px solid var(--article-line);
    box-sizing: border-box;
}

.article-summary--standalone .article-summary__title {
    margin: 0 0 22px;
    color: #15191d;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.28;
    text-align: left;
}

.article-summary--standalone .article-summary__title::before {
    display: block;
    width: 38px;
    height: 3px;
    margin: 0 0 14px;
    background: var(--article-blue);
    content: '';
}

.article-summary--standalone .article-summary__text {
    color: var(--article-text);
    font-size: 16px;
    line-height: 1.58;
}

.article-summary--standalone .article-summary__text ul,
.article-summary--standalone .article-summary__text ol,
.article-summary--standalone .article-tldr__text ul,
.article-summary--standalone .article-tldr__text ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 34px;
    margin: 0;
    padding-left: 22px;
}

.article-summary--standalone .article-summary__text li,
.article-summary--standalone .article-tldr__text li {
    margin: 0;
    padding-left: 2px;
}

@media (min-width: 901px) {
    .article-hero {
        margin-bottom: 0;
    }

    .article-hero__inner {
        grid-template-columns: minmax(0, 52%) minmax(0, 48%);
        min-height: 520px;
    }

    .article-hero__content {
        min-height: 520px;
        padding-top: clamp(48px, 5vw, 76px);
        padding-bottom: clamp(48px, 5vw, 76px);
    }

    .article-hero__media,
    .article-hero .article-featured-image {
        min-height: 520px;
    }

    .article-hero .article-meta {
        margin-bottom: 0;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .article-hero__inner,
    .article-hero__content,
    .article-hero__media,
    .article-hero .article-featured-image {
        min-height: 500px;
    }
}

@media (max-width: 900px) {
    .article-hero {
        margin-bottom: 0;
    }

    .article-summary-section {
        padding: 32px 20px;
    }

    .article-summary--standalone {
        padding: 28px 26px;
    }

    .article-summary--standalone .article-summary__text ul,
    .article-summary--standalone .article-summary__text ol,
    .article-summary--standalone .article-tldr__text ul,
    .article-summary--standalone .article-tldr__text ol {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .article-summary-section {
        padding: 24px 16px;
    }

    .article-summary--standalone {
        padding: 24px 20px;
    }

    .article-summary--standalone .article-summary__title {
        font-size: 23px;
    }

    .article-summary--standalone .article-summary__text {
        font-size: 15px;
        line-height: 1.55;
    }
}


/* ==========================================================================
 * V20 — уточнения заказчика: блок услуги и залипающая консультация.
 * ========================================================================== */

/*
 * Серый фон остаётся полноширинным. На широких экранах вправо смещается
 * только внутренний контейнер блока «Послуга за темою».
 */
@media (min-width: 1200px) {
    .article-primary-service__body {
        width: calc(100% - 36px);
        max-width: 1080px;
        margin-right: auto;
        margin-left: auto;
        transform: translateX(28px);
    }
}

/*
 * Более компактная боковая консультация. Фактическое отображение и
 * временное скрытие возле широких секций управляются JavaScript.
 */
@media (min-width: 1100px) and (min-height: 620px) {
    .article-sticky-lead {
        display: block !important;
        top: 138px;
        width: var(--article-sticky-width, 190px);
        max-height: calc(100vh - 166px);
        padding: 16px 14px 14px;
    }

    .article-sticky-lead__eyebrow {
        margin-bottom: 6px;
        font-size: 10px;
        line-height: 1.35;
    }

    .article-sticky-lead__title {
        margin-bottom: 8px;
        font-size: clamp(17px, 1.15vw, 20px);
        line-height: 1.23;
    }

    .article-sticky-lead__text {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.48;
    }

    .article-sticky-lead__actions {
        margin-top: 13px;
    }

    .article-sticky-lead__button,
    .article-sticky-lead__button:link,
    .article-sticky-lead__button:visited {
        min-height: 44px;
        padding: 10px 11px !important;
        font-size: 13px !important;
        line-height: 1.25;
    }
}

@media (max-width: 1099px), (max-height: 619px) {
    .article-sticky-lead {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .article-primary-service__body {
        width: 100%;
        transform: none;
    }
}

/* ==========================================================================
 * ARTICLE REASON CARDS V21 — адаптивная сетка по количеству карточек.
 *
 * Задача:
 * - 1 карточка  -> одна компактная колонка;
 * - 2 карточки -> 2 колонки;
 * - 3 карточки -> существующие 3 колонки;
 * - 4 карточки -> симметричная сетка 2 x 2;
 * - 5 карточек -> 3 + 2, нижний ряд центрирован;
 * - 6+         -> существующая сетка по 3 карточки.
 *
 * Контент и HTML статьи не меняются. Используется :has(), который
 * поддерживается современными браузерами.
 * ========================================================================== */

@media (min-width: 901px) {
    /* Одна карточка — не растягиваем её на всю ширину секции. */
    .article-reason-list:has(> li:first-child:last-child) {
        grid-template-columns: minmax(0, 800px);
        justify-content: center;
        max-width: 800px !important;
    }

    /* Две карточки — две равные колонки без пустого третьего места. */
    .article-reason-list:has(> li:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px !important;
    }

    /* Четыре карточки — основное исправление: 2 x 2 вместо 3 + 1. */
    .article-reason-list:has(> li:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px !important;
    }

    /*
     * Пять карточек — верхний ряд из трёх, нижний из двух по центру.
     * Внутренняя сетка из шести технических колонок позволяет сохранить
     * одинаковую ширину всех пяти карточек.
     */
    .article-reason-list:has(> li:nth-child(5):last-child) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 1170px !important;
    }

    .article-reason-list:has(> li:nth-child(5):last-child) > li {
        grid-column: span 2;
    }

    .article-reason-list:has(> li:nth-child(5):last-child) > li:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .article-reason-list:has(> li:nth-child(5):last-child) > li:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Планшет: максимум две колонки независимо от количества карточек. */
@media (min-width: 768px) and (max-width: 900px) {
    .article-reason-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 800px !important;
    }
}

/* Мобильный: одна карточка в строке. */
@media (max-width: 767px) {
    .article-reason-list {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100% !important;
    }
}


/* ==========================================================================
 * ARTICLE PROFILE DOCTOR CARD V23 — mobile refinement.
 * 2026-09-18
 *
 * Улучшаем только карточку профильного врача внутри блока услуги в статье.
 * Десктопная версия и остальные карточки сайта не затрагиваются.
 * ========================================================================== */
@media (max-width: 767px) {
    .article-primary-service__doctor-card {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
        width: 100%;
        min-height: 0;
        padding: 16px;
        text-align: left;
        background: #fff;
        border: 1px solid var(--article-line) !important;
        border-top: 3px solid var(--article-blue) !important;
        box-shadow: 0 8px 22px rgba(31, 51, 69, 0.07);
        box-sizing: border-box;
    }

    .article-primary-service__doctor-image {
        display: block;
        width: 110px;
        height: 132px;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        background: #eef3f7;
    }

    .article-primary-service__doctor-image img {
        display: block;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }

    .article-primary-service__doctor-content {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .article-primary-service__doctor-label {
        margin: 0 0 7px;
        color: var(--article-blue);
        font-size: 11px;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .article-primary-service__doctor-name,
    .article-primary-service__doctor-name:link,
    .article-primary-service__doctor-name:visited {
        color: #171c20 !important;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.32;
        text-decoration: none !important;
    }

    .article-primary-service__doctor-name:hover,
    .article-primary-service__doctor-name:focus {
        color: var(--article-blue) !important;
        text-decoration: none !important;
    }

    .article-primary-service__doctor-position {
        margin-top: 7px;
        color: #52606b;
        font-size: 13px;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .article-primary-service__doctor-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .article-primary-service__doctor-image {
        width: 100px;
        height: 120px;
    }

    .article-primary-service__doctor-name,
    .article-primary-service__doctor-name:link,
    .article-primary-service__doctor-name:visited {
        font-size: 17px;
    }
}


/* ==========================================================================
 * ARTICLE FAQ V24 — mobile question spacing.
 * 2026-09-18
 *
 * На узких экранах резервируем отдельную область справа под стрелку
 * аккордеона, чтобы длинный текст вопроса не заходил под иконку.
 * Десктопная версия и логика открытия FAQ не меняются.
 * ========================================================================== */
@media (max-width: 767px) {
    .article-faq__question.faq-title {
        position: relative;
        width: 100%;
        min-height: 68px;
        padding: 16px 64px 16px 16px !important;
        box-sizing: border-box;
        font-size: 20px;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-break: normal;
    }
}

@media (max-width: 420px) {
    .article-faq__question.faq-title {
        min-height: 64px;
        padding-right: 60px !important;
        font-size: 19px;
    }
}


/* ==========================================================================
 * ARTICLE PROFILE DOCTOR CARD V25 — tablet / desktop portrait framing.
 * 2026-09-18
 *
 * Мобильная карточка (до 767 px) уже принята и не меняется.
 * На планшете и десктопе убираем прежнее низкое ограничение фотографии,
 * задаём портретную область 2:3 и показываем изображение целиком через
 * object-fit: contain. Это предотвращает обрезание головы, плеч и корпуса.
 * ========================================================================== */
@media (min-width: 768px) {
    .article-primary-service__doctor-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(160px, 100%);
        height: auto;
        min-height: 0;
        aspect-ratio: 2 / 3;
        margin: 0 auto 16px;
        overflow: hidden;
        background: #eef3f7;
    }

    .article-primary-service__doctor-image img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center top !important;
    }
}

/* На промежуточных ширинах карточка уже, поэтому немного уменьшаем фото,
 * сохраняя ту же портретную пропорцию и полное изображение. */
@media (min-width: 768px) and (max-width: 1100px) {
    .article-primary-service__doctor-image {
        width: min(145px, 100%);
    }
}

/* ==========================================================================
 * ARTICLE RECOVERY PANEL V26 — three-option layout.
 * 2026-09-22
 *
 * article-reference-sync может классифицировать этот конкретный список как
 * cost-panel из-за фразы «залежить від». Плагин не меняем: исправляем только
 * визуальную сетку блока восстановления зубов в стилях статьи.
 * ========================================================================== */
@media (min-width: 901px) {
    .blog-single__content
    .article-content-section--recovery
    > .epion-auto-panel.epion-auto-panel--cost:has(> li:nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px 28px !important;
        width: 100% !important;
        max-width: 960px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

@media (max-width: 900px) {
    .blog-single__content
    .article-content-section--recovery
    > .epion-auto-panel.epion-auto-panel--cost:has(> li:nth-child(3):last-child) {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 800px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

