/* ============================================================
   OMSU Theme — Main Stylesheet
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --navy: #0D2137;
    --navy-mid: #163A5F;
    --blue: #2574A9;
    --blue-light: #3498DB;
    --gold: #B8860B;
    --gold-light: #D4A84B;
    --cream: #F7F6F3;
    --white: #FFFFFF;
    /* Фоны: без ослепляющего белого, приятные для чтения */
    --surface: #F2F3F5;
    --surface-raised: #FAFAFA;
    --gray-50: #EEF0F3;
    --gray-100: #E1E4E8;
    --gray-200: #D0D5DC;
    --gray-400: #6B7280;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --red: #B91C1C;
    --green: #15803D;

    /* Типографика - переопределяется через Customizer */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --h4-size: 1.25rem;
    --h5-size: 1.125rem;
    --h6-size: 1rem;
    --body-size: 1rem;
    --line-height: 1.6;

    /* Единая шкала размеров и начертаний */
    --text-xs: calc(var(--body-size) * 0.75);
    --text-sm: calc(var(--body-size) * 0.8125);
    --text-base: calc(var(--body-size) * 0.875);
    --text-md: calc(var(--body-size) * 0.9375);
    --text-lg: calc(var(--body-size) * 1);
    --text-xl: calc(var(--body-size) * 1.125);
    --text-2xl: calc(var(--body-size) * 1.25);
    --text-3xl: calc(var(--body-size) * 1.5);
    --text-4xl: calc(var(--body-size) * 1.875);
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --shadow-soft: 0 1px 3px rgba(13, 33, 55, 0.06);
    --shadow-card: 0 2px 8px rgba(13, 33, 55, 0.06);
    --shadow-hover: 0 4px 16px rgba(13, 33, 55, 0.08);
    --radius: 8px;
    --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: var(--weight-normal);
    color: var(--gray-800);
    background: var(--surface);
    padding-bottom: var(--omsu-cookie-offset, 0px);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    color: var(--navy);
    line-height: 1.3;
}

h1, .h1 { font-size: var(--h1-size); }
h2, .h2 { font-size: var(--h2-size); }
h3, .h3 { font-size: var(--h3-size); }
h4, .h4 { font-size: var(--h4-size); }
h5, .h5 { font-size: var(--h5-size); }
h6, .h6 { font-size: var(--h6-size); }

ul {
    list-style: none;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease both;
}

.fade-up-d1 {
    animation-delay: 0.1s;
}

.fade-up-d2 {
    animation-delay: 0.2s;
}

.fade-up-d3 {
    animation-delay: 0.3s;
}

.fade-up-d4 {
    animation-delay: 0.4s;
}

/* ===== TOP BAR ===== (оригинал OMSU из папки 1) */
.top-bar {
    background: var(--navy);
    color: rgba(255, 255, 255, .92);
    font-size: var(--text-md);
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    padding: 0;
}

.top-bar a {
    color: rgba(255, 255, 255, .95);
}

.top-bar a:hover {
    color: var(--gold-light);
    text-decoration: none;
}

.top-bar__left {
    display: flex;
    gap: 8px 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.top-bar__social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 20px;
}

.top-bar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    transition: all .25s ease;
}

.top-bar__social-link:hover {
    transform: translateY(-2px) scale(1.1);
    text-decoration: none;
}

.top-bar__social-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-bar__right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 16px;
    position: relative;
}

.top-bar__left span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: .85;
    flex-shrink: 0;
}

.top-bar .btn-accessibility {
    background: #2574A9;
    border: 2px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: 9px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(37, 116, 169, .35);
    white-space: nowrap;
}

.top-bar .btn-accessibility:hover {
    background: #1a5a88;
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 116, 169, .5);
    transform: translateY(-1px);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
    -webkit-font-smoothing: antialiased;
}

#kv-accessibility-button {
    display: none !important;
}

.btn-accessibility {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 5px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-accessibility:hover {
    background: var(--surface);
    border-color: var(--blue);
    color: var(--blue);
}

.btn-accessibility svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: .8;
}

/* ===== SITE HEADER ===== (оригинал OMSU из папки 1) */
.site-header {
    background: var(--surface-raised);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.site-header .header-search {
    flex-shrink: 0;
    width: 320px;
}

.branding__logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.branding__emblem {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(13, 33, 55, .15);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.branding__emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branding__emblem::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1.5px solid rgba(234, 88, 12, .35);
}

.branding__emblem--logo-img::after {
    display: none;
}

.branding__text {
    min-width: 0;
    text-align: center;
}

.branding__text h1 {
    font-size: var(--h3-size);
    font-weight: var(--weight-bold);
    margin: 0;
    line-height: 1.25;
    color: var(--navy);
    word-wrap: break-word;
}

.branding__text p {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin: 4px 0 0;
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.header-search {
    width: 320px;
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: 28px;
    border: 2px solid var(--gray-100);
    padding: 0;
    overflow: hidden;
    transition: all .25s ease;
}

.header-search form:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 116, 169, .12);
}

.header-search input {
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: var(--gray-800);
    outline: none;
    width: 100%;
    padding: 10px 4px 10px 20px;
}

.header-search input::placeholder {
    color: var(--gray-400);
}

.header-search button {
    background: var(--blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 0 26px 26px 0;
    transition: background .2s ease;
}

.header-search button:hover {
    background: var(--navy);
}

.header-search button svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* ===== MAIN NAV ===== (оригинал OMSU из папки 1) */
.main-nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav__wrap {
    max-height: 48px;
    overflow: hidden;
    transition: max-height 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
                overflow 0s 1.2s;
}

.main-nav.nav-expanded .main-nav__wrap {
    max-height: 80vh;
    overflow: visible;
    transition: max-height 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
                overflow 0s 0s;
}

.main-nav.has-overflow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to bottom, transparent, rgba(201, 149, 43, .35));
    pointer-events: none;
    transition: opacity .5s ease-out;
    z-index: 2;
}

.main-nav.nav-expanded::after {
    opacity: 0;
}

.main-nav .container {
    display: flex;
    align-items: stretch;
    position: relative;
}

.main-nav ul[role="menubar"] {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
}

.main-nav ul[role="menubar"] > li {
    position: relative;
}

.main-nav ul[role="menubar"] > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, .9);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    position: relative;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.main-nav ul[role="menubar"] > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 3px 3px 0 0;
    transition: all .25s ease;
}

.main-nav ul[role="menubar"] > li:hover > a,
.main-nav ul[role="menubar"] > li > a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

.main-nav ul[role="menubar"] > li:hover > a::after,
.main-nav ul[role="menubar"] > li > a.active::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    width: 70%;
    left: 15%;
}

.mega-arrow {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: .5;
    transition: transform .25s ease;
    flex-shrink: 0;
}

.main-nav ul[role="menubar"] > li:hover .mega-arrow {
    transform: rotate(180deg);
    opacity: .9;
}

.main-nav svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: .65;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 12px 16px;
    margin-left: auto;
}

.nav-toggle__text {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1;
    white-space: nowrap;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.submenu-toggle {
    display: none;
}

/* ===== INFO STRIP ===== (оригинал OMSU из папки 1) */
.info-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 0;
}

.info-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.info-strip__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-strip__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-strip__day {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
    min-width: 30px;
    text-align: center;
}

.info-strip__month {
    display: block;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    line-height: 1.2;
}

.info-strip__weekday {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-transform: capitalize;
    line-height: 1.2;
}

.info-strip__divider {
    width: 1px;
    height: 28px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.info-strip__time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    font-variant-numeric: tabular-nums;
}

.info-strip__time svg {
    width: 18px;
    height: 18px;
    fill: var(--blue);
    opacity: .8;
}

.info-strip__weather {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gray-600);
    font-size: var(--text-md);
}

.info-strip__weather-icon {
    font-size: var(--text-2xl);
    line-height: 1;
}

