:root {
    --reboot-child-bg: #f6f4ee;
    --reboot-child-surface: #ffffff;
    --reboot-child-text: #1f2a37;
    --reboot-child-muted: #5f6b7a;
    --reboot-child-accent: #b87333;
    --reboot-child-accent-strong: #8f5a23;
    --reboot-child-border: rgba(31, 42, 55, 0.12);
    --reboot-child-shadow: 0 16px 40px rgba(31, 42, 55, 0.08);
    --reboot-child-radius: 18px;
    --reboot-child-container: min(1200px, calc(100% - 32px));
    --reboot-child-transition: 150ms ease;
}

body {
    background:
        radial-gradient(circle at top left, rgba(184, 115, 51, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, var(--reboot-child-bg) 100%);
    color: var(--reboot-child-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--reboot-child-transition), background-color var(--reboot-child-transition), border-color var(--reboot-child-transition), box-shadow var(--reboot-child-transition), transform var(--reboot-child-transition);
}

a:hover,
a:focus-visible {
    color: var(--reboot-child-accent);
}

.site-container,
.container,
.container-fluid {
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
}

.reboot-child-surface {
    background: var(--reboot-child-surface);
    border: 1px solid var(--reboot-child-border);
    border-radius: var(--reboot-child-radius);
    box-shadow: var(--reboot-child-shadow);
}

.reboot-child-home-banner {
    display: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 24px;
}

.reboot-child-home-banner__inner {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 32px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #7f8ea4 0%, #99acc3 48%, #b9cadf 100%);
}

.reboot-child-home-banner__inner::before {
    content: none;
}

.reboot-child-home-banner__content {
    position: relative;
    z-index: 1;
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
    padding-inline: 16px;
    color: #f8fbff;
}

.reboot-child-home-banner__content h2 {
    max-width: 14ch;
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.reboot-child-home-banner__content p {
    max-width: 58ch;
    margin: 0;
    font-size: 1.05rem;
    color: rgba(248, 251, 255, 0.92);
}

.reboot-child-home-banner .reboot-child-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #f8fbff;
}

.reboot-child-section {
    padding-block: 24px;
}

.reboot-child-header {
    padding: 18px 0 0;
}

.reboot-child-header__inner {
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
    padding-inline: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.reboot-child-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 12px;
    margin-inline: auto;
}

/* Книга со старого сайта — бледный водяной знак во всю высоту верхнего
   ряда шапки. На мобильном ряд static, поэтому слой вешаем на __inner. */
.reboot-child-header__inner {
    position: relative;
    isolation: isolate;
}

.reboot-child-header__top::before,
.reboot-child-header__inner::before {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    background: url("../img/header-book.webp") center bottom / contain no-repeat;
    opacity: 0.3;
}

@media (min-width: 992px) {
    .reboot-child-header__top {
        position: relative;
    }

    .reboot-child-header__top::before {
        content: "";
        inset: -14px 0 -12px;
    }
}

@media (max-width: 991px) {
    .reboot-child-header__inner::before {
        content: "";
        inset: 0 0 72px;
    }
}

.reboot-child-header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.reboot-child-header__logo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    /* Эмблема со старого сайта школы с приглушёнными цветами, фон вокруг
       круга прозрачный. Картинка 192px — с запасом для экранов высокой
       плотности. */
    background: url("../img/logo-emblem.png") center / contain no-repeat;
}

.reboot-child-header__title {
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
}

.reboot-child-header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    text-align: right;
    font-size: 0.95rem;
    white-space: nowrap;
}

.reboot-child-header__nav {
    padding: 14px 0 0;
    border-top: 1px solid var(--reboot-child-border);
    width: 100%;
    box-sizing: border-box;
    padding-inline: 28px;
}

.reboot-child-header__toggle {
    display: none;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--reboot-child-border);
    border-radius: 14px;
    background: var(--reboot-child-surface);
    box-shadow: var(--reboot-child-shadow);
    cursor: pointer;
}

.reboot-child-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    margin-inline: auto;
    position: static !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    inset: auto !important;
    translate: none !important;
    transform: none;
    transform-origin: center;
    background: var(--reboot-child-text);
    transition: transform var(--reboot-child-transition), opacity var(--reboot-child-transition), background-color var(--reboot-child-transition);
}

.reboot-child-header__toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
}

.reboot-child-header__toggle.open span:nth-child(2) {
    opacity: 0;
}

.reboot-child-header__toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
}

.site-footer-container {
    margin-top: 24px;
}

.mobile-menu-placeholder {
    display: none;
}

.reboot-child-mobile-close {
    display: none;
}

#site-navigation-mobile {
    margin: 12px auto 0;
    border: 1px solid var(--reboot-child-border);
    border-radius: var(--reboot-child-radius);
    background: var(--reboot-child-surface);
    box-shadow: var(--reboot-child-shadow);
    overflow: hidden;
}

#site-navigation-mobile .reboot-child-header__menu {
    display: grid;
    gap: 0;
    padding: 12px 16px;
}

#site-navigation-mobile .reboot-child-header__menu > li {
    margin: 0;
    border-bottom: 1px solid var(--reboot-child-border);
}

#site-navigation-mobile .reboot-child-header__menu > li:last-child {
    border-bottom: 0;
}

#site-navigation-mobile .reboot-child-header__menu a,
#site-navigation-mobile .reboot-child-header__menu .removed-link {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0;
    border-bottom: 0;
}

.reboot-child-header__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reboot-child-header__menu a,
.reboot-child-header__menu .removed-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    color: var(--reboot-child-text);
    font-weight: 600;
}

.reboot-child-header__menu a:hover,
.reboot-child-header__menu a:focus-visible,
.reboot-child-header__menu .removed-link:hover {
    color: var(--reboot-child-accent);
}

.reboot-child-header__menu .current-menu-item,
.reboot-child-header__menu .current_page_item,
.reboot-child-header__menu .current-menu-ancestor,
.reboot-child-header__menu .current-menu-parent {
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.reboot-child-header__menu .current-menu-item > a,
.reboot-child-header__menu .current-menu-item > .removed-link,
.reboot-child-header__menu .current_page_item > a,
.reboot-child-header__menu .current_page_item > .removed-link,
.reboot-child-header__menu .current-menu-ancestor > a,
.reboot-child-header__menu .current-menu-ancestor > .removed-link,
.reboot-child-header__menu .current-menu-parent > a,
.reboot-child-header__menu .current-menu-parent > .removed-link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    color: var(--reboot-child-accent-strong) !important;
    background: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    border-bottom-color: var(--reboot-child-accent-strong) !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2px !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.reboot-child-header__menu .current-menu-item > a:hover,
.reboot-child-header__menu .current-menu-item > .removed-link:hover,
.reboot-child-header__menu .current_page_item > a:hover,
.reboot-child-header__menu .current_page_item > .removed-link:hover,
.reboot-child-header__menu .current-menu-ancestor > a:hover,
.reboot-child-header__menu .current-menu-ancestor > .removed-link:hover,
.reboot-child-header__menu .current-menu-parent > a:hover,
.reboot-child-header__menu .current-menu-parent > .removed-link:hover {
    color: var(--reboot-child-accent-strong) !important;
}

/* Desktop nav only: sub-menu drops below the menu item, shown on hover */
#site-navigation .menu-item-has-children {
    position: relative;
}

#site-navigation .menu-item-has-children > .sub-menu {
    top: 100%;
    left: 0;
    min-width: 200px;
}

#site-navigation .menu-item-has-children:hover > .sub-menu {
    display: block !important;
}

.reboot-child-breadcrumbs {
    padding: 12px 0 0;
}

