/* ==========================================================================
   Спектр — дизайн-система сайта. Оранжевый + тёмный текст (контраст 7,4:1).
   ========================================================================== */

:root {
    --sx-orange: #ee8b1e;
    --sx-orange-hover: #f7a443;
    --sx-orange-press: #d97a12;
    --sx-orange-edge: #b8650a;
    --sx-orange-text: #a84f00;
    --sx-orange-tint: #fff4e6;
    --sx-orange-tint-2: #ffe7cc;
    --sx-ink: #1a120b;
    --sx-cherry: #990f3d;     /* сочный вишнёвый — крупные слова на оранжевом (3,4:1, норма для крупного текста) */
    --sx-on-orange: #760a2c;  /* вишнёвый глубже — мелкий текст на оранжевом (4,5:1) */
    --sx-ink-2: #5c4a3d;
    --sx-night: #16100b;
    --sx-line: #eadfd3;
    --sx-field-line: #cbb9a8;
    --sx-danger: #b42318;
    --sx-danger-bg: #fef3f2;
    --sx-radius: 16px;
    --sx-radius-lg: 28px;
    --sx-font-head: "Unbounded", "Arial Black", Arial, sans-serif;
    --sx-font-text: "Jost", Arial, sans-serif;
    --sx-dur: 120ms;
    --sx-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Цвет ссылок темы — тёмно-оранжевый, чтобы текст читался (5,5:1). */
body {
    --global-palette1: #a84f00;
    --global-palette2: #8a4100;
    /* Цвета темы Kadence вычисляются от синей палитры ещё до нашей замены — задаём их напрямую. */
    --global-palette-highlight: #a84f00;
    --global-palette-highlight-alt: #8a4100;
    --global-palette-btn-bg: var(--sx-orange);
    --global-palette-btn-bg-hover: var(--sx-orange-hover);
    --global-palette-btn: var(--sx-on-orange);
    --global-palette-btn-hover: var(--sx-on-orange);
}

.sx-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Чёткий контур при управлении с клавиатуры — на всём сайте. */
body :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--sx-ink);
    outline-offset: 3px;
}

/* Выделение слов в овале: «Запишитесь на [бесплатную] неделю». */
.sx-mark {
    display: inline-block;
    padding: .06em .42em .1em;
    border-radius: 999px;
    background: var(--sx-orange);
    color: var(--sx-ink);
    line-height: 1.12;
}

/* ---------- Кнопки: 5 состояний, «прожимаются» при нажатии ---------- */

.sx-btn {
    --btn-bg: var(--sx-orange-tint);
    --btn-fg: var(--sx-ink);
    --btn-edge: rgba(184, 101, 10, .35);
    --btn-ring: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: inset 0 0 0 2px var(--btn-ring), inset 0 -4px 0 var(--btn-edge);
    font: 600 16px/1.2 var(--sx-font-text);
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--sx-dur) var(--sx-ease), background-color var(--sx-dur) var(--sx-ease), box-shadow var(--sx-dur) var(--sx-ease), color var(--sx-dur) var(--sx-ease);
}
.sx-btn:visited { color: var(--btn-fg); }

.sx-btn--primary {
    --btn-bg: var(--sx-orange);
    --btn-fg: var(--sx-ink);
    --btn-edge: var(--sx-orange-edge);
}
.sx-btn--secondary {
    --btn-bg: #fff;
    --btn-fg: var(--sx-ink);
    --btn-ring: var(--sx-orange);
    --btn-edge: rgba(184, 101, 10, .35);
}
.sx-btn--on-dark {
    --btn-bg: rgba(255, 255, 255, .08);
    --btn-fg: #fff;
    --btn-ring: rgba(255, 255, 255, .85);
    --btn-edge: rgba(255, 255, 255, .25);
}
.sx-btn--link {
    --btn-bg: transparent;
    --btn-edge: transparent;
    padding: 0 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sx-btn--lg {
    min-height: 56px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.sx-btn--block { width: 100%; }

@media (hover: hover) {
    .sx-btn:hover {
        transform: translateY(-2px);
        color: var(--btn-fg);
    }
    .sx-btn--primary:hover {
        --btn-bg: var(--sx-orange-hover);
        box-shadow: inset 0 -4px 0 var(--btn-edge), 0 10px 24px rgba(238, 139, 30, .35);
    }
    .sx-btn--secondary:hover { --btn-bg: var(--sx-orange-tint); }
    .sx-btn--on-dark:hover {
        --btn-bg: #fff;
        --btn-fg: var(--sx-ink);
    }
    .sx-btn--link:hover { transform: none; }
}

.sx-btn:active {
    transform: translateY(2px) scale(.97);
    box-shadow: inset 0 0 0 2px var(--btn-ring), inset 0 -1px 0 var(--btn-edge);
}
.sx-btn--primary:active { --btn-bg: var(--sx-orange-press); }

.sx-btn:focus-visible { outline: 3px solid var(--sx-ink); outline-offset: 3px; }
.sx-btn--on-dark:focus-visible,
.sx-hero .sx-btn:focus-visible { outline-color: #fff; }

.sx-btn:disabled,
.sx-btn[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Отправка формы: кнопка заблокирована, вместо текста — спиннер, ширина не прыгает. */
.sx-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sx-spin .7s linear infinite;
}
.sx-btn.is-loading,
.sx-btn.is-loading:disabled { opacity: 1; cursor: wait; }
.sx-btn.is-loading .sx-btn__label { visibility: hidden; }
.sx-btn.is-loading .sx-spinner { display: block; }
@keyframes sx-spin { to { transform: rotate(360deg); } }

/* Кнопки блоков WordPress выглядят так же, как наши. */
.entry-content .wp-block-button__link {
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    background: var(--sx-orange);
    color: var(--sx-ink);
    box-shadow: inset 0 -4px 0 var(--sx-orange-edge);
    font: 600 16px/1.2 var(--sx-font-text);
    text-decoration: none;
    transition: transform var(--sx-dur) var(--sx-ease), background-color var(--sx-dur) var(--sx-ease), box-shadow var(--sx-dur) var(--sx-ease);
}
.entry-content .is-style-outline .wp-block-button__link {
    background: #fff;
    color: var(--sx-ink);
    box-shadow: inset 0 0 0 2px var(--sx-orange), inset 0 -4px 0 rgba(184, 101, 10, .35);
}
@media (hover: hover) {
    .entry-content .wp-block-button__link:hover {
        transform: translateY(-2px);
        background: var(--sx-orange-hover);
        color: var(--sx-ink);
    }
    .entry-content .is-style-outline .wp-block-button__link:hover { background: var(--sx-orange-tint); }
}
.entry-content .wp-block-button__link:active {
    transform: translateY(2px) scale(.97);
    box-shadow: inset 0 -1px 0 var(--sx-orange-edge);
}

/* ---------- Первый экран ---------- */

.entry-content > .sx-hero,
.sx-hero { margin: 0 !important; }

.sx-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 88px;
    overflow: hidden;
    background: var(--sx-night);
    color: #fff;
}
.sx-hero__media { position: absolute; inset: 0; z-index: -2; }
.sx-hero__poster,
.sx-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sx-hero__video { opacity: 0; transition: opacity .3s ease; }
.sx-hero__video.is-playing { opacity: 1; }
.sx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(22, 16, 11, .55) 0%, rgba(22, 16, 11, 0) 20%, rgba(22, 16, 11, 0) 44%, rgba(22, 16, 11, .86) 72%, rgba(22, 16, 11, .97) 100%);
}
.sx-hero__inner { width: 100%; }
.sx-hero__content { box-sizing: border-box; max-width: 580px; padding: 0 20px 28px; }
html:not(.sx-js) body.has-sx-bar .sx-hero__content { padding-bottom: 104px; }

