/* ==========================================================================
   Main Point — Theme styles
   ========================================================================== */

/* Design tokens */
:root {
    --mp-green: #0d6b3f;
    --mp-green-dark: #0a5232;
    --mp-orange: #f08a1c;
    --mp-orange-light: #ff9e3c;
    --mp-magenta: #a4296a;
    --mp-magenta-light: #c93f87;
    --mp-teal: #145a6a;
    --mp-dark: #044F5F;
    --mp-white: #ffffff;
    --mp-bg-light: #eef4fb;
    --mp-bg-soft: #f4f7fb;
    --mp-text: #0f1d2e;
    --mp-text-muted: #6b7280;
    --mp-border: #e2e6ee;

    --mp-radius-sm: 12px;
    --mp-radius-md: 18px;
    --mp-radius-lg: 28px;
    --mp-radius-pill: 999px;

    --mp-shadow-sm: 0 4px 12px rgba(15, 29, 46, 0.06);
    --mp-shadow-md: 0 12px 32px rgba(15, 29, 46, 0.1);

    /* School single hero (Figma) */
    --mp-hero-orange: #f57e20;

    --mp-section-pad: clamp(56px, 8vw, 120px);
    --mp-container: 1240px;

    --mp-font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --mp-font-display: var(--mp-font);
}

/* Reset */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--mp-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--mp-text);
    background: var(--mp-white);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* Container */
.container {
    width: 100%;
    max-width: var(--mp-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Gutenberg — не даємо блокам виходити за ширину батьківського контейнера */
html :where(.wp-block) {
    max-width: 100%;
}

/* Section default */
section[class^="block-"],
section[class*=" block-"] {
    padding-top: var(--mp-section-pad);
    padding-bottom: var(--mp-section-pad);
}

[class^="block-"] [class$="__content"],
[class*=" block-"] [class$="__content"] {
    /* Inner content baseline. */
}

/* Buttons */
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--mp-radius-pill);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    background: var(--mp-orange);
    color: var(--mp-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
}
.mp-btn:hover { transform: translateY(-1px); box-shadow: var(--mp-shadow-md); }
.mp-btn__arrow { width: 18px; height: 18px; }

.mp-btn--green { background: var(--mp-green); color: var(--mp-white); }
.mp-btn--magenta { background: var(--mp-magenta); color: var(--mp-white); }
.mp-btn--white { background: var(--mp-white); color: var(--mp-green); }
.mp-btn--ghost {
    background: transparent;
    color: var(--mp-white);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Headline accent */
.mp-accent { color: var(--mp-orange); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--mp-white);
    border-bottom: 1px solid var(--mp-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.site-header__title {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--mp-text);
}
.site-header__logo-link { display: inline-flex; align-items: center; }
.site-header__logo { display: block; height: 42px; width: auto; max-width: 100%; }
.site-header__logo--mobile { display: none; }
.site-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 28px;
}
.site-menu a {
    text-decoration: none;
    color: var(--mp-text);
    font-weight: 500;
}
.site-header__actions { display: flex; align-items: center; }

/* Breadcrumbs — під хедером, не на головній */
.site-breadcrumbs {
    background: #f9fafb;
    border-bottom: 1px solid var(--mp-border);
}
.site-breadcrumbs__inner {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
}
.site-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
}
.site-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.site-breadcrumbs__item:not(:last-child) {
    flex-shrink: 0;
}
.site-breadcrumbs__item:not(:last-child)::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0 6px;
    vertical-align: middle;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 18l6-6-6-6' stroke='%23111827' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    opacity: 0.85;
}
.site-breadcrumbs__link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-breadcrumbs__link:hover {
    color: #111827;
}
.site-breadcrumbs__current {
    color: #111827;
    font-weight: 500;
}