.reboot-child-breadcrumbs__container {
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
    padding-inline: 16px;
}

.reboot-child-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--reboot-child-muted);
    font-size: 0.875rem;
}

.reboot-child-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reboot-child-breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: rgba(95, 107, 122, 0.65);
}

.reboot-child-breadcrumbs a {
    color: inherit;
}

.reboot-child-breadcrumbs a:hover,
.reboot-child-breadcrumbs a:focus-visible {
    color: var(--reboot-child-accent);
}

body #content.site-content,
body #content.site-content > .site-content-inner {
    width: 100% !important;
    max-width: none !important;
    display: block;
    background: transparent;
}

body #content.site-content {
    padding-top: 0;
}

body .reboot-child-home-banner {
    margin-top: 0;
}

body .reboot-child-home-banner__inner {
    width: 100%;
}

body .reboot-child-home-banner__content {
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
    padding-inline: 16px;
}

body #content.site-content > .site-content-inner > * {
    position: relative;
    z-index: 1;
}

.reboot-child-home-main > .reboot-child-section:first-child {
    padding-top: 0;
}

.reboot-child-grid {
    display: grid;
    gap: 24px;
}

.reboot-child-two-col {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: stretch;
}

.reboot-child-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: stretch;
    padding-bottom: 24px;
}

/* Без слайдера главная начинается сразу с этой сетки, и hero-блок
   прилипал к шапке. Слайдер (если есть) отделён своим margin-bottom. */
.site-main > .reboot-child-home-layout:first-child {
    padding-top: 24px;
}

.reboot-child-home-main {
    display: grid;
    min-width: 0;
}

.reboot-child-home-sidebar {
    align-self: stretch;
    min-width: 0;
    min-height: 100%;
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    overflow: auto;
}

@media (max-width: 991px) {
    .reboot-child-header__inner {
        position: relative;
        padding-bottom: 72px;
    }

    .reboot-child-header__top {
        position: static;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px 16px;
    }

    .reboot-child-header__brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .reboot-child-header__contacts {
        order: 3;
        width: 100%;
        align-items: flex-start;
        text-align: left;
        white-space: normal;
    }

    .reboot-child-header__toggle:not(.reboot-child-mobile-close) {
        position: absolute !important;
        right: 12px !important;
        bottom: 12px !important;
        left: auto !important;
        top: auto !important;
        display: inline-flex;
        margin-left: 0;
        z-index: 20;
    }

    .reboot-child-header__nav {
        display: none;
    }

    .mobile-menu-placeholder.open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 250;
        width: 100vw;
        max-width: none;
        margin: 0;
        padding: 72px 16px 16px;
        background: rgba(246, 244, 238, 0.98);
        overflow-y: auto;
    }

    .mobile-menu-placeholder.open .reboot-child-mobile-close {
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        bottom: auto !important;
        left: auto !important;
        display: inline-flex;
        z-index: 260;
        margin: 0 !important;
    }

    #site-navigation-mobile {
        position: relative;
        z-index: 251;
        width: 100%;
        max-width: none;
        min-height: calc(100vh - 32px);
        margin: 0;
        padding: 72px 0 24px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #site-navigation-mobile .reboot-child-header__menu {
        width: min(100%, 420px);
        margin: 0 auto;
        padding: 0;
        background: transparent;
    }

    .reboot-child-home-banner {
        display: none;
    }

    .reboot-child-home-layout,
    .reboot-child-two-col {
        grid-template-columns: 1fr;
    }

    .reboot-child-home-main,
    .reboot-child-home-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .reboot-child-home-sidebar {
        order: 2;
        position: static;
        top: auto;
        height: auto;
        overflow: visible;
    }

    .reboot-child-home-main {
        order: 1;
    }

    .reboot-child-home-main > *,
    .reboot-child-home-sidebar > *,
    .reboot-child-home-content,
    .reboot-child-feed-list,
    .reboot-child-feed-item,
    .reboot-child-card,
    .reboot-child-card__body {
        min-width: 0;
        max-width: 100%;
    }

    .reboot-child-home-content {
        overflow-wrap: anywhere;
    }

    .reboot-child-home-content img,
    .reboot-child-home-content iframe,
    .reboot-child-home-content video,
    .reboot-child-home-content canvas,
    .reboot-child-home-main img,
    .reboot-child-home-main iframe,
    .reboot-child-home-main video {
        max-width: 100%;
        height: auto;
    }

    .reboot-child-home-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.widget-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.reboot-child-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(184, 115, 51, 0.12);
    color: var(--reboot-child-accent-strong);
    font-size: 0.875rem;
    font-weight: 600;
}

.reboot-child-hero__content,
.reboot-child-hero__sidebar,
.reboot-child-block,
.reboot-child-card {
    padding: 28px;
}

.reboot-child-hero__content,
.reboot-child-hero__sidebar {
    height: 100%;
}

.reboot-child-hero__sidebar {
    display: flex;
    flex-direction: column;
}

.reboot-child-hero__sidebar .widget,
.reboot-child-hero__sidebar > * {
    width: 100%;
}

.reboot-child-hero__sidebar .widget:last-child {
    margin-bottom: 0;
}

.reboot-child-hero__title {
    margin: 16px 0 12px;
    font-size: clamp(2.25rem, 4vw, 1rem);
    line-height: 1.05;
}

.reboot-child-hero__text {
    max-width: 62ch;
    color: var(--reboot-child-muted);
    font-size: 1.05rem;
}

.reboot-child-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.reboot-child-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--reboot-child-border);
}

.reboot-child-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
}

.reboot-child-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--reboot-child-border);
}