.info-strip__weather-city {
    color: var(--gray-400);
    font-size: var(--text-base);
}

.info-strip__alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 57, 43, .06);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 6px 14px;
}

.info-strip__badge {
    background: var(--red);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.info-strip__alert p {
    color: var(--gray-800);
    font-size: var(--text-sm);
    margin: 0;
}

.info-strip__alert a {
    color: var(--blue);
    font-weight: var(--weight-semibold);
}

/* ===== ALERT BANNER ===== (оригинал OMSU из папки 1) */
.alert-banner {
    background: rgba(192, 57, 43, .05);
    border-top: 1px solid rgba(192, 57, 43, .1);
    border-bottom: none;
    padding: 10px 0;
}

.alert-banner__inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.alert-banner__badge {
    background: var(--red);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 5px 14px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.alert-banner__text {
    color: var(--gray-800);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    margin: 0;
    line-height: 1.4;
}

.alert-banner__link {
    color: var(--red);
    font-weight: var(--weight-bold);
    margin-left: 6px;
    white-space: nowrap;
    transition: color .2s ease;
}

.alert-banner__link:hover {
    color: #7a1a10;
    text-decoration: underline;
}

/* ===== WELCOME BLOCK ===== */
.welcome-block {
    background: linear-gradient(135deg, rgba(13, 33, 55, .03), rgba(37, 116, 169, .06));
    border: 1px solid var(--gray-100);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-block__photo {
    width: 230px;
    height: 290px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 33, 55, .08), rgba(37, 116, 169, .12));
    box-shadow: 0 8px 24px rgba(13, 33, 55, .08);
}

.welcome-block__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-block__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: var(--text-2xl);
}

.welcome-block__text h3 {
    font-size: var(--text-lg);
    margin-bottom: 2px;
    font-weight: var(--weight-bold);
    text-align: center;
}

.welcome-block__lead {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
}

.welcome-block__text p {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
    text-align: justify;
}

.welcome-block__body p + p {
    margin-top: .7em;
}

.welcome-block__signature {
    margin-top: 12px;
    margin-left: auto;
    max-width: 420px;
    padding-top: 0;
    border-top: 1px solid rgba(13, 33, 55, .12);
    text-align: right;
    white-space: pre-line;
    color: var(--navy);
    font-weight: var(--weight-medium);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .welcome-block {
        align-items: flex-start;
    }

    .welcome-block__photo {
        width: 190px;
        height: 240px;
    }
}

@media (max-width: 640px) {
    .welcome-block {
        flex-direction: column;
    }

    .welcome-block__photo {
        width: 100%;
        max-width: 320px;
        height: 260px;
    }
}

/* ===== QUICK LINKS ===== */
.quick-links {
    padding: 32px 0;
    position: relative;
    z-index: 10;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ql-card {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-100);
    display: block;
    text-decoration: none;
}

.ql-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
    text-decoration: none;
}

.ql-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ql-card__icon svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

.ql-card__icon--blue {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.ql-card__icon--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.ql-card__icon--green {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.ql-card__icon--red {
    background: linear-gradient(135deg, var(--red), #E74C3C);
}

.ql-card__icon--navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.ql-card h4 {
    font-size: var(--text-md);
    margin-bottom: 4px;
}

.ql-card p {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin: 0;
}

/* ===== SECTION BASE ===== */
.section {
    padding: 8px 0;
}

.section--alt {
    background: var(--surface-raised);
}

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.section__head h2 {
    font-size: var(--h2-size);
    position: relative;
    padding-bottom: 10px;
}

.section__head h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.section__more {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.section__more:hover {
    gap: 8px;
}

.archive-description {
    margin: 0 0 20px;
    color: var(--gray-600);
    font-size: var(--text-md);
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 8px;
}

.pagination .page-numbers {
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(13, 33, 55, .1);
    background: var(--surface-raised);
    color: var(--navy);
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    box-shadow: 0 8px 20px rgba(13, 33, 55, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.pagination a.page-numbers:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 116, 169, .28);
    background: #fff;
    color: var(--blue);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(13, 33, 55, .12);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--blue), #3a86bd);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 116, 169, .24);
}

.pagination .page-numbers.dots {
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0 2px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* ===== CONTENT WITH SIDEBAR ===== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
    width: 100%;
}

.main-content {
    min-width: 0;
    /* ключевой фикс для grid — предотвращает схлопывание */
    width: 100%;
}

aside.sidebar {
    min-width: 0;
    width: 100%;
    position: static;
    align-self: start;
    overflow-y: visible;
}

/* ===== NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-card {
    background: var(--surface-raised);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section--alt .news-card {
    background: var(--surface);
    border-color: var(--gray-100);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-card--featured {
    grid-column: 1;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
}

.news-card__img {
    height: 200px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.news-card--featured .news-card__img {
    flex: 1;
    min-height: 240px;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-card__img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card__img-placeholder svg {
    width: 64px;
    height: 64px;
    fill: rgba(255, 255, 255, .15);
}

.news-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.news-card__meta {
    display: flex;
    gap: 12px;
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-bottom: 8px;
    font-weight: var(--weight-medium);
    align-items: center;
}

.news-card__tag {
    background: var(--blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: var(--weight-bold);
}

.news-card__tag--important {
    background: var(--red);
}

.news-card__tag--announce {
    background: var(--green);
}

.news-card__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-400);
    margin-left: auto;
}

.news-card__views-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.news-card h3 {
    font-size: var(--text-lg);
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-card--featured h3 {
    font-size: var(--text-xl);
}

.news-card p {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

.news-card__more {
    display: inline-block;
    margin-top: auto;
    padding: 10px 24px;
    background: var(--blue);
    color: #fff !important;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background .25s ease, transform .2s ease;
    line-height: 1.3;
    align-self: flex-start;
}

.news-card__more:hover {
    background: var(--navy);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.news-card a {
    display: block;
    color: inherit;
}

.news-card a:hover {
    text-decoration: none;
}

.news-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.news-load-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    min-height: 54px;
    padding: 14px 30px;
    border: 1px solid rgba(13, 33, 55, .08);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    letter-spacing: .02em;
    box-shadow: 0 12px 28px rgba(13, 33, 55, .16);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
}

.news-load-more::after {
    content: '→';
    font-size: var(--text-lg);
    line-height: 1;
    transition: transform .2s ease;
}

.news-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(13, 33, 55, .22);
    filter: saturate(1.05);
}

.news-load-more:hover::after {
    transform: translateX(3px);
}

.news-load-more:focus-visible {
    outline: 3px solid rgba(37, 116, 169, .22);
    outline-offset: 3px;
}

.news-load-more:disabled,
.news-load-more.is-loading {
    cursor: wait;
    opacity: .92;
    transform: none;
}

.news-load-more.is-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Compact list */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition), padding-left var(--transition);
    color: var(--gray-800);
}

.news-list__item:first-child {
    border-top: 1px solid var(--gray-100);
}

.news-list__item:hover {
    background: rgba(37, 116, 169, .04);
    padding-left: 18px;
    text-decoration: none;
    color: var(--navy);
}

.news-list__date {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--blue);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-list__item:hover .news-list__date {
    background: var(--blue);
    color: #fff;
}

.news-list__title {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1.4;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: static;
    align-self: start;
    overflow-y: visible;
}

.sidebar-block {
    background: var(--surface-raised);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    padding: 20px;
    margin-bottom: 20px;
}

/* ===== PAGE SECTION NAV ===== */
.page-section-nav {
    padding: 0;
    overflow: hidden;
}

.page-section-nav__header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, rgba(37, 116, 169, .06), rgba(13, 33, 55, .03));
}

.page-section-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

.page-section-nav__back svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.page-section-nav__back:hover {
    color: var(--blue);
}

.page-section-nav__title {
    display: block;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--navy);
}

.page-section-nav__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.page-section-nav__item {
    margin: 0;
    padding: 0;
}