/* Footer — layout як у макеті: бренд + соц | навігація | контакти */
.site-footer {
    background: var(--mp-dark);
    color: var(--mp-white);
    padding: 72px 0 36px;
}
.site-footer__inner {
    display: grid;
    align-items: start;
    gap: 48px;
}
.site-footer__inner--cols-1 { grid-template-columns: minmax(0, 1fr); }
.site-footer__inner--cols-2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.site-footer__inner--cols-3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1fr); }
.site-footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 324px;
}
.site-footer__brand-logo .custom-logo-link,
.site-footer__logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.site-footer__brand-logo .custom-logo-link img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
}
.site-footer__logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
}
.site-footer__logo--mobile { display: none; }
.site-footer__logo--solo { display: block; }
.site-footer__title {
    font-size: 24px;
    font-weight: 700;
}
.site-footer__heading {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-white);
    line-height: 1.3;
}
.site-footer__tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.55;
    max-width: 340px;
}
.site-footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.site-footer__social-item { margin: 0; padding: 0; }
.site-footer__social-link,
.site-footer__social-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    line-height: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.site-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.28);
}
.site-footer__social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-menu--stacked {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0px;
}
.footer-menu a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.22s ease;
}
.footer-menu--stacked a { font-size: 15px; }
.footer-menu a:hover {
    color: var(--mp-white);
    text-decoration: none;
}
.footer-menu__text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}
.site-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #9CA3AF;
    max-width: 200px;
}
.site-footer__contacts a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}
.site-footer__contacts a:hover {
    color: var(--mp-white);
    text-decoration: none;
}
.site-footer__bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.site-footer__privacy {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.22s ease;
}
.site-footer__privacy:hover {
    color: var(--mp-white);
     text-decoration: none;
}

/* Page title block (used by templates) */
.block-page-title {
    background: var(--mp-bg-light);
    padding: 80px 0;
}
.block-page-title__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 16px;
}
.block-page-title__description {
    color: var(--mp-text-muted);
    font-size: 18px;
    margin: 0;
    max-width: 720px;
}