.reboot-child-stat__number {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    color: var(--reboot-child-accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.reboot-child-stat__label {
    font-size: 0.78rem;
    color: var(--reboot-child-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 479px) {
    .reboot-child-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .reboot-child-stat:not(:last-child)::after {
        display: none;
    }

    .reboot-child-stat:nth-child(odd) {
        border-right: 1px solid var(--reboot-child-border);
    }

    .reboot-child-stat:nth-child(1),
    .reboot-child-stat:nth-child(2) {
        border-bottom: 1px solid var(--reboot-child-border);
    }
}

.reboot-child-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--reboot-child-accent);
    color: #fff;
    font-weight: 700;
}

.reboot-child-button:hover,
.reboot-child-button:focus-visible {
    background: var(--reboot-child-accent-strong);
    color: #fff;
}

.reboot-child-button--secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--reboot-child-text);
    border: 1px solid rgba(31, 42, 55, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.reboot-child-button--secondary:hover,
.reboot-child-button--secondary:focus-visible {
    background: rgba(184, 115, 51, 0.12);
    color: var(--reboot-child-text);
}

.reboot-child-card a,
.reboot-child-page-sidecard a,
.reboot-child-page-nav__list a,
.reboot-child-feed-actions a {
    color: inherit;
}

.reboot-child-card a:hover,
.reboot-child-card a:focus-visible,
.reboot-child-page-sidecard a:hover,
.reboot-child-page-sidecard a:focus-visible,
.reboot-child-page-nav__list a:hover,
.reboot-child-page-nav__list a:focus-visible,
.reboot-child-feed-actions a:hover,
.reboot-child-feed-actions a:focus-visible {
    color: var(--reboot-child-accent);
}

.reboot-child-aside-title,
.reboot-child-section-heading h2 {
    margin: 10px 0 0;
}

.reboot-child-muted {
    color: var(--reboot-child-muted);
}

.reboot-child-section-heading {
    margin-bottom: 20px;
}

.reboot-child-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reboot-child-feed-list {
    display: grid;
    gap: 16px;
}

.reboot-child-feed-item {
    width: 100%;
}

.reboot-child-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reboot-child-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.reboot-child-card__body {
    display: grid;
    gap: 12px;
}

.reboot-child-card__date {
    color: var(--reboot-child-muted);
    font-size: 0.875rem;
}

.reboot-child-card__date--footer {
    margin-top: auto;
    align-self: start;
}

.reboot-child-card__title {
    margin: 0;
    font-size: 1.2rem;
}

.reboot-child-card__excerpt {
    margin: 0;
    color: var(--reboot-child-muted);
}

.reboot-child-card__meta {
    margin: 0;
    color: var(--reboot-child-accent-strong);
    font-size: 0.95rem;
    font-weight: 600;
}

.reboot-child-home-content > :first-child {
    margin-top: 0;
}

.reboot-child-home-content > :last-child {
    margin-bottom: 0;
}

.reboot-child-card--compact {
    min-height: 100%;
}

.reboot-child-feed-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.reboot-child-page-hero__inner,
.reboot-child-page-content,
.reboot-child-page-nav {
    padding: 28px;
}

body.page-template-page-documents .site-content-inner {
    max-width: 100% !important;
    width: 100% !important;
    display: contents;
}

body.page-template-page-documents .reboot-child-page-hero__inner {
    padding: 28px;
}

body.page-template-page-documents .reboot-child-page-hero .site-container,
body.page-template-page-documents .reboot-child-documents-wide {
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
}

body.page-template-page-documents .reboot-child-page-content,
body.page-template-page-documents .reboot-child-document-group {
    width: 100%;
    max-width: none;
}

.reboot-child-page-title {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.reboot-child-employees-page .reboot-child-page-title {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.reboot-child-page-lead {
    max-width: 70ch;
    color: var(--reboot-child-muted);
    font-size: 1.05rem;
}

.reboot-child-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.reboot-child-page-sidebar {
    display: grid;
    gap: 24px;
}

/* Колонка с содержимым, когда в ней несколько блоков подряд: текст страницы,
   сетка преподавателей, список альбомов. Без min-width: 0 широкая таблица
   внутри распирала бы колонку и ломала вторую — см. комментарий у
   .reboot-child-page-layout ниже. */
.reboot-child-page-column {
    display: grid;
    gap: 24px;
    align-content: start;
    min-width: 0;
}

.reboot-child-page-nav__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.reboot-child-page-nav__list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 14px;
    color: var(--reboot-child-text);
    text-decoration: none;
    background: rgba(31, 42, 55, 0.02);
}

.reboot-child-page-nav__list a:hover,
.reboot-child-page-nav__list a:focus-visible {
    background: rgba(184, 115, 51, 0.08);
    border-color: rgba(184, 115, 51, 0.2);
}

.reboot-child-page-content > :first-child {
    margin-top: 0;
}

.reboot-child-page-content > :last-child {
    margin-bottom: 0;
}

.reboot-child-page-content--full {
    width: 100%;
    max-width: none;
}

.reboot-child-page-sidecards {
    display: grid;
    gap: 16px;
}

.reboot-child-page-sidecard {
    padding: 16px 0 0;
    border-top: 1px solid var(--reboot-child-border);
}

.reboot-child-page-sidecard:first-child {
    padding-top: 0;
    border-top: 0;
}

.reboot-child-page-sidecard__date {
    display: block;
    margin-bottom: 8px;
    color: var(--reboot-child-muted);
    font-size: 0.875rem;
}

.reboot-child-page-sidecard__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.reboot-child-page-sidecard__meta {
    margin: 0 0 6px;
    color: var(--reboot-child-muted);
    font-size: 0.75rem;
    line-height: 1.25;
}

.reboot-child-gallery-grid {
    display: grid;
    /* auto-fill, а не жёсткие три колонки: с появлением сайдбара раздела
       колонка с альбомами сузилась, и три карточки в ней стали тесными.
       Теперь их число подстраивается под доступную ширину. */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.reboot-child-gallery-card {
    overflow: hidden;
}

.reboot-child-gallery-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.reboot-child-gallery-card__body {
    padding: 20px;
}

.reboot-child-gallery-card__title {
    margin: 0 0 8px;
}

.reboot-child-gallery-card__excerpt {
    margin: 0;
    color: var(--reboot-child-muted);
}

.reboot-child-gallery-album-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.reboot-child-page-sidecard__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 6px;
    padding: 4px 10px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 999px;
    color: var(--reboot-child-accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.reboot-child-documents {
    display: grid;
    gap: 24px;
}

.reboot-child-documents-wide {
    width: 100%;
    max-width: none;
}

.reboot-child-document-group {
    padding: 28px;
}

.reboot-child-document-group__header {
    margin-bottom: 20px;
}

.reboot-child-document-group__header h2 {
    margin: 0 0 8px;
}

.reboot-child-document-group__header p {
    margin: 0;
    color: var(--reboot-child-muted);
}

.reboot-child-document-list {
    display: grid;
    gap: 16px;
}

.reboot-child-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 0;
    border-top: 1px solid var(--reboot-child-border);
}

.reboot-child-document-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.reboot-child-document-item__meta {
    display: grid;
    gap: 6px;
}

.reboot-child-document-item__title {
    margin: 0;
    font-size: 1.05rem;
}

.reboot-child-document-item__date {
    color: var(--reboot-child-muted);
    font-size: 0.875rem;
}

.reboot-child-document-item__excerpt {
    margin: 0;
    color: var(--reboot-child-muted);
}

.reboot-child-document-item__button {
    flex-shrink: 0;
}

.reboot-child-employee-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reboot-child-employee-section {
    padding: 28px;
}

.reboot-child-employees-wide {
    width: 100%;
    max-width: none;
}

.reboot-child-employee-card {
    overflow: hidden;
    display: grid;
}

.reboot-child-employee-card__media {
    display: block;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, rgba(31, 42, 55, 0.72), rgba(184, 115, 51, 0.72)),
        linear-gradient(135deg, #c2c7d0 0%, #edf1f5 100%);
    background-size: cover;
    background-position: center;
}

.reboot-child-employee-card__media--fallback {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(135deg, #7f8ea4 0%, #9db0c7 48%, #c6d3e4 100%);
}

.reboot-child-employee-card__body {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.reboot-child-employee-card__title {
    margin: 0;
    font-size: 1.1rem;
}

.reboot-child-employee-card__meta,
.reboot-child-employee-card__experience {
    margin: 0;
    color: var(--reboot-child-muted);
}

.reboot-child-employee-card__experience {
    color: var(--reboot-child-accent-strong);
    font-weight: 600;
}

.reboot-child-organization-section {
    padding: 28px;
}

.reboot-child-organization-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 20px;
}

.reboot-child-organization-filter label {
    color: var(--reboot-child-muted);
    font-weight: 700;
}

.reboot-child-organization-filter select {
    min-width: min(100%, 280px);
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 12px;
    background: #fff;
    color: var(--reboot-child-text);
}

.reboot-child-organization-list {
    display: grid;
    gap: 16px;
}

.reboot-child-organization-card {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 20px;
    box-shadow: none;
}

.reboot-child-organization-card[hidden] {
    display: none;
}

.reboot-child-organization-card__title {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.reboot-child-organization-card__row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.reboot-child-organization-card__row strong {
    color: var(--reboot-child-text);
}

.reboot-child-organization-card__row span,
.reboot-child-organization-card__row a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.reboot-child-organization-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.reboot-child-organization-card__stack {
    display: grid;
    gap: 4px;
}

.reboot-child-organization-empty {
    margin: 16px 0 0;
}

.reboot-child-employee-single__meta {
    display: grid;
    gap: 8px;
}

.reboot-child-employee-single__summary {
    display: grid;
    grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.reboot-child-employee-single__summary--no-media {
    grid-template-columns: 1fr;
}

.reboot-child-employee-single__meta div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.reboot-child-single-media.reboot-child-employee-single__media {
    margin-bottom: 0;
}

.reboot-child-single-media.reboot-child-employee-single__media img {
    width: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.reboot-child-archive-hero__inner,
.reboot-child-single-hero__inner,
.reboot-child-single-content,
.reboot-child-single-sidebar {
    padding: 28px;
}

.reboot-child-archive-pagination {
    margin-top: 24px;
}

.reboot-child-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.reboot-child-single-media {
    margin-bottom: 20px;
}

.reboot-child-single-media img {
    display: block;
    width: 100%;
    height: auto;
}

.reboot-child-single-body > :first-child {
    margin-top: 0;
}

.reboot-child-single-body > :last-child {
    margin-bottom: 0;
}

.reboot-child-single-meta {
    margin-top: 12px;
    color: var(--reboot-child-muted);
}

.reboot-child-page-lead strong {
    color: var(--reboot-child-text);
    font-size: 0.85em;
}

.reboot-child-page-lead time {
    display: inline;
    margin-left: 8px;
}

.reboot-child-gallery-content img {
    cursor: zoom-in;
}

.reboot-child-gallery-content .wp-block-gallery img,
.reboot-child-gallery-content .gallery img {
    cursor: zoom-in;
}

/* Те же снимки в новости: миниатюра и фотоотчёт в тексте. Класс на карточке
   ставит single.php, курсор подсказывает, что фото откроется на весь экран. */
.js-reboot-child-gallery-content .reboot-child-single-media img,
.js-reboot-child-gallery-content .reboot-child-single-body a[href$=".jpg"] img,
.js-reboot-child-gallery-content .reboot-child-single-body a[href$=".jpeg"] img,
.js-reboot-child-gallery-content .reboot-child-single-body a[href$=".png"] img,
.js-reboot-child-gallery-content .reboot-child-single-body a[href$=".webp"] img,
.js-reboot-child-gallery-content .reboot-child-single-body figure img {
    cursor: zoom-in;
}

.reboot-child-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
}

.reboot-child-gallery-modal[hidden] {
    display: none;
}

.reboot-child-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(16, 20, 27, 0.82);
}

.reboot-child-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    padding: 18px;
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.reboot-child-gallery-modal.is-open .reboot-child-gallery-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.reboot-child-gallery-modal__image {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.reboot-child-gallery-modal__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--reboot-child-surface);
    color: var(--reboot-child-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.reboot-child-gallery-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 72px;
    height: 72px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 150ms ease;
    opacity: 0.88;
}

.reboot-child-gallery-modal__nav:hover,
.reboot-child-gallery-modal__nav:focus-visible {
    opacity: 1;
}

.reboot-child-gallery-modal__nav--prev {
    left: 10px;
}

.reboot-child-gallery-modal__nav--next {
    right: 10px;
}

.reboot-child-gallery-modal__nav--prev::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    width: 18px;
    height: 18px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.reboot-child-gallery-modal__nav--next::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 18px;
    height: 18px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.reboot-child-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .reboot-child-gallery-modal__nav--prev {
        left: 6px;
    }

    .reboot-child-gallery-modal__nav--next {
        right: 6px;
    }

    .reboot-child-gallery-modal__nav {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 991px) {
    .reboot-child-card-grid {
        grid-template-columns: 1fr;
    }

    .reboot-child-feed-actions {
        justify-content: stretch;
    }

    .reboot-child-feed-actions .reboot-child-button {
        width: 100%;
    }

    .reboot-child-page-layout {
        /* minmax(0, …), а не 1fr: у 1fr минимум равен min-content, и широкая
           таблица внутри распирает колонку шире экрана. Вылезшее обрезает
           `.site` с overflow: hidden, и правые столбцы становятся
           недоступны — вместо этого колонка сжимается, а таблица
           прокручивается внутри себя. */
        grid-template-columns: minmax(0, 1fr);
    }

    .reboot-child-gallery-grid,
    .reboot-child-gallery-album-layout {
        grid-template-columns: 1fr;
    }

    .reboot-child-document-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .reboot-child-single-layout {
        /* см. .reboot-child-page-layout выше: у 1fr минимум равен min-content,
           и широкая таблица в тексте новости распирает колонку шире экрана */
        grid-template-columns: minmax(0, 1fr);
    }

    .reboot-child-employee-grid {
        grid-template-columns: 1fr;
    }

    .reboot-child-employee-single__summary {
        grid-template-columns: 1fr;
    }

    .reboot-child-organization-card__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (min-width: 992px) {
    .reboot-child-home-banner {
        display: block;
    }
}

/* Страница «Контакты»: компактная карточка — контакты слева, небольшая
   карта справа; ниже реквизиты таблицей. */
.reboot-child-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 28px;
    align-items: center;
    padding: 24px;
}

.reboot-child-contact-card > :only-child {
    grid-column: 1 / -1;
}

.reboot-child-contact-map {
    line-height: 0;
    border-radius: calc(var(--reboot-child-radius) - 6px);
    overflow: hidden;
}

.reboot-child-contact-map iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: none;
}

.reboot-child-contact-requisites {
    padding: 28px;
}

.reboot-child-contact-requisites__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.reboot-child-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.reboot-child-contact-list__item {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px;
    align-items: baseline;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--reboot-child-text);
}

.reboot-child-contact-list__label {
    font-weight: 600;
    color: var(--reboot-child-muted);
    white-space: nowrap;
}

.reboot-child-contact-list__item a {
    color: var(--reboot-child-accent);
    text-decoration: none;
    transition: color var(--reboot-child-transition);
}

.reboot-child-contact-list__item a:hover {
    color: var(--reboot-child-accent-strong);
    text-decoration: underline;
}

/* Телефоны — каждый своей строкой, рядом кнопка копирования (замечание 12). */
.reboot-child-phone-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.reboot-child-phone-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reboot-child-phone-list__link {
    white-space: nowrap;
}

.reboot-child-copy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--reboot-child-border);
    border-radius: 8px;
    background: transparent;
    color: var(--reboot-child-muted);
    cursor: pointer;
    transition: color var(--reboot-child-transition),
                border-color var(--reboot-child-transition);
}

.reboot-child-copy:hover,
.reboot-child-copy:focus-visible {
    color: var(--reboot-child-accent-strong);
    border-color: var(--reboot-child-accent);
}

.reboot-child-copy__icon {
    width: 15px;
    height: 15px;
}

.reboot-child-copy__icon--done {
    display: none;
}

.reboot-child-copy.is-copied {
    color: var(--reboot-child-accent-strong);
    border-color: var(--reboot-child-accent);
}

.reboot-child-copy.is-copied .reboot-child-copy__icon--copy {
    display: none;
}

.reboot-child-copy.is-copied .reboot-child-copy__icon--done {
    display: block;
}

/* Подтверждение — всплывающая подсказка над кнопкой. Позиционируется
   абсолютно, поэтому не сдвигает номер и не ломает узкую карточку.
   Скринридеру о результате сообщает aria-label, который меняет скрипт. */
.reboot-child-copy.is-copied::after,
.reboot-child-copy.is-failed::after {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--reboot-child-text);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

.reboot-child-copy.is-copied::after {
    content: 'Скопировано';
}

.reboot-child-copy.is-failed {
    color: var(--reboot-child-text);
    border-color: currentColor;
}

.reboot-child-copy.is-failed::after {
    content: 'Не удалось скопировать';
}

@media (max-width: 991px) {
    .reboot-child-contact-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .reboot-child-contact-map iframe {
        height: 240px;
    }

    .reboot-child-contact-requisites {
        padding: 20px;
    }
}

/* ── Mobile sub-menu: toggle button & nested items ──────────────── */

/* Parent items become flex containers so the link and toggle sit in a row,
   and the sub-menu wraps to a second row via flex-wrap. */
#site-navigation-mobile .menu-item-has-children {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    position: static !important; /* no absolute needed; toggle is flex-inline */
    padding-right: 0 !important;
}

