/*
 * SEO Medical 1.6.4 — markup fixes after the Labrika audit.
 * The second half of the file is generated from existing "heading > link" rules
 * (link moved outside the heading: <a class="is-heading-link"><h3>…</h3></a>).
 */

/* Link that wraps a card heading: behaves like the heading block it replaced. */
a.is-heading-link {
    display: block;
}

/* [[phrase]] in any heading: keyword accent without semantic weight. */
.heading-accent {
    color: var(--color-primary, #0861c2);
}

.child-service-section--dark .heading-accent,
.audience-segment-section--dark .heading-accent,
.parent-service-section--dark .heading-accent {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .14em;
}

/* "Другие страницы раздела": sibling links before the footer. */
.section-nav {
    margin-top: 48px;
    margin-bottom: 48px;
    padding-top: 28px;
    border-top: 1px solid #dbe6ee;
}

.section-nav__title {
    margin: 0 0 14px;
    color: #5c7182;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.section-nav__title a {
    color: var(--color-primary, #0861c2);
}

.section-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    color: #0b4a8b;
    background: #fff;
    border: 1px solid #dbe6ee;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.3;
    transition: border-color .18s ease, color .18s ease;
}

.section-nav__list a:hover,
.section-nav__list a:focus-visible {
    color: var(--color-primary-dark, #073866);
    border-color: rgba(8, 97, 194, .4);
}

@media (max-width: 640px) {
    .section-nav {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .section-nav__list a {
        font-size: 13px;
    }
}

/* ---- Generated from existing "heading > link" rules (tools/headlink_css.py) ---- */
/* assets/css/blocks/article-cards.css */
:where(.article-content, .editor-styles-wrapper) .wp-block-group.is-style-seo-medical-card-link a.is-heading-link:has(> h3) { color: inherit; text-decoration: none; }
:where(.article-content, .editor-styles-wrapper) .wp-block-group.is-style-seo-medical-card-link a.is-heading-link:has(> h3) > h3 { text-decoration: none; }
/* assets/css/blocks/article-cards.css */
.page--blog-detail .article-content .seo-medical-article-card-grid--three .seo-medical-article-card :is(h3, a.is-heading-link:has(> h3)) + p ~ p, .editor-styles-wrapper .seo-medical-article-card-grid--three .seo-medical-article-card :is(h3, a.is-heading-link:has(> h3)) + p ~ p { position: relative; margin: 0 !important; padding: 8px 0 8px 17px; border-top: 1px solid #e4edf4; color: #344e65; font-size: 13.5px; line-height: 1.35; font-weight: 720; }
/* assets/css/blocks/article-cards.css */
.page--blog-detail .article-content .seo-medical-article-card-grid--three .seo-medical-article-card :is(h3, a.is-heading-link:has(> h3)) + p ~ p::before, .editor-styles-wrapper .seo-medical-article-card-grid--three .seo-medical-article-card :is(h3, a.is-heading-link:has(> h3)) + p ~ p::before { position: absolute; top: 50%; left: 1px; width: 7px; height: 7px; background: var(--article-card-accent); border-radius: 50%; content: ""; transform: translateY(-50%); }
/* assets/css/blocks/article-cards.css */
.page--blog-detail .article-content .seo-medical-article-card-grid--three .seo-medical-article-card :is(:is(h3, h4), a.is-heading-link:has(> :is(h3, h4))) + p:not(.seo-medical-article-card__metric), .editor-styles-wrapper .seo-medical-article-card-grid--three .seo-medical-article-card :is(:is(h3, h4), a.is-heading-link:has(> :is(h3, h4))) + p:not(.seo-medical-article-card__metric) { min-height: 4.65em; margin: 0 0 12px !important; color: var(--blog-detail-muted, #40566c); font-size: 13.5px !important; line-height: 1.5 !important; }
/* assets/css/blocks/article-cards.css */
.page--blog-detail .article-content .seo-medical-article-card-grid--three .seo-medical-article-card :is(:is(h3, h4), a.is-heading-link:has(> :is(h3, h4))) + p:not(.seo-medical-article-card__metric), .editor-styles-wrapper .seo-medical-article-card-grid--three .seo-medical-article-card :is(:is(h3, h4), a.is-heading-link:has(> :is(h3, h4))) + p:not(.seo-medical-article-card__metric) { min-height: 4.45em; }
/* assets/css/blocks/article-cards.css */
@media (max-width: 760px) {
.editor-styles-wrapper .seo-medical-article-card-grid--three .seo-medical-article-card :is(:is(h3, h4), a.is-heading-link:has(> :is(h3, h4))) + p:not(.seo-medical-article-card__metric) { min-height: 0; }
}
/* assets/css/pages/about.css */
.company-person-card a.is-heading-link:has(> h3), .company-result-card__body a.is-heading-link:has(> h3) { color: inherit; text-decoration: none; }
.company-person-card a.is-heading-link:has(> h3) > h3, .company-result-card__body a.is-heading-link:has(> h3) > h3 { text-decoration: none; }
/* assets/css/pages/about.css */
.company-person-card a.is-heading-link:has(> h3):hover, .company-result-card__body a.is-heading-link:has(> h3):hover { color: var(--primary); }
.company-person-card a.is-heading-link:has(> h3):hover > h3, .company-result-card__body a.is-heading-link:has(> h3):hover > h3 { color: var(--primary); }
/* assets/css/pages/blog-category.css */
.page--blog-category .category-post__link.is-heading-link > :is(h1, h2, h3, h4, h5, h6) { transition: color var(--transition, .2s ease); }
/* assets/css/pages/blog-category.css */
.page--blog-category .category-post__link.is-heading-link:hover > :is(h1, h2, h3, h4, h5, h6), .page--blog-category .category-post__link.is-heading-link:focus-visible > :is(h1, h2, h3, h4, h5, h6) { color: var(--blog-cat-primary-hover); }
/* assets/css/pages/blog-category.css */
.page--blog-category a.is-heading-link:has(> .blog-sidebar__recent-title) { transition: color var(--transition, .2s ease); }
.page--blog-category a.is-heading-link:has(> .blog-sidebar__recent-title) > .blog-sidebar__recent-title { transition: color var(--transition, .2s ease); }
/* assets/css/pages/blog-category.css */
.page--blog-category a.is-heading-link:has(> .blog-sidebar__recent-title):hover, .page--blog-category a.is-heading-link:has(> .blog-sidebar__recent-title):focus-visible { color: var(--blog-cat-primary-hover); }
.page--blog-category a.is-heading-link:has(> .blog-sidebar__recent-title):hover > .blog-sidebar__recent-title, .page--blog-category a.is-heading-link:has(> .blog-sidebar__recent-title):focus-visible > .blog-sidebar__recent-title { color: var(--blog-cat-primary-hover); }
/* assets/css/pages/blog-detail.css */
.page--blog-detail .blog-sidebar__recent a.is-heading-link:has(> h4) { transition: color var(--transition, .2s ease); }
.page--blog-detail .blog-sidebar__recent a.is-heading-link:has(> h4) > h4 { transition: color var(--transition, .2s ease); }
/* assets/css/pages/blog-detail.css */
.page--blog-detail .blog-sidebar__recent a.is-heading-link:has(> h4):hover, .page--blog-detail .blog-sidebar__recent a.is-heading-link:has(> h4):focus-visible { color: var(--blog-detail-primary-hover); }
.page--blog-detail .blog-sidebar__recent a.is-heading-link:has(> h4):hover > h4, .page--blog-detail .blog-sidebar__recent a.is-heading-link:has(> h4):focus-visible > h4 { color: var(--blog-detail-primary-hover); }
/* assets/css/pages/blog-detail.css */
.page--blog-detail a.is-heading-link:has(> .article-related-card__title):hover, .page--blog-detail a.is-heading-link:has(> .article-related-card__title):focus-visible { color: var(--blog-detail-primary-hover); }
.page--blog-detail a.is-heading-link:has(> .article-related-card__title):hover > .article-related-card__title, .page--blog-detail a.is-heading-link:has(> .article-related-card__title):focus-visible > .article-related-card__title { color: var(--blog-detail-primary-hover); }
/* assets/css/pages/blog-hub.css */
.page--blog .blogy-category-card__link.is-heading-link > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-mini-post__link.is-heading-link > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-post-card__link.is-heading-link > :is(h1, h2, h3, h4, h5, h6) { transition: color var(--transition, .2s ease); }
/* assets/css/pages/blog-hub.css */
.page--blog .blogy-category-card__link.is-heading-link:hover > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-mini-post__link.is-heading-link:hover > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-post-card__link.is-heading-link:hover > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-category-card__link.is-heading-link:focus-visible > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-mini-post__link.is-heading-link:focus-visible > :is(h1, h2, h3, h4, h5, h6), .page--blog .blogy-post-card__link.is-heading-link:focus-visible > :is(h1, h2, h3, h4, h5, h6) { color: var(--color-primary-dark); }
/* assets/css/pages/case-detail.css */
.case-detail-related a.is-heading-link:has(> h3) { color: inherit; text-decoration: none; }
.case-detail-related a.is-heading-link:has(> h3) > h3 { text-decoration: none; }
/* assets/css/pages/cases-hub.css */
.cases-featured__body a.is-heading-link:has(> h2) { color: inherit; text-decoration: none; }
.cases-featured__body a.is-heading-link:has(> h2) > h2 { text-decoration: none; }
/* assets/css/pages/cases-hub.css */
a.is-heading-link:has(> .cases-card__title) { color: inherit; text-decoration: none; }
a.is-heading-link:has(> .cases-card__title) > .cases-card__title { text-decoration: none; }
/* assets/css/pages/front-page.css */
.page--front-redesign .front-home-case-card a.is-heading-link:has(> h3) { color: inherit; }
/* assets/css/pages/front-page.css */
.page--front-redesign .front-home-case-card a.is-heading-link:has(> h3)::after { position: absolute; inset: 0; content: ""; }
/* assets/css/pages/front-page.css */
.page--front-redesign .front-home-person a.is-heading-link:has(> h3) { color: inherit; }
/* assets/css/pages/html-sitemap.css */
.html-sitemap__people-groups a.is-heading-link:has(> h3) { color: inherit; text-decoration: none; }
.html-sitemap__people-groups a.is-heading-link:has(> h3) > h3 { text-decoration: none; }
/* assets/css/pages/service-parent.css */
.parent-service-child-card a.is-heading-link:has(> h3) { color: var(--parent-primary-dark); text-decoration: none; }
.parent-service-child-card a.is-heading-link:has(> h3) > h3 { color: var(--parent-primary-dark); text-decoration: none; }
/* assets/css/pages/service-parent.css */
.parent-service-case-card a.is-heading-link:has(> h3) { color: var(--parent-primary-dark); text-decoration: none; }
.parent-service-case-card a.is-heading-link:has(> h3) > h3 { color: var(--parent-primary-dark); text-decoration: none; }
/* assets/css/pages/specialist-profile.css */
.specialist-mini-card__body a.is-heading-link:has(> h3):hover { color: var(--specialist-primary); }
.specialist-mini-card__body a.is-heading-link:has(> h3):hover > h3 { color: var(--specialist-primary); }
/* assets/css/pages/team-hub.css */
a.is-heading-link:has(> .team-card__name):hover, a.is-heading-link:has(> .team-card__name):focus-visible { color: var(--color-accent); }
a.is-heading-link:has(> .team-card__name):hover > .team-card__name, a.is-heading-link:has(> .team-card__name):focus-visible > .team-card__name { color: var(--color-accent); }

/* ---- 1.6.6 ---- */

/* Unique cover of pages without their own image. */
.page-cover {
    margin-top: 40px;
    margin-bottom: 8px;
}

.page-cover__image {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 1200 / 630;
    border-radius: 18px;
    background: #073866;
}

.page-cover--term {
    margin: 24px 0 28px;
}

.page-cover--term .page-cover__image {
    max-width: 760px;
}

@media (max-width: 640px) {
    .page-cover {
        margin-top: 28px;
    }

    .page-cover__image {
        border-radius: 12px;
    }
}

/* Section navigation: second list. */
.section-nav__title--more {
    margin-top: 22px;
}

/* HTML sitemap parts. */
.html-sitemap__anchors > span[aria-current] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    color: #062d50;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.html-sitemap__next {
    margin: 32px 0 0;
}

/* ===== 1.7.0 ===== */

/* Script navigation instead of #hash / nofollow / share links: same look as links. */
a[data-scroll-target],
a[data-nav-href],
a[data-share-href] { cursor: pointer; }
a[data-scroll-target]:focus-visible,
a[data-nav-href]:focus-visible,
a[data-share-href]:focus-visible { outline: 2px solid var(--color-primary, #0861c2); outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }

/* Glossary: filter cards and letters are buttons now. */
button.glossary-section-card,
button.glossary-alphabet__item { font: inherit; text-align: left; cursor: pointer; appearance: none; -webkit-appearance: none; }
button.glossary-alphabet__item { text-align: center; font-size: 13px; }
button.glossary-section-card { width: 100%; }
button.glossary-section-card.is-active { border-color: var(--primary, #0861c2); box-shadow: 0 0 0 2px var(--primary, #0861c2) inset; }
.glossary-filter__reset { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--color-primary, #0861c2); text-decoration: underline; cursor: pointer; }
[data-glossary-item][hidden] { display: none !important; }

/* HTML sitemap: nested lists open on demand. */
.html-sitemap__anchors button { appearance: none; font: inherit; cursor: pointer; padding: 8px 14px; border: 1px solid var(--color-border, #d9e6f0); border-radius: 999px; background: #fff; color: var(--color-text, #102033); }
.html-sitemap__anchors button:hover { border-color: var(--color-primary, #0861c2); color: var(--color-primary, #0861c2); }
.html-sitemap__more { appearance: none; display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--color-primary, #0861c2); cursor: pointer; }
.html-sitemap__more::after { content: "⌄"; transition: transform .2s; }
.html-sitemap__more[aria-expanded="true"]::after { transform: rotate(180deg); }
.html-sitemap__lazy { margin-top: 8px; }
.html-sitemap__lazy[hidden] { display: none; }

/* Hub pages without their own catalog yet. */
.hub-fallback { margin: 48px 0; }
.hub-fallback__head { max-width: 820px; margin-bottom: 24px; }
.hub-fallback__head h2 { margin: 6px 0 12px; }
.hub-fallback__head p { color: var(--color-muted, #5f6f82); }
.hub-fallback__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-fallback__grid--people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-fallback__card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--color-border, #d9e6f0); border-radius: 18px; }
.hub-fallback__card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.hub-fallback__card h3 a { color: inherit; text-decoration: none; }
.hub-fallback__card h3 a:hover { color: var(--color-primary, #0861c2); }
.hub-fallback__card p { margin: 0; color: var(--color-muted, #5f6f82); font-size: 15px; }
.hub-fallback__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: auto 0 0; font-size: 14px; }
.hub-fallback__meta div { display: flex; gap: 6px; }
.hub-fallback__meta dt { color: var(--color-muted, #5f6f82); }
.hub-fallback__meta dd { margin: 0; font-weight: 600; }
.hub-fallback__button { align-self: flex-start; }
.hub-fallback__image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.hub-fallback__card--person { align-items: flex-start; }
.hub-fallback__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.hub-fallback__links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 20px 0 0; padding: 0; list-style: none; }
@media (max-width: 1024px) { .hub-fallback__grid, .hub-fallback__grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hub-fallback__grid, .hub-fallback__grid--people { grid-template-columns: 1fr; } }

/* Blog categories as cards. */
.blog-rubrics { margin: 40px 0; }
.blog-rubrics--article { margin: 32px 0; }
.blog-rubrics__title { margin: 0 0 18px; }
.blog-rubrics__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.blog-rubric-card { margin: 0; }
.blog-rubric-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--color-border, #d9e6f0); border-radius: 18px; transition: box-shadow .2s, transform .2s; }
.blog-rubric-card__link:hover { box-shadow: 0 16px 36px rgba(16, 32, 51, .1); transform: translateY(-2px); }
.blog-rubric-card__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-bg-soft, #f5f9fc); }
.blog-rubric-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.blog-rubric-card__name { font-family: var(--font-heading); font-size: 18px; line-height: 1.25; }
.blog-rubric-card__text { color: var(--color-muted, #5f6f82); font-size: 14px; line-height: 1.45; }
.blog-rubric-card__count { margin-top: auto; color: var(--color-primary, #0861c2); font-size: 13px; font-weight: 600; }
a.blog-article__badge { color: inherit; text-decoration: none; }

/* "Показать ещё". */
.load-more { display: flex; justify-content: center; margin: 28px 0 0; }
.load-more__button[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ===== 1.7.3 ===== */

/* SEO text: the same layout as the SEO text of the front page. */
.seo-text { margin: 0; padding: clamp(56px, 6vw, 88px) 0; scroll-margin-top: 86px; }
.seo-text__inner { max-width: 880px; margin-inline: auto; }
.seo-text--page .seo-text__inner { max-width: 880px; margin-inline: auto; }
.seo-text__eyebrow { display: block; margin: 0 0 13px; color: var(--color-primary, #0861c2); font-size: 12px; font-weight: 900; line-height: 1.25; letter-spacing: .11em; text-transform: uppercase; }
.seo-text__title { margin: 0 0 24px; }
.seo-text__body { color: var(--color-text, #102033); font-size: 17px; line-height: 1.65; }
.seo-text__body > :first-child { margin-top: 0; }
.seo-text__body h2,
.seo-text__body h3 { margin: 28px 0 10px; }
.seo-text__body ul,
.seo-text__body ol { padding-left: 22px; }
.seo-text__body.is-collapsed { position: relative; max-height: 420px; overflow: hidden; }
.seo-text__body.is-collapsed::after { position: absolute; right: 0; bottom: 0; left: 0; height: 120px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); content: ""; }
.seo-text__more { min-height: 44px; margin-top: 12px; padding: 0 22px; color: var(--color-primary, #0861c2); background: #fff; border: 1px solid var(--color-primary, #0861c2); border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 720px) { .seo-text__body { font-size: 16px; } }

/*
 * Subheadings of one level look the same on service, child service and audience pages
 * (section titles, cards, price, roadmap, FAQ, CTA, SEO text). Styling is by CSS only:
 * <strong>/<b> are removed from headings by the theme.
 */
:is(main.service-page, main.audience-segment) h2:not([class*="hero"]):not(.structure-links__heading) {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}
:is(main.service-page, main.audience-segment) h3:not([class*="hero"]) {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
}
:is(main.service-page, main.audience-segment) h4:not([class*="hero"]) {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}
:is(main.service-page, main.audience-segment) :is(h2, h3, h4) :is(strong, b) { font-weight: inherit; }
.seo-text__body :is(h2, h3, h4) :is(strong, b) { font-weight: inherit; }
@media (max-width: 760px) {
    :is(main.service-page, main.audience-segment) h2:not([class*="hero"]):not(.structure-links__heading) { font-size: clamp(27px, 8vw, 36px); }
    :is(main.service-page, main.audience-segment) h3:not([class*="hero"]) { font-size: 18px; }
}

/* ===== 1.7.5: tables and images in SEO texts (pages and the front page) ===== */
:is(.seo-text__body, .front-home-text__body) .seo-table { margin: 24px 0; }
:is(.seo-text__body, .front-home-text__body) .seo-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border, #d9e6f0); border-radius: 14px; background: #fff; }
:is(.seo-text__body, .front-home-text__body) .seo-table__scroll:focus-visible { outline: 2px solid var(--color-primary, #0861c2); outline-offset: 2px; }
:is(.seo-text__body, .front-home-text__body) table { width: 100%; min-width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
:is(.seo-text__body, .front-home-text__body) caption { padding: 14px 16px 0; color: var(--color-muted, #5f6f82); font-size: 14px; text-align: left; caption-side: top; }
:is(.seo-text__body, .front-home-text__body) th,
:is(.seo-text__body, .front-home-text__body) td { padding: 12px 16px; border-bottom: 1px solid var(--color-border, #d9e6f0); text-align: left; vertical-align: top; }
:is(.seo-text__body, .front-home-text__body) thead th { color: var(--color-text, #102033); background: var(--color-bg-soft, #f5f9fc); font-weight: 700; white-space: nowrap; }
:is(.seo-text__body, .front-home-text__body) tbody tr:nth-child(even) td { background: #fafcfe; }
:is(.seo-text__body, .front-home-text__body) tbody tr:last-child td { border-bottom: 0; }
:is(.seo-text__body, .front-home-text__body) .seo-table__hint { display: none; margin: 8px 0 0; color: var(--color-muted, #5f6f82); font-size: 13px; }
:is(.seo-text__body, .front-home-text__body) .seo-table.is-scrollable .seo-table__hint { display: block; }
:is(.seo-text__body, .front-home-text__body) .seo-figure { margin: 28px 0; }
:is(.seo-text__body, .front-home-text__body) .seo-figure img,
:is(.seo-text__body, .front-home-text__body) .wp-caption img,
:is(.seo-text__body, .front-home-text__body) p > img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 14px; }
:is(.seo-text__body, .front-home-text__body) .seo-figure__caption,
:is(.seo-text__body, .front-home-text__body) .wp-caption-text,
:is(.seo-text__body, .front-home-text__body) figcaption { margin-top: 10px; color: var(--color-muted, #5f6f82); font-size: 14px; line-height: 1.45; text-align: center; }
:is(.seo-text__body, .front-home-text__body) .wp-caption { max-width: 100%; margin: 28px auto; }
:is(.seo-text__body, .front-home-text__body) .alignleft { float: none; margin-inline: 0 auto; }
:is(.seo-text__body, .front-home-text__body) .alignright { float: none; margin-inline: auto 0; }
@media (max-width: 720px) {
    :is(.seo-text__body, .front-home-text__body) table { font-size: 14px; }
    :is(.seo-text__body, .front-home-text__body) th,
    :is(.seo-text__body, .front-home-text__body) td { padding: 10px 12px; }
}

/* 1.9.0: «Услуги и подразделы» – links by the site structure on direction and service pages. */
.structure-links {
    margin: 48px 0;
    padding: 28px;
    background: var(--brand-soft, #F1F6FB);
    border: 1px solid var(--brand-line, #DCE5EF);
    border-radius: 16px;
}

.structure-links h2.structure-links__heading {
    margin: 0 0 18px;
    color: var(--brand-navy, #0D2745);
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}

.structure-links__groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px 24px;
}

.structure-links__group--services {
    grid-column: 1 / -1;
}

.structure-links p.structure-links__title {
    margin: 0 0 8px;
    color: var(--brand-blue, #0874D1);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.structure-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.structure-links__group:not(.structure-links__group--services) .structure-links__list {
    flex-direction: column;
    gap: 4px;
}

.structure-links__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    color: var(--brand-navy, #0D2745);
    background: #FFFFFF;
    border: 1px solid var(--brand-line, #DCE5EF);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.structure-links__group:not(.structure-links__group--services) .structure-links__link {
    min-height: 0;
    padding: 3px 0;
    background: transparent;
    border: 0;
    font-weight: 500;
}

.structure-links__link:hover,
.structure-links__link:focus-visible {
    color: var(--brand-blue, #0874D1);
    border-color: var(--brand-blue, #0874D1);
}

.structure-links__link.is-current {
    color: #FFFFFF;
    background: var(--brand-blue, #0874D1);
    border-color: var(--brand-blue, #0874D1);
}

.structure-links__group:not(.structure-links__group--services) .structure-links__link.is-current {
    color: var(--brand-blue, #0874D1);
    background: transparent;
}

@media (max-width: 720px) {
    .structure-links {
        margin: 32px 0;
        padding: 20px 16px;
    }
}