/* Documents catalog — hero як у макеті (#A52364, патерн, бейдж glass) */
.block-page-title--documents-hero {
    position: relative;
    overflow: hidden;
    background-color: #a52364;
    color: var(--mp-white);
    padding-top: clamp(72px, 11vw, 120px);
    padding-bottom: clamp(72px, 11vw, 120px);
}
.block-page-title--documents-hero.mp-pattern-bg::before {
    mix-blend-mode: overlay;
    background-attachment: scroll;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(../images/bg-pattern.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    pointer-events: none;
}
.block-page-title--documents-hero .container {
    position: relative;
    z-index: 1;
}
.block-page-title--documents-hero .block-page-title__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    gap: clamp(20px, 3vw, 28px);
}
.block-page-title__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--mp-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.block-page-title__badge-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--mp-white);
}
.block-page-title__badge-label {
    white-space: nowrap;
}
.block-page-title--documents-hero .block-page-title__title {
    margin: 0;
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--mp-white);
}
.block-page-title__subtitle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 52rem;
}
.block-page-title--documents-hero .block-page-title__description {
    margin: 0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.45;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    max-width: none;
}
.block-page-title--documents-hero .block-page-title__description-note {
    margin: 0;
    font-size: clamp(14px, 1.65vw, 17px);
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    max-width: none;
}
@media (prefers-reduced-motion: reduce) {
    .block-page-title__badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
@media (max-width: 480px) {
    .block-page-title__badge-label {
        white-space: normal;
        text-align: center;
    }
}

/* Blog template */
section.block-blog {
    background: #DFEFFC;
    padding-top: 40px;
    padding-bottom: 120px;
}

section.block-blog.mp-pattern-bg::before {
   opacity: 0.5;
}

/* Blog category filters (chips) */
.block-blog__filters {
    margin-bottom: 36px;
}

.block-blog__content {
    position: relative;
    z-index: 1;
}
.block-blog__filters-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.block-blog__filters-item {
    margin: 0;
}
.block-blog__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: var(--mp-radius-pill);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    border: 2px solid transparent;
    background: var(--mp-white);
    color: var(--mp-text-muted);
    box-shadow: 0 2px 4px rgba(15, 29, 46, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.block-blog__filter:hover {
    color: var(--mp-text);
}
.block-blog__filter:focus-visible {
    outline: 2px solid var(--mp-orange);
    outline-offset: 2px;
}
.block-blog__filter--all {
    background: #111827;
    color: var(--mp-white);
    border-color: #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25);
}
.block-blog__filter--all:hover {
    color: var(--mp-white);
    filter: brightness(1.08);
}
.block-blog__filter--all.is-active {
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.35);
}
.block-blog__filter--accent-green {
    border-color: rgba(13, 107, 63, 0.2);
    color: #374151;
}
.block-blog__filter--accent-green.is-active {
    border-color: var(--mp-green);
    color: var(--mp-text);
    box-shadow: 0 0 0 1px rgba(13, 107, 63, 0.35);
}
.block-blog__filter--accent-orange {
    border-color: rgba(240, 138, 28, 0.2);
    color: #374151;
}
.block-blog__filter--accent-orange.is-active {
    border-color: var(--mp-orange);
    color: var(--mp-text);
    box-shadow: 0 0 0 1px rgba(240, 138, 28, 0.35);
}
.block-blog__filter--accent-magenta {
    border-color: rgba(164, 41, 106, 0.2);
    color: #374151;
}
.block-blog__filter--accent-magenta.is-active {
    border-color: var(--mp-magenta);
    color: var(--mp-text);
    box-shadow: 0 0 0 1px rgba(164, 41, 106, 0.35);
}
.block-blog__filter--accent-teal {
    border-color: rgba(20, 90, 106, 0.2);
    color: #374151;
}
.block-blog__filter--accent-teal.is-active {
    border-color: var(--mp-teal);
    color: var(--mp-text);
    box-shadow: 0 0 0 1px rgba(20, 90, 106, 0.35);
}

/* Featured post (tag: featured) */
.block-blog__featured-wrap {
    margin-bottom: 40px;

}
.block-blog__featured-wrap[hidden] {
    display: none !important;
}
.block-blog__featured {
    margin: 0;
    padding: 0;
}
.block-blog__featured-hit {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0;
    background: var(--mp-white);
    border-radius: 40px;
    border: 1px solid #f3f4f6;
    box-shadow:
        0 12px 40px rgba(15, 29, 46, 0.08),
        0 2px 8px rgba(15, 29, 46, 0.04);
    overflow: hidden;
    max-height: 420px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.block-blog__featured-hit:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 52px rgba(15, 29, 46, 0.12),
        0 8px 16px rgba(15, 29, 46, 0.06);
}
.block-blog__featured-hit:focus-visible {
    outline: 2px solid var(--mp-orange);
    outline-offset: 3px;
}
.block-blog__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    max-width: min(100%, 280px);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mp-white);
    background: var(--mp-orange);
    border-radius: 0 0 16px 0;
    box-shadow: 0 4px 12px rgba(240, 138, 28, 0.35);
    overflow-wrap: anywhere;
}
.block-blog__card .block-blog__ribbon {
    padding: 8px 14px;
    font-size: 11px;
    border-radius: 0 0 12px 0;
    max-width: min(100%, 220px);
}
.block-blog__featured-media {
    flex: 1 1 56%;
    min-width: 0;
    min-height: 280px;
    display: block;
    line-height: 0;
}
.block-blog__featured-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}
.block-blog__featured-body {
    flex: 1 1 300px;
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    max-height: 420px;
    height: 100%;
}
.block-blog__featured-badge {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: var(--mp-radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(240, 138, 28, 0.14);
    color: #c2410c;
}
.block-blog__featured-date {
    color: var(--mp-text-muted);
    font-size: 14px;
}
.block-blog__featured-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--mp-text);
}
.block-blog__featured-excerpt {
    margin: 0;
    color: var(--mp-text-muted);
    font-size: 17px;
    line-height: 1.55;
}
.block-blog__featured-cta {
    margin-top: 4px;
    font-weight: 600;
    font-size: 16px;
    color: var(--mp-orange);
    align-self: flex-start;
}
@media (prefers-reduced-motion: reduce) {
    .block-blog__featured-hit,
    .block-blog__card-hit {
        transition: none;
    }
    .block-blog__featured-hit:hover,
    .block-blog__card-hit:hover {
        transform: none;
    }
}

@media (max-width: 900px) {
    .block-blog__featured-hit {
        flex-direction: column;
    }
    .block-blog__featured-media {
        flex-basis: auto;
        min-height: 220px;
    }
    .block-blog__featured-media img {
        min-height: 220px;
    }
}

.block-blog__empty {
    margin: 0;
    color: var(--mp-text-muted);
    text-align: center;
    padding: 48px 16px;
}