.page-section-nav__link {
    display: block;
    padding: 10px 20px 10px 20px;
    font-size: var(--text-base);
    color: var(--gray-600);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    line-height: 1.4;
}

.page-section-nav__link:hover {
    color: var(--blue);
    background: rgba(37, 116, 169, .04);
    border-left-color: rgba(37, 116, 169, .3);
}

.page-section-nav__link--current {
    color: var(--navy);
    font-weight: var(--weight-semibold);
    background: rgba(37, 116, 169, .08);
    border-left-color: var(--blue);
}

@media (max-width: 768px) {
    .page-section-nav__link {
        padding: 9px 16px;
        font-size: var(--text-sm);
    }

    .page-section-nav__header {
        padding: 12px 16px;
    }
}

.sidebar-block.widget_block,
.sidebar-block.widget_text,
.sidebar-block.widget_custom_html {
    padding: 12px;
}

.sidebar-block.widget_block .sidebar-block__title,
.sidebar-block.widget_text .sidebar-block__title,
.sidebar-block.widget_custom_html .sidebar-block__title {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.sidebar-block.widget_block .wp-block-group,
.sidebar-block.widget_block .wp-block-cover,
.sidebar-block.widget_block .wp-block-media-text,
.sidebar-block.widget_block .wp-block-image,
.sidebar-block.widget_text .textwidget,
.sidebar-block.widget_custom_html .textwidget,
.sidebar-block.widget_custom_html .custom-html-widget {
    margin: 0;
}

.sidebar-block.widget_block .wp-block-group__inner-container > *:first-child,
.sidebar-block.widget_block .wp-block-cover > *:first-child,
.sidebar-block.widget_block .wp-block-media-text > *:first-child,
.sidebar-block.widget_block .wp-block-image > *:first-child,
.sidebar-block.widget_text .textwidget > *:first-child,
.sidebar-block.widget_custom_html .textwidget > *:first-child,
.sidebar-block.widget_custom_html .custom-html-widget > *:first-child {
    margin-top: 0;
}

.sidebar-block.widget_block .wp-block-group__inner-container > *:last-child,
.sidebar-block.widget_block .wp-block-cover > *:last-child,
.sidebar-block.widget_block .wp-block-media-text > *:last-child,
.sidebar-block.widget_block .wp-block-image > *:last-child,
.sidebar-block.widget_text .textwidget > *:last-child,
.sidebar-block.widget_custom_html .textwidget > *:last-child,
.sidebar-block.widget_custom_html .custom-html-widget > *:last-child {
    margin-bottom: 0;
}

.sidebar-block.widget_omsu_custom_blocks_section,
.sidebar-block[class*="omsu_custom_blocks_section"] {
    padding: 4px;
}

.sidebar-block.widget_omsu_custom_blocks_section > section.section,
.sidebar-block[class*="omsu_custom_blocks_section"] > section.section {
    padding: 0 !important;
}

.sidebar-block.widget_omsu_custom_blocks_section > section.section > .container,
.sidebar-block[class*="omsu_custom_blocks_section"] > section.section > .container {
    padding-left: 0;
    padding-right: 0;
}

.sidebar-block.widget_omsu_custom_blocks_section .custom-blocks,
.sidebar-block[class*="omsu_custom_blocks_section"] .custom-blocks {
    gap: 4px;
}

.sidebar-block.widget_omsu_custom_blocks_section .custom-blocks__item--has-text,
.sidebar-block[class*="omsu_custom_blocks_section"] .custom-blocks__item--has-text {
    padding: 4px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.sidebar-block__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

/* Official links */
.official-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.official-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    cursor: pointer;
}

.official-link:hover {
    background: var(--surface-raised);
    border-color: var(--blue-light);
    box-shadow: 0 2px 8px rgba(37, 116, 169, .1);
    text-decoration: none;
    transform: translateX(3px);
}

.official-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-2xl);
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff;
}

.official-link__icon--gov {
    background: linear-gradient(135deg, #B71C1C, #D32F2F);
}

.official-link__icon--region {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.official-link__icon--gosuslugi {
    background: linear-gradient(135deg, #0D47A1, #1976D2);
}

.official-link__text {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    line-height: 1.3;
}

.official-link__text small {
    display: block;
    font-weight: 400;
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: 1px;
}

/* Info banners */
.info-banners {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-banner {
    border-radius: var(--radius);
    padding: 18px 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}

.info-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.info-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.info-banner--problem {
    background: linear-gradient(135deg, #E67E22, #F39C12);
}

.info-banner--vote {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.info-banner--safety {
    background: linear-gradient(135deg, var(--red), #E74C3C);
}

.info-banner__icon {
    font-size: var(--text-3xl);
    margin-bottom: 8px;
}

.info-banner h4 {
    font-family: var(--font-body);
    color: #fff;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    margin-bottom: 4px;
    line-height: 1.3;
}

.info-banner p {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, .8);
    margin: 0;
    line-height: 1.4;
}

.info-banner__btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: #fff;
    transition: background var(--transition);
}

.info-banner:hover .info-banner__btn {
    background: rgba(255, 255, 255, .3);
}

/* Banner slot */
.banner-slot {
    border-radius: var(--radius);
    border: 2px dashed var(--gray-200);
    background: var(--surface);
    padding: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: var(--text-xs);
    line-height: 1.4;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.banner-slot a {
    display: block;
}

.banner-slot img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 2px);
}

.banner-slot svg {
    width: 28px;
    height: 28px;
    fill: var(--gray-200);
}

/* ===== DOCUMENTS ===== */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), border-color var(--transition);
    cursor: pointer;
}

.doc-item:hover {
    transform: translateX(4px);
    border-color: var(--gold);
    text-decoration: none;
}

.doc-item__icon {
    width: 42px;
    height: 42px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-item__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--gold);
}

.doc-item__info {
    flex: 1;
    min-width: 0;
}

.doc-item__info h4 {
    font-size: var(--text-md);
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--navy);
}