.sx-hero .sx-offer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 4px 4px 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font: 500 15px/1.2 var(--sx-font-text);
}
.sx-offer__badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sx-orange);
    color: var(--sx-ink);
    font-weight: 600;
}

.entry-content .sx-hero__title,
.sx-hero__title {
    margin: 0 0 10px;
    color: #fff;
    font: 700 clamp(28px, 7.6vw, 40px)/1.06 var(--sx-font-head);
    letter-spacing: .005em;
    text-transform: uppercase;
}
.sx-hero__accent { color: var(--sx-orange); white-space: nowrap; }
.sx-hero .sx-hero__text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    line-height: 1.45;
}
.sx-hero__actions { display: flex; gap: 10px; }
.sx-hero__actions .sx-btn--primary { flex: 1; }
.sx-hero .sx-hero__note { margin: 12px 0 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
/* Ближайшая тренировка: строку заполняет скрипт, до этого её на экране нет. */
.sx-next[hidden] { display: none; }
.sx-hero .sx-next { margin: 14px 0 0; color: #fff; font-size: 15px; line-height: 1.45; }
.sx-hero .sx-next::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--sx-orange); box-shadow: 0 0 0 4px rgba(238, 139, 30, .25); vertical-align: middle; }
.sx-hero .sx-next strong { font-weight: 600; white-space: nowrap; }
.sx-hero__card,
.sx-only-desktop { display: none; }

@media (min-width: 900px) {
    .sx-only-mobile { display: none; }
    .sx-only-desktop { display: inline; }

    .sx-hero {
        min-height: min(100vh, 880px);
        padding-top: 0;
        align-items: center;
        background:
            radial-gradient(760px 540px at 78% 42%, rgba(238, 139, 30, .42), transparent 62%),
            radial-gradient(520px 420px at 6% 100%, rgba(238, 139, 30, .16), transparent 70%),
            var(--sx-night);
    }
    .sx-hero::after,
    .sx-hero__media { display: none; }
    .sx-hero__inner {
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        gap: 56px;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 128px 48px 72px;
    }
    .sx-hero__content { max-width: 600px; padding: 0; }
    .entry-content .sx-hero__title,
    .sx-hero__title { margin-bottom: 18px; font-size: clamp(40px, 4.4vw, 60px); }
    .sx-hero .sx-hero__text { max-width: 540px; margin-bottom: 28px; font-size: 21px; }
    .sx-hero__actions .sx-btn--primary { flex: 0 0 auto; padding: 0 30px; }

    .sx-hero__card { display: block; position: relative; justify-self: center; }
    .sx-hero__frame {
        position: relative;
        height: min(72vh, 680px);
        aspect-ratio: 9 / 16;
        overflow: hidden;
        border-radius: 32px;
        background: #000;
        box-shadow: 0 0 0 8px var(--sx-orange), 0 40px 90px rgba(0, 0, 0, .55);
        transform: rotate(2deg);
    }
    .sx-sticker {
        position: absolute;
        padding: 10px 16px;
        border-radius: 999px;
        background: #fff;
        color: var(--sx-ink);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
        font: 600 15px/1.2 var(--sx-font-text);
        white-space: nowrap;
    }
    .sx-sticker--1 { top: 12%; left: -48px; transform: rotate(-4deg); }
    .sx-sticker--2 { bottom: 12%; right: -40px; transform: rotate(3deg); background: var(--sx-orange); }
}

/* Прозрачная шапка поверх первого экрана: белые логотип-подпись, меню и бургер. */
.transparent-header #masthead .site-title,
.transparent-header #masthead .header-navigation .menu > li > a,
.transparent-header #masthead .menu-toggle-open { color: #fff; }

/* ---------- Нижняя панель на телефоне ---------- */

.sx-bar { display: none; }
@media (max-width: 767px) {
    .sx-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        display: flex;
        gap: 8px;
        padding: 8px 12px max(16px, env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 -1px 0 var(--sx-line), 0 -8px 24px rgba(26, 18, 11, .08);
        transition: transform 180ms var(--sx-ease), visibility 0s;
    }
    .sx-js .sx-bar.is-hidden {
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 180ms var(--sx-ease), visibility 0s 180ms;
    }
    .sx-bar__item { flex: 1; padding: 0 10px; font-size: 15px; }
    .sx-bar__item--main { flex: 1.4; }
    body.has-sx-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .sx-btn,
    .sx-bar,
    .sx-hero__video { transition: none; }
    .sx-btn:active,
    .sx-btn:hover { transform: none; }
    .sx-spinner { animation-duration: 1.6s; }
}

/* ---------- Секции главной и страниц ---------- */

.entry-content .spectr-section {
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    padding: 56px 20px;
    color: var(--sx-ink);
}
.entry-content .spectr-section--alt { background: var(--sx-orange-tint); }
.entry-content .spectr-section--accent { background: var(--sx-orange); }
@media (min-width: 900px) {
    .entry-content .spectr-section { padding: 88px 32px; }
}

.entry-content .spectr-section > h2,
.entry-content .spectr-section > .wp-block-group__inner-container > h2,
.entry-content .sx-section-title {
    max-width: 1100px;
    margin: 0 auto 28px;
    color: var(--sx-ink);
    font: 700 clamp(24px, 5.8vw, 42px)/1.12 var(--sx-font-head);
    letter-spacing: .005em;
    text-transform: uppercase;
}
.entry-content .spectr-section > *:not(h2),
.entry-content .spectr-section > .wp-block-group__inner-container > *:not(h2) { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content .spectr-section > .wp-block-group__inner-container { max-width: none; }
.entry-content .spectr-section p { font-size: 18px; line-height: 1.55; }
.entry-content .spectr-section a:not(.sx-btn):not(.wp-block-button__link) {
    color: var(--sx-orange-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Карточки преимуществ */
.entry-content .spectr-cards > .wp-block-group__inner-container,
.sx-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.entry-content .spectr-card,
.sx-card {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 24px 22px 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line), inset 0 5px 0 var(--sx-orange);
}
.spectr-section--alt .spectr-card { box-shadow: inset 0 5px 0 var(--sx-orange); }
.entry-content .spectr-card h3,
.sx-card__title {
    margin: 0 0 8px;
    color: var(--sx-ink);
    font: 600 21px/1.25 var(--sx-font-text);
}
.entry-content .spectr-card p,
.sx-card__text { margin: 0; color: var(--sx-ink-2); font-size: 17px; line-height: 1.5; }
.sx-card .sx-card__eyebrow { margin: 0 0 6px; color: var(--sx-orange-text); font-weight: 600; }
.sx-card__more { display: inline-block; margin-top: 12px; color: var(--sx-orange-text); font-weight: 600; }

/* Карточка-ссылка: кликается целиком, есть наведение и нажатие. */
.sx-card--link { transition: transform var(--sx-dur) var(--sx-ease), box-shadow var(--sx-dur) var(--sx-ease); }
.sx-card__link { color: inherit; text-decoration: none; }
.sx-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) {
    .sx-card--link:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--sx-orange), 0 16px 34px rgba(26, 18, 11, .10); }
}
.sx-card--link:active { transform: scale(.98); }
.sx-card--link:focus-within { box-shadow: 0 0 0 3px var(--sx-ink); }
.sx-card__link:focus-visible { outline: none; }