/* Blog grid (template) */
.block-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.block-blog__card {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.block-blog__card-hit {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--mp-white);
    border-radius: var(--mp-radius-md);
    overflow: hidden;
    box-shadow: var(--mp-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.block-blog__card-hit:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(15, 29, 46, 0.12), 0 4px 10px rgba(15, 29, 46, 0.06);
}
.block-blog__card-hit:focus-visible {
    outline: 2px solid var(--mp-orange);
    outline-offset: 2px;
}
.block-blog__card-media {
    display: block;
    line-height: 0;
}
.block-blog__card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.block-blog__card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.block-blog__card-date {
    color: var(--mp-text-muted);
    font-size: 14px;
}
.block-blog__card-title {
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
    color: var(--mp-text);
}
.block-blog__card-excerpt { color: var(--mp-text-muted); margin: 0; }
.block-blog__card-cta {
    margin-top: auto;
    font-weight: 600;
    color: var(--mp-orange);
}

.block-blog__load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}
.block-blog__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--mp-radius-pill);
    border: 2px solid var(--mp-orange);
    background: var(--mp-white);
    color: var(--mp-orange);
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.block-blog__load-more:hover:not(:disabled) {
    background: var(--mp-orange);
    color: var(--mp-white);
}
.block-blog__load-more:disabled {
    cursor: wait;
    opacity: 0.88;
}

.block-blog__skeleton {
    width: 100%;
}
.block-blog__grid--skeleton {
    pointer-events: none;
}
.block-blog__skeleton-card {
    background: var(--mp-white);
    border-radius: var(--mp-radius-md);
    overflow: hidden;
    box-shadow: var(--mp-shadow-sm);
    display: flex;
    flex-direction: column;
}
.block-blog__skeleton-media {
    height: 220px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 45%, #e2e8f0 90%);
    background-size: 220% 100%;
    animation: mp-blog-shimmer 1.15s ease-in-out infinite;
}
.block-blog__skeleton-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.block-blog__skeleton-line {
    display: block;
    height: 13px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 45%, #e2e8f0 90%);
    background-size: 220% 100%;
    animation: mp-blog-shimmer 1.15s ease-in-out infinite;
}
.block-blog__skeleton-line--short {
    width: 42%;
}
.block-blog__skeleton-line--cta {
    width: 38%;
    margin-top: 6px;
    height: 15px;
}

@keyframes mp-blog-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .block-blog__skeleton-media,
    .block-blog__skeleton-line {
        animation: none;
        background: #e2e8f0;
    }
}

.block-blog__pagination ul {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.block-blog__pagination a,
.block-blog__pagination span,
.block-blog__pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--mp-radius-sm);
    background: var(--mp-white);
    color: var(--mp-text);
    text-decoration: none;
    border: 1px solid var(--mp-border);
    font-weight: 500;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}
.block-blog__pagination button.page-numbers.current {
    cursor: default;
}
.block-blog__pagination .current {
    background: var(--mp-orange);
    color: var(--mp-white);
    border-color: var(--mp-orange);
}
@media (max-width: 900px) { .block-blog__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .block-blog__grid { grid-template-columns: 1fr; } }