.doc-item__info span {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

.doc-item__action {
    font-size: var(--text-sm);
    color: var(--blue);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-item__action svg {
    width: 14px;
    height: 14px;
    fill: var(--blue);
}

/* ===== LEADERS ===== */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.leader-card {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition);
}

.leader-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.leader-card__photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.leader-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card__photo svg {
    width: 36px;
    height: 36px;
    fill: var(--gray-400);
}

.leader-card h4 {
    font-size: var(--text-lg);
    margin-bottom: 2px;
}

.leader-card__role {
    font-size: var(--text-sm);
    color: var(--blue);
    font-weight: var(--weight-semibold);
    margin-bottom: 8px;
}

.leader-card__contacts {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.leader-card__contacts a {
    color: var(--gray-600);
}

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-block {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}

.contact-block__intro {
    font-size: var(--text-md);
    color: var(--gray-600);
    margin-bottom: 16px;
}

.contact-block h3 {
    font-size: var(--text-xl);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row__icon {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-row__icon svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.contact-row__text {
    font-size: var(--text-md);
    line-height: 1.5;
}

.contact-row__text strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-400);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}

.map-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: var(--text-base);
    margin-top: 16px;
    border: 1px dashed var(--gray-200);
}

.map-embed {
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
}

.reception-schedule {
    margin-top: 12px;
    border-top: 2px solid var(--gray-100);
    padding-top: 14px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: var(--text-base);
    border-bottom: 1px dashed var(--gray-200);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row span:first-child {
    font-weight: var(--weight-semibold);
    color: var(--navy);
}

.schedule-row span:last-child {
    color: var(--gray-600);
}

.reception-cta {
    margin-top: 24px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
}

.reception-cta p {
    font-size: var(--text-base);
    margin: 0;
    color: var(--gray-600);
}

.reception-cta strong {
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.reception-cta a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border-radius: 100px;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.reception-cta a:hover {
    background: var(--navy);
    color: #fff;
}

/* ===== BANNER STRIP ===== */
.banner-strip {
    padding: 20px 0;
    background: var(--surface-raised);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.banner-strip__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    margin-bottom: 16px;
    text-align: center;
}

.banner-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.banner-strip__item {
    border-radius: var(--radius);
    border: 2px dashed var(--gray-200);
    background: var(--surface);
    padding: 20px 16px;
    text-align: center;
    color: var(--gray-400);
    font-size: var(--text-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 100px;
    transition: border-color var(--transition), background var(--transition);
}

.banner-strip__item:hover {
    border-color: var(--blue-light);
    background: var(--surface-raised);
}

.banner-strip__item svg {
    width: 32px;
    height: 32px;
    fill: var(--gray-200);
}

.banner-strip__item span {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}

.banner-strip__item img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 2px);
}

.banner-strip__item a {
    display: block;
    width: 100%;
}

/* ===== INNER PAGE / CONTENT ===== */
.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 24px 0;
}

.page-hero h1 {
    color: #fff;
    font-size: var(--h1-size);
}

.page-hero p {
    color: rgba(255, 255, 255, .7);
    margin-top: 8px;
}

.content-area {
    padding: 24px 0 40px;
}

.content-area--full .content-with-sidebar {
    grid-template-columns: 1fr;
}

.entry-content {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}

/* Контент всегда на всю ширину колонки, независимо от настроек в редакторе */
.entry-content > *,
.entry-content .alignwide,
.entry-content .aligncenter,
.entry-content .wp-block-group,
.entry-content .wp-block-group__inner-container,
.entry-content [class*="wp-block-"],
.entry-content [style*="max-width"] {
    max-width: none !important;
    width: 100% !important;
}
.single-post__content > *,
.single-post__content [class*="wp-block-"],
.single-post__content [style*="max-width"] {
    max-width: none !important;
    width: 100% !important;
}

.entry-content .entry-title,
.entry-content h1 {
    text-align: justify;
}

.entry-content h2 {
    font-size: var(--text-3xl);
    margin: 1.5em 0 .6em;
    text-align: justify;
}

.entry-content h3 {
    font-size: var(--text-xl);
    margin: 1.2em 0 .5em;
    text-align: justify;
}

.entry-content p {
    color: var(--gray-800);
    margin-bottom: 0.5em;
    text-align: justify;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.entry-content li {
    margin-bottom: .4em;
}

.entry-content a {
    color: var(--blue);
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1em 0;
}

/* Разрешаем обтекание картинок в контенте (left/right) */
.entry-content .alignleft,
.entry-content .wp-block-image.alignleft,
.entry-content img.alignleft,
.single-post__content .alignleft,
.single-post__content .wp-block-image.alignleft,
.single-post__content img.alignleft {
    float: left;
    width: auto !important;
    max-width: min(42%, 320px) !important;
    margin: .3em 20px 12px 0;
}

.entry-content .alignright,
.entry-content .wp-block-image.alignright,
.entry-content img.alignright,
.single-post__content .alignright,
.single-post__content .wp-block-image.alignright,
.single-post__content img.alignright {
    float: right;
    width: auto !important;
    max-width: min(42%, 320px) !important;
    margin: .3em 0 12px 20px;
}

.entry-content .alignleft img,
.entry-content .alignright img,
.single-post__content .alignleft img,
.single-post__content .alignright img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 760px) {
    .entry-content .alignleft,
    .entry-content .wp-block-image.alignleft,
    .entry-content img.alignleft,
    .single-post__content .alignleft,
    .single-post__content .wp-block-image.alignleft,
    .single-post__content img.alignleft,
    .entry-content .alignright,
    .entry-content .wp-block-image.alignright,
    .entry-content img.alignright,
    .single-post__content .alignright,
    .single-post__content .wp-block-image.alignright,
    .single-post__content img.alignright {
        float: none;
        max-width: 100% !important;
        margin: 0 0 14px;
    }
}

.entry-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 12px 20px;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5em 0;
}

/* Хлебные крошки — сверху записи/страницы */
.breadcrumbs {
    padding: 12px 0;
    font-size: var(--text-base);
    background: var(--surface);
    border-bottom: 1px solid var(--gray-100);
}

.breadcrumbs .container {
    padding-left: 20px;
    padding-right: 20px;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    font-size: var(--text-base);
    color: var(--gray-500);
}

.breadcrumbs__item:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: var(--gray-300);
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1;
}

.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumbs__link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: .75;
    flex-shrink: 0;
}

.breadcrumbs__link:hover {
    color: var(--blue);
}

.breadcrumbs__current {
    color: var(--navy);
    font-weight: var(--weight-semibold);
}

.breadcrumbs a {
    color: var(--gray-600);
}

.breadcrumbs a:hover {
    color: var(--blue);
}

.breadcrumbs span {
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.pagination .current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding: 28px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-col h4 {
    color: #fff;
    font-size: var(--text-md);
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-col p {
    font-size: var(--text-base);
    line-height: 1.7;
}

.site-footer__copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .4);
    margin: 0;
}

.footer-col a {
    color: rgba(255, 255, 255, .6);
    font-size: var(--text-base);
    display: block;
    padding: 3px 0;
    transition: color var(--transition), padding-left var(--transition);
}

.footer-col a:hover {
    color: var(--gold-light);
    padding-left: 4px;
    text-decoration: none;
}

.footer-about {
    max-width: 320px;
}

.footer-about .branding {
    margin-bottom: 12px;
}

.footer-about .branding__emblem {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
    background: rgba(255, 255, 255, .08);
}

.footer-about .branding__text h1 {
    color: #fff;
    font-size: var(--text-md);
}

.footer-about .branding__text p {
    color: rgba(255, 255, 255, .4);
    font-size: var(--text-xs);
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .5);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

.footer-metrika {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: var(--text-sm);
}

.footer-legal a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.site-footer__developer {
    margin: 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .5);
}

.site-footer__developer a,
.site-footer__developer span {
    color: inherit;
}

@media (max-width: 640px) {
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .map-embed iframe {
        height: 260px;
    }
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: var(--text-md);
    outline: none;
    transition: all var(--transition);
}

.search-field:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, .12);
}

.search-submit {
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: background var(--transition);
}

.search-submit:hover {
    background: var(--navy);
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 40px 0;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    font-family: var(--font-heading);
}

.error-404 h1 {
    font-size: var(--text-4xl);
    margin-bottom: 12px;
}

.error-404 p {
    color: var(--gray-600);
    max-width: 480px;
    margin: 0 auto 24px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--blue);
    color: #fff;
    border-radius: 100px;
    font-weight: var(--weight-semibold);
    transition: background var(--transition);
}

.btn-primary:hover {
    background: var(--navy);
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-block {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card--featured {
        grid-column: auto;
        grid-row: auto;
    }

    .leaders-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .banner-strip__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        margin-left: 0;
        margin-right: auto;
    }

    .main-nav {
        position: relative;
        top: 0;
        z-index: 1200;
    }

    .main-nav .container {
        flex-wrap: wrap;
    }

    .main-nav__wrap {
        max-height: none;
        overflow: visible;
    }

    .main-nav.nav-expanded .main-nav__wrap {
        max-height: none;
        overflow: visible;
        position: relative;
        z-index: 1201;
    }

    .main-nav ul[role="menubar"] {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .28s ease, opacity .2s ease;
    }

    .main-nav ul[role="menubar"].is-open {
        max-height: none !important;
        overflow: visible;
        opacity: 1 !important;
        display: flex !important;
        background: var(--navy);
        position: relative;
        z-index: 1202;
        pointer-events: auto;
    }

    .main-nav ul[role="menubar"] > li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .main-nav ul[role="menubar"] > li > a {
        width: 100%;
        padding: 14px 48px 14px 16px;
        white-space: normal;
        line-height: 1.35;
    }

    .main-nav ul li {
        position: relative;
    }

    .main-nav ul li ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, .2);
    }

    .main-nav a {
        font-size: var(--text-sm);
    }

    .main-nav ul[role="menubar"] > li > a::after {
        display: none;
    }

    .main-nav ul[role="menubar"] > li:hover > a,
    .main-nav .current-menu-item > a,
    .main-nav .current_page_item > a {
        background: rgba(255, 255, 255, .04);
    }

    .mega-arrow {
        display: none;
    }

    .submenu-toggle {
        position: absolute;
        top: 7px;
        right: 8px;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
    }

    .submenu-toggle::before {
        content: '+';
        font-size: 22px;
        line-height: 1;
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
        background: rgba(255, 255, 255, .16);
    }

    .menu-item-has-children.mega-open > .submenu-toggle::before {
        content: '−';
    }

    /* НОВОСТИ: 1 колонка на мобильных */
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    /* Кнопка меню: улучшенная видимость */
    .nav-toggle {
        display: flex !important;
        z-index: 100;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        pointer-events: auto;
        touch-action: manipulation;
    }
}