/* Расписание */
.entry-content .spectr-schedule {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.entry-content .spectr-schedule li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 8px 8px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line);
    font-size: 18px;
}
.entry-content .spectr-schedule li strong { font-weight: 600; }

/* Шаги «Как начать» */
.entry-content .spectr-steps {
    display: grid;
    gap: 14px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: sx-step;
}
.entry-content .spectr-steps li {
    position: relative;
    min-height: 48px;
    padding: 10px 0 10px 64px;
    font-size: 18px;
    line-height: 1.5;
    counter-increment: sx-step;
}
.entry-content .spectr-steps li::before {
    content: counter(sx-step);
    position: absolute;
    top: 4px;
    left: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sx-orange);
    color: var(--sx-ink);
    font: 700 20px/1 var(--sx-font-head);
}

/* Карта: место под неё зарезервировано заранее, страница не прыгает. */
.entry-content .spectr-map {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    background: var(--sx-orange-tint);
    box-shadow: 0 0 0 1px var(--sx-line);
}
.entry-content .spectr-map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 599px) { .entry-content .spectr-map { aspect-ratio: 4 / 5; } }

.entry-content .spectr-requisites { color: var(--sx-ink-2); font-size: 15px; }

/* Вопросы родителей — и из блоков WordPress, и из шорткода */
.sx-faq { display: grid; gap: 10px; }
.entry-content .wp-block-details,
.sx-faq__item {
    margin: 0 0 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line);
}
.sx-faq .sx-faq__item { margin: 0; }
.entry-content .wp-block-details summary,
.sx-faq__question {
    position: relative;
    display: block;
    min-height: 56px;
    padding: 16px 56px 16px 20px;
    border-radius: 16px;
    color: var(--sx-ink);
    font: 600 18px/1.35 var(--sx-font-text);
    list-style: none;
    cursor: pointer;
    transition: background-color var(--sx-dur) var(--sx-ease);
}
.entry-content .wp-block-details summary::-webkit-details-marker,
.sx-faq__question::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after,
.sx-faq__icon {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    background: var(--sx-orange-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23760a2c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
    transition: transform var(--sx-dur) var(--sx-ease), background-color var(--sx-dur) var(--sx-ease);
}
.entry-content .wp-block-details[open] summary::after,
.sx-faq__item[open] .sx-faq__icon { transform: rotate(45deg); background-color: var(--sx-orange); }
@media (hover: hover) {
    .entry-content .wp-block-details summary:hover,
    .sx-faq__question:hover { background: var(--sx-orange-tint); }
}
.entry-content .wp-block-details summary:active,
.sx-faq__question:active { background: var(--sx-orange-tint-2); }
.entry-content .wp-block-details > :not(summary),
.sx-faq__answer { padding: 0 20px 18px; color: var(--sx-ink-2); font-size: 17px; line-height: 1.55; }
.sx-faq__answer p { margin: 0 0 8px; }

/* Цены */
.sx-prices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sx-price {
    margin: 0;
    padding: 24px 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line);
}
.sx-price--featured { background: var(--sx-orange); box-shadow: none; }
.sx-price__name { margin: 0 0 12px; color: var(--sx-ink); font: 600 20px/1.25 var(--sx-font-text); }
.sx-prices .sx-price__amount { margin: 0 0 10px; color: var(--sx-ink); }
.sx-price__prefix,
.sx-price__period { font-size: 17px; }
.sx-price__value { font: 700 clamp(30px, 8vw, 40px)/1 var(--sx-font-head); white-space: nowrap; }
.sx-prices .sx-price__text { margin: 0; color: var(--sx-ink-2); font-size: 17px; line-height: 1.5; }
.sx-price--featured .sx-price__text { color: var(--sx-ink); }

/* Команда */
.sx-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sx-person { margin: 0; }
@media (min-width: 700px) { .sx-team { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; } }
.sx-person__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    background: var(--sx-orange-tint);
}
.sx-person__photo--empty { display: grid; place-items: center; color: var(--sx-orange); }
.entry-content .sx-person__name { margin: 12px 0 2px; color: var(--sx-ink); font: 600 clamp(18px, 4.8vw, 21px)/1.25 var(--sx-font-text); text-transform: none; }
.sx-team .sx-person__role { margin: 0 0 6px; color: var(--sx-orange-text); font-weight: 600; }
.sx-team .sx-person__bio { margin: 0; color: var(--sx-ink-2); font-size: 16px; line-height: 1.5; }

/* Данные филиала */
.sx-facts { display: grid; gap: 10px; margin: 0 0 20px; }
.sx-facts__row { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--sx-line); }
.sx-facts dt { color: var(--sx-ink-2); font-size: 15px; }
.sx-facts dd { margin: 0; color: var(--sx-ink); font-size: 18px; font-weight: 500; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.sx-tags li { padding: 6px 12px; border-radius: 999px; background: var(--sx-orange-tint); font-size: 15px; }
.sx-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sx-phone { color: var(--sx-orange-text); font-weight: 600; white-space: nowrap; }
/* Номер телефона в тексте страниц не разрывается посередине («+7 (982) 392-» / «16-97»). */
.entry-content a[href^="tel:"] { white-space: nowrap; }

/* ---------- Форма заявки ---------- */

.sx-form {
    box-sizing: border-box;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 20px;
    border-radius: var(--sx-radius-lg);
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line), 0 24px 60px rgba(26, 18, 11, .10);
    color: var(--sx-ink);
    scroll-margin-top: 96px;
}
@media (min-width: 600px) { .sx-form { padding: 40px; } }
.sx-form [hidden] { display: none !important; }
.sx-form.is-submitting { cursor: wait; }

.entry-content .sx-form__title,
.sx-form__title {
    margin: 0 0 10px;
    color: var(--sx-ink);
    font: 700 clamp(22px, 5.4vw, 32px)/1.18 var(--sx-font-head);
    text-transform: uppercase;
}
.sx-form .sx-form__text { margin: 0 0 24px; color: var(--sx-ink-2); font-size: 17px; line-height: 1.5; }
.sx-form .sx-form__alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--sx-danger-bg); color: var(--sx-danger); }
.sx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.sx-field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.sx-field__label { display: block; margin: 0 0 8px; padding: 0; color: var(--sx-ink); font-size: 16px; font-weight: 600; }
.sx-field__hint { color: var(--sx-ink-2); font-weight: 400; }