/* Documents catalog — картки як у макеті (рамка #F3F4F6, акцент #F57E20) */
.documents-catalog {
    --doc-accent: #f57e20;
    --doc-accent-soft: rgba(245, 126, 32, 0.1);
    --doc-card-border: #f3f4f6;
    --doc-meta: #9ca3af;
}
.block-documents__card--orange {
    --doc-accent: #f57e20;
    --doc-accent-soft: rgba(245, 126, 32, 0.1);
}
.block-documents__card--green {
    --doc-accent: #0d6b3f;
    --doc-accent-soft: rgba(13, 107, 63, 0.1);
}
.block-documents__card--blue {
    --doc-accent: #2147a4;
    --doc-accent-soft: rgba(33, 71, 164, 0.1);
}
.block-documents__card--magenta {
    --doc-accent: #a4296a;
    --doc-accent-soft: rgba(164, 41, 106, 0.1);
}
.block-documents__card--green .block-documents__btn--primary {
    box-shadow: 0 1px 2px rgba(13, 107, 63, 0.25);
}
.block-documents__card--green .block-documents__btn--primary:hover {
    box-shadow: 0 4px 12px rgba(13, 107, 63, 0.35);
}
.block-documents__card--blue .block-documents__btn--primary {
    box-shadow: 0 1px 2px rgba(33, 71, 164, 0.25);
}
.block-documents__card--blue .block-documents__btn--primary:hover {
    box-shadow: 0 4px 12px rgba(33, 71, 164, 0.35);
}
.block-documents__card--magenta .block-documents__btn--primary {
    box-shadow: 0 1px 2px rgba(164, 41, 106, 0.25);
}
.block-documents__card--magenta .block-documents__btn--primary:hover {
    box-shadow: 0 4px 12px rgba(164, 41, 106, 0.35);
}
.block-documents__intro {
    margin-bottom: 32px;
    color: var(--mp-text-muted);
}
.block-documents__empty {
    margin: 0;
    color: var(--mp-text-muted);
}
.block-documents__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 24px;
}
.block-documents__item {
    margin: 0;
}
.block-documents__card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 4vw, 29px);
    border-radius: 32px;
    border: 1px solid var(--doc-card-border);
    background-color: var(--mp-white);
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.block-documents__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.035;
    background-image: url("../images/bg-pattern.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.block-documents__card:hover {
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08), 0 4px 10px rgba(17, 24, 39, 0.05);
}
@media (prefers-reduced-motion: reduce) {
    .block-documents__card {
        transition: none;
    }
}
.block-documents__card > * {
    position: relative;
    z-index: 1;
}
.block-documents__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.block-documents__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--doc-accent);
    color: var(--mp-white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.block-documents__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 14px;
    border-radius: 12px;
    background: var(--doc-accent-soft);
    color: var(--doc-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.block-documents__title {
    margin: 0 0 14px;
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #111827;
}
.block-documents__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.block-documents__title a:hover {
    color: var(--doc-accent);
}
.block-documents__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--doc-meta);
}
.block-documents__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.block-documents__meta-icon {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--doc-meta);
    opacity: 0.95;
}
.block-documents__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}
.block-documents__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.block-documents__btn-icon {
    display: inline-flex;
    flex-shrink: 0;
}
.block-documents__btn--primary {
    flex: 1 1 140px;
    background: var(--doc-accent);
    color: var(--mp-white);
    border-color: var(--doc-accent);
    box-shadow: 0 1px 2px rgba(245, 126, 32, 0.25);
}
.block-documents__btn--primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(245, 126, 32, 0.35);
}
.block-documents__btn--outline {
    flex: 1 1 140px;
    background: var(--mp-white);
    color: #111827;
    border-color: #e5e7eb;
}
.block-documents__btn--outline:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}
@media (max-width: 420px) {
    .block-documents__actions {
        flex-direction: column;
    }
    .block-documents__btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Єдиний патерн bg-pattern.png (fixed): додавайте клас mp-pattern-bg на секцію або блок */
.mp-pattern-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../images/bg-pattern.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    pointer-events: none;
}

.mp-pattern-bg {
    position: relative;
    overflow: hidden;
}

/* Hero: фон — лише обране зображення (без blur/патерну); текст і кнопки як у макеті */
.single-school__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
    color: var(--mp-white);
    background: var(--mp-hero-orange);
}

.single-school__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--mp-hero-bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.single-school__hero-container {
    position: relative;
    z-index: 1;
}

.single-school__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 46%);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.single-school__hero-grid:not(:has(.single-school__hero-visual)) {
    grid-template-columns: 1fr;
}

.single-school__hero-copy {
    min-width: 0;
}

.single-school__hero-glass {
    display: inline-block;
    margin-bottom: clamp(18px, 3vw, 26px);
    padding: 0;
    border-radius: 14px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.single-school__hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 17px 7px 9px;
    min-height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.single-school__hero-tag-icon {
    display: flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
}

.single-school__hero-tag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-school__hero .single-school__title--hero {
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 800;
    margin: 0 0 0.15em;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--mp-white);
}

.single-school__hero .single-school__title--hero strong {
    font-weight: 800;
    color: #fff;
    opacity: 0.72;
}

.single-school__hero-lead {
    margin: 0 0 0.25em;
    max-width: 38rem;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.94);
}

.single-school__hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px 16px;
    margin-top: clamp(22px, 3.5vw, 36px);
}