@media (max-width: 600px) {
    .quick-links__grid {
        grid-template-columns: 1fr 1fr;
    }

    .leaders-grid {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
        order: 3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar__right {
        display: none;
    }

    .info-strip__inner {
        flex-direction: column;
        align-items: center;
    }

    .info-strip__left {
        display: none;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .banner-strip__grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: var(--h2-size);
    }
}

/* ===== SINGLE POST ===== */
.content-area {
    padding: 24px 0 40px;
}

.single-post .entry-title {
    font-size: var(--h1-size);
    line-height: 1.25;
    margin: 10px 0 22px;
    color: var(--navy);
    text-align: justify;
}

.single-post__thumbnail {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post__thumbnail img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* Типографика контента записи */
.single-post__content {
    font-size: var(--text-xl);
    line-height: 1.75;
    color: var(--gray-800);
}

.single-post__content p {
    margin-bottom: 0.6em;
    text-align: justify;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
    margin: 1.6em 0 0.6em;
    text-align: justify;
}

.single-post__content ul,
.single-post__content ol {
    margin: 0 0 1.2em 1.6em;
    list-style: disc;
}

.single-post__content ol {
    list-style: decimal;
}

.single-post__content blockquote {
    border-left: 4px solid var(--gold);
    margin: 1.5em 0;
    padding: 12px 20px;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-600);
}

.single-post__content img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

.single-post__content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Таксономии */
.single-post__taxonomy {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: var(--text-base);
    color: var(--gray-600);
}

.single-post__tax-item a {
    color: var(--blue);
    font-weight: var(--weight-semibold);
}

.single-post__tax-item a+a::before {
    content: ', ';
}

/* Похожие записи */
.related-posts {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(13, 33, 55, .08);
}

.related-posts__title {
    font-size: var(--h2-size);
    font-weight: var(--weight-bold);
    color: var(--navy);
    margin: 0 0 20px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 820px;
}

.related-posts__card {
    margin: 0;
}

.related-posts__card--horizontal {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(248, 250, 252, .98));
    border: 1px solid rgba(37, 116, 169, .12);
    box-shadow: 0 10px 24px rgba(13, 33, 55, .06);
}

.related-posts__card--horizontal .related-posts__card-img-wrap {
    display: block;
    min-width: 0;
    line-height: 0;
    text-decoration: none;
}

.related-posts__card--horizontal .news-card__img {
    width: 100%;
    min-height: 176px;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
}

.related-posts__card--horizontal .news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.related-posts__card--horizontal .related-posts__card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-posts__card--horizontal .news-card__body {
    padding: 2px 0;
}

.related-posts__card--horizontal .news-card__meta {
    margin-bottom: 6px;
}

.related-posts__card--horizontal h3 {
    font-size: clamp(1.05rem, .95rem + .25vw, 1.25rem);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-posts__card--horizontal h3 a {
    text-decoration: none;
}

.related-posts__card--horizontal p {
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-posts__card--horizontal .news-card__more {
    margin-top: 10px;
    padding: 8px 18px;
    font-size: var(--text-sm);
}

@media (max-width: 900px) {
    .related-posts__card--horizontal {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 14px;
    }

    .related-posts__card--horizontal .news-card__img {
        min-height: 160px;
    }
}

@media (max-width: 680px) {
    .related-posts__grid {
        max-width: none;
    }

    .related-posts__card--horizontal {
        grid-template-columns: 1fr;
    }

    .related-posts__card--horizontal .news-card__img {
        min-height: 200px;
    }

    .related-posts__card--horizontal .news-card__body {
        padding: 0;
    }
}

/* Футер записи */
.single-post__footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.single-post__nav {
    margin-left: auto;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.single-post__nav-link {
    font-size: var(--text-base);
    color: var(--blue);
    font-weight: var(--weight-medium);
}

/* ===== DIRECTORY PAGE (каталог подразделов) ===== */
.directory-header {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(37, 116, 169, .14), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 247, 251, .96));
    border: 1px solid rgba(37, 116, 169, .12);
    box-shadow: 0 10px 22px rgba(13, 33, 55, .06);
}

.directory-header .entry-title {
    margin-bottom: 6px;
    font-size: clamp(1.45rem, 1.2rem + .8vw, 2rem);
    line-height: 1.2;
}

.directory-header__desc {
    color: var(--gray-600);
    font-size: var(--text-md);
    line-height: 1.4;
    margin: 0;
    max-width: 680px;
}

.directory-content > h2,
.directory-content > h3 {
    margin-top: 40px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(37, 116, 169, .14);
    font-size: clamp(1.35rem, 1.1rem + .5vw, 1.8rem);
}

.directory-content > h2:first-child,
.directory-content > h3:first-child {
    margin-top: 0;
}

.directory-content > ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.directory-content > ul > li {
    margin: 0;
}

.directory-content > ul > li > a {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background:
        linear-gradient(135deg, rgba(37, 116, 169, .08), rgba(13, 33, 55, .02)),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 248, 251, .98));
    border: 1px solid rgba(37, 116, 169, .12);
    border-radius: 18px;
    color: var(--navy);
    font-weight: var(--weight-semibold);
    font-size: var(--text-md);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
    line-height: 1.35;
    min-height: 58px;
    box-shadow: 0 8px 18px rgba(12, 35, 64, .05);
    overflow: hidden;
}

.directory-content > ul > li > a::before {
    display: none;
}

.directory-content > ul > li > a::after {
    content: '→';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 33, 55, .05);
    color: var(--navy);
    font-size: 16px;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.directory-content > ul > li > a:hover {
    background:
        linear-gradient(135deg, rgba(37, 116, 169, .12), rgba(13, 33, 55, .05)),
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(245, 248, 252, 1));
    color: var(--navy);
    border-color: rgba(37, 116, 169, .22);
    box-shadow: 0 18px 38px rgba(37, 116, 169, .16);
    transform: translateY(-2px);
    text-decoration: none;
}

.directory-content > ul > li > a:hover::before {
    display: none;
}

.directory-content > ul > li > a:hover::after {
    background: var(--navy);
    color: #fff;
    transform: translateX(3px);
}

.directory-content > ul > li > a:focus-visible {
    outline: 3px solid rgba(37, 116, 169, .18);
    outline-offset: 3px;
}

.entry-content--directory p {
    color: var(--gray-600);
    font-size: var(--text-md);
}