.sx-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 12px 16px;
    border: 2px solid var(--sx-field-line);
    border-radius: 14px;
    background: #fff;
    color: var(--sx-ink);
    font: 400 17px/1.3 var(--sx-font-text); /* не меньше 16px — иначе iPhone увеличивает страницу */
    transition: border-color var(--sx-dur) var(--sx-ease), box-shadow var(--sx-dur) var(--sx-ease);
    -webkit-appearance: none;
    appearance: none;
}
.sx-input::placeholder { color: #75665a; opacity: 1; }
@media (hover: hover) { .sx-input:hover { border-color: #a8927f; } }
.sx-input:focus { outline: none; border-color: var(--sx-ink); box-shadow: 0 0 0 4px rgba(238, 139, 30, .35); }
.sx-input:disabled { background: #f6f1ec; color: var(--sx-ink-2); cursor: not-allowed; }
.sx-field.is-invalid .sx-input { border-color: var(--sx-danger); }
.sx-field.is-invalid .sx-input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .18); }
.sx-select {
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231a120b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}

.sx-form .sx-field__error {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 8px 0 0;
    color: var(--sx-danger);
    font-size: 15px;
    line-height: 1.35;
}
.sx-field__error::before {
    content: "!";
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--sx-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Возраст — крупные кнопки-«таблетки» вместо выпадающего списка */
.sx-ages__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .sx-ages__list { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.sx-chip { position: relative; display: block; }
.sx-chip__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sx-chip__face {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    background: var(--sx-orange-tint);
    color: var(--sx-ink);
    box-shadow: inset 0 -3px 0 rgba(184, 101, 10, .25);
    font: 600 18px/1 var(--sx-font-text);
    transition: transform var(--sx-dur) var(--sx-ease), background-color var(--sx-dur) var(--sx-ease), box-shadow var(--sx-dur) var(--sx-ease);
    pointer-events: none;
}
@media (hover: hover) { .sx-chip:hover .sx-chip__face { background: var(--sx-orange-tint-2); } }
.sx-chip__input:active + .sx-chip__face { transform: scale(.92); box-shadow: inset 0 -1px 0 rgba(184, 101, 10, .25); }
.sx-chip__input:checked + .sx-chip__face { background: var(--sx-orange); box-shadow: inset 0 -3px 0 var(--sx-orange-edge); }
.sx-chip__input:focus-visible + .sx-chip__face { outline: 3px solid var(--sx-ink); outline-offset: 2px; }
.sx-chip__input:disabled + .sx-chip__face { opacity: .5; }

/* Галочка согласия */
.sx-check {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 44px;
    color: var(--sx-ink-2);
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
}
.sx-check__input { position: absolute; top: 0; left: 0; width: 44px; height: 44px; margin: -8px 0 0 -8px; opacity: 0; cursor: pointer; }
.sx-check__box {
    flex: none;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    border: 2px solid var(--sx-field-line);
    border-radius: 8px;
    background: #fff;
    transition: transform var(--sx-dur) var(--sx-ease), background-color var(--sx-dur) var(--sx-ease), border-color var(--sx-dur) var(--sx-ease);
    pointer-events: none;
}
.sx-check__box::after {
    content: "";
    width: 12px;
    height: 7px;
    margin-top: -3px;
    border: 3px solid var(--sx-ink);
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) scale(0);
    transition: transform var(--sx-dur) var(--sx-ease);
}
@media (hover: hover) { .sx-check:hover .sx-check__box { border-color: #a8927f; } }
.sx-check__input:active + .sx-check__box { transform: scale(.9); }
.sx-check__input:checked + .sx-check__box { border-color: var(--sx-orange); background: var(--sx-orange); }
.sx-check__input:checked + .sx-check__box::after { transform: rotate(-45deg) scale(1); }
.sx-check__input:focus-visible + .sx-check__box { outline: 3px solid var(--sx-ink); outline-offset: 2px; }
.sx-field.is-invalid .sx-check__box { border-color: var(--sx-danger); }
.sx-check__text a { position: relative; z-index: 1; color: var(--sx-orange-text); text-decoration: underline; text-underline-offset: 2px; }

.sx-form .sx-form__legal { margin: 12px 0 0; color: var(--sx-ink-2); font-size: 14px; text-align: center; }
.sx-form__legal a { color: var(--sx-orange-text); }

.sx-form__status {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--sx-danger-bg);
    color: var(--sx-danger);
}
.sx-form .sx-form__status-text { margin: 0; font-size: 16px; }

.sx-form__success { padding: 8px 0; text-align: center; outline: none; }
.sx-form__success-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--sx-orange);
    color: var(--sx-ink);
    animation: sx-pop .2s var(--sx-ease) both;
}
.entry-content .sx-form__success-title,
.sx-form .sx-form__success-title { margin: 0 0 10px; color: var(--sx-ink); font: 700 24px/1.2 var(--sx-font-head); text-transform: uppercase; }
.sx-form .sx-form__success-text { margin: 0 auto 12px; max-width: 460px; color: var(--sx-ink); font-size: 18px; line-height: 1.5; }
.sx-form .sx-form__success-extra { margin: 0; color: var(--sx-ink-2); font-size: 16px; }
.sx-form__success-extra a { color: var(--sx-orange-text); font-weight: 600; white-space: nowrap; }
@keyframes sx-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .sx-form__success-icon { animation: none; }
    .sx-chip__face,
    .sx-check__box,
    .sx-input { transition: none; }
}

/* ---------- Статьи для родителей ---------- */

.single-post .entry-content { font-size: 18px; line-height: 1.65; color: var(--sx-ink); }
.single-post .entry-content > *:not(.sx-article-cta):not(.alignfull):not(.alignwide) { max-width: 720px; margin-left: auto; margin-right: auto; }
.single-post .entry-content h2 { margin-top: 1.8em; font: 700 clamp(22px, 5vw, 30px)/1.2 var(--sx-font-head); text-transform: uppercase; }
.single-post .entry-content h3 { margin-top: 1.5em; font: 600 22px/1.3 var(--sx-font-text); }
.single-post .entry-content a:not(.sx-btn) { color: var(--sx-orange-text); text-underline-offset: 3px; }
.single-post .entry-content blockquote { margin: 1.5em auto; padding: 16px 20px; border-left: 0; border-radius: 16px; background: var(--sx-orange-tint); }
.sx-article-cta { margin: 48px auto 0; padding: 32px 16px; border-radius: var(--sx-radius-lg); background: var(--sx-orange); }
@media (min-width: 700px) { .sx-article-cta { padding: 48px; } }

/* Списки-сетки без отступов маркированного списка темы */
.entry-content ul.sx-prices,
.entry-content ul.sx-team,
.entry-content ul.sx-cards,
.entry-content ul.sx-tags { margin-left: 0; padding-left: 0; list-style: none; }
.entry-content ul.sx-prices > li,
.entry-content ul.sx-team > li,
.entry-content ul.sx-cards > li { margin-left: 0; }

/* ---------- Текст на оранжевом — бордовый ---------- */

.sx-mark,
.sx-hero .sx-offer__badge,
.sx-price--featured .sx-price__name,
.sx-price--featured .sx-price__amount,
.sx-prices .sx-price--featured .sx-price__text,
.entry-content .spectr-steps li::before,
.sx-chip__input:checked + .sx-chip__face,
.sx-form__success-icon,
.sx-sticker--2 { color: var(--sx-on-orange); }

.sx-btn--primary { --btn-fg: var(--sx-on-orange); }
.entry-content .wp-block-button__link,
.entry-content .wp-block-button__link:visited { color: var(--sx-on-orange); }
@media (hover: hover) {
    .entry-content .wp-block-button__link:hover { color: var(--sx-on-orange); }
}
.entry-content .is-style-outline .wp-block-button__link { color: var(--sx-ink); }
.sx-check__input:checked + .sx-check__box::after { border-color: var(--sx-on-orange); }

/* Крупные слова и цифры на оранжевом — сочный вишнёвый */
.sx-mark,
.sx-price--featured .sx-price__value,
.entry-content .spectr-steps li::before { color: var(--sx-cherry); }

/* ---------- Отзывы из Яндекс Карт ---------- */

.sx-reviews { max-width: 760px; }
.sx-reviews__frame {
    overflow: hidden;
    height: 620px;
    margin: 0 0 16px;
    border-radius: 20px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z' fill='%23ffe7cc'/%3E%3C/svg%3E") center / 64px no-repeat;
    box-shadow: 0 0 0 1px var(--sx-line);
}
@media (min-width: 900px) { .sx-reviews__frame { height: 720px; } }
.sx-reviews__widget { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Фото с тренировок (блок «Галерея» WordPress в секции spectr-gallery) ---------- */

.entry-content .spectr-gallery .wp-block-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0 -20px;
    padding: 0 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}
.entry-content .spectr-gallery .wp-block-gallery > .wp-block-image {
    flex: 0 0 82%;
    width: auto !important;
    margin: 0 !important;
    scroll-snap-align: start;
}
.entry-content .spectr-gallery .wp-block-gallery img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}
@media (min-width: 700px) {
    .entry-content .spectr-gallery .wp-block-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    .entry-content .spectr-gallery .wp-block-gallery > .wp-block-image { flex: none; }
}