.single-school__hero-actions .single-school__cta--hero {
    flex: 1 1 160px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    border-radius: 999px;
    padding: 14px 22px;
    min-height: 48px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: filter 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.single-school__hero-actions .single-school__cta--hero-primary {
    border: 0;
    background: #fff;
    color: var(--mp-hero-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.single-school__hero-actions .single-school__cta--hero-primary:hover {
    filter: brightness(1.03);
    color: var(--mp-hero-orange);
}

.single-school__hero-actions .single-school__cta--hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: transparent;
    color: #fff;
}

.single-school__hero-actions .single-school__cta--hero-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.single-school__hero-visual {
    position: relative;
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.single-school__hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.single-school__hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.single-school__pretitle,
.single-school__age {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--mp-radius-pill);
    font-size: 14px;
    margin-bottom: 16px;
}

.single-school__title { font-size: clamp(32px, 5vw, 56px); margin: 0 0 16px; line-height: 1.1; }
.single-school__subtitle { font-size: 20px; opacity: 0.9; margin: 0; }

@media (max-width: 900px) {
    .single-school__hero-grid {
        grid-template-columns: 1fr;
    }

    .single-school__hero-visual {
        order: -1;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Single school — тіло сторінки: сайдбар тягнеться до правого краю в'юпорта */
.single-school__body {
    background: #DFEFFC;
    padding: 0;
    overflow-x: clip;
}

.single-school__layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(32px, 5vw, 56px);
    width: 100%;
    box-sizing: border-box;
    /* Лівий край збігається з лівим краєм блоку .container у шапці / інших секціях */
    padding-left: max(24px, calc(50vw - var(--mp-container) / 2));
    padding-right: 0;
}

.single-school__main {
    flex: 0 1 var(--mp-container);
    min-width: 0;
    max-width: min(var(--mp-container), 100%);
    padding: 128px 0;
    box-sizing: border-box;
}

.single-school__main > .container {
    max-width: none;
    width: 100%;
}

.single-school__main-blocks {
    margin-top: clamp(28px, 4vw, 48px);
}

.single-school__main-blocks > :first-child, .single-school__main-blocks:nth-child(2) {
    margin-top: 0;
}

.single-school__below-layout {
    padding: 0;
    position: relative;
    z-index: 9;
}

.single-school__below-layout .block-studios-list, 
.single-school__below-layout .mp-gradient-dual-cards {
   background: transparent;
}

.single-school__below-layout-inner > :first-child {
    margin-top: 0;
}

/* Уникаємо накладання лівої колонки на сайдбар (flex / sticky). */
.single-school__sidebar {
    position: relative;
    z-index: 6;
    flex: 1 1 700px;
    min-width: 0;
    align-self: stretch;
}

.single-school__sidebar-inner {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
    width: 100%;
    min-height: min(100vh - 96px, 100%);
    padding: clamp(20px, 4vw, 28px);
    padding-right: max(clamp(20px, 4vw, 28px), env(safe-area-inset-right, 0px));
    background: var(--mp-magenta);
    color: var(--mp-white);
    box-shadow: var(--mp-shadow-md);
    align-items: center;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    padding-top: 64px;
    padding-bottom: 64px;
    height: 100vh;
    box-sizing: border-box;
}

/* Marquee у «Низ сторінки» абсолютний і лежить поверх сайдбару (z-index нижче layout) — додаємо запас знизу */
.single-school__body:has(.single-school__below-layout .block-marquee-strip-section) {
    --mp-school-marquee-clearance: clamp(48px, 8vw, 80px);
}

.single-school__body:has(.single-school__below-layout .block-marquee-strip-section) .single-school__sidebar-inner {
    padding-bottom: calc(64px + var(--mp-school-marquee-clearance, 0px));
}

.single-school__media img {
    width: 100%;
    height: auto;
    border-radius: var(--mp-radius-lg);
    margin-bottom: 32px;
    display: block;
}

.single-school__text :first-child { margin-top: 0; }

/* fixed-патерн поруч із iframe дає збої hit-testing у WebKit/Chromium — у сайдбарі лишаємо scroll */
.single-school__sidebar-inner.mp-pattern-bg::before {
    /* background-attachment: scroll; */
}

.single-school__sidebar-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.2;
    font-weight: 700;
    position: relative; 
    z-index: 1;
}

.single-school__sidebar-lead {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.45;
    opacity: 0.92;
    position: relative; 
    z-index: 1;
}

.single-school__sidebar-video {
    margin-bottom: 20px;
    border-radius: 200px;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 4;
    height: 240px;
    width: auto;
    border: 6px solid var(--mp-white);
    pointer-events: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    min-height: 200px;
}

.single-school__sidebar-video-embed-inner {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.single-school__sidebar-video-embed-inner .wp-block-embed,
.single-school__sidebar-video-embed-inner figure.wp-block-embed {
    margin: 0;
    width: 100%;
    height: 100%;
}

.single-school__sidebar-video-embed-inner .wp-block-embed__wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Заповнюємо круг: інакше oEmbed (560×420) лишає «розмазану» коробку кліку поза видимою областю */
.single-school__sidebar-video .wp-block-embed__wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
}

/* oEmbed: не квадратний iframe — 16:9 ширше за круг, обрізається overflow; інакше YouTube лишає чорні смуги */
.single-school__sidebar-video iframe,
.single-school__sidebar-video-embed-inner iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 178%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: 0;
    display: block;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.single-school__sidebar-video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 12px 14px;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
    border-radius: 0 0 200px 200px;
}

.single-school__sidebar-video-btn {
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: var(--mp-white);
    background: transparent;
    line-height: 0;
}

.single-school__sidebar-video-btn-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.single-school__sidebar-video-btn-icon svg {
    display: block;
}

.single-school__sidebar-video.is-paused .single-school__sidebar-video-btn-icon--pause,
.single-school__sidebar-video.is-playing .single-school__sidebar-video-btn-icon--play,
.single-school__sidebar-video.is-unmuted .single-school__sidebar-video-btn-icon--muted,
.single-school__sidebar-video.is-muted .single-school__sidebar-video-btn-icon--unmuted {
    display: none;
}

.single-school__sidebar-video.is-paused .single-school__sidebar-video-btn-icon--play,
.single-school__sidebar-video.is-playing .single-school__sidebar-video-btn-icon--pause,
.single-school__sidebar-video.is-unmuted .single-school__sidebar-video-btn-icon--unmuted,
.single-school__sidebar-video.is-muted .single-school__sidebar-video-btn-icon--muted {
    display: flex;
}

.single-school__sidebar-video .single-school__sidebar-video-native {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
}

.single-school__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative; 
    z-index: 1;
    width: 100%;
}