@media (max-width: 600px) {
    .directory-header {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .directory-content > ul {
        gap: 12px;
    }

    .directory-content > ul > li > a {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 14px;
        min-height: 54px;
        gap: 10px;
        font-size: var(--text-sm);
    }

    .directory-content > ul > li > a::after {
        display: none;
    }
}

/* ===== SITEMAP PAGE ===== */
.content-area--sitemap {
    padding-bottom: 56px;
}

.content-area--sitemap .container {
    max-width: 1440px;
}

.entry-content--sitemap {
    width: 100%;
}

.sitemap-header {
    margin-bottom: 24px;
}

.sitemap-header .entry-title {
    margin-bottom: 8px;
}

.sitemap-header__desc {
    color: var(--gray-600);
    font-size: var(--text-lg);
    line-height: 1.5;
    margin: 0;
}

.sitemap-intro {
    margin-bottom: 28px;
    color: var(--gray-600);
    font-size: var(--text-md);
    line-height: 1.7;
}

.sitemap-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sitemap-panel {
    width: 100%;
}

.sitemap-tree {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.sitemap-tree .sitemap-tree {
    margin-top: 10px;
    margin-left: 22px;
    padding-left: 18px;
    border-left: 2px solid rgba(37, 116, 169, .12);
}

.sitemap-tree__item {
    margin: 0;
    display: block;
}

.sitemap-tree__item + .sitemap-tree__item {
    margin-top: 8px;
}

.sitemap-tree__link {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 116, 169, .08), rgba(13, 33, 55, .04));
    border: 1px solid rgba(37, 116, 169, .14);
    color: var(--navy);
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    line-height: 1.35;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.sitemap-tree__link:hover {
    transform: translateY(-1px);
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 116, 169, .18);
    text-decoration: none;
}

.sitemap-tree__link--static {
    cursor: default;
}

.sitemap-tree__link--static:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(37, 116, 169, .08), rgba(13, 33, 55, .04));
    border-color: rgba(37, 116, 169, .14);
    color: var(--navy);
    box-shadow: none;
}

.sitemap-tree__link::before {
    content: '→';
    flex-shrink: 0;
    margin-right: 10px;
    color: var(--blue);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
}

.sitemap-tree__link:hover::before {
    color: #fff;
}

.sitemap-tree .sitemap-tree .sitemap-tree__link {
    background: #fff;
    border-color: rgba(37, 116, 169, .12);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
}

.sitemap-tree .sitemap-tree .sitemap-tree__link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    box-shadow: 0 8px 22px rgba(13, 33, 55, .18);
}

.sitemap-tree .sitemap-tree .sitemap-tree__link:hover::before {
    color: var(--gold-light);
}

.sitemap-empty {
    color: var(--gray-400);
    font-size: var(--text-md);
}

@media (max-width: 900px) {
    .sitemap-layout {
        gap: 16px;
    }
}

/* ============================================================
   OMSU PATCHES — критические дополнения
   ============================================================ */

/* ── Сайдбар: 350px ──────────────────────────────────────── */
.content-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 1180px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar,
    aside.sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }
}

/* ── Фикс синей полосы в карточках новостей ──────────────── */
.news-card > a {
    display: block;
    line-height: 0;
}

/* ── Сетка новостей: по умолчанию 3 колонки ─────────────── */
.news-grid {
    grid-template-columns: repeat(3, 1fr);
}

.content-with-sidebar .news-grid {
    grid-template-columns: 1fr 1fr;
}

/* ── DROPDOWN + FLYOUT ──────────────────────────────────── */
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    40%  { opacity: .6; }
    to   { opacity: 1; transform: translateY(0); }
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear 3s;
}

.main-nav li.has-mega:hover > .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .6s ease, transform .5s cubic-bezier(.25, .1, .25, 1), visibility 0s linear 0s;
}

.mega-dropdown__inner {
    padding: 8px 0;
}

.mega-dropdown__list {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-dropdown__list > li {
    position: relative;
}

.mega-dropdown__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px;
    color: rgba(255, 255, 255, .85);
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    transition: all .15s ease;
    border-left: 3px solid transparent;
}

.mega-dropdown__list > li > a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-left-color: var(--gold);
    text-decoration: none;
}

.mega-dropdown__list > li.current-menu-item > a,
.mega-dropdown__list > li.current_page_item > a {
    color: var(--gold-light);
    font-weight: var(--weight-semibold);
    border-left-color: var(--gold);
}

.mega-dropdown__list > li.menu-item-has-children > a::after {
    content: '›';
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, .4);
    margin-left: 10px;
    transition: color .15s, transform .15s;
}

.mega-dropdown__list > li.menu-item-has-children:hover > a::after {
    color: var(--gold-light);
    transform: translateX(2px);
}

/* Level 3: flyout */
.mega-dropdown__sublist {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear 3s;
    position: absolute;
    top: -8px;
    left: calc(100% + 4px);
    background: var(--navy);
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    border-radius: var(--radius);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 10000;
}

.mega-dropdown__list > li:hover > .mega-dropdown__sublist {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity .6s ease, transform .5s cubic-bezier(.25, .1, .25, 1), visibility 0s linear 0s;
}

.mega-dropdown__list > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 100%;
}

.mega-dropdown__sublist li {
    position: relative;
}

.mega-dropdown__sublist a {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, .82);
    font-size: var(--text-base);
    transition: all .15s;
    border-left: 3px solid transparent;
}

.mega-dropdown__sublist a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-left-color: var(--gold);
}

/* Level 4+ */
.mega-dropdown__sublist ul {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear 3s;
    position: absolute;
    top: -8px;
    left: calc(100% + 4px);
    background: var(--navy);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    border-radius: var(--radius);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 10001;
}

.mega-dropdown__sublist li:hover > ul {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity .6s ease, transform .5s cubic-bezier(.25, .1, .25, 1), visibility 0s linear 0s;
}

.mega-dropdown__sublist li.menu-item-has-children::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 100%;
}

/* Simple dropdown (no mega) */
.main-nav ul[role="menubar"] > li:not(.has-mega) > ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 9999;
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear 3s;
}

.main-nav ul[role="menubar"] > li:not(.has-mega):hover > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .6s ease, transform .5s cubic-bezier(.25, .1, .25, 1), visibility 0s linear 0s;
}

.main-nav ul[role="menubar"] > li:not(.has-mega) > ul a {
    display: block;
    padding: 11px 20px;
    color: rgba(255, 255, 255, .85);
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    transition: all .15s;
    border-left: 3px solid transparent;
}

.main-nav ul[role="menubar"] > li:not(.has-mega) > ul a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-left-color: var(--gold);
}

/* ── HOMEPAGE WIDGET AREA ───────────────────────────────── */
.homepage-widget + .homepage-widget {
    margin-top: 0;
}