/* Link stretches, toggle button stays fixed-width at the row end */
#site-navigation-mobile .menu-item-has-children > a,
#site-navigation-mobile .menu-item-has-children > .removed-link {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
}

/* Chevron toggle button */
.reboot-child-sub-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--reboot-child-muted);
    transition: transform var(--reboot-child-transition), color var(--reboot-child-transition);
}

.reboot-child-sub-open > .reboot-child-sub-toggle {
    transform: rotate(180deg);
    color: var(--reboot-child-accent);
}

/* Sub-menu list: full-width flex item → occupies its own row */
#site-navigation-mobile .sub-menu {
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    background: rgba(31, 42, 55, 0.03) !important;
    border-top: 1px solid var(--reboot-child-border);
}

#site-navigation-mobile .reboot-child-sub-open > .sub-menu {
    display: block;
}

#site-navigation-mobile .sub-menu > li {
    border-bottom: 1px solid var(--reboot-child-border);
    padding-right: 0 !important;
}

#site-navigation-mobile .sub-menu > li:last-child {
    border-bottom: 0;
}

#site-navigation-mobile .sub-menu a,
#site-navigation-mobile .sub-menu .removed-link {
    padding-left: 20px;
    min-height: 44px;
    font-weight: 500;
    color: var(--reboot-child-muted);
}