.single-school__highlight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--mp-radius-sm);
    background: var(--mp-white);
    color: var(--mp-text);
    box-shadow: var(--mp-shadow-sm);
}

.single-school__highlight-media {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--mp-radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-bg-soft);
}

.single-school__highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-school__highlight-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.single-school__highlight-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-text-muted);
    line-height: 1.3;
}

.single-school__highlight-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.single-school__sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.single-school__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    text-decoration: none;
    box-sizing: border-box;
    transition: filter 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.single-school__cta--primary {
    padding: 14px 22px;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: #f57e20;
    color: var(--mp-white);
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.1),
        0 10px 15px rgba(0, 0, 0, 0.12),
        0 4px 24px rgba(0, 0, 0, 0.08);
}

.single-school__cta--primary:hover {
    color: var(--mp-white);
    filter: brightness(1.06);
}

.single-school__cta--primary:focus-visible {
    outline: 2px solid var(--mp-white);
    outline-offset: 3px;
}

.single-school__cta--secondary {
    padding: 12px 20px;
    min-height: 46px;
    border-radius: 11px;
    border: 2px solid #e5e7eb;
    background: transparent;
    color: var(--mp-white);
}

.single-school__cta--secondary:hover {
    color: var(--mp-white);
    border-color: rgba(255, 255, 255, 0.95);
}

.single-school__cta--secondary:focus-visible {
    outline: 2px solid var(--mp-white);
    outline-offset: 3px;
}

.single-school__cta-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-school__cta-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