/* Уменьшаем отступы у секций внутри виджетов */
.homepage-widget > section.section,
.homepage-widget > section.section.section--alt {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Убираем верхний отступ у первого виджета */
.homepage-widget:first-of-type > section.section,
.homepage-widget:first-of-type > section.section.section--alt {
    padding-top: 16px !important;
}

/* Убираем нижний отступ у последнего виджета */
.homepage-widget:last-of-type > section.section,
.homepage-widget:last-of-type > section.section.section--alt {
    padding-bottom: 16px !important;
}

.homepage-widget:not(:has(> section)):not(:has(> .banner-strip)) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Виджеты на полную ширину */
.homepage-widget--fullwidth {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0;
    display: block;
}

.homepage-widget--fullwidth > section.section,
.homepage-widget--fullwidth > section.section.section--alt {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.homepage-widget--fullwidth:first-of-type > section.section,
.homepage-widget--fullwidth:first-of-type > section.section.section--alt {
    padding-top: 16px !important;
}

.homepage-widget--fullwidth:last-of-type > section.section,
.homepage-widget--fullwidth:last-of-type > section.section.section--alt {
    padding-bottom: 16px !important;
}

.homepage-widget--fullwidth:not(:has(> section)):not(:has(> .banner-strip)) {
    padding: 8px 0;
}

/* Убираем отступы у виджета custom blocks */
.homepage-widget.widget_omsu_custom_blocks_section > section.section,
.homepage-widget--fullwidth.widget_omsu_custom_blocks_section > section.section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.homepage-widget:not(:has(> section)):not(:has(> .banner-strip)) img,
.homepage-widget:not(:has(> section)):not(:has(> .banner-strip)) iframe,
.homepage-widget:not(:has(> section)):not(:has(> .banner-strip)) video,
.homepage-widget:not(:has(> section)):not(:has(> .banner-strip)) table {
    max-width: 100%;
    height: auto;
}

/* С сайдбаром */
.content-with-sidebar .homepage-widget {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.content-with-sidebar .homepage-widget > section {
    padding: 8px 0 !important;
    background: none;
}

.content-with-sidebar .homepage-widget:first-child > section {
    padding-top: 0 !important;
}

.content-with-sidebar .homepage-widget:last-child > section {
    padding-bottom: 12px !important;
}

.content-with-sidebar .homepage-widget > section > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.content-with-sidebar .banner-strip__grid {
    grid-template-columns: 1fr 1fr;
}

.content-with-sidebar .contacts-grid {
    grid-template-columns: 1fr;
}

.content-with-sidebar .leaders-grid {
    grid-template-columns: repeat(2, 1fr);
}

.content-with-sidebar .quick-links__grid {
    grid-template-columns: 1fr 1fr;
}

.content-with-sidebar .custom-blocks--3,
.content-with-sidebar .custom-blocks--4 {
    grid-template-columns: 1fr 1fr;
}

/* ── Custom blocks: авторазмер ──────────────────────────── */
.custom-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0;
}

.custom-blocks--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-blocks--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-blocks--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.custom-blocks__item {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    max-height: none;
    overflow-y: visible;
    border-radius: var(--radius);
    background: transparent;
}

.custom-blocks__item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.custom-blocks__item iframe,
.custom-blocks__item video,
.custom-blocks__item embed,
.custom-blocks__item object {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: block;
    border: none;
}

.custom-blocks__item a {
    display: block;
    line-height: 0;
}

.custom-blocks__item a img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.custom-blocks__item--has-text {
    padding: 18px 20px;
    background: var(--surface-raised);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-soft);
}

.custom-blocks__item--embed {
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    box-shadow: none;
    background: transparent;
}

.custom-blocks__item--embed > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.custom-blocks__item--embed iframe,
.custom-blocks__item--embed embed,
.custom-blocks__item--embed object,
.custom-blocks__item--embed video {
    min-height: 320px;
}

.custom-blocks__item--embed script + *,
.custom-blocks__item--embed ins,
.custom-blocks__item--embed div[data-yasharelink],
.custom-blocks__item--embed .ya-share2,
.custom-blocks__item--embed .vk_post,
.custom-blocks__item--embed .telegram-widget,
.custom-blocks__item--embed .twitter-tweet {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 1024px) {
    .custom-blocks--3,
    .custom-blocks--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .custom-blocks--2,
    .custom-blocks--3,
    .custom-blocks--4 {
        grid-template-columns: 1fr;
    }

    .custom-blocks__item--embed iframe,
    .custom-blocks__item--embed embed,
    .custom-blocks__item--embed object,
    .custom-blocks__item--embed video {
        min-height: 240px;
    }
}

/* ── Mobile: dropdown override ──────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        padding: 14px 0;
    }

    .site-header .container {
        gap: 16px;
        align-items: flex-start;
    }

    .branding {
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }

    .branding__logo,
    .custom-logo-link img {
        width: auto;
        max-width: 76px;
        height: 76px;
    }

    .branding__emblem {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }

    .branding__text {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .branding__text h1 {
        font-size: clamp(1.1rem, 4.8vw, 1.45rem);
        line-height: 1.3;
    }

    .branding__text p {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.45;
        letter-spacing: .04em;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .header-search,
    .site-header .header-search {
        width: 100%;
        order: 3;
    }

    .header-search input {
        min-width: 0;
        padding-left: 16px;
    }

    .alert-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-banner__badge {
        white-space: normal;
    }

    .main-nav li.has-mega > .mega-dropdown {
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        min-width: 0;
        width: 100%;
    }

    .main-nav li.has-mega.mega-open > .mega-dropdown {
        display: block;
    }

    .main-nav li.has-mega.mega-open .mega-dropdown__sublist,
    .mega-dropdown__list > li:hover > .mega-dropdown__sublist {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .mega-dropdown__inner {
        padding: 0;
    }

    .mega-dropdown__list > li > a {
        padding: 10px 16px 10px 28px;
        border-left: none;
        color: rgba(255, 255, 255, .85);
        font-size: var(--text-sm);
    }

    .mega-dropdown__list > li > a::after {
        display: none;
    }

    .mega-dropdown__list > li.menu-item-has-children::after,
    .mega-dropdown__sublist li.menu-item-has-children::after {
        display: none;
    }

    .mega-dropdown__sublist {
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 0;
        transform: none;
        transition: none;
    }

    .menu-item-has-children.mega-open > .mega-dropdown__sublist,
    .menu-item-has-children.mega-open > ul,
    .menu-item-has-children.mega-open > .mega-dropdown,
    .main-nav ul[role="menubar"] > li:not(.has-mega).mega-open > ul {
        display: block;
    }

    .mega-dropdown__sublist a {
        color: rgba(255, 255, 255, .6);
        padding: 8px 16px 8px 40px;
    }

    .main-nav ul[role="menubar"] > li:not(.has-mega) > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        display: none;
        position: static;
        box-shadow: none;
        transform: none;
        width: 100%;
        padding: 0;
    }

    .main-nav ul[role="menubar"] > li:not(.has-mega):hover > ul {
        display: none;
    }

    .main-nav ul[role="menubar"] > li:not(.has-mega) > ul a {
        padding: 10px 16px 10px 28px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-with-sidebar .banner-strip__grid,
    .content-with-sidebar .leaders-grid,
    .content-with-sidebar .quick-links__grid,
    .content-with-sidebar .custom-blocks--3,
    .content-with-sidebar .custom-blocks--4 {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .top-bar {
        padding: 10px 16px;
    }

    .top-bar .container {
        justify-content: center;
    }

    .top-bar__left {
        gap: 6px 14px;
    }

    .top-bar__left span {
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .top-bar__social {
        margin-left: 0;
        padding-left: 0;
    }

    .site-header .container {
        gap: 12px;
    }

    .branding {
        gap: 10px;
    }

    .branding__logo,
    .custom-logo-link img {
        max-width: 64px;
        height: 64px;
    }

    .branding__text h1 {
        font-size: 1.05rem;
    }

    .branding__text p {
        font-size: 10px;
        letter-spacing: .03em;
    }

    .main-nav__wrap {
        max-height: 52px;
    }

    .quick-links__grid,
    .banner-strip__grid,
    .footer-grid,
    .leaders-grid,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        padding: 12px;
    }

}

/* ===== FOOTER NETWORK MEDIA ===== */
.footer-network-media {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, .92);
}

.footer-network-media__lead,
.footer-network-media__meta {
    margin: 0;
    line-height: 1.45;
}

.footer-network-media__lead + .footer-network-media__meta {
    margin-top: 4px;
}

.footer-network-media__meta + .footer-network-media__meta {
    margin-top: 2px;
}

.footer-network-media__lead a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-network-media__lead a:hover {
    color: #fff;
}

.footer-network-media__label::after {
    content: ' — ';
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    position: fixed;
    right: 24px;
    left: auto;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .22s ease, transform .22s ease;
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice.is-hiding {
    opacity: 0;
    transform: translateY(10px);
}

.cookie-notice__dialog {
    width: min(100%, 460px);
    pointer-events: auto;
    background: rgba(13, 33, 55, .96);
    color: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(13, 33, 55, .28);
    backdrop-filter: blur(10px);
}

.cookie-notice__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 18px;
}

.cookie-notice__text {
    min-width: 0;
    font-size: var(--text-sm);
    line-height: 1.55;
    max-height: min(42vh, 320px);
    overflow: auto;
}