/* ── Home Slider ─────────────────────────────────────────────────── */

.reboot-child-home-slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 24px;
}

.reboot-child-slider {
    position: relative;
    overflow: hidden;
}

.reboot-child-slider__track {
    display: grid;
}

.reboot-child-slider__slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    min-height: 260px;
    background-color: #7f8ea4;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.reboot-child-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.reboot-child-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.reboot-child-slider__content {
    position: relative;
    z-index: 1;
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin-inline: auto;
    padding: 40px 16px;
    color: #fff;
}

.reboot-child-slider__title {
    max-width: 18ch;
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    line-height: 1.1;
    color: #fff;
}

.reboot-child-slider__description {
    max-width: 58ch;
    margin: 0 0 20px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.reboot-child-slider__button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.reboot-child-slider__button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.reboot-child-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

/* Стрелка рисуется псевдоэлементом: глиф ‹ › имеет собственные метрики и смещается от центра */
.reboot-child-slider__nav::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.reboot-child-slider__nav--prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.reboot-child-slider__nav--next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.reboot-child-slider__nav:hover {
    background: rgba(255, 255, 255, 0.42);
}

.reboot-child-slider__nav--prev { left: 14px; }
.reboot-child-slider__nav--next { right: 14px; }

.reboot-child-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.reboot-child-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}

.reboot-child-slider__dot.is-active {
    background: #fff;
}

@media (min-width: 992px) {
    .reboot-child-slider__slide {
        min-height: 340px;
    }
}

@media (max-width: 600px) {
    .reboot-child-slider__nav {
        display: none;
    }
}

/* Навигация по разделу на внутренних страницах */
.reboot-child-page-nav .reboot-child-aside-title a {
    color: inherit;
    text-decoration: none;
}

.reboot-child-page-nav .reboot-child-aside-title a:hover,
.reboot-child-page-nav .reboot-child-aside-title a:focus-visible {
    text-decoration: underline;
}

.reboot-child-page-nav__list a.is-current {
    background: rgba(184, 115, 51, 0.12);
    border-color: rgba(184, 115, 51, 0.35);
    font-weight: 600;
}

/* Служебная зона шапки: версия для слабовидящих и соцсети */
.reboot-child-header__utility {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.reboot-child-header__utility .bvi-shortcode a,
.reboot-child-header__social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--reboot-child-text);
    text-decoration: none;
    opacity: 0.85;
}

.reboot-child-header__utility .bvi-shortcode a:hover,
.reboot-child-header__utility .bvi-shortcode a:focus-visible,
.reboot-child-header__social:hover,
.reboot-child-header__social:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.reboot-child-header__bvi .bvi-svg-eye {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Кнопка поиска в шапке — замечание 18. Выглядит как соседние ссылки панели,
   хотя это button: иначе поиск не открыть с клавиатуры. Родительская тема
   вешает на .search-icon свои размеры и фон — перебиваем их здесь. */
.reboot-child-header__utility .reboot-child-header__search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 14px;
    color: var(--reboot-child-text);
    opacity: 0.85;
    cursor: pointer;
}

.reboot-child-header__utility .reboot-child-header__search:hover,
.reboot-child-header__utility .reboot-child-header__search:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.reboot-child-header__search svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Родительская тема добавляет классу .search-icon эмодзи 🔍 в ::before.
   Рядом с нашей иконкой получались две лупы подряд — убираем её. */
.reboot-child-header__utility .reboot-child-header__search::before {
    content: none;
}

/* Экран поиска: открывает его скрипт родительской темы, добавляя класс open.
   Её же стили задают полю подчёркивание, а кнопке — крупную лупу чужого
   цвета, поэтому здесь перебиваем их с повышенной точностью селектора. */
.search-screen .reboot-child-search-form {
    width: min(560px, calc(100% - 32px));
    margin: 0 auto;
}

.search-screen .search-form.reboot-child-search-form .reboot-child-search-form__field {
    padding: 12px 18px;
    border: 1px solid var(--reboot-child-border);
    /* Родительская тема подчёркивает поле своим фиолетовым цветом — снимаем
       явно, сокращённого `border` для этого не хватает. */
    border-bottom: 1px solid var(--reboot-child-border);
    border-radius: 999px;
    background: var(--reboot-child-surface);
}

/* Кнопку поиска родительская тема рисует эмодзи 🔍 в ::before. Оно чужого
   цвета и лезет за края кружка — убираем, лупу даём фоном. */
.search-screen .search-form.reboot-child-search-form .reboot-child-search-form__submit::before,
.reboot-child-search-form__submit::before {
    content: none;
}

.search-screen .search-form.reboot-child-search-form .reboot-child-search-form__submit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--reboot-child-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M16 16l4.5 4.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

/* Раздел «Сведения об образовательной организации» */
.sveden-block__title {
    margin: 32px 0 12px;
    font-size: 20px;
}

.sveden-block > .sveden-block__title:first-child {
    margin-top: 0;
}

/* Произвольный текст подраздела идёт последним, после обязательных блоков,
   и без отступа прилипал бы к последней таблице. */
.sveden-page-content {
    margin-top: 32px;
}

.sveden-page-content > :first-child {
    margin-top: 0;
}

.sveden-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 8px;
}

.sveden-table th,
.sveden-table td {
    padding: 10px 12px;
    border: 1px solid var(--reboot-child-border);
    text-align: left;
    vertical-align: top;
}

.sveden-table__label {
    width: 42%;
    font-weight: 500;
    background: rgba(31, 42, 55, 0.03);
}

.sveden-table__row--empty .sveden-table__value {
    opacity: 0.6;
}

/* На узком экране таблицы «поле — значение» разворачиваем в столбик: подпись
   строкой, под ней значение. Широкие таблицы педсостава и руководства
   (`--staff`) так разворачивать нельзя — у них десятка два столбцов, и в
   столбик получается сначала список всех заголовков, а потом отдельно список
   всех значений, без связи между ними. Они лежат в `.sveden-scroll`
   и прокручиваются по горизонтали, оставаясь таблицами. */