@media (max-width: 960px) {
    .single-school__layout {
        flex-direction: column;
        flex-wrap: wrap;
        padding-left: 24px;
        padding-right: 24px;
    }

    .single-school__main {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .single-school__sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

    .single-school__sidebar-inner {
        position: relative;
        top: auto;
        min-height: 0;
        height: auto;
    }

    .single-school__body:has(.single-school__below-layout .block-marquee-strip-section) {
        --mp-school-marquee-clearance: clamp(88px, 22vw, 160px);
    }
}

@media (min-width: 961px) and (max-width: 1280px) {
    .single-school__body:has(.single-school__below-layout .block-marquee-strip-section) {
        --mp-school-marquee-clearance: clamp(64px, 11vw, 120px);
    }
}

/* Single blog post */
.site-main {
    min-height: 60vh;
    overflow-x: clip;
    max-width: 100%;
}
.single-post-page .single-post__hero:not([style*="background-image"]) {
    background-color: var(--mp-teal);
}
.single-post__meta {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}
.single-post-body {
    position: relative;
    z-index: 0;
    padding-top: 48px;
    padding-bottom: 96px;
    background: #dfeffc;
}
.single-post-body__inner {
    max-width: 760px;
    margin: 0 auto;
}
.single-post-body .entry-content > *:first-child {
    margin-top: 0;
}
.single-post-body .entry-content > *:last-child {
    margin-bottom: 0;
}
.single-post-body .entry-content h2 {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    margin: 40px 0 16px;
    color: var(--mp-text);
}
.single-post-body .entry-content h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--mp-text);
}
.single-post-body .entry-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--mp-text);
}
.single-post-body .entry-content p {
    margin: 0 0 1.15em;
    color: var(--mp-text);
}
.single-post-body .entry-content a {
    color: var(--mp-orange);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.single-post-body .entry-content a:hover {
    color: var(--mp-green);
}
.single-post-body .entry-content ul,
.single-post-body .entry-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.35em;
}
.single-post-body .entry-content li {
    margin-bottom: 0.45em;
}
.single-post-body .entry-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--mp-orange);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0 var(--mp-radius-md) var(--mp-radius-md) 0;
    font-size: 18px;
    color: var(--mp-text-muted);
}
.single-post-body .entry-content img,
.single-post-body .entry-content .wp-block-image img {
    border-radius: var(--mp-radius-md);
}
.single-post-body .entry-content figure {
    margin: 28px 0;
}
.single-post-body .entry-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--mp-text-muted);
    text-align: center;
}
.single-post-body .entry-content pre {
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: var(--mp-radius-sm);
    background: var(--mp-bg-soft);
    font-size: 14px;
}
.single-post-pages {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--mp-border);
    font-size: 15px;
}
.single-post-pages__label {
    font-weight: 600;
    margin-right: 8px;
    color: var(--mp-text-muted);
}
.single-post-footer {
    padding: 48px 0 96px;
    background: var(--mp-white);
    border-top: 1px solid var(--mp-border);
}
.single-post-footer__top {
    margin-bottom: 40px;
}
.single-post-more {
    margin: 0;
    padding: 0;
}
.single-post-more__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.single-post-more__title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--mp-text);
    flex: 1 1 auto;
    min-width: 0;
}
.single-post-more__nav {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}
.single-post-more__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border-radius: var(--mp-radius-sm);
    border: 1px solid var(--mp-border);
    background: var(--mp-white);
    color: var(--mp-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.single-post-more__nav-btn:hover:not(.swiper-button-disabled) {
    border-color: var(--mp-orange);
    color: var(--mp-orange);
}
.single-post-more__nav-btn:focus-visible {
    outline: 2px solid var(--mp-orange);
    outline-offset: 2px;
}
.single-post-more__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.single-post-more__slider {
    overflow: visible;
    margin: 0 -6px;
    padding: 4px 6px 8px;
}
.single-post-more__slider .swiper-wrapper {
    align-items: stretch;
}
.single-post-more__slide {
    height: auto;
    box-sizing: border-box;
}
.single-post-more__slide .block-blog__card {
    height: 100%;
}
.single-post-more__slide .block-blog__card-hit {
    min-height: 100%;
}
.single-post-back {
    display: inline-flex;
    text-decoration: none;
}

/* Responsive footer */
@media (max-width: 900px) {
    .site-footer__inner--cols-2,
    .site-footer__inner--cols-3 {
        grid-template-columns: 1fr;
    }
    .site-footer__col--brand { max-width: none; }
}
@media (max-width: 700px) {
    .site-footer__logo--desktop { display: none; }
    .site-footer__logo--mobile { display: block; }
    .site-header__nav { display: none; }
    .site-header__actions { display: none; }
    .site-header__logo--desktop { display: none; }
    .site-header__logo--mobile { display: block; }
}

/* Floating CTA (Header settings → «Плаваюча кнопка») */
.mp-floating-contact {
    position: fixed;
    z-index: 99990;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    line-height: 0;
    pointer-events: none;
}
.mp-floating-contact__link {
    display: block;
    pointer-events: auto;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.mp-floating-contact__link:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}
.mp-floating-contact__link:focus-visible {
    outline: 3px solid var(--mp-orange, #f08a1c);
    outline-offset: 4px;
}
.mp-floating-contact__img {
    display: block;
    width: min(72vw, 278px);
    max-width: 278px;
    height: auto;
}
@media (prefers-reduced-motion: reduce) {
    .mp-floating-contact__link,
    .mp-floating-contact__link:hover {
        transition: none;
        transform: none;
    }
}
@media print {
    .mp-floating-contact { display: none !important; }
}