.cookie-notice__text p {
    margin: 0 0 10px;
}

.cookie-notice__text p:last-child {
    margin-bottom: 0;
}

.cookie-notice__law a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice__law a:hover {
    color: #fff;
}

.cookie-notice__actions {
    flex-shrink: 0;
    display: flex;
}

.cookie-notice__accept {
    width: 100%;
    min-width: 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 10px 24px rgba(201, 149, 43, .28);
}

.cookie-notice__accept:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.cookie-notice__accept:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .cookie-notice__accept {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: stretch;
    }

    .cookie-notice__content {
        padding: 16px;
        gap: 16px;
    }

    .cookie-notice__text {
        font-size: var(--text-sm);
    }
}

/* ===== CONTENT LISTS ===== */
.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ul,
.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ol,
.single-post__content ul,
.single-post__content ol {
    margin: 1em 0 1.25em;
    padding: 0;
    background: transparent;
    border: 0;
    border-left: 0;
    border-radius: 0;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ul,
.single-post__content ul {
    list-style: none;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ol,
.single-post__content ol {
    list-style: none;
    counter-reset: omsu-list;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) li,
.single-post__content li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--surface-raised);
    border: 1px solid rgba(37, 116, 169, .12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(13, 33, 55, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ul li + li,
.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ol li + li,
.single-post__content ul li + li,
.single-post__content ol li + li {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(37, 116, 169, .12);
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ul li::before,
.single-post__content ul li::before {
    content: '';
    position: static;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: .55em;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: none;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ol li,
.single-post__content ol li {
    counter-increment: omsu-list;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ol li::before,
.single-post__content ol li::before {
    content: counter(omsu-list);
    position: static;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: .1em;
    border-radius: 50%;
    background: rgba(13, 33, 55, .9);
    color: #fff;
    font-size: 11px;
    font-weight: var(--weight-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.entry-content:not(.entry-content--directory):not(.entry-content--sitemap) li:hover,
.single-post__content li:hover {
    border-color: rgba(37, 116, 169, .22);
    box-shadow: 0 6px 18px rgba(13, 33, 55, .08);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ul,
    .entry-content:not(.entry-content--directory):not(.entry-content--sitemap) ol,
    .single-post__content ul,
    .single-post__content ol {
        padding-left: 14px;
    }
}

/* ===== PAGE CONTENT JUSTIFY ===== */
.page .entry-content,
.page .entry-content p,
.page .entry-content li,
.page .entry-content blockquote p {
    text-align: justify;
    text-justify: inter-word;
}

/* ===== LEADER CARD ===== */

.nv-leader-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin: 30px 0;
}

.nv-leader-top {
    display: flex;
    gap: 0;
}

.nv-leader-photo {
    width: 280px;
    flex-shrink: 0;
    background: var(--gray-50);
    line-height: 0;
    font-size: 0;
}

.nv-leader-photo p {
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 100%;
}

.nv-leader-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0;
}

.nv-leader-info {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nv-leader-name {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--gray-800);
    margin: 0 0 6px;
    line-height: 1.25;
    font-family: var(--font-heading);
}

.nv-leader-position {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--blue);
    margin-bottom: 20px;
}

.nv-leader-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin: 0;
}

.nv-leader-contacts p {
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.nv-leader-contacts strong {
    color: var(--gray-800);
}

.nv-leader-bottom {
    padding: 28px 32px;
    border-top: 1px solid var(--gray-100);
}

.nv-leader-bio-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--gray-800);
    margin: 0 0 14px;
    font-family: var(--font-heading);
}

.nv-leader-bio {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-600);
}

.nv-leader-bio p {
    margin: 0 0 10px;
    text-align: left;
}

.nv-leader-bio ul,
.nv-leader-bio ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.nv-leader-bio li {
    margin-bottom: 4px;
    text-align: left;
}

.nv-leader-bio strong {
    color: var(--gray-800);
}

.nv-leader-bio h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--gray-800);
    margin: 16px 0 8px;
}

.nv-leader-bio h3:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .nv-leader-top {
        flex-direction: column;
    }

    .nv-leader-photo {
        width: 100%;
        max-height: 360px;
        aspect-ratio: 3 / 4;
    }

    .nv-leader-info {
        padding: 24px 20px;
    }

    .nv-leader-name {
        font-size: var(--text-3xl);
    }

    .nv-leader-contacts {
        flex-direction: column;
        gap: 6px;
    }

    .nv-leader-bottom {
        padding: 20px;
    }
}

/* ===== STAFF / DEPUTIES CARDS ===== */

.nv-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.nv-admin-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nv-admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.nv-admin-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--gray-50);
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.nv-admin-photo p {
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 100%;
}

.nv-admin-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0;
}

.nv-admin-content {
    padding: 20px;
}

.nv-admin-content h3 {
    margin: 0 0 8px;
    font-size: var(--text-2xl);
    line-height: 1.3;
    color: var(--gray-800);
}

.nv-admin-position {
    margin-bottom: 14px;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--blue);
}

.nv-admin-content p {
    margin: 0 0 8px;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--gray-600);
    text-align: left;
}

.nv-admin-content strong {
    color: var(--gray-800);
}

@media (max-width: 640px) {
    .nv-admin-grid {
        grid-template-columns: 1fr;
    }

    .nv-admin-content {
        padding: 16px;
    }

    .nv-admin-content h3 {
        font-size: var(--text-xl);
    }
}

/* ===== MOBILE IMPROVEMENTS (legacy override layer) ===== */

/* Улучшенные стили для мобильных устройств */
@media (max-width: 768px) {
    /* Header: уменьшаем логотип и текст */
    .branding__logo {
        height: 56px;
    }

    .branding__emblem {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .branding__text h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .branding__text p {
        font-size: 0.7rem;
    }

    /* Гамбургер-меню: улучшенная видимость */
    .nav-toggle {
        padding: 10px;
        margin-right: -10px;
    }

    .nav-toggle svg {
        width: 28px;
        height: 28px;
    }

    /* Сайдбар: убираем grid на мобильных, делаем обычным блоком */
    .sidebar {
        display: block !important;
        grid-template-columns: 1fr !important;
        margin-top: 24px;
    }

    /* Контент с сайдбаром: четкий порядок */
    .content-with-sidebar {
        display: flex;
        flex-direction: column;
    }

    .content-with-sidebar .main-content {
        order: 1;
        width: 100%;
    }

    .content-with-sidebar .sidebar {
        order: 2;
        width: 100%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .branding__text h1 {
        font-size: 0.95rem;
    }

    .branding__text p {
        display: none;
    }

    .top-bar__left span {
        font-size: 0.75rem;
    }
}

/* ===== MOBILE TOP BAR LAYOUT FIX ===== */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .top-bar__left {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .top-bar__left span {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .top-bar__social {
        width: 100%;
        order: 2;
        margin-left: 0;
        padding-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-bar__right {
        display: flex !important;
        width: 100%;
        order: 3;
        margin-left: 0;
        justify-content: center;
    }

    .top-bar .btn-accessibility {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
    }
}

/* ===== MOBILE UX POLISH ===== */
@media (max-width: 768px) {
    .top-bar__left span {
        line-height: 1.35;
    }

    .top-bar__social {
        gap: 10px;
    }

    .top-bar__social-link {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .top-bar .btn-accessibility {
        min-height: 44px;
        font-size: clamp(0.88rem, 2.8vw, 1rem);
    }

    .site-header .header-search input {
        min-height: 44px;
    }

    .site-header .header-search button {
        min-width: 52px;
        min-height: 44px;
    }

    .nav-toggle {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        min-width: 100%;
        min-height: 52px;
        padding: 12px 16px !important;
        border-radius: 12px;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    .main-nav ul[role="menubar"] > li > a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .submenu-toggle {
        width: 40px;
        height: 40px;
    }
}