@media (max-width: 600px) {
    .sveden-table:not(.sveden-table--staff),
    .sveden-table:not(.sveden-table--staff) tbody,
    .sveden-table:not(.sveden-table--staff) tr,
    .sveden-table:not(.sveden-table--staff) th,
    .sveden-table:not(.sveden-table--staff) td {
        display: block;
        width: auto;
    }

    .sveden-table:not(.sveden-table--staff) tr {
        margin-bottom: 12px;
    }

    .sveden-table:not(.sveden-table--staff) th {
        border-bottom: none;
    }
}

/* Широкие таблицы раздела «Сведения» */
.sveden-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Плавающая полоса прокрутки широкой таблицы внизу экрана, см. table-scrollbar.js */
.table-scrollbar {
    position: fixed;
    bottom: 0;
    z-index: 90;
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -1px 0 rgba(31, 42, 55, 0.12);
}

.table-scrollbar.is-visible {
    display: block;
}

.table-scrollbar__spacer {
    height: 1px;
}

.table-scrollbar::-webkit-scrollbar {
    height: 14px;
}

.table-scrollbar::-webkit-scrollbar-track {
    background: rgba(31, 42, 55, 0.06);
}

.table-scrollbar::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 7px;
    background: rgba(31, 42, 55, 0.35) padding-box;
}

.table-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(31, 42, 55, 0.5);
}

@supports not selector(::-webkit-scrollbar) {
    .table-scrollbar {
        scrollbar-color: rgba(31, 42, 55, 0.35) rgba(31, 42, 55, 0.06);
    }
}

.sveden-table--staff {
    min-width: 900px;
}

.sveden-table--staff th[scope="col"] {
    background: rgba(31, 42, 55, 0.05);
    font-weight: 600;
    font-size: 14px;
}

.sveden-table--staff td {
    font-size: 14px;
}

.sveden-table__value--empty {
    opacity: 0.6;
}

.sveden-block__note {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.75;
}

/* Обязательные документы */
.sveden-table__optional {
    display: block;
    font-weight: 400;
    font-size: 13px;
    opacity: 0.6;
}

/* Метка «Документ подписан ЭЦП» в таблицах раздела «Сведения об ОО».
   Сама метка — inline-flex, поэтому в ячейке она прилипает к последнему
   слову ссылки и читается как часть названия документа. Делаем её блочной,
   но по ширине содержимого: растянутая на всю ячейку, она ловила бы
   наведение там, где ничего не написано. */
/* Ф. И. О. в педсоставе ведёт на карточку преподавателя. Ссылки в теме
   не выделяются цветом (см. карточки преподавателей), поэтому кликабельность
   показываем пунктиром: иначе догадаться, что имя ведёт на страницу, нельзя.
   При наведении пунктир становится сплошным. */
.sveden-table td[itemprop="fio"] a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.sveden-table td[itemprop="fio"] a:hover,
.sveden-table td[itemprop="fio"] a:focus-visible {
    border-bottom-style: solid;
}

/* Строка «документ + метка подписи» в поле подраздела: школа вносит
   в одно поле несколько документов, и без разделения они читаются сплошным
   текстом. */
.sveden-doc-line {
    display: block;
}

.sveden-doc-line + .sveden-doc-line {
    margin-top: 10px;
}

.sveden-table .reboot-child-signature {
    display: flex;
    width: fit-content;
    margin-top: 4px;
    /* В узких колонках «Документ подписан ЭЦП» разваливался на три строки
       по одному слову. Таблицы раздела и так прокручиваются по горизонтали,
       так что запрет переноса ничего не ломает. */
    white-space: nowrap;
}

/* Плитка отделений на главной */
.reboot-child-departments__grid {
    display: grid;
    /* 280px даёт 2x2 в основной колонке главной вместо неровных 3+1 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.reboot-child-department {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reboot-child-department:hover,
.reboot-child-department:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 42, 55, 0.12);
}

.reboot-child-department__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(31, 42, 55, 0.06);
}

.reboot-child-department__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reboot-child-department__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 20px;
}

.reboot-child-department__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
}

.reboot-child-department__text {
    font-size: 14px;
    opacity: 0.75;
}

/* Телефон приёмной комиссии в первом экране */
.reboot-child-hero__phone {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}

.reboot-child-hero__phone-label {
    font-size: 12px;
    opacity: 0.7;
}

.reboot-child-hero__phone-number {
    font-weight: 600;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .reboot-child-department {
        transition: none;
    }
}


/* Шесть пунктов, включая длинное «Сведения об образовательной организации»,
   должны помещаться в одну строку на десктопе */
.reboot-child-header__menu {
    gap: 4px 12px;
}

/* Специфичность поднята: родительская тема задаёт свой размер шрифта в меню */
.reboot-child-header__nav .reboot-child-header__menu > li > a {
    font-size: 14px;
    min-height: 34px;
}

@media (max-width: 1360px) {
    .reboot-child-header__nav .reboot-child-header__menu > li > a {
        font-size: 13px;
    }
}

/* Фильтр преподавателей по отделениям */
.reboot-child-teacher-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.reboot-child-teacher-filter__button {
    padding: 8px 16px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 100px;
    background: transparent;
    color: var(--reboot-child-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.reboot-child-teacher-filter__button:hover,
.reboot-child-teacher-filter__button:focus-visible {
    background: rgba(184, 115, 51, 0.08);
}

.reboot-child-teacher-filter__button.is-active {
    background: rgba(184, 115, 51, 0.14);
    border-color: rgba(184, 115, 51, 0.4);
    font-weight: 600;
}

.reboot-child-teacher-empty {
    margin-top: 16px;
}

.reboot-child-teacher-details {
    margin-bottom: 24px;
}

.reboot-child-teacher-single__back {
    margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
    .reboot-child-teacher-filter__button {
        transition: none;
    }
}

/* Лента новостей */
.reboot-child-section--tight {
    padding-top: 0;
}

.reboot-child-rubrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reboot-child-rubrics__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 100px;
    color: var(--reboot-child-text);
    text-decoration: none;
    font-size: 14px;
    background: var(--reboot-child-surface, #fff);
}

.reboot-child-rubrics__link:hover,
.reboot-child-rubrics__link:focus-visible {
    background: rgba(184, 115, 51, 0.08);
}

.reboot-child-rubrics__link.is-active {
    background: rgba(184, 115, 51, 0.14);
    border-color: rgba(184, 115, 51, 0.4);
    font-weight: 600;
}

.reboot-child-rubrics__count {
    font-size: 12px;
    opacity: 0.6;
}

.reboot-child-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.reboot-child-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.reboot-child-news-card .reboot-child-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgba(31, 42, 55, 0.06);
}

.reboot-child-news-card .reboot-child-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reboot-child-news-card .reboot-child-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 22px;
}

.reboot-child-news-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    opacity: 0.75;
}

.reboot-child-news-card__rubric {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.reboot-child-news-card .reboot-child-card__title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}

.reboot-child-pagination {
    margin-top: 28px;
}

/* Галерея фотоотчёта в новости */
.ldshi-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ldshi-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(31, 42, 55, 0.06);
}

.ldshi-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.ldshi-gallery a:hover img,
.ldshi-gallery a:focus-visible img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .ldshi-gallery img {
        transition: none;
    }
}

/* Встроенное видео */
.reboot-child-video {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(31, 42, 55, 0.08);
}

.reboot-child-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.reboot-child-video-link {
    margin: 16px 0;
}