/* ---------- Крупные кнопки записи и связи ---------- */

.sx-btn--lg {
    min-height: 60px;
    padding: 0 26px;
    font-size: 18px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.sx-form .sx-btn--block { min-height: 60px; font-size: 18px; }

/* Кнопки первого экрана не разваливаются по буквам: надпись всегда в одну строку. */
.sx-label-short { display: none; }
.sx-hero__actions .sx-btn { white-space: nowrap; }

/* Телефон и планшет: «Связаться» слева, «Записаться» справа и шире — видео остаётся больше места. */
@media (max-width: 899px) {
    .sx-hero__actions .sx-btn--lg {
        flex: 1 1 0;
        min-width: max-content;
        min-height: 52px;
        padding: 0 12px;
        font-size: 16px;
        letter-spacing: .04em;
    }
    .sx-hero__actions .sx-btn--primary { flex-grow: 1.4; }
    .sx-hero__actions .sx-btn--on-dark { order: -1; }
    .sx-hero .sx-label-short { display: inline; }
    .sx-hero .sx-label-long { display: none; }
}
@media (max-width: 359px) {
    .sx-hero__actions .sx-btn--lg { padding: 0 8px; letter-spacing: .02em; }
}
@media (max-width: 299px) {
    .sx-hero__actions { flex-direction: column; }
    .sx-hero__actions .sx-btn--lg { flex: none; width: 100%; min-width: 0; }
    .sx-hero__actions .sx-btn--on-dark { order: 0; }
}

/* Компьютер: не помещаются в строку — вторая кнопка переносится ниже; на небольших экранах надпись записи короткая. */
@media (min-width: 900px) {
    .sx-hero__actions { flex-wrap: wrap; }
}
@media (min-width: 900px) and (max-width: 1099px) {
    .sx-hero .sx-label-short { display: inline; }
    .sx-hero .sx-label-long { display: none; }
}

/* Кнопка «Записаться» всегда под рукой: на телефоне — панель снизу, на компьютере — плавающая кнопка. */
.sx-bar__long { display: none; }
@media (max-width: 767px) {
    .sx-bar__item { min-height: 54px; font-size: 17px; }
    /* Панель как первый экран: тёмная, надписи капсом — оранжевая «Записаться» так же заметна. */
    .sx-bar {
        background: rgba(22, 16, 11, .94);
        box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -10px 30px rgba(22, 16, 11, .28);
    }
    .sx-bar .sx-bar__item {
        font-size: 15px;
        letter-spacing: .04em;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .sx-bar .sx-btn--secondary {
        --btn-bg: rgba(255, 255, 255, .08);
        --btn-fg: #fff;
        --btn-ring: rgba(255, 255, 255, .85);
        --btn-edge: rgba(255, 255, 255, .25);
    }
    .sx-bar .sx-btn:focus-visible { outline-color: #fff; }
}
@media (min-width: 768px) {
    .sx-bar {
        position: fixed;
        right: 28px;
        bottom: 28px;
        z-index: 999;
        display: flex;
        transition: transform 180ms var(--sx-ease), opacity 180ms var(--sx-ease), visibility 0s;
    }
    .sx-bar__item:not(.sx-bar__item--main) { display: none; }
    .sx-bar__item--main {
        min-height: 60px;
        padding: 0 30px;
        border-radius: 999px;
        font-size: 18px;
        box-shadow: inset 0 -4px 0 var(--btn-edge), 0 16px 36px rgba(26, 18, 11, .28);
    }
    .sx-bar__short { display: none; }
    .sx-bar__long { display: inline; }
    .sx-js .sx-bar.is-hidden {
        transform: translateY(24px);
        opacity: 0;
        visibility: hidden;
        transition: transform 180ms var(--sx-ease), opacity 180ms var(--sx-ease), visibility 0s 180ms;
    }
}

/* Переход к форме — плавная прокрутка (кроме тех, у кого в системе отключена анимация). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Меню на телефоне: крупные пункты, удобно попадать пальцем ---------- */

#mobile-drawer .mobile-navigation ul li { font-size: 21px; }
#mobile-drawer .mobile-navigation ul li > a { padding-top: .75em; padding-bottom: .75em; }

/* ---------- Кнопка отправки формы пульсирует, как сердце: два удара и пауза ---------- */

@keyframes sx-heartbeat {
    0%, 45%, 100% { transform: scale(1); }
    12% { transform: scale(1.05); }
    22% { transform: scale(.99); }
    32% { transform: scale(1.04); }
}
@keyframes sx-heartbeat-ring {
    0% { box-shadow: 0 0 0 0 rgba(238, 139, 30, .45); }
    45%, 100% { box-shadow: 0 0 0 14px rgba(238, 139, 30, 0); }
}
.sx-form .sx-btn--block:not(:disabled):not(.is-loading) { animation: sx-heartbeat 1.6s ease-in-out 1s infinite; }
.sx-form .sx-btn--block:not(:disabled):not(.is-loading)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    animation: sx-heartbeat-ring 1.6s ease-out 1s infinite;
}
.sx-form .sx-btn--block:active,
.sx-form .sx-btn--block:focus-visible,
.sx-form .sx-btn--block:active::after,
.sx-form .sx-btn--block:focus-visible::after { animation: none; }
@media (hover: hover) {
    .sx-form .sx-btn--block:hover,
    .sx-form .sx-btn--block:hover::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sx-form .sx-btn--block,
    .sx-form .sx-btn--block::after { animation: none !important; }
}

/* ---------- «Связаться»: окно со способами связи (на телефоне выезжает снизу) ---------- */

html:has(.sx-contact[open]) { overflow: hidden; }
.sx-contact {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 420px);
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: var(--sx-ink);
    box-shadow: 0 24px 60px rgba(22, 16, 11, .35);
    font-family: var(--sx-font-text);
}
.sx-contact::backdrop { background: rgba(22, 16, 11, .6); }
.sx-contact__panel { padding: 18px 18px 22px; }
.sx-contact__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
}
.sx-contact .sx-contact__title {
    margin: 0;
    color: var(--sx-ink);
    font: 700 19px/1.2 var(--sx-font-head);
    letter-spacing: .005em;
    text-transform: uppercase;
}
.sx-contact .sx-contact__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: -4px -6px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sx-orange-tint);
    box-shadow: none;
    color: var(--sx-ink);
    cursor: pointer;
    transition: background-color var(--sx-dur) var(--sx-ease), transform var(--sx-dur) var(--sx-ease);
}
.sx-contact .sx-contact__close:hover,
.sx-contact .sx-contact__close:focus { background: var(--sx-orange-tint-2); color: var(--sx-ink); }
.sx-contact .sx-contact__close:active { transform: scale(.94); }
.sx-contact__close svg { width: 20px; height: 20px; }
.sx-contact .sx-contact__note { margin: 0 0 16px; color: var(--sx-ink-2); font-size: 16px; line-height: 1.4; }
.sx-contact__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sx-contact__list > li { margin: 0; }
.sx-contact .sx-contact__item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--sx-line);
    color: var(--sx-ink);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--sx-dur) var(--sx-ease), background-color var(--sx-dur) var(--sx-ease);
}
.sx-contact .sx-contact__item:visited { color: var(--sx-ink); }
@media (hover: hover) {
    .sx-contact .sx-contact__item:hover { background: var(--sx-orange-tint); color: var(--sx-ink); text-decoration: none; }
}
.sx-contact .sx-contact__item:active { transform: scale(.98); background: var(--sx-orange-tint-2); }
/* Пункт-кнопка (MAX без ссылки копирует номер): без оформления кнопок темы. */
.sx-contact button.sx-contact__item,
.sx-contact button.sx-contact__item:focus {
    width: 100%;
    margin: 0;
    border: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--sx-line);
    color: var(--sx-ink);
    font: inherit;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