/* Сетка карточек преподавателей */
.reboot-child-teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.reboot-child-teacher-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.reboot-child-teacher-card__media {
    display: block;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: rgba(31, 42, 55, 0.08);
}

.reboot-child-teacher-card__media--fallback {
    background-image: linear-gradient(135deg, rgba(184, 115, 51, 0.18), rgba(31, 42, 55, 0.12));
}

.reboot-child-teacher-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 18px;
}

.reboot-child-teacher-card__title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
}

.reboot-child-teacher-card__title a {
    color: inherit;
    text-decoration: none;
}

.reboot-child-teacher-card__title a:hover,
.reboot-child-teacher-card__title a:focus-visible {
    text-decoration: underline;
}

.reboot-child-teacher-card__meta,
.reboot-child-teacher-card__experience {
    margin: 0;
    font-size: 13px;
    opacity: 0.75;
}

/* Карта сайта */
.reboot-child-sitemap__list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
    display: grid;
    gap: 6px;
}

.reboot-child-sitemap__list .reboot-child-sitemap__list {
    padding-left: 20px;
    margin: 6px 0 10px;
    border-left: 2px solid var(--reboot-child-border);
}

.reboot-child-sitemap__list > li > a {
    font-weight: 500;
}

.reboot-child-sitemap__list .reboot-child-sitemap__list > li > a {
    font-weight: 400;
}

.reboot-child-sitemap__count {
    font-size: 13px;
    opacity: 0.6;
    margin-left: 6px;
}

/* Перенесённый со старого сайта контент: картинки и видео там заданы
   в пикселях и на узком экране вылезают за колонку. */
.reboot-child-page-content img,
.reboot-child-single-body img,
.reboot-child-page-content iframe,
.reboot-child-single-body iframe {
    max-width: 100%;
    height: auto;
}

.reboot-child-page-content iframe,
.reboot-child-single-body iframe {
    aspect-ratio: 16 / 9;
    display: block;
    margin-inline: auto;
    border: 0;
    border-radius: 12px;
}

/* Таблицы прокручиваются вместе с обёрткой .sveden-scroll, которую вешает
   фильтр reboot_child_wrap_content_tables(). Саму таблицу в блок не
   превращаем: браузер перестаёт считать её таблицей, и скринридеры теряют
   связь ячеек с заголовками. */
.reboot-child-page-content .sveden-scroll,
.reboot-child-single-body .sveden-scroll {
    max-width: 100%;
}

/* Плашки счётчиков в подвале. Родительская тема кладёт их в .footer-counters
   рядом с копирайтом; там же оказываются наши, поэтому задаём только
   раскладку — на узких экранах плашки переносятся, а не сжимаются. */
.footer-counters .reboot-child-counters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.footer-counters .reboot-child-counters img {
    display: block;
    width: 88px;
    height: 31px;
}

/* Баннер «Госуслуги. Решаем вместе» стоит прямо над подвалом
   (inc/pos-widget.php). На широких экранах родительская тема прижимает подвал
   к низу абсолютным позиционированием, и margin-top у .site-footer-container
   там не действует — без своего отступа баннер упирается в меню подвала.
   На узких экранах подвал в потоке, отступы схлопываются и остаются 24px. */
#js-show-iframe-wrapper {
    margin-bottom: 24px;
}

/* Меню подвала (карта сайта, политика, НОК): родительская тема рисует его
   белой полосой во всю ширину, без скруглений и отступов. Приводим к тому же
   виду, что и остальные блоки страницы. */
.site-footer-container .footer-navigation {
    /* ширина у родительской темы своя (1190px) — берём сетку остального сайта */
    width: var(--reboot-child-container);
    max-width: var(--reboot-child-container);
    margin: 0 auto 24px;
    box-sizing: border-box;
    border: 1px solid var(--reboot-child-border);
    border-radius: var(--reboot-child-radius);
    box-shadow: var(--reboot-child-shadow);
}

.site-footer-container .footer-navigation .main-navigation-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

.site-footer-container #footer_menu {
    margin: 0;
    padding: 12px 28px;
    flex-wrap: wrap;
    gap: 2px 28px;
}

.site-footer-container #footer_menu > li > a {
    padding: 12px 0;
    color: var(--reboot-child-text);
    transition: color var(--reboot-child-transition);
}

.site-footer-container #footer_menu > li > a:hover,
.site-footer-container #footer_menu > li > a:focus-visible {
    color: var(--reboot-child-accent-strong);
}

/* Текущий пункт родительская тема рендерит не ссылкой, а <span
   class="removed-link">, и отступ, заданный выше для ссылок, ему не
   достаётся — пункт съезжает по вертикали относительно соседей. Выравниваем
   его тем же отступом, а выделяем цветом и насыщенностью: подчёркивания
   в подвале нет ни у одного пункта. */
.site-footer-container #footer_menu > li > .removed-link {
    display: inline-block;
    padding: 12px 0;
    color: var(--reboot-child-accent-strong);
    /* у остальных пунктов подвала насыщенность 700 — с 600 текущий выглядел
       бы тоньше соседей, то есть слабее выделенным, а не сильнее */
    font-weight: 700;
    border: 0;
    background: none;
    cursor: default;
}

/* Родительская тема прячет меню подвала до 992px, и на телефоне становятся
   недоступны карта сайта, политика обработки персональных данных и НОК.
   Показываем — ниже этой ширины ссылки и так встают в столбик. */
@media (max-width: 991px) {
    .site-footer-container .footer-navigation {
        display: block;
    }

    .site-footer-container #footer_menu {
        padding: 6px 20px;
        gap: 0;
    }

    .site-footer-container #footer_menu > li + li {
        border-top: 1px solid var(--reboot-child-border);
    }
}

/* Блоки со списками преподавателей и выпускников: у остальных «поверхностей»
   темы внутренний отступ 28px, а этим он не достался — карточки, заголовок
   и фильтр отделений упирались в края блока. */
.reboot-child-teachers,
.reboot-child-teacher-section,
.reboot-child-teacher-group {
    padding: 28px;
}

@media (max-width: 767px) {
    .reboot-child-teachers,
    .reboot-child-teacher-section,
    .reboot-child-teacher-group {
        padding: 20px;
    }
}

/* Таблицы в тексте страниц и новостей: в теме их оформления не было, а
   в перенесённом контенте они есть — расписания приёма, перечни наград.
   Держим тот же вид, что у таблиц раздела «Сведения об ОО». */
.reboot-child-page-content table,
.reboot-child-single-body table {
    border-collapse: collapse;
    margin: 16px 0;
}

.reboot-child-page-content th,
.reboot-child-page-content td,
.reboot-child-single-body th,
.reboot-child-single-body td {
    padding: 10px 12px;
    border: 1px solid var(--reboot-child-border);
    text-align: left;
    vertical-align: top;
}

.reboot-child-page-content th,
.reboot-child-single-body th {
    font-weight: 600;
    background: rgba(31, 42, 55, 0.03);
}

/* Строки, объединённые rowspan, подсвечиваются целиком: класс на всю группу
   вешает table-rowspan-hover.js. Одним CSS не обойтись — селектора для такой
   группы нет. `tr:hover` оставлен, чтобы без JS подсвечивалась хотя бы
   строка под курсором. */
.reboot-child-page-content tbody tr:hover,
.reboot-child-single-body tbody tr:hover,
.reboot-child-page-content tbody tr.is-row-hover,
.reboot-child-single-body tbody tr.is-row-hover {
    background: rgba(184, 115, 51, 0.04);
}

/* Баннер согласия на cookie — замечание 21.
   Разметку выводит inc/cookie-consent.php, показывает cookie-consent.js. */
.reboot-child-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    background: var(--reboot-child-surface);
    border: 1px solid var(--reboot-child-border);
    border-radius: var(--reboot-child-radius);
    box-shadow: var(--reboot-child-shadow);
    /* Стартовое состояние появления. Класс is-visible снимает сдвиг —
       см. requestAnimationFrame в скрипте. */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.reboot-child-cookie.is-visible {
    opacity: 1;
    transform: none;
}

.reboot-child-cookie__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--reboot-child-container);
    margin: 0 auto;
    padding: 16px 20px;
}

.reboot-child-cookie__text {
    color: var(--reboot-child-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.reboot-child-cookie__text p {
    margin: 0;
}

.reboot-child-cookie__text p + p {
    margin-top: 6px;
}

.reboot-child-cookie__text a {
    color: var(--reboot-child-accent);
    text-decoration: underline;
}

.reboot-child-cookie__text a:hover,
.reboot-child-cookie__text a:focus-visible {
    color: var(--reboot-child-accent-strong);
}

.reboot-child-cookie__accept {
    flex: none;
}

@media (max-width: 767px) {
    .reboot-child-cookie__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
}

/* Экранным дикторам баннер объявляется как обычный блок, но на печати
   он не нужен — это интерфейс, а не содержимое страницы. */
@media print {
    .reboot-child-cookie {
        display: none;
    }
}

/* Отметка «Документ подписан ЭЦП» — замечание 17.
   Реквизиты показываются подсказкой при наведении и при фокусе с клавиатуры;
   на старом сайте это был самодельный атрибут tooltip, недоступный ни
   с клавиатуры, ни скринридеру. */
.reboot-child-signature {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--reboot-child-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    cursor: help;
}

.reboot-child-signature::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 50%;
    background: var(--reboot-child-accent);
    /* Галочка внутри кружка — рисуем маской, чтобы не тащить картинку. */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.reboot-child-signature__label {
    border-bottom: 1px dotted currentColor;
}

.reboot-child-signature__details {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: grid;
    gap: 3px;
    width: max-content;
    max-width: min(340px, 80vw);
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--reboot-child-text);
    color: #fff;
    font-size: 0.76rem;
    line-height: 1.45;
    box-shadow: var(--reboot-child-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--reboot-child-transition),
                visibility var(--reboot-child-transition);
}

.reboot-child-signature:hover .reboot-child-signature__details,
.reboot-child-signature:focus-visible .reboot-child-signature__details {
    opacity: 1;
    visibility: visible;
}

.reboot-child-signature__key {
    color: rgba(255, 255, 255, 0.66);
}

/* Номер сертификата длинный и без пробелов — переносим, иначе подсказка
   вылезает за экран. */
.reboot-child-signature__row {
    overflow-wrap: anywhere;
}

/* Форма обратной связи на «Контактах» — замечание 11. */
.reboot-child-form-card {
    padding: 28px;
}

.reboot-child-form-card__lead {
    margin: 0 0 20px;
    max-width: 60ch;
}

.reboot-child-form {
    display: grid;
    gap: 16px;
    max-width: 640px;
}

.reboot-child-form__row {
    display: grid;
    gap: 6px;
    margin: 0;
}

.reboot-child-form__label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--reboot-child-muted);
}

.reboot-child-form__required {
    color: var(--reboot-child-accent);
}

.reboot-child-form__control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 12px;
    background: var(--reboot-child-surface);
    color: var(--reboot-child-text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color var(--reboot-child-transition);
}

.reboot-child-form__control:focus {
    outline: none;
    border-color: var(--reboot-child-accent);
}

.reboot-child-form textarea.reboot-child-form__control {
    resize: vertical;
    min-height: 120px;
}

/* Поле-ловушка для роботов. Убираем из потока, но не через display: none
   и не visibility: hidden — такие поля спам-боты пропускают. */
.reboot-child-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.reboot-child-form__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--reboot-child-muted);
}

.reboot-child-form__consent a {
    color: var(--reboot-child-accent);
    text-decoration: underline;
}

.reboot-child-form__consent a:hover,
.reboot-child-form__consent a:focus-visible {
    color: var(--reboot-child-accent-strong);
}

.reboot-child-form__actions {
    margin: 0;
}

.reboot-child-form__actions button[disabled] {
    opacity: 0.6;
    cursor: default;
}

/* Блок ответа присутствует всегда, чтобы aria-live озвучил вставленный текст.
   Пустым он не должен занимать место. */
.reboot-child-form__message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.reboot-child-form__message:empty {
    display: none;
}

.reboot-child-form__message.is-success {
    color: var(--reboot-child-accent-strong);
}

.reboot-child-form__message.is-error {
    color: #b3261e;
}

/* Поиск по сайту — замечание 18. */
.reboot-child-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reboot-child-search-form__label {
    margin: 0;
}

.reboot-child-search-form__field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 16px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 999px;
    background: var(--reboot-child-surface);
    color: var(--reboot-child-text);
    font: inherit;
    font-size: 0.95rem;
}

.reboot-child-search-form__field:focus {
    outline: none;
    border-color: var(--reboot-child-accent);
}

.reboot-child-search-form__submit {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--reboot-child-accent);
    cursor: pointer;
    /* Лупа рисуется маской, чтобы не тянуть отдельную картинку. */
    -webkit-mask: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M16 16l4.5 4.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: background-color var(--reboot-child-transition);
}

.reboot-child-search-form__submit:hover,
.reboot-child-search-form__submit:focus-visible {
    background-color: var(--reboot-child-accent-strong);
}

.reboot-child-search-hero__form {
    margin-top: 20px;
    max-width: 520px;
}

.reboot-child-search-results {
    display: grid;
    gap: 16px;
}

.reboot-child-search-result {
    padding: 20px 24px;
}

.reboot-child-search-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--reboot-child-muted);
}

.reboot-child-search-result__type {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(184, 115, 51, 0.12);
    color: var(--reboot-child-accent-strong);
    font-weight: 600;
}

.reboot-child-search-result__title {
    margin: 0 0 8px;
    font-size: 1.16rem;
    line-height: 1.35;
}

.reboot-child-search-result__title a {
    color: var(--reboot-child-text);
    text-decoration: none;
}

.reboot-child-search-result__title a:hover,
.reboot-child-search-result__title a:focus-visible {
    color: var(--reboot-child-accent-strong);
}

.reboot-child-search-result__excerpt {
    margin: 0 0 8px;
    color: var(--reboot-child-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Совпадение подсвечивает Relevanssi, оборачивая его в <strong>. */
.reboot-child-search-result__excerpt strong,
.reboot-child-search-result__title strong {
    color: var(--reboot-child-accent-strong);
    background: rgba(184, 115, 51, 0.12);
    border-radius: 3px;
    padding: 0 2px;
}

.reboot-child-search-result__url {
    margin: 0;
    font-size: 0.78rem;
    color: var(--reboot-child-muted);
    overflow-wrap: anywhere;
}

/* Список собственных подстраниц в тексте раздела (задача B3, page.php). */
.reboot-child-subpages {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--reboot-child-border);
}

.reboot-child-subpages__title {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.reboot-child-subpages__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.reboot-child-subpages__list a {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--reboot-child-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--reboot-child-text);
    transition: border-color var(--reboot-child-transition),
                background var(--reboot-child-transition);
}

.reboot-child-subpages__list a:hover,
.reboot-child-subpages__list a:focus-visible {
    border-color: var(--reboot-child-accent);
    background: rgba(184, 115, 51, 0.04);
}

.reboot-child-subpages__name {
    display: block;
    font-weight: 600;
}

.reboot-child-subpages__lead {
    display: block;
    margin-top: 3px;
    font-size: 0.85rem;
    color: var(--reboot-child-muted);
}