@media (hover: hover) {
    .sx-contact button.sx-contact__item:hover { background: var(--sx-orange-tint); box-shadow: inset 0 0 0 1px var(--sx-line); color: var(--sx-ink); }
}
.sx-contact .sx-contact__item.is-copied,
.sx-contact button.sx-contact__item.is-copied:hover { background: #effaf1; box-shadow: inset 0 0 0 1px #a6dcb2; }
.sx-contact .sx-contact__item.is-copied .sx-contact__sub { color: #1d6f33; white-space: normal; }
.sx-contact__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
}
.sx-contact__icon svg { display: block; width: 24px; height: 24px; }
.sx-contact__icon--phone { background: var(--sx-orange); color: var(--sx-on-orange); }
.sx-contact__icon--max { background: linear-gradient(135deg, #44ccff, #5533ee 66%, #9933dd); }
.sx-contact__icon--telegram { background: #229ed9; }
.sx-contact__icon--vk { background: #0077ff; }
.sx-contact__icon--whatsapp { background: #25d366; }
.sx-contact__text { display: grid; gap: 2px; min-width: 0; }
.sx-contact__name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.sx-contact__sub {
    overflow: hidden;
    color: var(--sx-ink-2);
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .sx-contact {
        width: 100%;
        max-height: 90%;
        margin: auto 0 0;
        border-radius: 24px 24px 0 0;
    }
    .sx-contact__panel { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
    .sx-contact[open] { animation: sx-sheet-in 220ms var(--sx-ease); }
}
@media (max-width: 359px) { .sx-contact .sx-contact__title { font-size: 17px; } }
@keyframes sx-sheet-in { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sx-contact[open] { animation: none; } }

/* ---------- Салют после отправки заявки ---------- */

.sx-confetti {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* Галочка «Заявка отправлена» появляется с лёгким пружинящим отскоком. */
.sx-form__success-icon { animation: sx-pop-bounce .5s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes sx-pop-bounce {
    0% { transform: scale(.4); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .sx-form__success-icon { animation: none; } }

/* ---------- Команда на телефоне листается вбок: видна следующая карточка ---------- */

@media (max-width: 699px) {
    /* Сильнее правила ширины секции, иначе лента не выходит к краям экрана. */
    .entry-content .spectr-section ul.sx-team,
    .entry-content ul.sx-team,
    ul.sx-team {
        display: flex;
        gap: 12px;
        margin: 0 -20px;
        padding: 0 20px 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    ul.sx-team::-webkit-scrollbar { display: none; }
    .entry-content ul.sx-team > li,
    ul.sx-team > li { flex: 0 0 64%; scroll-snap-align: start; }
}

/* ---------- Мягкое появление блоков при прокрутке (класс ставит скрипт, без него всё видно сразу) ---------- */

.sx-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--sx-ease), transform .6s var(--sx-ease);
    transition-delay: var(--sx-reveal-delay, 0ms);
}
.sx-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .sx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Расписание: ближайшая тренировка ---------- */

.entry-content .spectr-schedule li.is-next {
    background: var(--sx-orange);
    box-shadow: none;
    color: var(--sx-on-orange);
}
.sx-sched-day { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sx-next-chip {
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--sx-on-orange);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

/* ---------- Преимущества плитками со значками: группа с классами «spectr-cards spectr-cards--tiles» ---------- */

.entry-content .spectr-cards--tiles > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.entry-content .spectr-cards--tiles .spectr-card {
    padding: 16px 14px;
    border-radius: 18px;
    box-shadow: 0 0 0 1px var(--sx-line);
}
.entry-content .spectr-section--alt .spectr-cards--tiles .spectr-card { box-shadow: none; }
.entry-content .spectr-cards--tiles .spectr-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 0 12px;
    border-radius: 14px;
    background: var(--sx-orange) var(--sx-icon, none) center / 24px no-repeat;
}
.entry-content .spectr-cards--tiles .spectr-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; }
.entry-content .spectr-cards--tiles .spectr-card p { font-size: 15px; line-height: 1.4; }
@media (min-width: 900px) {
    .entry-content .spectr-cards--tiles > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .entry-content .spectr-cards--tiles .spectr-card { padding: 24px 22px; }
    .entry-content .spectr-cards--tiles .spectr-card h3 { font-size: 20px; }
    .entry-content .spectr-cards--tiles .spectr-card p { font-size: 17px; line-height: 1.5; }
}
.spectr-card--icon-gift { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.spectr-card--icon-ball { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5l4 2.9-1.5 4.7h-5L8 10.4z'/%3E%3Cpath d='M12 2.5v5M16 10.4l5-1.6M14.5 15.1l3 4M9.5 15.1l-3 4M8 10.4L3 8.8'/%3E%3C/svg%3E"); }
.spectr-card--icon-parents { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.spectr-card--icon-trophy { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6M18 9h1.5a2.5 2.5 0 0 0 0-5H18M4 22h16M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22M18 2H6v7a6 6 0 0 0 12 0V2z'/%3E%3C/svg%3E"); }
.spectr-card--icon-shirt { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.38 3.46L16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z'/%3E%3C/svg%3E"); }
.spectr-card--icon-clock { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E"); }

/* ---------- Отзывы карточками: на телефоне листаются вбок, на компьютере — в три колонки ---------- */

.sx-review-feed { max-width: 1100px; }
.entry-content ul.sx-review-list,
ul.sx-review-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.entry-content ul.sx-review-list > li { margin: 0; }
.sx-review__body {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line);
}
.entry-content .spectr-section--alt .sx-review__body { box-shadow: none; }
.sx-review__stars { display: flex; gap: 2px; margin: 0 0 10px; color: var(--sx-orange); }
.entry-content blockquote.sx-review__text {
    flex: 1;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sx-ink);
    font-size: 16px;
    font-style: normal;
    line-height: 1.5;
    quotes: none;
}
.entry-content .sx-review__text p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.entry-content .sx-review__text p:last-child { margin-bottom: 0; }
.sx-review__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--sx-ink-2); font-size: 15px; }
.sx-review__name { color: var(--sx-ink); font-weight: 600; }
.entry-content .sx-review-feed__more { margin: 20px 0 0; }
@media (max-width: 899px) {
    .entry-content .spectr-section ul.sx-review-list,
    .entry-content ul.sx-review-list,
    ul.sx-review-list {
        display: flex;
        gap: 12px;
        margin: 0 -20px;
        padding: 0 20px 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    ul.sx-review-list::-webkit-scrollbar { display: none; }
    .entry-content ul.sx-review-list > li { flex: 0 0 84%; scroll-snap-align: start; }
}


/* ---------- Тема Kadence красит все кнопки <button> при наведении, нажатии и фокусе в свой синий — возвращаем наши цвета ---------- */

button.sx-btn:hover,
button.sx-btn:focus,
button.sx-btn:active {
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: inset 0 0 0 2px var(--btn-ring), inset 0 -4px 0 var(--btn-edge);
}
@media (hover: hover) {
    button.sx-btn--primary:hover { box-shadow: inset 0 -4px 0 var(--btn-edge), 0 10px 24px rgba(238, 139, 30, .35); }
}
button.sx-btn:active { box-shadow: inset 0 0 0 2px var(--btn-ring), inset 0 -1px 0 var(--btn-edge); }
button.sx-btn:disabled,
button.sx-btn[aria-disabled="true"] { box-shadow: none; }
/* Кнопки блоков WordPress: без синего и без тёмной рамки темы при наведении и фокусе. */
.entry-content .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link:focus,
.entry-content .wp-block-button .wp-block-button__link:active { color: var(--sx-on-orange); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:active {
    border: 0;
    color: var(--sx-ink);
    box-shadow: inset 0 0 0 2px var(--sx-orange), inset 0 -4px 0 rgba(184, 101, 10, .35);
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus { background: var(--sx-orange); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus { background: #fff; }

/* ---------- Тёмный блок в начале страниц: группа «spectr-section spectr-intro» ---------- */

.entry-content .spectr-section.spectr-intro {
    padding-top: 40px;
    padding-bottom: 44px;
    background:
        radial-gradient(520px 360px at 90% 0%, rgba(238, 139, 30, .28), transparent 70%),
        var(--sx-night);
    color: #fff;
}
.entry-content .spectr-intro h1 {
    max-width: 1100px;
    margin: 0 auto 14px;
    color: #fff;
    font: 700 clamp(28px, 7.4vw, 52px)/1.08 var(--sx-font-head);
    letter-spacing: .005em;
    text-transform: uppercase;
}
.entry-content .spectr-intro h1 .sx-accent { color: var(--sx-orange); }
.entry-content .spectr-intro p { color: rgba(255, 255, 255, .9); }
.entry-content .spectr-intro .spectr-intro__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 4px 4px 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}
.entry-content .spectr-intro .spectr-intro__badge .sx-mark { padding: 6px 12px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.entry-content .spectr-intro .sx-cta { margin-top: 22px; }
.sx-cta .sx-label-short { display: none; }
@media (max-width: 899px) {
    .sx-cta .sx-label-short { display: inline; }
    .sx-cta .sx-label-long { display: none; }
}
@media (min-width: 900px) {
    .entry-content .spectr-section.spectr-intro { padding-top: 72px; padding-bottom: 72px; }
    .entry-content .spectr-intro p { font-size: 21px; }
    .entry-content .spectr-intro .sx-cta .sx-btn--primary { flex: 0 0 auto; padding: 0 30px; }
}

/* Плитки: если их нечётное число, последняя на телефоне занимает всю строку. */
@media (max-width: 899px) {
    .entry-content .spectr-cards--tiles > .wp-block-group__inner-container > .spectr-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.spectr-card--icon-star { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E"); }
.spectr-card--icon-child { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8.5 14.5a4.5 4.5 0 0 0 7 0'/%3E%3Cpath d='M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E"); }
.spectr-card--icon-shoe { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16V8.5a1.5 1.5 0 0 1 1.5-1.5h3l1.5 3h3l6.5 2.2A4 4 0 0 1 21 15.9V16a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M3 14h18M10.5 10l-1 2M13.5 10.5l-1 2'/%3E%3C/svg%3E"); }
.spectr-card--icon-bottle { --sx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23760a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2h4M10.5 2v3.2L8.4 8.3A3 3 0 0 0 8 9.8V20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V9.8a3 3 0 0 0-.4-1.5l-2.1-3.1V2'/%3E%3Cpath d='M8 13h8'/%3E%3C/svg%3E"); }

/* ---------- Подвал сайта ---------- */

.sx-footer {
    padding: 48px 20px 28px;
    background: var(--sx-night);
    color: rgba(255, 255, 255, .78);
    font-family: var(--sx-font-text);
}
.sx-footer__inner {
    display: grid;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}
.sx-footer a { color: #fff; text-decoration: none; }
.sx-footer a:hover { color: var(--sx-orange); }
.sx-footer .sx-footer__cta,
.sx-footer .sx-footer__cta:hover { color: var(--sx-on-orange); }
.sx-footer__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.sx-footer__logo svg { color: var(--sx-orange); }
.sx-footer__logo span { font: 700 22px/1 var(--sx-font-head); letter-spacing: .02em; text-transform: uppercase; }
.sx-footer .sx-footer__tagline { max-width: 320px; margin: 14px 0 18px; font-size: 16px; line-height: 1.5; }
.sx-footer .sx-footer__title {
    margin: 0 0 12px;
    color: var(--sx-orange);
    font: 700 13px/1.2 var(--sx-font-head);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sx-footer .sx-footer__phone { display: inline-block; margin: 0 0 6px; font: 700 20px/1.2 var(--sx-font-head); letter-spacing: .01em; }
.sx-footer .sx-footer__text { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.sx-footer .sx-footer__text--strong { color: #fff; font-weight: 600; }
.sx-footer .sx-footer__link { display: inline-block; margin-top: 6px; color: var(--sx-orange); font-weight: 600; }
.sx-footer__socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.sx-footer__socials > li { margin: 0; }
.sx-footer .sx-footer__social {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    transition: transform var(--sx-dur) var(--sx-ease);
}
.sx-footer .sx-footer__social:hover { color: #fff; transform: translateY(-2px); }
.sx-footer .sx-footer__social:active { transform: scale(.94); }
.sx-footer__social svg { width: 22px; height: 22px; }
.sx-footer__menu { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sx-footer__menu li { margin: 0; font-size: 17px; }
.sx-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: space-between;
    max-width: 1100px;
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
}
.sx-footer__bottom p { margin: 0; }
.sx-footer__bottom a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
    .sx-footer { padding: 64px 32px 32px; }
    .sx-footer__inner { grid-template-columns: 1.3fr 1fr 1.1fr .8fr; gap: 40px; }
}

/* ---------- Меню на телефоне: кнопки записи и связи под пунктами ---------- */

#mobile-drawer .site-header-item-mobile-navigation { flex-wrap: wrap; }
#mobile-drawer #mobile-site-navigation { flex: 1 1 100%; }
.sx-drawer-cta {
    box-sizing: border-box;
    display: grid;
    flex: 0 0 100%;
    gap: 10px;
    width: 100%;
    margin: 22px 0 8px;
    padding: 0 1.5em;
}
/* Текущий пункт меню — оранжевый, а не синий цвет темы. */
#mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: var(--sx-orange); }
.sx-drawer-cta .sx-btn--lg { min-height: 54px; font-size: 16px; letter-spacing: .04em; }
#mobile-drawer .sx-drawer-cta .sx-btn--primary,
#mobile-drawer .sx-drawer-cta .sx-btn--primary:hover { color: var(--sx-on-orange); }
#mobile-drawer .sx-drawer-cta .sx-btn--on-dark,
#mobile-drawer .sx-drawer-cta .sx-btn--on-dark:hover { color: #fff; }
.sx-drawer-cta .sx-drawer-cta__note { margin: 4px 0 0; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.45; }

/* ---------- Статьи «Советы родителям» ---------- */

.single-post .entry-content > .sx-article-head { max-width: none; }
.entry-content .sx-article-head h1 {
    max-width: 900px;
    margin: 0 auto 14px;
    color: #fff;
    font: 700 clamp(26px, 6.6vw, 46px)/1.1 var(--sx-font-head);
    text-transform: uppercase;
}
.entry-content .sx-article-head > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.sx-crumbs { margin-bottom: 18px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.entry-content .sx-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.entry-content .sx-article-head .sx-article-head__lead { font-size: 19px; line-height: 1.5; }
.entry-content .sx-article-head .sx-article-head__meta { margin-bottom: 0; color: var(--sx-orange); font-size: 15px; font-weight: 600; }
.single-post .entry-content > .sx-article-photo { max-width: 960px; margin: 24px auto 0; padding: 0 20px; }
.sx-article-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; }
.single-post .entry-content > * + * { margin-top: 1.1em; }
.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol,
.single-post .entry-content > h2,
.single-post .entry-content > h3,
.single-post .entry-content > blockquote,
.single-post .entry-content > .sx-toc { padding-left: 20px; padding-right: 20px; box-sizing: content-box; }
.sx-toc {
    margin-top: 28px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-radius: 18px;
    background: var(--sx-orange-tint);
}
.single-post .entry-content > .sx-toc { max-width: 680px; margin-left: auto; margin-right: auto; }
.sx-toc__title { margin: 0 0 8px; font: 700 14px/1.2 var(--sx-font-head); letter-spacing: .05em; text-transform: uppercase; }
.entry-content .sx-toc__list { margin: 0; padding-left: 1.3em; }
.entry-content .sx-toc__list li { margin: 4px 0; font-size: 17px; }
.entry-content .sx-toc a { color: var(--sx-orange-text); }
.single-post .entry-content h2[id] { scroll-margin-top: 90px; }
.sx-related { max-width: 1100px; margin: 56px auto 0; padding: 0 20px 56px; }
.single-post .entry-content > .sx-related { max-width: 1100px; }
.entry-content .sx-related__title { margin: 0 0 20px; font: 700 clamp(22px, 5vw, 30px)/1.2 var(--sx-font-head); text-transform: uppercase; }

/* Карточки статей */
.entry-content ul.sx-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.entry-content ul.sx-articles > li { margin: 0; }
.sx-article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--sx-line);
    transition: transform var(--sx-dur) var(--sx-ease), box-shadow var(--sx-dur) var(--sx-ease);
}
@media (hover: hover) { .sx-article-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--sx-orange), 0 16px 34px rgba(26, 18, 11, .10); } }
.sx-article-card:active { transform: scale(.98); }
.sx-article-card__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sx-article-card__photo--empty {
    background: var(--sx-orange-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee8b1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5l4 2.9-1.5 4.7h-5L8 10.4z'/%3E%3Cpath d='M12 2.5v5M16 10.4l5-1.6M14.5 15.1l3 4M9.5 15.1l-3 4M8 10.4L3 8.8'/%3E%3C/svg%3E") center / 56px no-repeat;
}
.sx-article-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.entry-content .sx-article-card__title { margin: 0 0 8px; font: 600 20px/1.3 var(--sx-font-text); text-transform: none; }
.entry-content .sx-article-card__link { color: var(--sx-ink); text-decoration: none; }
.sx-article-card__link::after { content: ""; position: absolute; inset: 0; }
.entry-content .sx-article-card__text { flex: 1; margin: 0 0 12px; color: var(--sx-ink-2); font-size: 16px; line-height: 1.5; }
.entry-content .sx-article-card__meta { margin: 0; color: var(--sx-orange-text); font-size: 14px; font-weight: 600; }
.entry-content .sx-articles__empty { font-size: 18px; }

/* ---------- Контакты: карта в фирменной рамке ---------- */

.entry-content .sx-map {
    border: 4px solid var(--sx-orange);
    box-shadow: 0 18px 40px rgba(26, 18, 11, .12);
}
@media (min-width: 900px) { .entry-content .wp-block-column .sx-map { aspect-ratio: 4 / 3; } }
