/* Методичка — основные стили (палитра: #0F4685, #F0F7FF, #143555, #45a2d6, #426ee6) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0F4685;
    --color-primary-hover: #1a6bc4;
    --req-example-figure-width: 42%;
    --req-example-figure-min-width: 220px;
    --color-bg-header: #F0F7FF;
    --color-bg-footer: #143555;
    --color-accent: #45a2d6;
    --color-btn: #426ee6;
    --color-text: #333;
    --color-content-bg: #fff;
    --color-content-shadow: rgba(0,0,0,0.08);
}

body[data-theme="dark"] {
    --color-bg-header: #1a2d47;
    --color-bg-footer: #0d1929;
    --color-text: #e0e6ed;
    --color-content-bg: #152238;
    --color-content-shadow: rgba(0,0,0,0.3);
    background: #0d1929;
}

body[data-theme="dark"] .site-name,
body[data-theme="dark"] .site-name-link,
body[data-theme="dark"] .contact-info,
body[data-theme="dark"] .email-link,
body[data-theme="dark"] .social-icon { color: #8eb9e0; }
body[data-theme="dark"] .logo-fallback { color: #8eb9e0; background: rgba(15, 70, 133, 0.3); }
body[data-theme="dark"] .content { background: var(--color-content-bg); color: var(--color-text); }
body[data-theme="dark"] .content h1 { color: var(--color-accent); }

/* Тёмная тема: форма и поля ввода */
body[data-theme="dark"] .header-search-form {
    background: rgba(21, 34, 56, 0.9);
    border: 1px solid rgba(69, 162, 214, 0.3);
}
body[data-theme="dark"] .header-search-input {
    background: transparent;
    color: #e0e6ed;
}
body[data-theme="dark"] .header-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-control-sm,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .form-select-sm,
body[data-theme="dark"] .tools-search-input {
    background: #1a2d47 !important;
    color: #e0e6ed !important;
    border-color: rgba(69, 162, 214, 0.4) !important;
}
body[data-theme="dark"] input[type="date"],
body[data-theme="dark"] input[type="search"] {
    color-scheme: dark;
}
body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .tools-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus,
body[data-theme="dark"] .tools-search-input:focus {
    background: #1a2d47 !important;
    color: #e0e6ed !important;
    border-color: var(--color-primary) !important;
}
body[data-theme="dark"] .news-filters .form-label,
body[data-theme="dark"] .news-per-page-wrap label {
    color: #e0e6ed;
}
body[data-theme="dark"] .news-filters-fieldset {
    border-color: rgba(69, 162, 214, 0.4);
}
body[data-theme="dark"] .news-filters-legend {
    color: #8eb9e0;
}
body[data-theme="dark"] .news-page-title,
body[data-theme="dark"] .announcements-page-title {
    color: #8eb9e0;
}
body[data-theme="dark"] .btn-outline-secondary {
    color: #8eb9e0;
    border-color: rgba(69, 162, 214, 0.5);
}
body[data-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(69, 162, 214, 0.2);
    border-color: #8eb9e0;
    color: #fff;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    max-width: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

#wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Скрытый текст для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========== Site banner (верхняя полоса: описание, поиск, тема, вход) ========== */
.site-banner {
    width: 100%;
    background-color: #0F4685;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.site-banner-text {
    flex: 0 1 auto;
    min-width: 0;
}

.banner-search-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    max-width: 640px;
    margin: 0 auto;
}

.banner-search-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    min-width: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 180px;
    max-width: 440px;
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    overflow: hidden;
}

.banner-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: none;
    font-size: 13px;
    color: #333;
}

.header-search-input::placeholder {
    color: #666;
}

.header-search-btn {
    padding: 6px 10px;
    border: none;
    background: #0F4685;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search-btn:hover {
    background: #1a6bc4;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.2);
}

.login-btn {
    background-color: #fff;
    color: #0F4685;
    border: 1px solid #0F4685;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #0F4685;
    color: #fff;
    border-color: #fff;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.header-user-info:hover {
    color: rgba(255,255,255,0.9);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.3);
    font-size: 14px;
}

.header-user-name {
    font-size: 13px;
}

/* ========== Site header (основной блок с логотипом) ========== */
.site-header {
    width: 100%;
    background-color: var(--color-bg-header);
    padding: 7px 15px;
    margin-bottom: 0;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 1 auto;
    min-width: 0;
}

.header-brand .logo-link {
    flex-shrink: 0;
}

.header-brand .site-info {
    align-items: flex-start;
    text-align: left;
}

.header-part {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    min-width: 120px;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    width: 135px;
    height: 90px;
    object-fit: contain;
    display: block;
}

.logo-fallback {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #0F4685;
    padding: 0.5rem 1rem;
    background: rgba(15, 70, 133, 0.1);
    border-radius: 6px;
}

.site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-brand .site-name {
    white-space: nowrap;
}

.site-name {
    font-size: clamp(1.25rem, 2.5vw + 0.75rem, 3.375rem);
    font-weight: bold;
    color: #0F4685;
    margin: 0;
    line-height: 1.1;
}

.site-name-link {
    color: #0F4685;
    text-decoration: none;
}

.site-name-link:hover {
    color: #1a6bc4;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info {
    font-size: 14px;
    color: #0F4685;
    line-height: 1.4;
    margin: 3px 0;
}

.contact-info i {
    margin-right: 5px;
}

.email-link {
    color: #0F4685;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.social-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: none;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 25px;
    height: 25px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
    color: #0F4685;
}

.social-icon.max.max-icon-circle-wrap,
.social-icon.vk.vk-icon-circle-wrap {
    font-size: 18px;
}

.social-icon .icon-circle-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.social-icon.max .icon-circle-text {
    font-size: 0.55em;
}

.social-icon.vk .icon-circle-text {
    font-size: 0.45em;
}

.social-icon.max:hover { color: #8E66AD; transform: scale(1.15); }
.social-icon.vk:hover { color: #4a76a8; transform: scale(1.15); }

/* ========== Navigation ========== */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 15px;
    color: #fff;
    font-size: 24px;
    background-color: #0F4685;
    text-align: center;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: #1a6bc4;
}

.nav-menu {
    width: 100%;
    background-color: #0F4685;
    margin-top: 0;
}

.nav-menu .nav-link,
.nav-menu .nav-link:hover,
.nav-menu .nav-submenu-link,
.nav-menu .nav-submenu-link:hover {
    color: #fff;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    max-width: 1600px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.nav-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    transition: all 0.3s ease;
    font-size: 18px;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.nav-chevron {
    display: none;
    margin-left: auto;
    padding-left: 10px;
    font-size: 0.75em;
    opacity: 0.85;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-link i {
    margin-right: 8px;
    font-size: 18px;
}

.nav-link:hover {
    background-color: #1a6bc4;
    color: #fff;
}

.hedicon {
    color: #fff !important;
}

.fa-lock-nav {
    color: #dddb7b !important;
    margin-left: 5px;
}

.nav-menu .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a6bc4;
    list-style: none;
    display: none;
    min-width: max-content;
    z-index: 1000;
    padding: 0;
    margin: 0;
    border-top: 3px solid #0F4685;
}

@media (hover: hover) and (pointer: fine) {
    .nav-menu .nav-item:hover > .nav-submenu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-menu .nav-submenu-link {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    white-space: nowrap;
}

.nav-menu .nav-submenu-link i {
    margin-right: 8px;
    font-size: 16px;
}

.nav-menu .nav-submenu-link:hover {
    background-color: #0F4685;
    color: #fff;
    padding-left: 25px;
}

/* ========== Main content ========== */
.main {
    flex: 1;
    padding: 2rem 0;
}
body[data-theme="dark"] .main {
    background: #0d1929;
}

.content {
    background: var(--color-content-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--color-content-shadow);
    text-align: justify;
}

.content h1 {
    margin-top: 0;
    color: var(--color-primary);
}
.content p {
    margin: 0 0 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

/* Формы входа и регистрации — тёмная карточка в стиле сайта */
.content:has(.auth-page) {
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
    max-width: none;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.5rem 0 1.5rem;
    min-height: calc(100vh - 280px);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(69, 162, 214, 0.22) 0%, transparent 55%),
        linear-gradient(165deg, #143555 0%, #0F4685 42%, #0a2a52 100%);
    border-radius: 12px;
    margin: -0.25rem 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 1.5rem 1rem;
    padding: 1.5rem 1.75rem 1.85rem;
    background: linear-gradient(180deg, rgba(20, 53, 85, 0.92) 0%, rgba(15, 70, 133, 0.88) 100%);
    border: 1px solid rgba(190, 220, 245, 0.55);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 28px rgba(180, 220, 255, 0.35),
        0 12px 36px rgba(200, 230, 255, 0.22),
        0 22px 48px rgba(0, 0, 0, 0.28);
    color: #e8f1fa;
    backdrop-filter: blur(6px);
}

.auth-card--register {
    max-width: 460px;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(232, 241, 250, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.auth-home-link:hover {
    color: #fff;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-logo-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid rgba(69, 162, 214, 0.85);
    background: rgba(240, 247, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 0 6px rgba(69, 162, 214, 0.15);
}

.auth-logo-img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.auth-logo-fallback {
    color: #0F4685;
    font-size: 2rem;
    background: #F0F7FF;
}

.auth-title {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #7ec8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    line-height: 1.2;
}

.content .auth-title,
body[data-theme="dark"] .content .auth-title {
    color: #7ec8f0;
    margin-top: 0;
}

.auth-title i {
    font-size: 1.2rem;
    color: #9ad4f5;
    flex-shrink: 0;
}

.auth-subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(232, 241, 250, 0.72);
}

.auth-alert {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(255, 120, 130, 0.45);
    color: #ffc9ce;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.auth-form .auth-field {
    margin-bottom: 0.95rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: rgba(232, 241, 250, 0.9);
}

.auth-req {
    color: #ff8a95;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > i {
    position: absolute;
    left: 0.9rem;
    color: rgba(232, 241, 250, 0.7);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(142, 185, 224, 0.35);
    background: rgba(8, 28, 55, 0.55);
    color: #fff;
    border-radius: 12px;
    padding: 0.72rem 0.9rem 0.72rem 2.55rem;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
    color: rgba(232, 241, 250, 0.42);
}

.auth-input:focus {
    border-color: #45a2d6;
    box-shadow: 0 0 0 3px rgba(69, 162, 214, 0.25);
    background: rgba(8, 28, 55, 0.75);
}

.auth-hint {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: rgba(232, 241, 250, 0.55);
    line-height: 1.35;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.35rem 0 1.1rem;
    font-size: 0.9rem;
}

.auth-meta-hint {
    color: rgba(232, 241, 250, 0.65);
}

.auth-link {
    color: #8ec8ef;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.auth-link:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-consent {
    margin: 0.25rem 0 0.85rem;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(232, 241, 250, 0.88);
    cursor: pointer;
}

.auth-check input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #426ee6;
    flex-shrink: 0;
}

.auth-consent-read {
    display: inline;
    white-space: nowrap;
}

.auth-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #426ee6 0%, #45a2d6 100%);
    box-shadow: 0 8px 20px rgba(66, 110, 230, 0.35);
    transition: filter 0.15s ease, transform 0.15s ease;
}
.auth-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.auth-submit:active {
    transform: translateY(0);
}

.consent-text {
    white-space: pre-wrap;
    max-height: 60vh;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .auth-page {
        min-height: auto;
        border-radius: 8px;
    }
    .auth-card {
        margin: 1rem 0.65rem;
        padding: 1.25rem 1.15rem 1.4rem;
    }
    .auth-logo-ring {
        width: 84px;
        height: 84px;
    }
    .auth-title {
        font-size: 1.25rem;
    }
}

/* Баннер и слайдер на главной */
.home-banner-block {
    background: var(--color-bg-header);
    padding: 1rem 0;
    text-align: center;
}

.home-banner-block .container {
    transform: translateX(60px);
    padding-right: 30px;
}

.home-banner-text {
    margin: 0;
    text-align: justify;
}
.banner-quote {
    display: none;
}
.banner-quote.active {
    display: block;
}
body[data-theme="dark"] .home-banner-text,
body[data-theme="dark"] .banner-quote {
    color: #fff !important;
}

.home-slider-block {
    background: #e8f0f8;
    padding: 1.5rem 0;
    border-radius: 8px;
    margin: 0 1rem 1.5rem;
}
body[data-theme="dark"] .home-slider-block {
    background: rgba(21, 34, 56, 0.5);
}

.slider-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.slider-caption-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.slider-caption-spacer {
    flex-shrink: 0;
    width: 44px;
}

.slider-caption {
    flex: 1;
    min-width: 0;
    margin: 0;
    text-align: center;
    overflow-wrap: break-word;
}

.slider-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.slider-center {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.slider-play-pause-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-play-pause {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #0F4685;
    background: #fff;
    color: #0F4685;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.slider-play-pause:hover {
    background: #0F4685;
    color: #fff;
}
.slider-thumbnails-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.slider-thumbnails-bottom .slider-thumb {
    width: 56px;
    height: 42px;
}

.slider-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #0F4685;
    background: #fff;
    color: #0F4685;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.slider-arrow:hover {
    background: #0F4685;
    color: #fff;
}

.slider-viewport-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-primary);
}

.slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/7;
}

.slider-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slider-slide.active {
    display: block;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
}


.slider-thumb {
    position: relative;
    width: 56px;
    height: 42px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s, opacity 0.2s;
}

.slider-thumb:not(.active) {
    opacity: 0.6;
}

.slider-thumb:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.4);
    pointer-events: none;
}

.slider-thumb:hover {
    border-color: #0F4685;
    opacity: 1;
}

.slider-thumb:hover::after {
    display: none;
}

.slider-thumb.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--color-primary);
    opacity: 1;
}

.slider-thumb.active::after {
    display: none;
}

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

@media (max-width: 992px) {
    .home-slider-block { margin: 0 0.5rem 1rem; }
    .home-stats-block { margin: 0 0.5rem 1rem; }
    .home-info-block { margin: 0 0.5rem 1rem; }
    .home-plagiarism-block { margin: 0 0.5rem 1rem; }
    .home-management-block { margin: 0 0.5rem 1rem; padding: 1rem 15px 1.5rem; }
    .home-banner-block .container {
        transform: none;
        padding-right: 20px;
    }
    .management-grid { grid-template-columns: 1fr; }
    .slider-play-pause { padding: 3px 8px; font-size: 11px; }
    .slider-thumbnails-bottom .slider-thumb { width: 56px; height: 42px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
    .slider-thumb { width: 56px; height: 42px; }
}
@media (max-width: 768px) {
    .home-slider-block { margin: 0 0.5rem 1rem; }
    .home-stats-block { margin: 0 0.5rem 1rem; }
    .home-info-block { margin: 0 0.5rem 1rem; }
    .home-plagiarism-block { margin: 0 0.5rem 1rem; }
    .home-management-block { margin: 0 0.5rem 1rem; padding: 1rem 15px 1.5rem; }
    .home-banner-block .container {
        transform: none;
        padding-right: 20px;
    }
    .management-grid { grid-template-columns: 1fr; }
    .slider-play-pause { padding: 3px 8px; font-size: 11px; }
    .slider-thumbnails-bottom .slider-thumb { width: 56px; height: 42px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
    .slider-thumb { width: 56px; height: 42px; }
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .content {
        padding: 1rem;
    }
    .requirements-submenu {
        flex-wrap: wrap;
    }
    .requirements-submenu .btn.requirements-submenu-item {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        white-space: normal;
    }
    .requirements-main-title {
        font-size: 1.15rem;
        line-height: 1.25;
    }
    .header-brand {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
    .header-brand .site-info {
        align-items: center;
        text-align: center;
    }
    .header-brand .site-name {
        white-space: normal;
        word-break: break-word;
    }
    .nav-link {
        white-space: normal;
    }
    .content img,
    .content video,
    .content iframe,
    .content table {
        max-width: 100%;
    }
    .content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Статистика главной */
.home-stats-block {
    background: linear-gradient(135deg, #e8f2fc 0%, #f0f7ff 100%);
    margin: 0 1rem 1.5rem;
    padding: 1.25rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 70, 133, 0.08);
    border: 1px solid rgba(15, 70, 133, 0.12);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem;
    text-align: center;
}

.home-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 70, 133, 0.15);
}

.home-stat-icon {
    font-size: 1.25rem;
    color: var(--color-primary);
    opacity: 0.9;
}

.home-stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1.2;
}

.home-stat-label {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.35;
    max-width: 95px;
}

/* Блоки главной — единое выравнивание */
.home-info-block .container,
.home-plagiarism-block .container,
.home-management-block .container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Блок «Общая информация» и «Руководство проектом» — единый стиль */
.home-info-block,
.home-management-block {
    background: var(--color-content-bg);
    margin: 0 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--color-content-shadow);
    overflow: hidden;
}

.info-block-header,
.block-header-styled {
    background: #0F4685;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px 8px 0 0;
}
.info-block-header .bi-info-circle,
.block-header-styled .bi-kanban,
.about-section-header .bi,
.about-section-header i,
.instruction-section .about-section-header i {
    font-size: 1.85rem;
    flex-shrink: 0;
}
.info-block-header .block-back-top,
.block-header-styled .block-back-top {
    margin-left: auto;
}

.info-block-title,
.management-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.info-block-content {
    padding: 1.5rem 0;
    color: var(--color-text);
    line-height: 1.65;
    text-align: justify;
}
.info-block-content p {
    margin: 0;
    text-indent: 1.5em;
}
.info-block-content .info-highlight {
    font-weight: 700;
    color: #0F4685;
}

/* Кнопка «Наверх» — белый круг, толстая стрелка (в блоках и футере) */
.block-back-top,
.req-scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #0F4685;
    text-decoration: none;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.block-back-top i,
.req-scroll-top i {
    font-size: 1rem;
    font-weight: 900;
}
.block-back-top:hover,
.req-scroll-top:hover {
    background: #e8f2fc;
    color: #0F4685;
    transform: translateY(-1px);
}

.req-scroll-top {
    margin-left: auto;
}
body[data-theme="dark"] .home-stats-block {
    background: linear-gradient(135deg, rgba(15, 70, 133, 0.2) 0%, rgba(21, 34, 56, 0.4) 100%);
    border-color: rgba(69, 162, 214, 0.25);
}
body[data-theme="dark"] .home-stat-item {
    background: rgba(255, 255, 255, 0.06);
}
body[data-theme="dark"] .home-stat-icon,
body[data-theme="dark"] .home-stat-value,
body[data-theme="dark"] .home-stat-label {
    color: #8eb9e0 !important;
}

body[data-theme="dark"] .home-info-block,
body[data-theme="dark"] .home-management-block {
    background: var(--color-content-bg);
}
body[data-theme="dark"] .info-block-content {
    color: var(--color-text);
}
body[data-theme="dark"] .info-block-content .info-highlight {
    color: #8eb9e0;
}
body[data-theme="dark"] .block-back-top,
body[data-theme="dark"] .req-scroll-top {
    background: rgba(255,255,255,0.15);
    color: #8eb9e0;
}
body[data-theme="dark"] .block-back-top:hover,
body[data-theme="dark"] .req-scroll-top:hover {
    background: rgba(255,255,255,0.3);
    color: #b8d4f0;
}
body[data-theme="dark"] .scroll-top {
    background: rgba(255,255,255,0.15);
    color: #8eb9e0;
}

/* Блок о плагиате */
.home-plagiarism-block {
    margin: 0 1rem 1.5rem;
}
.plagiarism-notice {
    background: #e8f2fc;
    border-left: 4px solid #0F4685;
    padding: 1rem 0;
    padding-left: 20px;
    border-radius: 0 6px 6px 0;
    color: var(--color-text);
    text-align: justify;
}
.plagiarism-notice p {
    margin: 0;
    line-height: 1.6;
    text-indent: 1.5em;
}
body[data-theme="dark"] .home-plagiarism-block {
    background: transparent;
}
body[data-theme="dark"] .plagiarism-notice {
    background: rgba(15, 70, 133, 0.25);
    border-color: rgba(69, 162, 214, 0.5);
    color: #e0e6ed !important;
}
body[data-theme="dark"] .plagiarism-notice p {
    color: #e0e6ed;
}

/* Блок «Руководство проектом (работой)» */
.home-management-block .block-header-styled {
    margin-bottom: 0;
}
.management-intro,
.management-definition,
.management-functions-title,
.management-grid {
    padding: 0;
}
.management-intro { padding-top: 1.5rem; }
.management-definition { padding-top: 0; }
.management-functions-title { padding-top: 1rem; }
.management-grid { padding-bottom: 2rem; }
.management-intro {
    margin: 0 0 1rem;
    line-height: 1.65;
    text-align: justify;
    text-indent: 1.5em;
}
.management-definition {
    background: #e8f4fc;
    border-left: 4px solid #0F4685;
    padding: 1rem 0;
    padding-left: 20px;
    margin: 0 0 1.5rem;
    border-radius: 0 6px 6px 0;
}
.management-definition .management-def-icon {
    color: #d4a017;
    margin-right: 0.35em;
}
.management-definition p {
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}
.management-functions-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-text);
}
.management-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.management-card {
    background: #fff;
    border: 1px solid rgba(15, 70, 133, 0.15);
    border-radius: 8px;
    padding: 1rem 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 6px rgba(15, 70, 133, 0.08);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.management-card-icon {
    color: #0F4685;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.management-card-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
}
.management-card-sub {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}
.management-card ul {
    margin: 0 0 0.5rem;
    padding-left: 0;
    list-style: none;
}
.management-card ul:last-child {
    margin-bottom: 0;
}
.management-card ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}
.management-list-nested {
    margin-bottom: 0.75rem !important;
    padding-left: 1.25rem;
}
.management-list-nested li {
    margin-bottom: 0.35rem;
    padding-left: 0;
}
.management-list-nested li:first-child {
    margin-top: 0.25rem;
}
.management-list-main {
    margin-top: 0 !important;
}
.management-card li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.management-card li::before {
    content: none;
}
.management-card .bi-check-circle-fill {
    color: #0F4685;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.2em;
}
.management-card .bi-square {
    color: #0F4685;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.15em;
}
.management-list-nested .bi-square {
    margin-top: 0.2em;
}

.management-doc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    line-height: 1.5;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.management-doc-link:hover,
.management-doc-link:focus-visible {
    color: #0F4685;
    background: rgba(15, 70, 133, 0.08);
    outline: none;
    text-decoration: underline;
}

.management-doc-link .bi-square {
    color: #0F4685;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.2em;
}

body[data-theme="dark"] .management-doc-link:hover,
body[data-theme="dark"] .management-doc-link:focus-visible {
    color: #8eb9e0;
    background: rgba(69, 162, 214, 0.12);
}

body[data-theme="dark"] .management-doc-link .bi-square {
    color: #8eb9e0;
}

/* Планирующие документы: модалки */
.planning-doc-modal .modal-body {
    padding-top: 0.75rem;
}

.planning-doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-modal-bg, #fff);
    padding: 0.35rem 0 0.75rem;
    border-bottom: 1px solid rgba(15, 70, 133, 0.12);
}

.planning-doc-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.planning-doc-fill {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 70, 133, 0.15);
    border-radius: 8px;
    background: rgba(15, 70, 133, 0.04);
}

.planning-doc-form .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
    color: #0F4685;
}

.planning-doc-sheet-wrap {
    overflow: auto;
    max-height: min(70vh, 820px);
    border: 1px solid rgba(15, 70, 133, 0.2);
    border-radius: 6px;
    background: #f5f5f5;
    padding: 1rem;
}

.planning-doc-sheet {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.75rem;
    min-width: 640px;
}

.pd-doc {
    font-family: "Times New Roman", Times, serif;
    font-size: 12pt;
    line-height: 1.35;
    color: #000;
}

.pd-center { text-align: center; margin: 0 0 0.2em; }
.pd-caps { text-transform: uppercase; font-size: 11pt; }
.pd-title { text-align: center; font-size: 16pt; margin: 1.1em 0 0.55em; font-weight: 700; }
.pd-title span { display: block; font-size: 14pt; font-weight: 400; }
.pd-approve-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 1.1em 0;
}
.pd-approve-left,
.pd-approve-right,
.pd-approve-right-only { font-size: 11pt; }
.pd-approve-right,
.pd-approve-right-only { text-align: right; margin-left: auto; max-width: 280px; }
.pd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75em 0;
    font-size: 11pt;
}
.pd-table th,
.pd-table td {
    border: 1px solid #000;
    padding: 4px 6px;
    vertical-align: top;
}
.pd-table th { background: #f0f0f0; text-align: center; }
.pd-num { width: 3em; text-align: center; white-space: nowrap; }
.pd-contents { margin: 0.3em 0 0.8em 1.2em; }
.pd-muted { color: #444; font-size: 10pt; }
.pd-supervisors { margin-top: 1.25em; }
.pd-sign-hint { display: inline-block; margin-left: 10em; }

body[data-theme="dark"] .planning-doc-toolbar {
    background: var(--bs-modal-bg, #212529);
    border-bottom-color: rgba(69, 162, 214, 0.25);
}
body[data-theme="dark"] .planning-doc-fill {
    background: rgba(21, 34, 56, 0.45);
    border-color: rgba(69, 162, 214, 0.25);
}
body[data-theme="dark"] .planning-doc-form .form-label { color: #8eb9e0; }
body[data-theme="dark"] .planning-doc-sheet-wrap { background: #1a2332; border-color: rgba(69, 162, 214, 0.3); }

body[data-theme="dark"] .home-management-block {
    background: var(--color-content-bg);
}
.management-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 3px 10px rgba(15, 70, 133, 0.12);
}
body[data-theme="dark"] .management-card {
    background: rgba(21, 34, 56, 0.5);
    border-color: rgba(69, 162, 214, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
body[data-theme="dark"] .management-card-title,
body[data-theme="dark"] .management-card-sub,
body[data-theme="dark"] .management-card li,
body[data-theme="dark"] .management-card-icon { color: #8eb9e0; }
body[data-theme="dark"] .management-card .bi-check-circle-fill,
body[data-theme="dark"] .management-card .bi-square { color: #8eb9e0; }
body[data-theme="dark"] .management-definition {
    background: rgba(15, 70, 133, 0.2);
}

/* ========== Новости ========== */
.news-page-title { margin-bottom: 1rem; color: var(--color-primary); }
.news-filters .form-label { margin-bottom: 0.15rem; font-size: 0.75rem; }
.news-filters-fieldset {
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    padding: 0.5rem 1rem;
}
.news-filters-legend {
    padding: 0 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.news-filters .form-control-sm,
.news-filters .form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-height: 28px;
}
.news-filters .btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}
.news-filter-buttons {
    flex-direction: row;
    gap: 0.5rem;
}
.news-filters .btn-primary {
    background-color: #0F4685 !important;
    border-color: #0F4685 !important;
}
.news-filters .btn-primary:hover {
    background-color: #1a6bc4 !important;
    border-color: #1a6bc4 !important;
}
.news-filters-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}
.news-filter-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}
.news-filter-item-wide {
    flex: 1 1 auto;
    min-width: 10ch;
}
.news-filter-item-wide select {
    min-width: 120px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 70, 133, 0.12), 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(15, 70, 133, 0.18), 0 4px 12px rgba(0,0,0,0.12); }
.news-card-cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}
.news-card-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.news-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.news-card-divider {
    width: 50%;
    height: 1px;
    background: #ccc;
    margin: 0 auto 1rem;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.35;
    min-height: 4.05em;
    color: #0F4685;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}
.news-card-title a { color: #0F4685; text-decoration: none; }
.news-card-title a:hover { color: #1a6bc4; }
.news-card-category { color: #888; font-size: 0.85rem; margin-top: 0.25rem; margin-bottom: 0.5rem; }
.news-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt a { color: inherit; text-decoration: none; }
.news-card-excerpt a:hover { color: #0F4685; }
.news-card-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-card-meta .news-card-author { margin-right: 0; }
.news-card-meta .news-card-date { margin-left: auto; }
.news-card-stats {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.news-card-stats .news-card-rating { margin-right: auto; }
.news-card-stats .news-card-comments,
.news-card-stats .news-card-views { margin-left: 0; }
.news-card-rating .bi { color: #ffc107; }
.news-card-rating small { color: #777; margin-left: 2px; }
.news-card-comments { color: #777; }
.news-card-views { color: #777; }
.news-card-views .bi { margin-right: 0.25rem; }
.news-card-share { margin-bottom: 0.75rem; }
.news-card-share .btn { margin-right: 0.5rem; }
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.75rem;
    gap: 0.5rem;
}
.news-card-btn {
    background-color: #0F4685 !important;
    border-color: #0F4685 !important;
}
.news-card-btn:hover {
    background-color: #1a6bc4 !important;
    border-color: #1a6bc4 !important;
}

.news-per-page-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.news-per-page-select { width: auto; min-width: 3.5em; max-width: 65px; }

.news-pagination-wrap { margin-top: 2rem; }
.news-pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    justify-content: center;
}
.news-pagination-item { margin: 0; }
.news-pagination-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #0F4685;
    background: #fff;
    border: 1px solid #0F4685;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.news-pagination-link:hover {
    background: #0F4685;
    color: #fff;
}

/* ========== Объявления ========== */
.announcements-page-title { margin-bottom: 1rem; color: var(--color-primary); }
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.announcement-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 70, 133, 0.12), 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.announcement-card:hover { box-shadow: 0 8px 24px rgba(15, 70, 133, 0.18), 0 4px 12px rgba(0,0,0,0.12); }
.announcement-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.announcement-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.announcement-card-title a { color: inherit; text-decoration: none; flex: 1; }
.announcement-card-title a:hover { color: #0F4685; }
.announcement-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.announcement-status-active {
    background: #20b2aa;
    box-shadow: 0 0 0 1px rgba(32, 178, 170, 0.3);
}
.announcement-status-expired {
    background: #999;
}
.announcement-urgent-mark {
    color: #dc3545;
    font-weight: 800;
    font-size: 1.3em;
    line-height: 1;
    flex-shrink: 0;
}
.announcement-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.announcement-card-excerpt a { color: inherit; text-decoration: none; }
.announcement-card-excerpt a:hover { color: #0F4685; }
.announcement-card-material-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #0F4685;
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.announcement-card-material-link:hover { color: #1a6bc4; text-decoration: underline; }
.announcement-card-meta { font-size: 0.8rem; color: #777; margin-bottom: 0.5rem; }
.announcement-card-meta span { margin-right: 1rem; }
.announcement-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}
.announcement-card-btn,
.announcement-card-actions .btn-primary {
    background-color: #0F4685 !important;
    border-color: #0F4685 !important;
}
.announcement-card-btn:hover,
.announcement-card-actions .btn-primary:hover {
    background-color: #1a6bc4 !important;
    border-color: #1a6bc4 !important;
}

.announcement-item-page { max-width: 1600px; margin: 0 auto; }
.announcement-article-title {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.announcement-article-title .announcement-status-dot {
    width: 12px;
    height: 12px;
}
.announcement-article-meta { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }
.announcement-article-meta span { margin-right: 1.5rem; }
.announcement-article-content img {
    display: block;
    max-width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin: 1rem auto;
    border-radius: 8px;
    background: #f5f5f5;
}
.announcement-article-content {
    margin-bottom: 2rem;
    text-align: justify;
}
.announcement-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.announcement-article-content table td,
.announcement-article-content table th {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.announcement-article-content table th { background: #f8f9fa; font-weight: 600; }
.announcement-article-material-link a { color: #0F4685; text-decoration: none; }
.announcement-article-material-link a:hover { text-decoration: underline; }
.announcement-article-share {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.announcement-article-share span { margin-right: 0.5rem; }
.announcement-article-share .btn { margin-right: 0.5rem; }
.news-pagination-link.active {
    background: #0F4685;
    color: #fff;
    border-color: #0F4685;
}

.news-item-page { max-width: 1600px; margin: 0 auto; }
.news-back-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.news-back-btn:hover { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.news-article-cover {
    display: block;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.news-article-title {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
}
.news-article-category {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.news-article-meta { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }
.news-article-meta span { margin-right: 1.5rem; }
.news-article-content { margin-bottom: 2rem; text-align: justify; }
.news-article-content p { margin-bottom: 1rem; }
.news-article-content img {
    display: block;
    max-width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin: 1rem auto;
    border-radius: 8px;
    background: #f5f5f5;
}
.news-article-share { margin-bottom: 2rem; padding-top: 1rem; border-top: 1px solid #eee; }
.news-article-share span { margin-right: 0.5rem; }
.news-article-share .btn { margin-right: 0.5rem; }
.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}
.news-gallery-img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 6px;
    margin: 0 auto;
    background: #f5f5f5;
}
.news-rating-block, .news-comments-block {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}
.news-rating-block h3, .news-comments-block h3 { margin-bottom: 1rem; }
.news-rating-stars { display: flex; gap: 4px; align-items: center; }
.news-star-label { cursor: pointer; margin: 0; }
.news-star-label input { display: none; }
.news-star-label .bi { font-size: 1.5rem; color: #ddd; transition: color 0.2s; }
.news-star-label:hover .bi, .news-star-label input:checked ~ .bi,
.news-rating-stars .news-star-label:has(input:checked) ~ .news-star-label .bi,
.news-star-label .bi.bi-star-fill { color: #ffc107; }
.news-comment {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}
body[data-theme="dark"] .news-card { background: rgba(21, 34, 56, 0.5); border: 1px solid rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .news-card-title,
body[data-theme="dark"] .news-card-title a { color: #8eb9e0; }
body[data-theme="dark"] .news-card-excerpt { color: #b0b8c4; }
body[data-theme="dark"] .news-comment { background: rgba(15, 70, 133, 0.2); }

/* Личный кабинет: вкладки и карточки */
.profile-page {
    color: var(--color-text);
}
.profile-page .nav-tabs {
    border-bottom: 2px solid var(--color-primary);
    background: #f8f9fa;
}
.profile-page .nav-tabs .nav-item {
    margin-bottom: -2px;
}
.profile-page .nav-tabs .nav-link {
    color: var(--color-primary);
    background: transparent;
    border: 1px solid #dee2e6;
    border-bottom: none;
    margin-right: 2px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}
.profile-page .nav-tabs .nav-link:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.profile-page .nav-tabs .nav-link.active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.profile-page .card-header { background: #f0f7ff; font-weight: 600; color: #333; }
.profile-page .card { border: 1px solid #dee2e6; }
.profile-page .table { color: var(--color-text); }
.profile-page .form-control, .profile-page .form-select { background: #fff; color: #333; }
body[data-theme="dark"] .profile-page .nav-tabs .nav-link { color: #8eb9e0; border-color: #2a4365; }
body[data-theme="dark"] .profile-page .nav-tabs .nav-link:hover,
body[data-theme="dark"] .profile-page .nav-tabs .nav-link.active { color: #fff; background: var(--color-primary); }
body[data-theme="dark"] .profile-page .card-header { background: rgba(15, 70, 133, 0.3); color: #e0e6ed; }
body[data-theme="dark"] .profile-page .form-control,
body[data-theme="dark"] .profile-page .form-select { background: #1a2d47; color: #e0e6ed; }

/* Профиль пользователя — стиль как на макете */
.profile-modern { max-width: 1200px; margin: 0 auto; }
.profile-modern-layout { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.profile-modern-left { flex: 0 0 calc(33.333% - 0.75rem); min-width: 280px; }
.profile-modern-right { flex: 1 1 calc(66.666% - 0.75rem); min-width: 300px; }
.profile-modern-wrap { background: #fff; border-radius: 8px; padding: 2rem; border: 1px solid #e2e6ea; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.profile-modern-right { background: #fff; border-radius: 8px; padding: 1.5rem; border: 1px solid #e2e6ea; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow-y: visible; }
.profile-notes-add-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e6ea; }
.profile-notes-add-textarea { min-height: 120px; resize: vertical; }
.profile-notes-cards { display: flex; flex-direction: column; gap: 0.75rem; max-height: 70vh; overflow-y: auto; }
.profile-notes-card { background: #f8f9fa; border-radius: 8px; border: 1px solid #e2e6ea; overflow: hidden; transition: box-shadow 0.2s; }
.profile-notes-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.profile-notes-card-header { padding: 0.75rem 1rem; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.profile-notes-card-meta { font-size: 0.8rem; color: #666; margin-bottom: 4px; }
.profile-notes-card-meta time { font-weight: 600; color: #0F4685; }
.profile-notes-card-preview { font-size: 0.9rem; color: #333; line-height: 1.4; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.profile-notes-card-expand-btn { color: #0F4685; font-size: 0.85rem; flex-shrink: 0; }
.profile-notes-card-expand-btn:hover { text-decoration: underline; }
.profile-notes-card-body { display: none; padding: 1rem; border-top: 1px solid #e2e6ea; background: #fff; }
.profile-notes-card-body.expanded { display: block; }
.profile-notes-card-body .form-control { min-height: 100px; resize: vertical; }
.profile-notes-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.profile-notes-card-source { font-size: 0.8rem; color: #666; margin-top: 0.5rem; }
.profile-notes-card-source a { color: #0F4685; }
.profile-notes-entry-meta { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.profile-notes-entry-content { color: #333; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.profile-notes-empty { font-size: 0.9rem; padding: 1rem 0; color: #888; }
.profile-notes-date-block { margin-bottom: 1.25rem; }
.profile-notes-date-block:last-child { margin-bottom: 0; }
.profile-notes-date-title { font-weight: 700; font-size: 0.9rem; color: #0F4685; margin-bottom: 0.5rem; padding-bottom: 4px; border-bottom: 1px solid #e2e6ea; }
.profile-notes-entry { margin-bottom: 1rem; padding: 0.75rem; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #0F4685; font-size: 0.9rem; }
.profile-notes-entry:last-child { margin-bottom: 0; }
@media (max-width: 992px) {
    .profile-modern-left { flex: 1 1 100%; }
    .profile-modern-right { flex: 1 1 100%; }
}
@media (max-width: 768px) {
    .profile-modern-layout { flex-direction: column; }
    .profile-modern-right { flex: 1 1 auto; }
}
.profile-modern-heading { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 700; color: #333; margin: 0 0 0.5rem 0; }
.profile-modern-heading-icon { font-size: 1.5rem; color: #555; }
.profile-modern-separator { border: none; border-top: 1px solid #e2e6ea; margin: 1.5rem 0; }
.profile-modern-user { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.profile-modern-avatar-wrap { flex-shrink: 0; }
.profile-modern-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e6ea; }
.profile-modern-avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: #e8f2fc; border: 2px solid #0F4685; display: flex; align-items: center; justify-content: center; color: #0F4685; font-size: 2rem; }
.profile-modern-user-info { min-width: 0; }
.profile-modern-name { font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 2px; }
.profile-modern-login { font-size: 0.95rem; color: #666; margin-bottom: 2px; }
.profile-modern-role { font-size: 0.9rem; color: #888; }
.profile-modern-form { margin-bottom: 0; }
.profile-modern-field { margin-bottom: 1rem; }
.profile-modern-label { display: block; font-size: 0.95rem; font-weight: 500; color: #333; margin-bottom: 6px; }
.profile-modern-input { border: 1px solid #ced4da; border-radius: 6px; padding: 8px 12px; font-size: 1rem; width: 100%; max-width: 100%; }
.profile-modern-input:focus { border-color: #0F4685; outline: none; box-shadow: 0 0 0 2px rgba(15, 70, 133, 0.2); }
.profile-modern-file-wrap { display: flex; align-items: stretch; gap: 0; border: 1px solid #ced4da; border-radius: 6px; overflow: hidden; max-width: 320px; }
.profile-modern-file-btn { display: inline-block; padding: 8px 16px; background: #175f80; color: #fff; font-weight: 600; font-size: 0.9rem; cursor: pointer; margin: 0; }
.profile-modern-file-btn:hover { background: #1a6bc4; }
.profile-modern-file-input { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; }
.profile-modern-file-text { flex: 1; padding: 8px 12px; background: #f8f9fa; color: #888; font-size: 0.9rem; border-left: 1px solid #dee2e6; display: flex; align-items: center; }
.profile-modern-hint { font-size: 0.85rem; color: #888; margin-top: 6px; }
.profile-modern-check { margin-top: 0.75rem; }
.profile-modern-btn-save { width: 100%; max-width: 320px; padding: 10px 20px; background: #175f80; color: #fff; border: none; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.profile-modern-btn-save:hover { background: #1a6bc4; color: #fff; }
.profile-modern-section-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: #333; margin: 0 0 1rem 0; }
.profile-modern-section-icon { font-size: 1.2rem; color: #555; }
.profile-modern-btn-outline { padding: 8px 18px; background: #fff; color: #4a90e2; border: 1px solid #4a90e2; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.profile-modern-btn-outline:hover { background: #e8f4ff; color: #4a90e2; border-color: #4a90e2; }
body[data-theme="dark"] .profile-modern-wrap { background: #1a2d47; border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-modern-heading, body[data-theme="dark"] .profile-modern-name, body[data-theme="dark"] .profile-modern-label { color: #e0e6ed; }
body[data-theme="dark"] .profile-modern-login, body[data-theme="dark"] .profile-modern-role { color: #b0b8c4; }
body[data-theme="dark"] .profile-modern-separator { border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-modern-input { background: #152238; border-color: rgba(69, 162, 214, 0.4); color: #e0e6ed; }
body[data-theme="dark"] .profile-modern-file-text { background: rgba(21, 34, 56, 0.6); color: #b0b8c4; }
body[data-theme="dark"] .profile-modern-section-title { color: #e0e6ed; }
body[data-theme="dark"] .profile-modern-btn-outline { background: transparent; color: #8eb9e0; border-color: #8eb9e0; }
body[data-theme="dark"] .profile-modern-btn-outline:hover { background: rgba(15, 70, 133, 0.3); color: #8eb9e0; }
body[data-theme="dark"] .profile-modern-right { background: #1a2d47; border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-notes-date-title { color: #8eb9e0; border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-notes-entry { background: rgba(15, 70, 133, 0.2); border-left-color: #8eb9e0; }
body[data-theme="dark"] .profile-notes-entry-meta { color: #b0b8c4; }
body[data-theme="dark"] .profile-notes-entry-content { color: #e0e6ed; }
body[data-theme="dark"] .profile-notes-add-block { border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-notes-card { background: rgba(15, 70, 133, 0.15); border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-notes-card-body { background: #152238; border-color: rgba(69, 162, 214, 0.3); }
body[data-theme="dark"] .profile-notes-card-meta { color: #b0b8c4; }
body[data-theme="dark"] .profile-notes-card-meta time { color: #8eb9e0; }
body[data-theme="dark"] .profile-notes-card-preview { color: #e0e6ed; }
body[data-theme="dark"] .profile-notes-card-expand-btn { color: #8eb9e0; }
body[data-theme="dark"] .profile-notes-card-source { color: #b0b8c4; }
body[data-theme="dark"] .profile-notes-card-source a { color: #8eb9e0; }

/* Таблица пользователей: сортируемые заголовки */
.users-sort-th { cursor: pointer; white-space: nowrap; }
.users-sort-link {
    color: #0F4685;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
}
.users-sort-link:hover {
    background: rgba(15, 70, 133, 0.1);
    color: #0F4685;
}
.users-sort-active { font-weight: 700; }
body[data-theme="dark"] .users-sort-link { color: #8eb9e0; }
body[data-theme="dark"] .users-sort-link:hover { background: rgba(15, 70, 133, 0.3); color: #8eb9e0; }

/* Кабинет 2: боковой сайдбар */
.profile-cabinet2 { margin-top: 0.5rem; }
.profile-sidebar {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e2e6ea;
}
.profile-sidebar-category { margin-bottom: 0.75rem; }
.profile-sidebar-category:last-child { margin-bottom: 0; }
.profile-sidebar-cat-title { padding-left: 0.5rem; font-weight: 600; }
.profile-sidebar .list-group-item {
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
}
.profile-sidebar .list-group-item:hover { background: #e9ecef; }
.profile-sidebar .list-group-item.active { background: var(--color-primary); color: #fff; }
.profile-sidebar .list-group-item .badge { font-size: 0.7rem; }
.profile-tab-stat { font-size: 0.85rem; }
body[data-theme="dark"] .profile-sidebar {
    background: rgba(21, 34, 56, 0.6);
    border-color: rgba(69, 162, 214, 0.3);
}
body[data-theme="dark"] .profile-sidebar .list-group-item:hover { background: rgba(15, 70, 133, 0.3); }
body[data-theme="dark"] .profile-sidebar .list-group-item.active { background: var(--color-primary); }

.slider-image-option { cursor: pointer; }
.slider-image-option:hover { background: #f8f9fa; }

/* ========== Footer (палитра аналога: #143555 / #053662, заголовки #45a2d6, кнопка #426ee6) ========== */
.site-footer {
    background-color: var(--color-bg-footer);
    color: #fff;
    padding: 30px 0 20px;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 300px;
}

.footer-heading {
    color: #45a2d6;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.footer-text {
    font-size: 0.9em;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    line-height: 1.4;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icon {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.footer-social-icon:hover {
    transform: scale(1.2);
}

.footer-social-icon.vk:hover { color: #4a76a8; }
.footer-social-icon.max:hover { color: #8E66AD; }

.footer-social-icon.max .icon-circle-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
    box-sizing: border-box;
}

.social-section {
    max-width: 320px;
}

.footer-partners {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-partners-title {
    color: #45a2d6;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

.footer-partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.footer-partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-partner-item:hover {
    color: #45a2d6;
    transform: translateY(-2px);
}

.footer-partner-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    box-sizing: border-box;
}

.footer-partner-name {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.25;
    max-width: 100%;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-input,
.footer-textarea {
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    background-color: #e0e0e0;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.footer-textarea {
    resize: vertical;
    min-height: 100px;
}

.footer-input::placeholder,
.footer-textarea::placeholder {
    color: #666;
}

.footer-submit {
    background-color: #426ee6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

.footer-submit:hover {
    background-color: #3663F5;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-photo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.author-photo {
    width: 100px;
    height: 100px;
    border: 1px solid #fff;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.author-name {
    font-weight: bold;
    font-size: 1em;
    color: #fff;
}

.author-position {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 0.9em;
    color: rgba(255,255,255,0.95);
}

.footer-contact i {
    color: #45a2d6;
    width: 20px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-link {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #1A4B8C;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.9em;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.scroll-top {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #0F4685;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.scroll-top--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
}

.scroll-top:not(.scroll-top--hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #e8f2fc;
}

/* ========== Responsive: хедер и футер полностью адаптивны ========== */
@media (max-width: 1200px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-part {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
        margin-bottom: 5px;
    }

    .header-brand .site-name {
        white-space: normal;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-section {
        flex: 1 1 calc(50% - 24px);
        min-width: 180px;
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .site-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 10px;
    }

    .site-banner-text {
        text-align: center;
        flex: 1 1 100%;
        line-height: 1.35;
    }

    .banner-search-wrap {
        max-width: 100%;
        order: 1;
        width: 100%;
    }

    .banner-search-feedback {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-search-form {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .banner-right {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .header-part {
        flex: 1 1 50%;
    }

    .header-brand .site-name {
        white-space: normal;
    }

    .nav-list {
        flex-direction: column;
        display: none;
        width: 100%;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .nav-menu .nav-submenu {
        position: static;
        display: none !important;
        min-width: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        border-top: none;
        box-sizing: border-box;
    }

    .nav-menu .nav-item.is-open > .nav-submenu {
        display: block !important;
    }

    .nav-menu .nav-item.is-open > .nav-link {
        background-color: #1a6bc4;
    }

    .nav-menu .nav-submenu-link {
        padding-left: 30px;
        background-color: rgba(255, 255, 255, 0.1);
        white-space: normal;
        word-break: break-word;
    }

    .nav-menu .nav-submenu-link:hover {
        padding-left: 35px;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 15px;
    }

    .nav-item--dropdown .nav-chevron {
        display: inline-block;
    }

    .nav-item.is-open .nav-chevron {
        transform: rotate(180deg);
    }

    .footer-section {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .scroll-top {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .site-banner {
        font-size: 13px;
    }

    .header-part {
        flex: 1 1 100%;
    }

    .header-brand .logo-link {
        justify-content: flex-start;
    }

    .social-icons-header {
        gap: 4px 8px;
        max-width: 95px;
    }

    .social-icon {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-section {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .author-photo-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-banner {
        font-size: 12px;
        padding: 8px 10px;
    }

    .site-banner-text {
        font-size: 12px;
    }

    .banner-search-wrap {
        width: 100%;
    }

    .banner-search-feedback {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-feedback-trigger {
        width: 100%;
        justify-content: center;
    }

    .banner-right {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .banner-right .login-btn,
    .banner-right .header-user-info {
        justify-content: center;
        text-align: center;
    }

    .header-search-form {
        width: 100%;
    }

    .theme-btn {
        align-self: center;
    }

    .header-brand {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .header-inner {
        padding: 0 4px;
    }

    .site-logo {
        width: 100px;
        height: 67px;
    }

    .logo-fallback {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 15px;
        padding: 10px 12px;
    }

    .nav-menu .nav-submenu-link {
        font-size: 14px;
        padding: 10px 12px 10px 24px;
    }

    .footer-heading {
        font-size: 16px;
    }

    .footer-container {
        padding: 0 12px;
    }

    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 12px;
        right: 12px;
    }
}

/* ========== Страница «Инструкция» ========== */
.instruction-page {
    max-width: 1600px;
    margin: 0 auto;
}

.instruction-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.instruction-main-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.instruction-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.instruction-toc {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

body[data-theme="dark"] .instruction-toc {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .instruction-toc-title,
body[data-theme="dark"] .instruction-toc-list a,
body[data-theme="dark"] .instruction-toc-list a i {
    color: #8eb9e0 !important;
}
body[data-theme="dark"] .instruction-toc-list a:hover {
    color: #b8d4f0 !important;
}

.instruction-toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.instruction-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-toc-list li { margin-bottom: 0.4rem; }

.instruction-toc-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
}

.instruction-toc-list a:hover { text-decoration: underline; }

.instruction-section {
    margin-bottom: 2rem;
}

.instruction-section .about-section-header {
    border-radius: 8px 8px 0 0;
}

.instruction-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    background: var(--color-content-bg);
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
}

body[data-theme="dark"] .instruction-sitemap-grid {
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .instruction-sitemap-block h3,
body[data-theme="dark"] .instruction-sitemap-block h3 i {
    color: #8eb9e0 !important;
}

.instruction-sitemap-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-sitemap-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-sitemap-block li { margin-bottom: 0.35rem; }

.instruction-sitemap-block a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.instruction-sitemap-block a:hover { color: var(--color-primary); text-decoration: underline; }

.instruction-content {
    background: var(--color-content-bg);
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem 1.75rem;
    line-height: 1.6;
}

body[data-theme="dark"] .instruction-content {
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .instruction-main-title,
body[data-theme="dark"] .instruction-main-icon,
body[data-theme="dark"] .instruction-content h3 {
    color: #8eb9e0 !important;
}

.instruction-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.25rem 0 0.5rem;
}

.instruction-content h3:first-child { margin-top: 0; }

.instruction-content ul { padding-left: 1.5rem; margin-bottom: 0.75rem; }

.instruction-content li { margin-bottom: 0.35rem; }

.instruction-detail-list {
    padding-left: 1.35rem;
    margin-bottom: 0.75rem;
}

.instruction-detail-list li { margin-bottom: 0.45rem; }

.instruction-role-notice {
    background: rgba(15, 70, 133, 0.1);
    border-left: 4px solid #0F4685;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body[data-theme="dark"] .instruction-role-notice {
    background: rgba(15, 70, 133, 0.2);
}

/* ——— Динамическая инструкция (?page=instruction) ——— */
.instruction-page--dynamic section[id] {
    scroll-margin-top: 1.25rem;
}

.instruction-content--accordion .accordion-header[id] {
    scroll-margin-top: 5.5rem;
}

.instruction-hero {
    position: relative;
    border-radius: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    margin-bottom: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 70, 133, 0.08) 0%, rgba(21, 101, 192, 0.12) 50%, rgba(15, 70, 133, 0.06) 100%);
    border: 1px solid rgba(15, 70, 133, 0.15);
}

body[data-theme="dark"] .instruction-hero {
    background: linear-gradient(135deg, rgba(15, 70, 133, 0.25) 0%, rgba(21, 101, 192, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

.instruction-hero-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(21, 101, 192, 0.18), transparent 45%),
                radial-gradient(circle at 80% 60%, rgba(15, 70, 133, 0.12), transparent 40%);
    animation: instruction-hero-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes instruction-hero-pulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.instruction-hero-inner {
    position: relative;
    z-index: 1;
}

.instruction-hero-title {
    margin-bottom: 0.5rem;
}

.instruction-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.instruction-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    border: 1px solid rgba(15, 70, 133, 0.2);
    animation: instruction-chip-in 0.6s ease backwards;
}

.instruction-chip:nth-child(1) { animation-delay: 0.05s; }
.instruction-chip:nth-child(2) { animation-delay: 0.12s; }
.instruction-chip:nth-child(3) { animation-delay: 0.19s; }
.instruction-chip:nth-child(4) { animation-delay: 0.26s; }
.instruction-chip:nth-child(5) { animation-delay: 0.33s; }

@keyframes instruction-chip-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

body[data-theme="dark"] .instruction-chip {
    background: rgba(30, 40, 55, 0.9);
    color: #b8d4f0;
    border-color: rgba(255, 255, 255, 0.15);
}

.instruction-hint-inline {
    cursor: help;
    white-space: nowrap;
    margin-left: 0.35rem;
}

.instruction-progress-wrap {
    height: 4px;
    background: rgba(15, 70, 133, 0.12);
    border-radius: 0 0 4px 4px;
    margin-top: -1px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.instruction-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0F4685, #1565c0);
    border-radius: 4px;
    transition: width 0.35s ease;
}

.instruction-sticky-nav {
    position: sticky;
    top: 0.5rem;
    z-index: 40;
    margin-bottom: 1rem;
}

.instruction-sticky-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: var(--color-content-bg);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(15, 70, 133, 0.08);
}

body[data-theme="dark"] .instruction-sticky-inner {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.instruction-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    background: rgba(15, 70, 133, 0.06);
    border: 1px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.instruction-pill:hover {
    color: var(--color-primary);
    background: rgba(15, 70, 133, 0.12);
    transform: translateY(-1px);
}

.instruction-pill.active {
    color: #fff;
    background: linear-gradient(135deg, #0F4685, #1565c0);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(15, 70, 133, 0.35);
}

.instruction-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.instruction-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.instruction-tour-section .about-section-header {
    border-radius: 8px 8px 0 0;
}

.instruction-tour-body {
    background: var(--color-content-bg);
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.25rem 1.25rem 1rem;
}

body[data-theme="dark"] .instruction-tour-body {
    border-color: rgba(255, 255, 255, 0.12);
}

.instruction-tour-tabs {
    gap: 0.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
}

.instruction-tour-tabs .nav-link {
    border-radius: 999px !important;
    color: var(--color-text);
    background: rgba(15, 70, 133, 0.06);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.instruction-tour-tabs .nav-link:hover {
    transform: translateY(-1px);
    background: rgba(15, 70, 133, 0.12);
}

.instruction-tour-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #0F4685, #1565c0);
    box-shadow: 0 3px 10px rgba(15, 70, 133, 0.3);
}

.instruction-tour-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.25);
}

.instruction-tour-tabs .nav-link:not(.active) .instruction-tour-num {
    background: rgba(15, 70, 133, 0.15);
}

.instruction-tour-panels {
    min-height: 8rem;
}

.instruction-tour-panel-inner {
    padding: 0.5rem 0.15rem 0;
}

.instruction-tour-panels .tab-pane {
    animation: instruction-tab-in 0.35s ease;
}

@keyframes instruction-tab-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

.instruction-content--accordion {
    padding-top: 0;
}

.instruction-user-accordion .accordion-button {
    font-weight: 700;
    font-size: 1rem;
}

.instruction-user-accordion .accordion-button:not(.collapsed) {
    background: rgba(15, 70, 133, 0.08);
    color: var(--color-primary);
}

.instruction-mini-card {
    position: relative;
    padding: 1rem 1rem 2.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: rgba(15, 70, 133, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.instruction-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(15, 70, 133, 0.12);
    border-color: rgba(15, 70, 133, 0.25);
}

body[data-theme="dark"] .instruction-mini-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.instruction-sitemap-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instruction-sitemap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 70, 133, 0.1);
}

.instruction-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.instruction-admin-tile {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    text-align: center;
    background: rgba(15, 70, 133, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instruction-admin-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 70, 133, 0.12);
}

body[data-theme="dark"] .instruction-admin-tile {
    border-color: rgba(255, 255, 255, 0.12);
}

.instruction-pulse-btn {
    animation: instruction-pulse-soft 2.4s ease-in-out infinite;
}

@keyframes instruction-pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 70, 133, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(15, 70, 133, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .instruction-hero-glow,
    .instruction-chip,
    .instruction-tour-panels .tab-pane,
    .instruction-pulse-btn {
        animation: none !important;
    }
    .instruction-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .instruction-pill,
    .instruction-tour-tabs .nav-link,
    .instruction-mini-card,
    .instruction-sitemap-card,
    .instruction-admin-tile {
        transition: none !important;
    }
}

/* ========== Страница «О нас» ========== */
.about-page {
    max-width: 1600px;
    margin: 0 auto;
}

.about-avatar-wrap { display: inline-block; }
.about-profile .about-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.about-avatar-placeholder {
    width: 140px;
    height: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    background: #e9ecef;
    border: 3px solid var(--color-primary);
}

.about-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.about-title,
.about-institution {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.about-divider {
    border: 0;
    border-top: 2px solid var(--color-primary);
    margin: 1.5rem 0;
}

.about-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
    background: #e9ecef;
    padding: 10px 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section-icon {
    color: var(--color-primary);
}

.about-championship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.about-champ-block {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem 1rem 1rem 1.25rem;
    border-left: 4px solid var(--color-primary);
}

.about-champ-block h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.about-champ-block p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .about-skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .about-skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; }
}

.about-skill-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.about-skill-card:hover {
    box-shadow: 0 4px 12px rgba(15, 70, 133, 0.15);
}

.about-skill-card i {
    font-size: 1.8rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.about-skill-card span {
    font-size: 0.85rem;
    display: block;
}

.about-section-block {
    background: var(--color-content-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--color-content-shadow);
    overflow: hidden;
}

.about-section-block .about-section-header { margin-bottom: 0; }

.about-championship .about-championship-grid,
.about-skills .about-skills-grid {
    padding: 1.5rem;
}

.about-contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .about-contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .about-contacts-grid { grid-template-columns: 1fr; }
}

.about-contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.about-contact-card:hover {
    background: #f8f9fa;
    color: var(--color-primary);
}

.about-contact-card i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.about-map-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-map-link {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 8px 16px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.about-map-link:hover {
    background: #c82333;
    color: #fff;
}

body[data-theme="dark"] .about-champ-block,
body[data-theme="dark"] .about-skill-card,
body[data-theme="dark"] .about-contact-card {
    background: rgba(255,255,255,0.05);
}

body[data-theme="dark"] .about-section-block {
    background: var(--color-content-bg);
}

/* ========== Страница «Требования» ========== */
.requirements-page {
    max-width: 1600px;
    margin: 0 auto;
}

.requirements-main-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.requirements-intro {
    color: #555;
    margin-bottom: 1.5rem;
}

.requirements-submenu {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    background: var(--color-primary);
    padding: 12px 16px;
    margin-bottom: 2rem;
}

.requirements-submenu-item {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 14px;
}

.requirements-submenu-item:hover {
    color: rgba(255,255,255,0.9);
}

.requirements-submenu .btn.requirements-submenu-item {
    flex: 1;
    min-width: 0;
    color: #0F4685;
    background: #fff;
    border-color: rgba(255,255,255,0.5);
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}
.requirements-submenu .btn.requirements-submenu-item:hover {
    background: rgba(255,255,255,0.95);
    border-color: #fff;
    color: #0F4685;
}

@media (max-width: 480px) {
    .requirements-submenu {
        flex-wrap: wrap;
    }
    .requirements-submenu .btn.requirements-submenu-item {
        flex: 1 1 calc(50% - 4px);
        min-width: 100px;
    }
}

.requirements-block {
    margin-bottom: 2.5rem;
}

.requirements-page section[id] {
    scroll-margin-top: 5rem;
}

.requirements-block-title {
    font-size: 1.1rem;
    font-weight: bold;
    background: #0F4685;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 12px 15px;
    border-radius: 8px;
}
.requirements-block-title .req-icon,
.requirements-block-title .req-icon-warn {
    font-size: 1.35rem;
    flex-shrink: 0;
}
.requirements-block-title .req-icon-warn {
    color: #ffc107;
}

.req-icon-warn {
    color: #dc3545;
}

/* req-scroll-top стили объединены с block-back-top выше */

.requirements-block-desc {
    margin-bottom: 1rem;
}

/* Блок НИР — две колонки на всю ширину */
.requirements-nir-block .nir-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

@media (max-width: 992px) {
    .requirements-nir-block .nir-two-cols { grid-template-columns: 1fr; }
}

.nir-col {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

body[data-theme="dark"] .nir-col {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.nir-col-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0F4685;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0F4685;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nir-col-title i { font-size: 1.25rem; }

.nir-col-intro {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    color: #555;
}

body[data-theme="dark"] .nir-col-intro { color: #b0b8c4; }

.nir-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.nir-item:last-child { margin-bottom: 0; }

.nir-item-icon {
    font-size: 1.5rem;
    color: #0F4685;
    flex-shrink: 0;
}

.nir-item-body { min-width: 0; }

.nir-item-title {
    font-weight: 600;
    color: #0F4685;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.nir-item-title:hover { color: #1a6bc4; text-decoration: underline; }

.nir-item-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #555;
}

body[data-theme="dark"] .nir-item-desc { color: #b0b8c4; }
body[data-theme="dark"] .nir-item-title { color: #8eb9e0; }
body[data-theme="dark"] .nir-item-title:hover { color: #b8d4f0; }

/* Страница «В разработке» */
.in-development-page {
    padding: 3rem 1rem;
    text-align: center;
}

.in-dev-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--color-content-bg);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(15, 70, 133, 0.15);
}

.in-dev-icon {
    font-size: 4rem;
    color: #0F4685;
    margin-bottom: 1rem;
}

.in-dev-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

.in-dev-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.in-dev-message {
    background: rgba(15, 70, 133, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.in-dev-message p { margin: 0; line-height: 1.6; color: #444; }

.in-dev-btn {
    background-color: #0F4685 !important;
    border-color: #0F4685 !important;
}

.in-dev-btn:hover {
    background-color: #1a6bc4 !important;
    border-color: #1a6bc4 !important;
}

.requirements-two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.requirements-col {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.25rem;
}

.requirements-col-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.requirements-col-title .req-icon {
    margin-right: 6px;
}

.requirements-col-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.requirements-col-list li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.req-icon-sm {
    color: var(--color-accent);
    margin-right: 8px;
}

.requirements-inner-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 1rem;
}

.requirements-inner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
}

.requirements-inner-item:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.requirements-inner-content {
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.requirements-inner-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

body[data-theme="dark"] .requirements-block-title {
    background: rgba(15, 70, 133, 0.8);
}
body[data-theme="dark"] .requirements-col {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

/* Карточки требований */
.requirements-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.requirement-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.requirement-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.requirement-card-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.requirement-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
}

.requirement-card-desc {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.requirement-card-btn {
    align-self: flex-start;
    margin-top: auto;
}

body[data-theme="dark"] .requirement-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

body[data-theme="dark"] .requirement-card:hover {
    border-color: var(--color-accent);
}

body[data-theme="dark"] .requirement-card-desc {
    color: rgba(255,255,255,0.7);
}

/* График отработки диплома — таймлайн */
.diploma-schedule-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}
.diploma-schedule-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary, #0f4685);
    margin: 0 0 0.5rem 0;
}
.diploma-schedule-title i {
    margin-right: 8px;
}
.diploma-schedule-intro {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.diploma-schedule-timeline {
    position: relative;
}
.diploma-schedule-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary, #0f4685), rgba(15, 70, 133, 0.4));
    border-radius: 1px;
}
.diploma-schedule-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
}
.diploma-schedule-item:last-child {
    margin-bottom: 0;
}
.diploma-schedule-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f4685 0%, #1a5ba0 100%);
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(15, 70, 133, 0.3);
}
.diploma-schedule-content {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}
.diploma-schedule-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}
.diploma-schedule-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}
body[data-theme="dark"] .diploma-schedule-block {
    border-color: rgba(255,255,255,0.12);
}
body[data-theme="dark"] .diploma-schedule-intro {
    color: rgba(255,255,255,0.7);
}
body[data-theme="dark"] .diploma-schedule-content {
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(142,185,224,0.6);
}
body[data-theme="dark"] .diploma-schedule-content strong {
    color: rgba(255,255,255,0.95);
}
body[data-theme="dark"] .diploma-schedule-content p {
    color: rgba(255,255,255,0.8);
}

/* График отработки диплома — страница таблицы */
.diploma-schedule-page .diploma-schedule-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}
.diploma-schedule-page .diploma-schedule-table-wrap > table {
    margin: 0 auto;
}
.diploma-schedule-page .diploma-schedule-table {
    min-width: 400px;
    max-width: 720px;
}
.diploma-schedule-page .diploma-schedule-table tbody tr:nth-child(odd) {
    background: rgba(15, 70, 133, 0.04);
}
.diploma-schedule-page .diploma-schedule-table tbody tr:nth-child(even) {
    background: #fff;
}
.diploma-schedule-page .diploma-schedule-total-row {
    background: rgba(15, 70, 133, 0.12) !important;
    font-weight: 600;
}
.diploma-schedule-page .diploma-schedule-export-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.diploma-schedule-page .diploma-schedule-dates-block {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.diploma-schedule-page .diploma-schedule-admin-actions {
    padding-top: 0.5rem;
}
body[data-theme="dark"] .diploma-schedule-page .diploma-schedule-dates-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}
body[data-theme="dark"] .diploma-schedule-page .diploma-schedule-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}
body[data-theme="dark"] .diploma-schedule-page .diploma-schedule-table tbody tr:nth-child(even) {
    background: transparent;
}
body[data-theme="dark"] .diploma-schedule-page .diploma-schedule-total-row {
    background: rgba(15, 70, 133, 0.25) !important;
}
body[data-theme="dark"] .diploma-schedule-page .diploma-schedule-table td,
body[data-theme="dark"] .diploma-schedule-page .diploma-schedule-table th,
body[data-theme="dark"] .course-schedule-page .course-schedule-table td,
body[data-theme="dark"] .course-schedule-page .course-schedule-table th {
    color: #e0e6ed !important;
}
/* Переопределение ячеек с белым фоном (inline style) в тёмной теме */
body[data-theme="dark"] .diploma-schedule-table td[style*="background"],
body[data-theme="dark"] .course-schedule-table td[style*="background"],
body[data-theme="dark"] .table td[style*="background"] {
    background: rgba(21, 34, 56, 0.5) !important;
    color: #e0e6ed !important;
}

/* График отработки курсовой — по аналогии с дипломом */
.course-schedule-page .course-schedule-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.course-schedule-page .course-schedule-table { min-width: 400px; max-width: 720px; }
.course-schedule-page .course-schedule-table tbody tr:nth-child(odd) { background: rgba(15, 70, 133, 0.04); }
.course-schedule-page .course-schedule-table tbody tr:nth-child(even) { background: #fff; }
.course-schedule-page .course-schedule-total-row { background: rgba(15, 70, 133, 0.12) !important; font-weight: 600; }
.course-schedule-page .course-schedule-export-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.course-schedule-page .course-schedule-dates-block { padding: 1rem; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 6px; }
.course-schedule-page .course-schedule-admin-actions { padding-top: 0.5rem; }
body[data-theme="dark"] .course-schedule-page .course-schedule-dates-block { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
body[data-theme="dark"] .course-schedule-page .course-schedule-table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
body[data-theme="dark"] .course-schedule-page .course-schedule-table tbody tr:nth-child(even) { background: transparent; }
body[data-theme="dark"] .course-schedule-page .course-schedule-total-row { background: rgba(15, 70, 133, 0.25) !important; }

/* Блок 4: Запрещённые приёмы — статические карточки, 6 в ряд */
.req-forbidden-blocks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.req-forbidden-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.req-forbidden-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.req-forbidden-block-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F4685;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
    min-height: 2.6em;
}
.req-forbidden-block-title i {
    flex-shrink: 0;
}
.req-forbidden-block-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.req-forbidden-icon {
    font-size: 1.2rem;
    color: #dc3545;
    flex-shrink: 0;
}

.req-forbidden-block-intro {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.req-forbidden-block-collapsed .req-forbidden-block-intro {
    padding-bottom: 0.25rem;
}

.req-forbidden-block-btn {
    align-self: flex-start;
    margin-top: auto;
}

.req-forbidden-block-list {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.req-forbidden-block-list li {
    margin-bottom: 0.5rem;
}

.req-forbidden-block-list li:last-child {
    margin-bottom: 0;
}

.req-forbidden-block-list strong {
    color: #0F4685;
}

body[data-theme="dark"] .req-forbidden-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    border-left-color: #dc3545;
}

body[data-theme="dark"] .req-forbidden-block-intro {
    color: #b0b8c4;
}

body[data-theme="dark"] .req-forbidden-block-list {
    color: rgba(255,255,255,0.85);
}

body[data-theme="dark"] .req-forbidden-block-title {
    color: #8eb9e0;
}

body[data-theme="dark"] .req-forbidden-block-list strong {
    color: #8eb9e0;
}

@media (max-width: 1200px) {
    .req-forbidden-blocks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .req-forbidden-blocks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .req-forbidden-blocks { grid-template-columns: 1fr; }
}

/* Страница детального просмотра блока запрещённых приёмов */
.req-forbidden-detail-intro {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #dee2e6;
}

body[data-theme="dark"] .req-forbidden-detail-intro {
    border-bottom-color: rgba(255,255,255,0.15);
}

.req-forbidden-detail-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

body[data-theme="dark"] .req-forbidden-detail-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    border-left-color: #dc3545;
}

.req-forbidden-detail-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F4685;
    margin: 0 0 1rem;
}

body[data-theme="dark"] .req-forbidden-detail-list-title {
    color: #8eb9e0;
}

.req-forbidden-detail-list {
    margin: 0;
    padding-left: 1.5rem;
}

.requirement-item-title .req-forbidden-icon {
    margin-right: 0.35rem;
    color: #dc3545;
}

/* Типографика: стили блока типографики */
#block3 .req-typography-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
}
.req-typography-card {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 7px;
    border: 3px solid #134a82;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.req-typography-card .blockname {
    color: #003b76;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 2.6em;
}
.req-typography-card .blockname i { color: #134a82; }
body[data-theme="dark"] .req-typography-card {
    background-color: rgba(21, 34, 56, 0.6) !important;
    border-color: rgba(69, 162, 214, 0.5);
}
body[data-theme="dark"] .req-typography-card .blockname,
body[data-theme="dark"] .req-typography-card .blockname i,
body[data-theme="dark"] .req-typography-card-content,
body[data-theme="dark"] .req-typography-card .column,
body[data-theme="dark"] .req-typography-card .column li {
    color: #e0e6ed !important;
}
body[data-theme="dark"] .req-typography-card .myprimer1 {
    background-color: rgba(15, 70, 133, 0.25) !important;
    color: #e0e6ed;
}
body[data-theme="dark"] .req-typography-card .formatl,
body[data-theme="dark"] .req-typography-card .oprede2 { color: #8eb9e0 !important; }
.req-typography-card-content {
    overflow: hidden;
    line-height: 1.5;
    max-height: 9em;
    display: block;
}
#block3 .req-typography-card .req-typography-card-content {
    max-height: 9em !important;
    overflow: hidden !important;
    min-height: 0;
}
/* Меню переходов внутри блоков типографики (Оформление цитат, сносок и т.д.) */
.req-typography-inner-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
.req-typography-inner-menu-item {
    white-space: nowrap;
}

/* Сетка: равная ширина кнопок, увеличенная ячейка (типографика, модификатор --pills) */
.req-typography-inner-menu.req-typography-inner-menu--pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.req-typography-inner-menu--pills .req-typography-inner-menu-item.req-typography-pill-btn {
    white-space: normal;
}

/* Заливка и иконки — только меню с модификатором --pills (карточки типографики); стр. 175 без модификатора */
.req-typography-inner-menu--pills .req-typography-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    border-radius: 7px;
    background: #0f4685;
    color: #fff !important;
    border: none;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.req-typography-inner-menu--pills .req-typography-pill-btn:hover {
    background: #154a96;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(15, 70, 133, 0.35);
}

.req-typography-inner-menu--pills .req-typography-pill-btn:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.req-typography-inner-menu--pills .req-typography-pill-btn i {
    opacity: 0.95;
    flex-shrink: 0;
    font-size: 1.25em;
    line-height: 1;
    min-width: 1.25em;
    text-align: center;
}

body[data-theme="dark"] .req-typography-inner-menu--pills .req-typography-pill-btn {
    background: #2563a8;
    color: #f0f4fa !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .req-typography-inner-menu--pills .req-typography-pill-btn:hover {
    background: #2d6bb5;
    color: #fff !important;
}
.req-typography-card .three-columns-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}
.req-typography-card .column { flex: 1; min-width: 180px; }
.req-typography-card .column ul { padding-left: 20px; margin: 0; line-height: 1.3; }
.req-typography-card .column li { margin-bottom: 8px; }
/* Пример: светлозелёный блок — слева текст, справа пример */
.example-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    align-items: flex-start;
    background-color: rgba(171,249,201,0.36);
    padding: 15px;
    border-radius: 7px;
}
.example-container .example-text {
    flex: 1 1 50%;
    min-width: 200px;
    order: 1;
}
.example-container .example-image {
    flex: 1 1 var(--req-example-figure-width);
    min-width: var(--req-example-figure-min-width);
    max-width: 100%;
    order: 2;
}
.example-container .example-image img { max-width: 100%; height: auto; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.example-container .formatl { font-weight: 600; color: #0f4685; margin-bottom: 8px; }
.example-container .oprede2 { font-weight: 600; color: #0f4685; }
.example-container .myprimer1 { font-family: 'Times New Roman', serif; font-size: 0.95em; background-color: #f8f8f8; padding: 10px; text-align: justify; line-height: 1.4; border-radius: 4px; }
/* Пример оформленного списка библиографии (стр. 182): Times New Roman 14pt, текст по ширине, заголовки по левому краю */
.req182-biblio-example {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #28a745;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}
.req182-biblio-example .req182-biblio-title { font-weight: 700; text-align: left; margin-bottom: 0.5rem; color: #0F4685; }
.req182-biblio-example .req182-biblio-heading { font-weight: 700; text-align: left; margin: 1rem 0 0.5rem 0; }
.req182-biblio-example .req182-biblio-text { text-align: justify; margin: 0.25rem 0; text-indent: 1.25cm; }
.req182-biblio-example .req182-biblio-text:first-of-type { text-indent: 0; }
.req182-biblio-example .req182-biblio-footer { text-align: center; font-size: 0.9em; color: #555; margin-top: 1rem; padding: 0.5rem; background: #e8f4f8; border-radius: 4px; }
.req182-biblio-example a { color: #0d6efd; text-decoration: underline; }
.example-download-wrap {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.example-download-btn { display: inline-flex; align-items: center; gap: 6px; }
.req-typography-card .example-container {
    padding: 15px;
    border-radius: 7px;
}
.req-typography-card .example-text { flex: 1 1 50%; min-width: 200px; order: 1; }
.req-typography-card .example-image { flex: 1 1 var(--req-example-figure-width); min-width: var(--req-example-figure-min-width); order: 2; }
.req-typography-card .example-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.req-typography-card .formatl { font-weight: 600; color: #0f4685; margin-bottom: 8px; }
.req-typography-card .oprede2 { font-weight: 600; color: #0f4685; }
.req-typography-card .myaksent { font-weight: 600; }
.req-typography-card .myprimer1 {
    font-family: 'Times New Roman', serif;
    font-size: 0.95em;
    background-color: #f8f8f8;
    padding: 10px;
    text-align: justify;
    line-height: 1.4;
    border-radius: 4px;
}
.req-typography-card .req-typography-more { margin-top: 12px; }
/* Блок «Запрещено»/«Неправильно»/«Ошибка» — светлорозовый */
.example-bad-container {
    margin: 15px 0;
    padding: 15px;
    border-radius: 7px;
    background-color: rgba(255, 200, 200, 0.6);
    border: 1px solid rgba(200, 80, 80, 0.4);
}
.example-bad-container .formatl { font-weight: 600; color: #c0392b; margin-bottom: 8px; }
.example-bad-container .oprede2 { font-weight: 600; color: #c0392b; }
.example-bad-container .myprimer1 { font-family: 'Times New Roman', serif; font-size: 0.95em; background-color: #fff5f5; padding: 10px; border-radius: 4px; }

.req-annotation-img-wrap {
    display: block;
    line-height: 0;
}
.req-annotation-example-img {
    max-width: 100%;
    height: auto;
    max-height: 690px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
}
.req-annotation-img-wrap .req-annotation-example-img {
    max-height: 690px;
}
.example-image .req-annotation-img-wrap {
    overflow: visible;
}
.req-annotation-img-zoomable .req-annotation-example-img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Компактные таблицы в примерах */
.compact-table { font-size: 0.85em; width: 100%; border-collapse: collapse; margin: 10px 0; }
.compact-table th, .compact-table td { padding: 6px 8px; border: 1px solid #ddd; vertical-align: top; }
.compact-table th { background-color: #0f4685; color: white; font-weight: 600; text-align: center; }
.compact-table tr:nth-child(even) { background-color: #f8f9fa; }
.compact-table .yes { background-color: #d4edda; color: #155724; font-weight: bold; text-align: center; }
/* Сноски в примерах */
.footnote-example { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #ccc; font-size: 0.9em; color: #073d93; }
.footnote-example i,
.footnote-example em,
.req-example-html-preview .mock-footnote i,
.req-example-html-preview .mock-footnote em {
    font-style: normal;
}

/* Рисунки-примеры, оформленные через код (без внешних изображений) */
.req-figure-mock { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 20px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 6px; text-align: center; }
.req-figure-mock-schema { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 20px; background: #fff; border: 1px solid #ddd; border-radius: 6px; }
.req-figure-mock-schema .box { width: 120px; height: 40px; background: #0f4685; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.85em; border-radius: 4px; }
.req-figure-mock-schema .arrow { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid #0f4685; }
.req-figure-mock-chart { display: flex; align-items: flex-end; gap: 12px; height: 100px; padding: 15px; background: #fff; border: 1px solid #ddd; border-radius: 6px; }
.req-figure-mock-chart .bar { width: 30px; background: linear-gradient(to top, #0f4685, #1a6bc4); border-radius: 4px 4px 0 0; }
body[data-theme="dark"] .req-figure-mock-chart {
    background: rgba(21, 34, 56, 0.6);
    border-color: rgba(69, 162, 214, 0.4);
    color: #e0e6ed;
}
body[data-theme="dark"] .req-figure-mock {
    background: rgba(21, 34, 56, 0.6) !important;
    border-color: rgba(69, 162, 214, 0.4);
    color: #e0e6ed;
}
body[data-theme="dark"] .req-figure-mock-schema,
body[data-theme="dark"] .req-figure-mock-diagram {
    background: rgba(21, 34, 56, 0.6) !important;
    border-color: rgba(69, 162, 214, 0.4);
    color: #e0e6ed;
}
body[data-theme="dark"] .req-figure-mock-diagram .node {
    background: rgba(15, 70, 133, 0.3);
    border-color: rgba(69, 162, 214, 0.6);
    color: #e0e6ed;
}
.req-figure-mock-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; padding: 20px; background: #fff; border: 1px solid #ddd; border-radius: 6px; }
.req-figure-mock-diagram .node { padding: 10px 16px; background: #e8f4fd; border: 2px solid #0f4685; border-radius: 6px; font-size: 0.9em; }
/* Схема «ссылка на рисунок» — умещается в колонке примера */
.example-container .example-image .req-figure-mock-diagram.req-figure-mock-fit,
.req-figure-mock-diagram.req-figure-mock-fit {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding: 10px 8px;
    min-height: 0;
}
.req-figure-mock-diagram.req-figure-mock-fit .node {
    font-size: 0.72em;
    padding: 6px 8px;
    word-break: break-word;
}
.req-figure-mock-diagram.req-figure-mock-fit .diagram-arrow-tight {
    font-size: 1.1em !important;
    line-height: 1;
}
.req-figure-mock-inline { display: inline-block; width: 70px; height: 30px; background-color: #27ae60; border: 2px solid #1e8449; border-radius: 4px; vertical-align: middle; }

/* Требования к многостраничным приложениям (124–129) */
.req-multipage-block { margin: 0; }
.req-multipage-header {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.95em; color: #0f4685;
    margin-bottom: 0.75rem;
}
.req-multipage-icon { color: #426ee6; font-size: 1.1em; }
.req-multipage-intro { margin-bottom: 0.75rem; line-height: 1.5; }
.req-multipage-accent {
    font-weight: 700; color: #0f4685;
}
.req-multipage-list {
    list-style: none; padding-left: 0; margin: 0.75rem 0;
}
.req-multipage-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin-bottom: 0.45rem; line-height: 1.45;
}
.req-multipage-bullet {
    color: #426ee6; font-size: 0.85em; margin-top: 0.2em; flex-shrink: 0;
}
.req-multipage-example { margin-top: 1rem; }
.req-multipage-img {
    max-width: 100%; height: auto; max-height: 280px;
    border: 1px solid #dee2e6; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.req-multipage-schema { margin: 1rem 0; }
.req-multipage-schema-title {
    font-weight: 600; color: #0f4685; margin-bottom: 0.5rem; font-size: 0.95em;
}
.req-multipage-schema-title i { margin-right: 0.35rem; }
.req-figure-mock-multipage {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 16px; background: #f0f7ff; border: 1px solid #b8d4f0; border-radius: 6px;
}
.req-mp-page {
    padding: 6px 12px; background: #fff; border: 2px solid #0f4685;
    border-radius: 4px; font-size: 0.9em; color: #0f4685;
}
.req-mp-arrow { color: #0f4685; font-weight: bold; }
.req-figure-mock-textref {
    padding: 10px 14px; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 6px;
    font-family: 'Times New Roman', serif; font-style: italic;
    min-width: 0; /* позволить flex сжимать по содержимому */
    white-space: normal; word-wrap: break-word;
}
.req-textref-sample { font-size: 0.95em; line-height: 1.4; }
.req-multipage-example-figure {
    min-width: 220px; flex: 1 1 38%;
}
.req-multipage-example .req-multipage-example-figure .req-figure-mock { width: 100%; min-width: 180px; }
.req-multipage-example-inline {
    margin-top: 1rem; padding: 15px; background: rgba(171,249,201,0.36); border-radius: 7px;
}
.req-multipage-example-inline .formatl { font-weight: 600; color: #0f4685; margin-bottom: 8px; }
.req-multipage-example-inline .myprimer1 { margin-bottom: 12px; }
.req-multipage-textref-inline { margin-top: 10px; max-width: 100%; }
.req-figure-mock-appendix {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 6px;
}
.req-app-letter { font-weight: 700; font-size: 1em; color: #e65100; }
.req-app-desc { font-size: 0.9em; color: #5d4037; }

body[data-theme="dark"] .req-multipage-header,
body[data-theme="dark"] .req-multipage-accent { color: #5a9fd4; }
body[data-theme="dark"] .req-multipage-icon,
body[data-theme="dark"] .req-multipage-bullet { color: #7eb8e8; }
body[data-theme="dark"] .req-figure-mock-multipage { background: rgba(15,70,133,0.2); border-color: rgba(69,162,214,0.4); }
body[data-theme="dark"] .req-mp-page { background: rgba(0,0,0,0.3); border-color: #5a9fd4; color: #8eb9e0; }
body[data-theme="dark"] .req-figure-mock-textref { background: rgba(46,125,50,0.2); border-color: rgba(46,125,50,0.5); }
body[data-theme="dark"] .req-figure-mock-appendix { background: rgba(230,81,0,0.15); border-color: rgba(255,204,128,0.5); }
body[data-theme="dark"] .req-app-letter { color: #ffb74d; }
body[data-theme="dark"] .req-app-desc { color: #b0bec5; }

/* HTML-предпросмотр примеров (вместо изображений) */
.req-example-html-preview { min-height: 120px; padding: 12px; background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; font-size: 0.9em; line-height: 1.4; }
.req-example-html-preview .mock-doc { font-family: 'Times New Roman', serif; }
.req-example-html-preview .mock-h1 { text-align: center; font-weight: 700; font-size: 1.05em; margin: 8px 0; }
.req-example-html-preview .mock-h2 { font-weight: 700; margin-left: 1em; margin: 6px 0; }
.req-example-html-preview .mock-h3 { text-decoration: underline; margin-left: 1em; margin: 4px 0; }
.req-example-html-preview .mock-footnote { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #aaa; font-size: 0.9em; color: #333; }
.req-example-html-preview .mock-table-caption { text-align: center; font-weight: 700; margin-bottom: 6px; }
.req-example-html-preview .mock-formula { text-align: center; font-family: 'Times New Roman', serif; margin: 10px 0; }
.req-example-html-preview .mock-note { font-size: 0.85em; font-style: italic; margin-top: 6px; }
.req-example-html-preview .mock-label { font-size: 0.75em; color: #999; display: block; margin-bottom: 2px; }
#block3 {
    overflow: hidden;
}
#block3 .req-typography-card-content {
    overflow: hidden;
}
@media (max-width: 992px) {
    #block3 .req-typography-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    #block3 .req-typography-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .req-typography-card .three-columns-wrapper { flex-direction: column; }
    .example-container, .req-typography-card .example-container { flex-direction: column; }
    .requirement-layout-cols { flex-direction: column; }
    .requirement-imgs-left-out, .requirement-imgs-right-out { max-width: none; }
    .requirement-imgs-left-in, .requirement-imgs-right-in { float: none; max-width: none; margin: 0 0 1rem 0; }
}

/* Шрифт по умолчанию для требований: Times New Roman, 14pt */
.requirements-page .requirement-content, .requirement-item-page .requirement-content,
.requirements-page .req-typography-card, .requirement-item-page .req-typography-card,
.requirements-page .requirement-card-desc, .requirement-item-page .requirement-item-title,
.example-container, .example-bad-container {
    font-family: 'Times New Roman', Times, serif;
}
.requirements-page .requirement-content, .requirement-item-page .requirement-content,
.requirements-page .req-typography-card, .requirement-item-page .req-typography-card,
.requirements-page .requirement-card-desc, .example-container .myprimer1, .example-bad-container .myprimer1 {
    font-size: 14pt;
}

/* Страница отдельного требования (ширина как у блока новостей) */
.requirement-item-page {
    max-width: 1600px;
    margin: 0 auto;
}

/* Оформление страницы требования id=169 (объём, поля, типографика, НИР) */
.req169-formatted {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
}
.req169-formatted .req169-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.req169-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}
body[data-theme="dark"] .req169-section {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
.req169-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0F4685;
    background: rgba(15, 70, 133, 0.12);
    padding: 8px 12px;
    margin: 0 0 1rem;
    border-radius: 4px;
}
.req169-icon {
    font-size: 1.2rem;
    color: #0F4685;
}
.req169-value {
    color: #0F4685;
    font-weight: 600;
}
.req169-list {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.7;
}
.req169-list li {
    margin-bottom: 0.35rem;
}
.req169-grid.req169-volume {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1.5rem;
}
@media (max-width: 768px) {
    .req169-grid.req169-volume { grid-template-columns: repeat(2, 1fr); }
}
.req169-volume-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.req169-volume-title {
    font-weight: 500;
    color: #333;
}
.req169-volume-icon {
    margin-right: 0.4em;
    color: #0f4685;
    font-size: 0.95em;
}
body[data-theme="dark"] .req169-volume-title { color: rgba(255,255,255,0.9); }
body[data-theme="dark"] .req169-volume-icon { color: #8eb9e0; }
.req169-volume-item .req169-value {
    font-size: 0.95em;
}
.req169-typography-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.req169-typography-wrap .req169-list {
    flex: 1;
    min-width: 0;
}
.req169-typography-image {
    flex: 0 0 280px;
    min-width: 200px;
    cursor: pointer;
}
.req169-typography-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}
@media (max-width: 768px) {
    .req169-typography-wrap { flex-direction: column; }
    .req169-typography-image { flex: none; width: 100%; max-width: 350px; }
}

/* Оформление страницы требования id=171 (требования к системе / дистрибутив) */
.req171-formatted { margin-bottom: 2rem; }
.req171-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .req171-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .req171-grid { grid-template-columns: 1fr; }
}
.req171-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body[data-theme="dark"] .req171-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
.req171-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
body[data-theme="dark"] .req171-block-header { border-bottom-color: rgba(255,255,255,0.15); }
.req171-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #0F4685;
    color: #fff;
    border-radius: 50%;
}
.req171-icon { font-size: 1.35rem; }
.req171-block-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0F4685;
    line-height: 1.3;
}
body[data-theme="dark"] .req171-block-title { color: #8eb9e0; }
.req171-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #444;
}
body[data-theme="dark"] .req171-list { color: rgba(255,255,255,0.88); }
.req171-list li { margin-bottom: 0.5rem; }
.req171-list code {
    background: rgba(15, 70, 133, 0.12);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
body[data-theme="dark"] .req171-list code {
    background: rgba(15, 70, 133, 0.25);
}

/* Оформление требования 154 — организационные моменты и таблица структуры */
.req154-formatted {
    line-height: 1.6;
}
.req154-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary, #0f4685);
    margin: 0 0 1rem 0;
}
.req154-icon {
    font-size: 1.2rem;
}
.req154-org-list {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}
.req154-org-list > li {
    margin-bottom: 0.5rem;
}
.req154-org-list ul {
    margin: 0.5rem 0 0.25rem 0;
    padding-left: 1.25rem;
}
.req154-bullet {
    margin-right: 6px;
    color: var(--color-primary);
    font-size: 0.75em;
}
.req154-check {
    margin-right: 6px;
    color: #28a745;
}
.req154-table-wrap {
    overflow-x: auto;
    margin: 1rem auto 0;
    max-width: 1200px;
    min-width: 860px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(15, 70, 133, 0.08);
    border: 1px solid #dee2e6;
    background: #fff;
}
.req154-structure-table {
    font-size: 0.95rem;
    width: 100%;
    min-width: 850px;
    margin: 0;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: visible;
    font-family: system-ui, "Segoe UI", sans-serif;
    table-layout: fixed;
}
.req154-structure-table thead {
    background: linear-gradient(135deg, #0f4685 0%, #1a5ba0 100%);
    color: #fff;
}
.req154-structure-table thead th {
    padding: 0.85rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.req154-structure-table thead th:first-child {
    width: 48px;
    text-align: center;
}
.req154-structure-table thead th:nth-child(2),
.req154-structure-table tbody td:nth-child(2) {
    min-width: 360px;
    white-space: nowrap;
}
.req154-structure-table thead th:nth-child(5),
.req154-structure-table tbody td:nth-child(5) {
    width: 240px;
    min-width: 240px;
    white-space: nowrap;
    overflow: visible;
}
.req154-structure-table thead th.req154-col-pages {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    text-align: center;
}
.req154-structure-table tbody tr {
    transition: background-color 0.15s ease;
}
.req154-structure-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.req154-structure-table tbody tr:hover {
    background: #e8f4fc !important;
}
.req154-structure-table tbody td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}
.req154-structure-table tbody td:first-child {
    text-align: center;
    color: #6c757d;
    font-weight: 500;
}
.req154-structure-table tbody td:nth-child(3),
.req154-structure-table tbody td:nth-child(4),
.req154-structure-table thead th.req154-col-pages {
    text-align: center;
    font-weight: 600;
}
.req154-structure-table thead th.req154-col-pages {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    background: transparent;
}
.req154-structure-table tbody td:nth-child(3),
.req154-structure-table tbody td:nth-child(4) {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    background: transparent;
    color: inherit;
}
.req154-structure-table .req154-sub-row td {
    padding-left: 2rem;
    font-style: italic;
    color: #495057;
}
.req154-structure-table .req154-sub-row td:first-child {
    padding-left: 1rem;
}
.req154-structure-table .req154-total-row {
    background: linear-gradient(135deg, #0f4685 0%, #1a5ba0 100%) !important;
    color: #fff;
    font-size: 1rem;
}
.req154-structure-table .req154-total-row td {
    border-bottom: none;
    padding: 0.85rem 1rem;
}
.req154-structure-table .req154-total-row td:nth-child(3),
.req154-structure-table .req154-total-row td:nth-child(4) {
    background: transparent !important;
    color: #fff;
}
body[data-theme="dark"] .req154-table-wrap {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
body[data-theme="dark"] .req154-structure-table thead {
    background: linear-gradient(135deg, #1a5ba0 0%, #0f4685 100%);
}
body[data-theme="dark"] .req154-structure-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}
body[data-theme="dark"] .req154-structure-table tbody tr:hover {
    background: rgba(15, 70, 133, 0.15) !important;
}
body[data-theme="dark"] .req154-structure-table tbody td {
    border-color: rgba(255,255,255,0.08);
}
body[data-theme="dark"] .req154-structure-table tbody td:nth-child(3),
body[data-theme="dark"] .req154-structure-table tbody td:nth-child(4) {
    background: transparent;
    color: inherit;
}
body[data-theme="dark"] .req154-structure-table .req154-total-row {
    background: linear-gradient(135deg, #1a5ba0 0%, #0f4685 100%) !important;
}
body[data-theme="dark"] .req154-structure-table .req154-total-row td:nth-child(3),
body[data-theme="dark"] .req154-structure-table .req154-total-row td:nth-child(4) {
    background: transparent !important;
    color: #fff;
}

/* Оформление «Требования к элементам» (req155) — структура пояснительной записки */
.req155-formatted { margin-bottom: 2rem; }
.req155-intro { font-size: 1rem; line-height: 1.5; }
.req155-blocks { display: flex; flex-direction: column; gap: 1rem; }
.req155-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.req155-block-main {
    background: rgba(15, 70, 133, 0.06);
    border-color: rgba(15, 70, 133, 0.25);
}
.req155-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary, #0F4685);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.req155-icon { color: var(--color-primary, #0F4685); }
.req155-block-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}
.req155-chapters { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.75rem; }
.req155-chapter {
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary, #0F4685);
}
.req155-chapter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem 0;
}
.req155-sublist {
    margin: 0;
    padding-left: 1.5rem;
    list-style: decimal;
}
.req155-sublist li { margin-bottom: 0.35rem; line-height: 1.4; }
body[data-theme="dark"] .req155-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .req155-block-main {
    background: rgba(15, 70, 133, 0.15);
    border-color: rgba(15, 70, 133, 0.4);
}
body[data-theme="dark"] .req155-block-desc { color: rgba(255,255,255,0.7); }
body[data-theme="dark"] .req155-chapter {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
    border-left-color: var(--color-accent);
}
body[data-theme="dark"] .req155-chapter-title { color: rgba(255,255,255,0.95); }

/* req155 контент из БД (структура с изображениями) */
.req155-section { margin-bottom: 2rem; }
.req155-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 992px) {
    .req155-with-sidebar { grid-template-columns: 1fr; }
}
.req155-section-text { min-width: 0; }
.req155-h3 {
    font-size: 1.1rem;
    color: var(--color-primary, #0F4685);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.req155-section-img {
    position: sticky;
    top: 1rem;
    text-align: center;
}
.req155-example-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
}
.req155-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.req155-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}
.req155-thumbs img:hover, .req155-thumbs img.active { border-color: #0F4685; }
.req155-main { background: #f8f9fa; padding: 1.25rem; border-radius: 8px; border-left: 4px solid #0F4685; }
.req155-main .req155-h3 { margin-top: 0; }
.req155-main img { margin: 8px 8px 8px 0; }
.req155-note { font-style: italic; color: #666; }
body[data-theme="dark"] .req155-main { background: rgba(255,255,255,0.05); border-left-color: var(--color-accent); }
body[data-theme="dark"] .req155-note { color: rgba(255,255,255,0.6); }
body[data-theme="dark"] .req155-notes {
    background: rgba(15, 70, 133, 0.25) !important;
    border-left-color: rgba(69, 162, 214, 0.5);
    color: #e0e6ed;
}
body[data-theme="dark"] .req155-notes h4,
body[data-theme="dark"] .req155-notes ol { color: #e0e6ed; }

/* Оформление «Требования к наполнению системы» (редактируемые блоки из БД) */
.req-system-content-formatted { margin-bottom: 2rem; }
.req-system-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .req-system-content-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .req-system-content-grid { grid-template-columns: 1fr; }
}
.req-system-content-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body[data-theme="dark"] .req-system-content-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
.req-system-content-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
body[data-theme="dark"] .req-system-content-block-header { border-bottom-color: rgba(255,255,255,0.15); }
.req-system-content-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #0F4685;
    color: #fff;
    border-radius: 50%;
}
.req-system-content-icon { font-size: 1.35rem; }
.req-system-content-block-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0F4685;
    line-height: 1.3;
}
body[data-theme="dark"] .req-system-content-block-title { color: #8eb9e0; }
.req-system-content-block-body {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #444;
}
body[data-theme="dark"] .req-system-content-block-body { color: rgba(255,255,255,0.88); }
.req-system-content-block-body ul {
    margin: 0;
    padding-left: 1.25rem;
}
.req-system-content-block-body li { margin-bottom: 0.5rem; }
.req-system-content-block-body code {
    background: rgba(15, 70, 133, 0.12);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
body[data-theme="dark"] .req-system-content-block-body code {
    background: rgba(15, 70, 133, 0.25);
}

/* Страница требования 173 — организация материалов */
.req173-formatted { margin-bottom: 2rem; }
.req173-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text, #333);
}
.req173-control-panel {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.req173-control-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}
.req173-control-row:last-of-type { margin-bottom: 0; }
.req173-control-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
}
.req173-control-label i { margin-right: 0.25rem; color: #0F4685; }
.req173-folder-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.req173-tab-btn { white-space: nowrap; }
.req173-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.req173-filter .btn { border-radius: 0; }
.req173-filter .btn:first-child { border-radius: 0.25rem 0 0 0.25rem; }
.req173-filter .btn:last-child { border-radius: 0 0.25rem 0.25rem 0; }
.req173-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}
.req173-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.req173-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
}
.req173-legend-swatch.req173-da { background: #d4edda; }
.req173-legend-swatch.req173-uslovno { background: #fff3cd; }
.req173-legend-swatch.req173-dop { background: #f5c6cb; }
.req173-legend-swatch.req173-net { background: #fff; }
body[data-theme="dark"] .req173-control-panel { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.1); }
body[data-theme="dark"] .req173-control-label { color: rgba(255,255,255,0.8); }
body[data-theme="dark"] .req173-legend { color: rgba(255,255,255,0.6); }
.req173-table-section { margin-bottom: 2rem; }
.req173-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F4685;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.req173-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}
.req173-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
}
.req173-table th {
    background: #0F4685;
    color: #fff;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
}
.req173-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
}
.req173-table tbody tr:nth-child(even) { background: #f8f9fa; }
.req173-subfolder-cell { vertical-align: top; }
.req173-desc-cell { min-width: 200px; }
.req173-status-col { min-width: 120px; text-align: center; }
.req173-status-cell { text-align: center; min-width: 110px; }
.req173-status-cell.req173-da { background: #d4edda; }
.req173-status-cell.req173-uslovno { background: #fff3cd; }
.req173-status-cell.req173-dop { background: #f5c6cb; }
.req173-status-cell.req173-net { background: #fff; }
.req173-icon-orange { color: #fd7e14; margin-right: 0.25rem; }
.req173-icon-blue { color: #0F4685; margin-right: 0.25rem; }

/* Страница требования 174 — общие требования (оформление дипломного проекта) */
.req174-formatted {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    color: #000;
    line-height: 1.5;
    margin-bottom: 2rem;
}
body[data-theme="dark"] .req174-formatted { color: rgba(255,255,255,0.95); }
.req174-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .req174-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .req174-grid { grid-template-columns: 1fr; }
}
.req174-block-wide { grid-column: 1 / -1; }
@media (min-width: 993px) {
    .req174-block-wide { grid-column: span 3; }
}
.req174-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body[data-theme="dark"] .req174-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
.req174-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
body[data-theme="dark"] .req174-block-header { border-bottom-color: rgba(255,255,255,0.15); }
.req174-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #0F4685;
    color: #fff;
    border-radius: 50%;
}
.req174-icon { font-size: 1.35rem; }
.req174-block-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0F4685;
    line-height: 1.3;
}
body[data-theme="dark"] .req174-block-title { color: #8eb9e0; }
.req174-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
    text-align: justify;
}
.req174-list li { margin-bottom: 0.5rem; }
.req174-list-numbered { list-style: decimal; }
.req174-label { font-weight: 600; }
.req174-value {
    color: #0F4685;
    font-weight: 600;
}
body[data-theme="dark"] .req174-value { color: #8eb9e0; }
.req174-intro {
    margin: 0 0 1rem 0;
    text-indent: 1.25cm;
    text-align: justify;
}
.req174-examples {
    margin-top: 2rem;
}
.req174-examples-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F4685;
    margin-bottom: 1rem;
}
body[data-theme="dark"] .req174-examples-title { color: #8eb9e0; }
.req174-example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .req174-example-grid { grid-template-columns: 1fr; }
}
.req174-example-block {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}
body[data-theme="dark"] .req174-example-block {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}
.req174-example-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F4685;
    margin-bottom: 0.75rem;
}
body[data-theme="dark"] .req174-example-label { color: #8eb9e0; }
.req174-example-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    line-height: 1.5;
    color: #000;
    text-align: justify;
}
.req174-example-text p {
    margin: 0 0 0.5rem 0;
    text-indent: 1.25cm;
}
.req174-example-text p:first-child {
    text-indent: 0;
}
.req174-example-heading {
    font-weight: 700;
    text-align: center !important;
}
.req174-example-page {
    position: relative;
    min-height: 120px;
    border: 1px dashed #adb5bd;
    border-radius: 4px;
    padding: 1rem;
}
.req174-example-page-content {
    font-size: 0.85rem;
    color: #6c757d;
}
.req174-example-page-number {
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-size: 14pt;
    font-weight: 600;
}

/* Страница требования 175 — списки в типографике */
.req175-formatted { margin-bottom: 2rem; }
.req175-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text, #333);
}
.req175-block {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.req175-block.req175-req {
    border: 2px solid #0F4685;
    background: #fff;
}
.req175-block.req175-errors {
    border: 2px solid #0F4685;
    background: rgba(15, 70, 133, 0.03);
}
.req175-block.req175-help {
    border-left: 4px solid #28a745;
    background: rgba(40, 167, 69, 0.06);
}
.req175-help-list { list-style: none; padding-left: 0; margin: 0.5rem 0; }
.req175-help-list li { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.req175-help-list li::before { content: '•'; position: absolute; left: 0; color: #28a745; font-weight: bold; }
.req175-help-list .req175-help-sublist { list-style: none; padding-left: 1.5rem; margin: 0.5rem 0 0 0; }
.req175-help-list .req175-help-sublist li::before { content: 'o'; font-style: italic; }
.req175-help-kbd { background: #f0f0f0; padding: 0.15em 0.4em; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 0.9em; border: 1px solid #ccc; }
.req175-block.req175-example {
    background: #d4edda;
    border: 2px solid #28a745;
}
.req175-block-title {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #0F4685;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.req175-block.req175-example .req175-block-title {
    background: #28a745;
}
.req175-block-body {
    padding: 1rem 1.25rem;
}
.req175-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}
.req175-col { flex: 1; min-width: 180px; }
.req175-checklist { list-style: none; padding: 0; margin: 0; }
.req175-checklist li::before { content: '✓ '; color: #0F4685; font-weight: bold; }
.req175-checklist li { margin-bottom: 0.5rem; }
.req175-errors { list-style: none; padding: 0; margin: 0; }
.req175-errors li::before { content: '✗ '; color: #dc3545; font-weight: bold; }
.req175-errors li { margin-bottom: 0.5rem; }
.req175-example-inner {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
}
.req175-example-left { flex: 1; min-width: 200px; }
.req175-example-right { flex: 0 0 var(--req-example-figure-width); min-width: var(--req-example-figure-min-width); }
.req175-figure-label { font-weight: 600; margin-bottom: 0.5rem; color: #155724; }
.req175-figure-inner, .req175-figure-box {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.req175-figure-box { margin-top: 0; }
.req175-code-list { margin: 0.5rem 0; }
.req175-annot { color: #dc3545; font-size: 0.9em; }
/* Пример маркерного списка: 14pt, тире, строчные, отступ 1,25 см */
.req175-marker-sample-wrap {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    line-height: 1.5;
    text-align: left;
    color: #212529;
}
.req175-marker-sample-wrap .req175-marker-heading {
    margin: 0 0 0.4em 0;
}
.req175-marker-sample-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.25cm;
}
.req175-marker-sample-list li {
    margin-bottom: 0.25em;
    padding-left: 0;
}
.req175-marker-sample-list .req175-annot {
    margin-left: 0.35em;
    font-size: 11pt;
    vertical-align: baseline;
}
body[data-theme="dark"] .req175-marker-sample-wrap { color: #e0e6ed; }
body[data-theme="dark"] .req175-marker-sample-wrap .req175-marker-heading { color: #e8eef5; }
.req175-inner-menu { margin-bottom: 1rem; }
.req175-example-icon { color: #fff; }
@media (max-width: 768px) {
    .req175-example-inner { flex-direction: column; }
    .req175-example-right { flex: 1 1 auto; }
}

/* Бейджи статусов в админке req_mat173 */
.req-mat173-badge.req-mat173-da { background: #d4edda; color: #155724; }
.req-mat173-badge.req-mat173-uslovno { background: #fff3cd; color: #856404; }
.req-mat173-badge.req-mat173-dop { background: #f5c6cb; color: #721c24; }
.req-mat173-badge.req-mat173-net { background: #e9ecef; color: #495057; }

/* Оформление страницы «Типы брошюровки» (калькулятор) */
.req-binding-formatted { margin-bottom: 2rem; }
.req-binding-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}
.req-binding-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F4685;
    margin: 1.5rem 0 1rem;
}
.req-binding-section-title:first-of-type { margin-top: 0; }
.req-binding-icon { font-size: 1.2rem; color: #0F4685; }
.req-binding-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}
.req-binding-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body[data-theme="dark"] .req-binding-table {
    background: rgba(255,255,255,0.05);
}
.req-binding-table th,
.req-binding-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}
body[data-theme="dark"] .req-binding-table th,
body[data-theme="dark"] .req-binding-table td {
    border-color: rgba(255,255,255,0.12);
}
.req-binding-table th {
    background: #0F4685;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}
.req-binding-table tbody tr:last-child td { border-bottom: none; }
.req-binding-table tbody tr:hover {
    background: rgba(15, 70, 133, 0.06);
}
body[data-theme="dark"] .req-binding-table tbody tr:hover {
    background: rgba(15, 70, 133, 0.15);
}

.req-binding-calculator {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(15, 70, 133, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(15, 70, 133, 0.2);
}
body[data-theme="dark"] .req-binding-calculator {
    background: rgba(15, 70, 133, 0.15);
    border-color: rgba(15, 70, 133, 0.3);
}
.req-binding-calc-desc { margin-bottom: 1rem; }
.req-binding-calc-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
@media (max-width: 576px) {
    .req-binding-calc-form { flex-direction: column; align-items: stretch; }
    .req-binding-calc-form input[type="number"] { width: 100%; }
}
.req-binding-calc-form label {
    font-weight: 600;
    margin-right: 4px;
}
.req-binding-calc-form input[type="number"] {
    width: 140px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
}
body[data-theme="dark"] .req-binding-calc-form input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: inherit;
}
.req-binding-result {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
}
.req-binding-result-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #155724;
}
body[data-theme="dark"] .req-binding-result-success {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    color: #7dd89a;
}
.req-binding-result-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #856404;
}
body[data-theme="dark"] .req-binding-result-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffeaa7;
}

.requirement-item-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.requirement-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.requirement-layout-cols {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.requirement-imgs-left-out, .requirement-imgs-right-out {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 320px;
}
.requirement-imgs-left-out .requirement-image-block,
.requirement-imgs-right-out .requirement-image-block { margin-bottom: 1rem; }
.requirement-main-content { flex: 1; min-width: 0; }
.requirement-content-with-floats { overflow: auto; }
.requirement-imgs-left-in {
    float: left;
    margin: 0 1rem 1rem 0;
    max-width: 45%;
}
.requirement-imgs-right-in {
    float: right;
    margin: 0 0 1rem 1rem;
    max-width: 45%;
}
.requirement-imgs-left-in .requirement-image-block,
.requirement-imgs-right-in .requirement-image-block { margin-bottom: 0.5rem; }

.requirement-image-block {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.req-image-lightbox {
    position: relative;
}
.req-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.req-lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.requirement-image-link {
    display: block;
    line-height: 0;
}

.requirement-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.requirement-image-actions {
    display: flex;
    gap: 8px;
    padding: 8px;
    flex-wrap: wrap;
}

.requirement-content {
    line-height: 1.7;
}

.requirement-content ul,
.requirement-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.requirement-content li {
    margin-bottom: 0.4rem;
}

.req-referat-structure .req-structure-list > li {
    margin-bottom: 1.2rem;
}

.req-referat-structure .req-structure-list > li > ul {
    margin-top: 0.5rem;
}

.req-intro-example .req-intro-diagram {
    max-width: 280px;
}
.req-intro-example .fig-float-end {
    float: right;
}
@media (max-width: 576px) {
    .req-intro-example .fig-float-end {
        float: none;
        margin: 1rem 0 !important;
    }
}
.req5-vstavka-iframe {
    min-height: 500px;
}
@media (min-width: 768px) {
    .req5-vstavka-iframe {
        min-height: 700px;
    }
}
.req-conclusion-structure .req-conclusion-intro {
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.req-conclusion-structure .req-conclusion-section {
    margin-bottom: 1.5rem;
}
.req-conclusion-structure .req-conclusion-h4 {
    font-size: 0.95rem;
    color: #1e4a76;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
}
.req-conclusion-structure .req-conclusion-example {
    background: #f4f8fc;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #1e4a76;
    margin: 0.4rem 0;
    font-size: 0.9rem;
}
.req-conclusion-structure .req-conclusion-list {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}
.req-conclusion-structure .req-conclusion-list li {
    margin-bottom: 0.75rem;
}

.req-bibliography-sample .req-bibliography-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e4a76;
    text-align: center;
    margin-bottom: 1.25rem;
}
.req-bibliography-sample .req-bibliography-section {
    margin-bottom: 1.5rem;
}
.req-bibliography-sample .req-bibliography-h5 {
    font-size: 0.95rem;
    color: #1e4a76;
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
}
.req-bibliography-sample .req-bibliography-desc {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.6rem;
}
.req-bibliography-sample .req-bibliography-list {
    margin: 0.25rem 0;
    padding-left: 1.5rem;
}
.req-bibliography-sample .req-bibliography-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.req-report-requirements .req-report-h4 { font-size: 0.95rem; color: #1e4a76; margin-bottom: 0.5rem; }
.req-report-requirements .req-report-h5 { font-size: 0.9rem; color: #1e4a76; margin-bottom: 0.35rem; margin-top: 0.75rem; }
.req-report-requirements .req-report-intro { margin-bottom: 0.75rem; }
.req-report-requirements .req-report-list { padding-left: 1.25rem; margin: 0.25rem 0; }
.req-report-requirements .req-report-list li { margin-bottom: 0.4rem; }
.req-report-requirements .req-report-section { margin-bottom: 0.75rem; }
.req-report-requirements .req-report-section ul { padding-left: 1.25rem; margin: 0.25rem 0; }
.req-report-requirements .req-report-example { background: #f4f8fc; padding: 0.4rem 0.6rem; border-radius: 6px; border-left: 3px solid #1e4a76; margin: 0.35rem 0; font-size: 0.9rem; }

.requirement-dynamic {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.requirement-attachments {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.requirement-attachments .btn {
    white-space: nowrap;
}

.requirement-to-notes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

body[data-theme="dark"] .requirement-image-block,
body[data-theme="dark"] .requirement-dynamic {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .requirement-dynamic,
body[data-theme="dark"] .requirement-dynamic table,
body[data-theme="dark"] .requirement-dynamic table td,
body[data-theme="dark"] .requirement-dynamic table th,
body[data-theme="dark"] .requirement-dynamic .chart-table,
body[data-theme="dark"] .requirement-dynamic .chart-table td,
body[data-theme="dark"] .requirement-dynamic .chart-table th {
    color: #e0e6ed !important;
}

/* Теория слева, слайдер справа — Рефераты и Практические */
.req-theory-slider-layout {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}
@media (max-width: 992px) {
    .req-theory-slider-layout { grid-template-columns: 1fr; }
}
.req-theory-left { min-width: 0; width: 100%; }
.req-theory-blocks { width: 100%; }
.req-theory-right { position: sticky; top: 1rem; }
@media (max-width: 992px) {
    .req-theory-right { position: static; }
}

.req-theory-block {
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.req-theory-block.req-theory-definition {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}
.req-theory-block .req-theory-block-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}
.req-theory-block.req-theory-definition .req-theory-block-icon { background: #4caf50; }

/* Добавления в теоретическом разделе — 100% ширины, заголовок сверху по центру */
.req-theory-block.req-theory-example {
    width: 100%;
    flex-direction: column;
    align-items: center;
}
.req-theory-block.req-theory-example .req-theory-block-icon {
    margin-bottom: 0.25rem;
}
.req-theory-block.req-theory-example .req-theory-block-title {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}
.req-theory-block.req-theory-example .req-theory-block-body {
    align-self: stretch;
    width: 100%;
}

.req-theory-block-body {
    flex: 1;
    min-width: 0;
    line-height: 1.7;
}
.req-theory-block-body h4, .req-theory-block-body h5 { margin-top: 0; }
.req-theory-block-body ul, .req-theory-block-body ol { margin: 0.5rem 0; padding-left: 1.25rem; }
.req-theory-block-body li { margin-bottom: 0.35rem; }

.req-theory-extra {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}
.req-theory-extra-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0F4685;
    border-radius: 8px 0 0 8px;
}
.req-theory-extra-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.req-theory-extra-list li { margin-bottom: 0.4rem; }

.req-theory-slider {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.req-theory-main-media {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 1rem;
}
.req-theory-main-img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 4px;
}
.req-theory-pdf-view {
    width: 100%;
    height: 420px;
    min-height: 360px;
    border: none;
}
.req-theory-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
}
.req-theory-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
    overflow-x: auto;
}
.req-theory-thumb {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.req-theory-thumb:hover { border-color: #0F4685; }
.req-theory-thumb.active { border-color: #0F4685; }
.req-theory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.req-theory-thumb-doc {
    font-size: 0.75rem;
    color: #0F4685;
}
.req-theory-main-media {
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.req-theory-main-media .req-theory-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.req-theory-main-media .req-theory-pdf-view {
    width: 100%;
    height: 100%;
    min-height: 280px;
}
.req-theory-right-placeholder {
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

body[data-theme="dark"] .req-theory-block.req-theory-definition {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}
body[data-theme="dark"] .req-theory-extra {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .req-theory-extra-accent { background: #8eb9e0; }
body[data-theme="dark"] .req-theory-slider {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
}
body[data-theme="dark"] .req-theory-main-media { background: rgba(0,0,0,0.2); }
body[data-theme="dark"] .req-theory-right-placeholder {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

/* ========== Страница «Реферат» ========== */
.req-icon-title {
    margin-right: 0.5rem;
}

/* ========== Онлайн-оценка (eval) ========== */
.eval-page .eval-code-form-wrap {
    max-width: 480px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: rgba(15, 70, 133, 0.06);
    border-radius: 8px;
}

.eval-page .eval-intro {
    margin-bottom: 1rem;
    color: #555;
}

.eval-page .eval-code-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.eval-page .eval-code-form .form-control {
    flex: 1;
}

.eval-page .eval-form-section {
    max-width: 720px;
    margin: 0 auto;
}

.eval-page .eval-participant-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(15, 70, 133, 0.08);
    border-radius: 8px;
}

.eval-page .eval-criteria-list {
    margin-bottom: 1.5rem;
}

.eval-page .eval-criterion-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
}

body[data-theme="dark"] .eval-page .eval-criterion-item {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.eval-page .eval-criterion-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.eval-page .eval-criterion-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.eval-page .eval-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.eval-page .eval-radio-label:hover {
    background: rgba(15, 70, 133, 0.1);
}

.eval-page .eval-result-box {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(15, 70, 133, 0.12), rgba(69, 162, 214, 0.08));
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.eval-page .eval-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.eval-page .eval-result-label {
    font-weight: 600;
}

.eval-page .eval-result-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-primary);
}

.eval-page .eval-result-value.eval-grade {
    font-size: 1.5rem;
}

.eval-page .eval-actions {
    margin-top: 1rem;
}

.eval-page .eval-lock-label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.eval-page .eval-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.referat-definition-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.referat-def-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.25rem;
    color: #22c55e;
}

.referat-purpose {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.referat-three-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .referat-three-cols {
        grid-template-columns: 1fr;
    }
}

.referat-text-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.referat-text-section h4 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.referat-text-section ul {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.referat-text-section li {
    margin-bottom: 0.5rem;
}

.referat-rec-subtitle {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.referat-rec-subtitle i {
    margin-right: 0.5rem;
}

.referat-rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.referat-rec-card .requirement-card-desc {
    -webkit-line-clamp: 4;
}

.ref-topics-accordion .accordion-button i {
    color: #0F4685;
}
body[data-theme="dark"] .ref-topics-accordion .accordion-item {
    background: rgba(21, 34, 56, 0.5);
    border-color: rgba(69, 162, 214, 0.3);
}
body[data-theme="dark"] .ref-topics-accordion .accordion-button {
    background: rgba(21, 34, 56, 0.6) !important;
    color: #e0e6ed !important;
    border-color: rgba(69, 162, 214, 0.3);
}
body[data-theme="dark"] .ref-topics-accordion .accordion-button i,
body[data-theme="dark"] .ref-topics-accordion .accordion-button::after {
    color: #8eb9e0 !important;
}
body[data-theme="dark"] .ref-topics-accordion .accordion-body {
    background: rgba(21, 34, 56, 0.4) !important;
    color: #e0e6ed;
}
body[data-theme="dark"] .ref-topics-accordion .ref-topic-desc,
body[data-theme="dark"] .ref-topics-accordion .ref-topic-content {
    color: #e0e6ed;
}

/* Блоки в стиле «Рекомендации» (practical) — для applications sections 1 и 2 */
.app-rec-style-block {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.app-rec-style-block .app-rec-intro {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: rgba(15, 70, 133, 0.06);
    border-left: 4px solid #0F4685;
    border-radius: 0 6px 6px 0;
}
.app-rec-style-block .app-purpose-grid-3,
.app-rec-style-block .requirements-cards-grid {
    margin-top: 0;
}
body[data-theme="dark"] .app-rec-style-block {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}
body[data-theme="dark"] .app-rec-style-block .app-rec-intro {
    background: rgba(15, 70, 133, 0.15);
    border-left-color: var(--color-accent);
}

body[data-theme="dark"] .referat-definition-box {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

/* ========== Страница «Приложения» ========== */
.referat-purpose-list {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.referat-purpose-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.app-what-include {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 1.5rem 0 1rem 0;
}

.app-purpose-cards .requirement-card-desc {
    -webkit-line-clamp: 4;
}

/* 1. Назначение приложений — 3 колонки (карточки как на рисунке) */
.app-purpose-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.app-purpose-item {
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.app-purpose-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}
.app-purpose-item-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.45;
    flex: 1;
}
.app-purpose-item-btn { margin-top: 0.25rem; align-self: flex-start; }
@media (max-width: 992px) {
    .app-purpose-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .app-purpose-grid-3 { grid-template-columns: 1fr; }
}

/* 2. Общие требования и 3. Многостраничные — 6 карточек в ряд */
.requirements-cards-grid-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.requirements-cards-grid-6 .requirement-card { padding: 1rem; }
.requirements-cards-grid-6 .requirement-card-title { font-size: 0.9rem; min-height: auto; -webkit-line-clamp: 3; }
.requirements-cards-grid-6 .requirement-card-desc { -webkit-line-clamp: 4; font-size: 0.85rem; }
.requirements-cards-grid-6 .requirement-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
@media (max-width: 1200px) {
    .requirements-cards-grid-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .requirements-cards-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .requirements-cards-grid-6 { grid-template-columns: 1fr; }
}

/* Графики — 3 карточки в ряд, сверху последние (сортировка в PHP) */
.charts-cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 992px) {
    .charts-cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .charts-cards-grid-3 { grid-template-columns: 1fr; }
}

/* Страница просмотра графика — таблица */
body[data-theme="dark"] .chart-view-page .chart-table,
body[data-theme="dark"] .chart-view-page .chart-table td,
body[data-theme="dark"] .chart-view-page .chart-table th,
body[data-theme="dark"] .chart-view-page .chart-table .chart-cell-editable {
    color: #e0e6ed !important;
}
body[data-theme="dark"] .chart-view-page .chart-table-wrap {
    background: transparent;
}
body[data-theme="dark"] .chart-view-page .chart-cell-td[style*="background"] {
    background: rgba(21, 34, 56, 0.6) !important;
    color: #e0e6ed !important;
}

/* Дополнительные блоки — тёмная тема */
body[data-theme="dark"] .tools-table-container {
    background: rgba(21, 34, 56, 0.5) !important;
}
body[data-theme="dark"] .tools-table td,
body[data-theme="dark"] .tools-table th,
body[data-theme="dark"] .tools-purpose,
body[data-theme="dark"] .tools-count { color: #e0e6ed !important; }
body[data-theme="dark"] .ruler-page .ruler-ref-section,
body[data-theme="dark"] .ruler-page .ruler-ref-table tr:nth-child(even),
body[data-theme="dark"] .ruler-page .ruler-size-row {
    background: rgba(21, 34, 56, 0.5) !important;
}
body[data-theme="dark"] .ruler-page .ruler-ref-table td,
body[data-theme="dark"] .ruler-page .ruler-size-label,
body[data-theme="dark"] .ruler-page .ruler-hint { color: #e0e6ed !important; }
body[data-theme="dark"] .defense-section,
body[data-theme="dark"] .defense-card,
body[data-theme="dark"] .defense-table,
body[data-theme="dark"] .defense-error-card,
body[data-theme="dark"] .defense-dress-card,
body[data-theme="dark"] .defense-dress-body {
    background: rgba(21, 34, 56, 0.5) !important;
}
body[data-theme="dark"] .defense-section p,
body[data-theme="dark"] .defense-list li,
body[data-theme="dark"] .defense-table td,
body[data-theme="dark"] .defense-card-body li,
body[data-theme="dark"] .defense-error-card li,
body[data-theme="dark"] .defense-dress-list li,
body[data-theme="dark"] .defense-dress-intro { color: #e0e6ed !important; }
body[data-theme="dark"] .defense-tip,
body[data-theme="dark"] .defense-dress-tip,
body[data-theme="dark"] .defense-dress-tip-female,
body[data-theme="dark"] .defense-dress-tip-male,
body[data-theme="dark"] .defense-dress-tip strong,
body[data-theme="dark"] .defense-dress-section h4 {
    background: rgba(15, 70, 133, 0.2) !important;
    color: #e0e6ed !important;
    border-left-color: rgba(69, 162, 214, 0.5) !important;
}
body[data-theme="dark"] .req-app-purpose-accent,
body[data-theme="dark"] .req-app-purpose-block .fa-quote-right,
body[data-theme="dark"] .ref-topics-accordion .fa-quote-right {
    color: #fff !important;
}
body[data-theme="dark"] .color-wheel-guide .section,
body[data-theme="dark"] .color-wheel-guide h2,
body[data-theme="dark"] .color-wheel-guide h3,
body[data-theme="dark"] .color-wheel-guide h4,
body[data-theme="dark"] .color-wheel-guide p,
body[data-theme="dark"] .color-wheel-guide li { color: #e8eef5 !important; }

/* Страницы «Дизайн» (ee.html, help-design-*) — тёмная тема */
body[data-theme="dark"] .design-page .design-block-desc { color: #c8d4e4 !important; }
body[data-theme="dark"] .design-page .design-block-card {
    background: rgba(21, 34, 56, 0.72) !important;
    border-color: rgba(69, 162, 214, 0.45) !important;
}
body[data-theme="dark"] .design-page .design-block-header .blockname,
body[data-theme="dark"] .design-page .design-block-header .blockname i {
    color: #8eb9e0 !important;
}
body[data-theme="dark"] .design-page .design-block-content {
    border-top-color: rgba(69, 162, 214, 0.25) !important;
}
body[data-theme="dark"] .design-page .main-container h1,
body[data-theme="dark"] .design-page #mig {
    color: #e8eef5 !important;
}
body[data-theme="dark"] .design-page .textbox {
    background: rgba(21, 34, 56, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
body[data-theme="dark"] .design-page .textbox h1,
body[data-theme="dark"] .design-page .textbox h2 {
    color: #e8eef5 !important;
}
body[data-theme="dark"] .design-page .textbox > p,
body[data-theme="dark"] .design-page .textbox section > p {
    color: #d8e0eb !important;
}
body[data-theme="dark"] .design-page .textbox ul li,
body[data-theme="dark"] .design-page .textbox ol li {
    color: #d8e0eb !important;
}
body[data-theme="dark"] .design-page .color-model,
body[data-theme="dark"] .design-page .color-scheme {
    background: rgba(21, 34, 56, 0.65) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body[data-theme="dark"] .design-page .color-model h3,
body[data-theme="dark"] .design-page .color-scheme h3 {
    color: #e8eef5 !important;
}
body[data-theme="dark"] .design-page .color-model p,
body[data-theme="dark"] .design-page .color-scheme p {
    color: #d8e0eb !important;
}
body[data-theme="dark"] .design-page .tip {
    background: rgba(15, 70, 133, 0.28) !important;
    border-left-color: rgba(69, 162, 214, 0.65) !important;
    color: #e0e6ed !important;
}
body[data-theme="dark"] .design-page .tip strong { color: #fff !important; }
body[data-theme="dark"] .design-page .tip code {
    background: rgba(0, 0, 0, 0.35);
    color: #ffb4a8;
    padding: 2px 6px;
    border-radius: 4px;
}
body[data-theme="dark"] .design-page .font-card {
    background: rgba(21, 34, 56, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
}
body[data-theme="dark"] .design-page .font-name {
    color: #8eb9e0 !important;
}
body[data-theme="dark"] .design-page .features {
    color: #b8c8dc !important;
}
body[data-theme="dark"] .design-page .font-sample {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #e8edf3 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-theme="dark"] .design-page .font-card p {
    color: #c8d4e4 !important;
}
body[data-theme="dark"] .design-page .example-box {
    background: rgba(15, 70, 133, 0.2) !important;
    border-left-color: rgba(69, 162, 214, 0.7) !important;
}
body[data-theme="dark"] .design-page .example-title {
    color: #8eb9e0 !important;
}
body[data-theme="dark"] .design-page .example-content {
    color: #d8e0eb !important;
}
body[data-theme="dark"] .design-page .example-content code {
    background: rgba(0, 0, 0, 0.35);
    color: #e8c4b8;
    padding: 2px 5px;
    border-radius: 3px;
}
body[data-theme="dark"] .design-page .highlight-red-bold {
    color: #ff8a7a !important;
}
body[data-theme="dark"] .design-page .step-header {
    color: #8eb9e0 !important;
}
body[data-theme="dark"] .design-page .image-caption {
    color: #a8b8cc !important;
}
body[data-theme="dark"] .design-page .section h2,
body[data-theme="dark"] .design-page .section h3,
body[data-theme="dark"] .design-page .section > p,
body[data-theme="dark"] .design-page .guidelines h3 {
    color: #e8eef5 !important;
}
body[data-theme="dark"] .design-page .guideline-card {
    background: rgba(21, 34, 56, 0.72) !important;
    border-left-color: rgba(69, 162, 214, 0.65) !important;
}
body[data-theme="dark"] .design-page .guideline-card h3 {
    color: #e8eef5 !important;
}
body[data-theme="dark"] .design-page .guideline-card p,
body[data-theme="dark"] .design-page .section ul li,
body[data-theme="dark"] .design-page .section ol li {
    color: #d8e0eb !important;
}
/* Подписи на светлых образцах — тёмный текст (иначе нечитаемо на #fff / #f5f5f5) */
body[data-theme="dark"] .design-page .color-example-box[style*="#FFFFFF"] .color-example-label,
body[data-theme="dark"] .design-page .color-example-box[style*="#ffffff"] .color-example-label,
body[data-theme="dark"] .design-page .color-example-box[style*="#F5F5F5"] .color-example-label,
body[data-theme="dark"] .design-page .color-example-box[style*="#f5f5f5"] .color-example-label,
body[data-theme="dark"] .design-page .color-example-box[style*="#FAFAFA"] .color-example-label,
body[data-theme="dark"] .design-page .color-example-box[style*="#fafafa"] .color-example-label {
    color: #1a2332 !important;
}
body[data-theme="dark"] .design-page .color-box[style*="rgb(255, 255, 255)"] {
    color: #1a2332 !important;
    text-shadow: none !important;
}
body[data-theme="dark"] .design-page table th {
    background: rgba(15, 70, 133, 0.4) !important;
    color: #e8eef5 !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}
body[data-theme="dark"] .design-page table td {
    color: #d8e0eb !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
body[data-theme="dark"] .design-page .good-example {
    background: rgba(40, 167, 69, 0.18) !important;
    color: #e0e6ed !important;
    border-left-color: #48c774 !important;
}
body[data-theme="dark"] .design-page .bad-example {
    background: rgba(220, 53, 69, 0.16) !important;
    color: #e0e6ed !important;
    border-left-color: #e85d6d !important;
}
body[data-theme="dark"] .design-page .gradient-box,
body[data-theme="dark"] .design-page .color-example-box {
    border-color: rgba(255, 255, 255, 0.18) !important;
}
body[data-theme="dark"] .design-page .background-box {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body[data-theme="dark"] .app-purpose-item {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.15);
    border-left-color: var(--color-accent);
}
body[data-theme="dark"] .app-purpose-item-desc { color: rgba(255,255,255,0.75); }

/* Страницы «Назначение приложений» (app_purpose) — контент карточек */
.req-app-purpose-block { margin: 0; }
.req-app-purpose-intro {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 70, 133, 0.06);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
}
.req-app-purpose-intro p { margin: 0; line-height: 1.6; }
.req-app-purpose-accent {
    font-weight: 700;
    color: var(--color-primary);
}
.req-app-purpose-section {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}
.req-app-purpose-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
}
.req-app-purpose-ico { color: #426ee6; font-size: 1em; }
.req-app-purpose-section p { margin: 0; line-height: 1.55; font-size: 0.95rem; }
.req-app-purpose-norm {
    background: #f0f7ff;
    border-color: #b8d4f0;
}
body[data-theme="dark"] .req-app-purpose-intro {
    background: rgba(15, 70, 133, 0.15);
    border-left-color: var(--color-accent);
}
body[data-theme="dark"] .req-app-purpose-accent { color: #5a9fd4; }
body[data-theme="dark"] .req-app-purpose-section {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
body[data-theme="dark"] .req-app-purpose-norm {
    background: rgba(15, 70, 133, 0.12);
    border-color: rgba(69, 162, 214, 0.3);
}

/* Страницы «Общие требования» (app_requirements) — описание и примеры */
.req-app-req-block { margin: 0 0 1.5rem 0; }
.req-app-req-desc {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.req-app-req-desc .req-app-purpose-accent { font-weight: 700; color: var(--color-primary); }
.req-app-req-ico { color: #426ee6; margin-right: 0.25rem; }
.req-app-req-block .example-container { margin-top: 0.5rem; }
.req-app-req-block .myprimer1 code,
.req-app-req-block .myprimer1 .req-app-code-sample {
    display: block;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    white-space: pre-wrap;
    margin-top: 6px;
    line-height: 1.5;
}
body[data-theme="dark"] .req-app-req-block .myprimer1 code,
body[data-theme="dark"] .req-app-req-block .myprimer1 .req-app-code-sample {
    background: rgba(0,0,0,0.3);
    border-left-color: var(--color-accent);
}

/* Страницы «ЭТАПЫ РАЗРАБОТКИ ПРЕЗЕНТАЦИИ» (pres_stages) */
.req-pres-step {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
}
.req-pres-step h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}
.req-pres-step-ico { color: #426ee6; }
.req-pres-step p { margin: 0; line-height: 1.55; font-size: 0.95rem; }
.req-pres-step .req-app-purpose-accent { font-weight: 700; color: var(--color-primary); }
body[data-theme="dark"] .req-pres-step {
    background: rgba(255,255,255,0.04);
    border-left-color: var(--color-accent);
}

/* Изображения в разделах 2–4 презентаций */
.pres-example-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pres-pdf-embed embed {
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pres-pdf-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.pres-pdf-embed-grid .pres-pdf-embed {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}
.pres-pdf-embed-grid .pres-pdf-embed iframe {
    display: block;
    width: 100%;
    min-height: 360px;
}
@media (max-width: 768px) {
    .pres-pdf-embed-grid { grid-template-columns: 1fr; }
}

/* ========== Requirement 156: Электронные ресурсы (боковое меню) ========== */
.req156-dopdoc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: 500px;
    margin-top: 1rem;
}
@media (max-width: 992px) {
    .req156-dopdoc-layout { grid-template-columns: 1fr; }
}
.req156-nav {
    background: #f0f4f8;
    border-right: 1px solid #dee2e6;
    padding: 0;
}
.req156-nav-header {
    background: transparent;
    color: #333;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.req156-nav-header i { font-size: 1.2em; }
.req156-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    border: none;
    border-bottom: 1px solid #dee2e6;
    background: #e8eef5;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}
.req156-nav-item:hover { background: #d0dceb; }
.req156-nav-item.active { background: #0F4685; color: white; }
.req156-content { padding: 24px; background: #fff; }
.req156-panel { display: none; }
.req156-panel.active { display: block; }
.req156-requirements {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
}
.req156-requirements h4 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: #1565c0;
}
.req156-block-body ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.req156-block-body li { margin-bottom: 0.5rem; }
.req156-block-body code {
    background: rgba(0,0,0,0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
/* Логины и пароли обязательных пользователей в блоке «Пользователи системы» */
.req156-block-body .req-user-credential,
.req-system-content-block-body .req-user-credential {
    color: #c0392b;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}
/* Количество дополнительных пользователей (курсовая/диплом) */
.req156-block-body .req-extra-count,
.req-system-content-block-body .req-extra-count {
    color: #2980b9;
    font-weight: 700;
}
body[data-theme="dark"] .req156-block-body .req-user-credential,
body[data-theme="dark"] .req-system-content-block-body .req-user-credential { color: #e74c3c; }
body[data-theme="dark"] .req156-block-body .req-extra-count,
body[data-theme="dark"] .req-system-content-block-body .req-extra-count { color: #3498db; }
body[data-theme="dark"] .req156-nav { background: rgba(0,0,0,0.2); }
body[data-theme="dark"] .req156-nav-item { background: rgba(255,255,255,0.05); }
body[data-theme="dark"] .req156-nav-item.active { background: #0d3a6d; }

/* ========== Diploma: самоконтроль (таблица отработки) ========== */
.diploma-selfcheck-wrap { margin-top: 1rem; }
.diploma-selfcheck-collapse-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}
.diploma-selfcheck-collapse-header:hover { background: #dee2e6; }
.diploma-selfcheck-chevron {
    transition: transform 0.2s;
    color: #0F4685;
}
.diploma-selfcheck-badge {
    margin-left: auto;
    font-size: 0.85rem;
    color: #6c757d;
}
.diploma-selfcheck-table .diploma-selfcheck-pct { max-width: 100px; }
.diploma-selfcheck-warning { margin-top: 1rem; }

/* ========== Страница «Курсовые» ========== */
.course-features-list {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.course-features-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.course-brief-instruction {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}
body[data-theme="dark"] .course-brief-instruction {
    background: rgba(15, 70, 133, 0.25);
    border-left-color: rgba(69, 162, 214, 0.6);
    color: #e0e6ed;
}

/* ========== Страница «Демоэкзамен» ========== */
.de-info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.de-info-col {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
}

.de-col-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

.de-col-title i {
    margin-right: 8px;
}

.de-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.de-col-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.de-col-list li i {
    color: var(--color-primary);
    min-width: 20px;
}

.de-internet-supplement {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.de-supplement-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
}
.de-supplement-title i {
    margin-right: 8px;
}
.de-internet-supplement p {
    margin: 0 0 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.5;
}
.de-internet-supplement p i:first-child {
    position: absolute;
    left: 0;
}
.de-internet-supplement p:last-child {
    margin-bottom: 0;
}
body[data-theme="dark"] .de-internet-supplement {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}

.de-participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.de-participant-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.de-participant-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    flex-shrink: 0;
}

.de-participant-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.de-participant-title-wrap {
    min-height: 2.6em;
}
.de-participant-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0;
}

.de-participant-desc {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.de-participant-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    flex-shrink: 0;
}

.de-btn-equal {
    flex: 1;
    min-width: 0;
}

.de-btn-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.de-participant-detail {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    font-size: 0.9rem;
}

.de-participant-detail h4 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
}

.de-participant-detail p {
    margin: 0;
    line-height: 1.5;
}

.de-abbrev {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}
body[data-theme="dark"] .de-abbrev {
    background: rgba(15, 70, 133, 0.25) !important;
    color: #e0e6ed;
}

/* Алгоритм — раскрывающиеся пункты */
.de-algorithm-accordion {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.de-alg-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.de-alg-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: background 0.2s;
}

.de-alg-header:hover {
    background: #e9ecef;
}

.de-alg-header:not(.collapsed) {
    background: #e7f1ff;
    border-bottom: 1px solid #dee2e6;
}

.de-alg-num {
    flex-shrink: 0;
    font-weight: bold;
    color: var(--color-primary);
    min-width: 28px;
}

.de-alg-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.de-alg-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--color-primary);
}

.de-alg-header:not(.collapsed) .de-alg-chevron {
    transform: rotate(180deg);
}

.de-alg-body {
    border-top: none;
}

.de-alg-content {
    padding: 14px 16px 14px 44px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #fff;
}

/* Алгоритм — 5 блоков с кнопкой «Подробнее» */
.de-algorithm-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.de-alg-block-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.de-alg-block-card:hover {
    border-color: var(--color-primary, #0f4685);
    box-shadow: 0 4px 12px rgba(15, 70, 133, 0.12);
}
.de-alg-block-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}
.de-alg-block-icon {
    font-size: 1.75rem;
    color: var(--color-primary, #0f4685);
    flex-shrink: 0;
}
.de-alg-block-title-wrap {
    min-height: 2.6em;
}
.de-alg-block-title {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0 0 2px 0;
}
.de-alg-block-subtitle { font-size: 0.85rem; }
.de-alg-block-desc {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.de-alg-block-btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* Страница подробного содержания блока алгоритма */
.demoexam-algo-page .de-algo-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.demoexam-algo-page .de-algo-detail-icon {
    font-size: 2.5rem;
    color: var(--color-primary, #0f4685);
}
.demoexam-algo-page .de-algo-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}
.demoexam-algo-page .de-algo-detail-subtitle { font-size: 1rem; }
.demoexam-algo-page .de-algo-detail-content h4 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem 0;
    color: var(--color-primary, #0f4685);
}
.demoexam-algo-page .de-algo-detail-content h4:first-child { margin-top: 0; }
.demoexam-algo-page .de-algo-detail-content p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}
.demoexam-algo-page .de-algo-detail-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
}
.demoexam-algo-page .de-algo-detail-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
body[data-theme="dark"] .de-alg-block-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .de-alg-block-card:hover {
    border-color: rgba(142,185,224,0.5);
}
body[data-theme="dark"] .de-alg-block-desc { color: rgba(255,255,255,0.7); }

/* Запрещённые действия — квадратные мини-карточки */
.de-forbidden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.de-forbidden-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fff3cd;
    border: 2px solid #dc3545;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #856404;
}

.de-forbidden-card:hover {
    background: #ffe69c;
    border-color: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.2);
}

.de-forbidden-icon {
    font-size: 1.5rem;
    color: #dc3545;
}

.de-forbidden-label {
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.de-grading-scale {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

.de-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.de-module-card {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
}

.de-module-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.de-module-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.de-module-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
}

.de-module-desc {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
    margin-bottom: 1rem;
}

.de-module-btn {
    align-self: flex-start;
    margin-top: auto;
}

.de-task-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Блок задания модуля 1 — образец ГИА ДЭ БУ */
.de-task-block {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.6;
}
.de-task-block-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-primary, #0f4685);
    margin: 0 0 0.5rem 0;
}
.de-task-block-title i {
    margin-right: 8px;
}
.de-task-module-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 1rem 0;
}
.de-task-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 1rem 0 0.5rem 0;
}
.de-task-block p {
    margin: 0 0 0.75rem 0;
}
.de-task-role-list {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
    list-style: none;
}
.de-task-role-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.5rem;
}
.de-task-role-list li i {
    flex-shrink: 0;
    margin-top: 2px;
}
.de-task-materials {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}
.de-task-materials-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}
.de-task-materials-title i {
    margin-right: 8px;
}
.de-task-material-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.de-task-material-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body[data-theme="dark"] .de-task-block {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
body[data-theme="dark"] .de-task-module-title { color: rgba(255,255,255,0.9); }
body[data-theme="dark"] .de-task-materials { border-color: rgba(255,255,255,0.15); }

/* Списки в content (ol/ul) — вторая часть выделяется */
.de-content-list { margin: 0.75rem 0; padding-left: 1.5rem; }
.de-content-list li { margin-bottom: 0.4rem; }

/* Список определений dl */
.de-definition-list { margin: 0.75rem 0; }
.de-definition-list .de-dl-term { font-weight: bold; color: #0F4685; margin-top: 0.5rem; margin-bottom: 0.2rem; }
.de-definition-list .de-dl-term:first-child { margin-top: 0; }
.de-definition-list .de-dl-def {
    margin: 0 0 0.5rem 0; padding: 0.5rem 0.75rem;
    border: 1px solid #0F4685; border-radius: 6px;
    background: #e8f5e9; /* бледно-зелёный */
}

.de-inline-img { max-width: 100%; height: auto; border-radius: 4px; }

/* Карточки требований: списки и изображения в контенте */
.req-inline-img { max-width: 100%; height: auto; border-radius: 4px; }
/* Пагинация шаблона ТЗ — высота по рисунку примера (690px) */
.req-tz-template-paginated { position: relative; }
.req-tz-template-pages { position: relative; min-height: 690px; }
.req-tz-template-page {
    display: none;
    max-height: 690px;
    overflow-y: auto;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}
.req-tz-template-page.active { display: block; }
.req-tz-template-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
    padding: 8px 0;
}
.req-tz-template-pagination .req-tz-page-info { font-size: 0.9em; color: #555; }
.req-tz-template-pagination .req-tz-prev,
.req-tz-template-pagination .req-tz-next { min-width: 100px; }
body[data-theme="dark"] .req-tz-template-page {
    background: rgba(30, 35, 45, 0.6);
    border-color: #444;
}
body[data-theme="dark"] .req-tz-template-pagination .req-tz-page-info { color: #aaa; }

.req-content-list { margin: 0.75rem 0; padding-left: 1.5rem; }
.req-content-list li { margin-bottom: 0.4rem; }
.req-definition {
    padding: 12px 16px;
    border-left: 4px solid #0f4685;
    background: rgba(15, 70, 133, 0.06);
    border-radius: 0 6px 6px 0;
    font-size: 0.95em;
    line-height: 1.5;
}
body[data-theme="dark"] .req-definition {
    background: rgba(142, 185, 224, 0.08);
    border-left-color: #5a9fd4;
}
.req-definition-list { margin: 0.75rem 0; }
.req-definition-list .req-dl-term { font-weight: bold; color: #0F4685; margin-top: 0.5rem; margin-bottom: 0.2rem; }
.req-definition-list .req-dl-term:first-child { margin-top: 0; }
.req-definition-list .req-dl-def {
    margin: 0 0 0.5rem 0; padding: 0.5rem 0.75rem;
    border: 1px solid #0F4685; border-radius: 6px;
    background: #e8f5e9;
}
body[data-theme="dark"] .req-definition-list .req-dl-def {
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(15, 70, 133, 0.6);
}

body[data-theme="dark"] .de-definition-list .de-dl-def {
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(15, 70, 133, 0.6);
}

body[data-theme="dark"] .de-info-col,
body[data-theme="dark"] .de-participant-card,
body[data-theme="dark"] .de-module-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

body[data-theme="dark"] .de-participant-detail {
    background: rgba(0,0,0,0.2);
}

body[data-theme="dark"] .de-alg-item {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

body[data-theme="dark"] .de-alg-header {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}

body[data-theme="dark"] .de-alg-header:hover {
    background: rgba(255,255,255,0.1);
}

body[data-theme="dark"] .de-alg-header:not(.collapsed) {
    background: rgba(15,70,133,0.3);
    border-color: rgba(255,255,255,0.1);
}

body[data-theme="dark"] .de-alg-content {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.85);
}

body[data-theme="dark"] .de-forbidden-card {
    background: rgba(255,193,7,0.15);
    border-color: rgba(220,53,69,0.6);
    color: rgba(255,255,255,0.9);
}

body[data-theme="dark"] .de-forbidden-card:hover {
    background: rgba(255,193,7,0.25);
}

/* ========== Страница «Балл реферата» ========== */
.criteria-referat-page .requirements-main-title,
.criteria-presentation-page .requirements-main-title,
.criteria-diploma-page .requirements-main-title,
.criteria-course-page .requirements-main-title,
.criteria-autozachet-page .requirements-main-title {
    margin-bottom: 1.5rem;
}

.criteria-penalties {
    font-size: 0.9rem;
    color: #856404;
    margin-top: 0.5rem;
}

.criteria-section {
    margin-bottom: 2.5rem;
}

.criteria-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: var(--color-primary);
    padding: 12px 16px;
    margin: 0 0 1rem 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.criteria-section-title i {
    opacity: 0.9;
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.criteria-table thead {
    background: var(--color-primary);
    color: #fff;
}

.criteria-th-criterion {
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    width: 22%;
}

.criteria-th-score {
    padding: 10px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.criteria-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.criteria-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.criteria-table tbody tr:hover {
    background: #f0f9ff;
}

.criteria-td-criterion {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--color-primary);
    vertical-align: top;
}

.criteria-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Страница «Критерии» — сравнение систем оценивания */
.criteria-main-page .criteria-notations {
    margin-bottom: 2rem;
}
.criteria-notation-list {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
    line-height: 1.8;
}
.criteria-notation-list li {
    margin-bottom: 0.35rem;
}
.criteria-comparison-section {
    margin-bottom: 2.5rem;
}
.criteria-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.criteria-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}
.criteria-nav-btn:hover {
    background: var(--color-primary-hover, #1a5a9e);
    color: #fff !important;
}
.criteria-nav-btn i {
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .criteria-nav-buttons { flex-direction: column; }
    .criteria-nav-btn { justify-content: center; }
}

.criteria-final .criteria-section-title {
    margin-bottom: 1rem;
}

.criteria-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.criteria-grade-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
}

.criteria-grade-range {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.criteria-grade-mark {
    font-size: 1.1rem;
}

.criteria-referat-code-form {
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 1.25rem;
    background: rgba(15, 70, 133, 0.06);
    border-radius: 8px;
}

.criteria-referat-code-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.criteria-referat-code-form .form-control {
    flex: 1;
}

.criteria-referat-eval-block .eval-participant-info,
.criteria-referat-eval-block .eval-result-box,
.criteria-referat-eval-block .eval-actions {
    margin-bottom: 1.5rem;
}

.criteria-table-eval .criteria-td-score {
    vertical-align: top;
}

.criteria-table-eval .criteria-cell-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0;
    margin: 0;
}

.criteria-table-eval .criteria-cell-label input[type="radio"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.criteria-table-eval .criteria-cell-label:hover {
    color: var(--color-primary);
}

.criteria-table-eval tbody tr:has(.criteria-cell-label input:checked) {
    background: rgba(15, 70, 133, 0.08) !important;
}

body[data-theme="dark"] .criteria-table {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.15);
}

body[data-theme="dark"] .criteria-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

body[data-theme="dark"] .criteria-table tbody tr:hover {
    background: rgba(15,70,133,0.2);
}

body[data-theme="dark"] .criteria-grade-item {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Обратная связь в верхней полосе (справа от поиска) */
.site-feedback-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: #0a3568;
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.15s ease, transform 0.1s ease;
}
.site-feedback-trigger:hover {
    background: #154a96;
    color: #fff !important;
    transform: translateY(-1px);
}
.site-feedback-trigger i {
    font-size: 1.1rem;
}
.site-feedback-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--color-text, #333);
}
.site-feedback-admin-thumb {
    max-width: 72px;
    max-height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.site-feedback-modal .modal-body {
    max-height: min(70vh, 520px);
    overflow-y: auto;
}
.site-feedback-sort-link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.site-feedback-sort-link:hover {
    color: var(--color-primary, #0f4685);
    text-decoration: underline;
}
.site-feedback-sort-th a.site-feedback-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
@media (max-width: 576px) {
    .site-feedback-trigger-label {
        display: none;
    }
    .site-feedback-trigger {
        padding: 0.5rem 0.65rem;
    }
}
body[data-theme="dark"] .site-feedback-trigger {
    background: #1e4d8c;
}
body[data-theme="dark"] .site-feedback-trigger:hover {
    background: #2d6bb5;
}
body[data-theme="dark"] .site-feedback-intro {
    color: #e0e6ed;
}

/* ========== Автозачет ========== */
.criteria-autozachet-page .az-lead {
    text-align: center;
    color: #5a7390;
    max-width: 46rem;
    margin: 0 auto 1.75rem;
}

.az-info-stack {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto 1.75rem;
    max-width: 1100px;
}
.az-info-card {
    background: linear-gradient(165deg, #f7fbff 0%, #fff 42%, #f3f8fc 100%);
    border: 1px solid #d5e3f0;
    border-radius: 10px;
    padding: 1.25rem 1.4rem 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 70, 133, 0.06);
}
.az-info-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.az-info-card-icon {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.1rem;
}
.az-info-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}
.az-info-card-sub {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: #6a859b;
}
.az-info-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.az-info-points li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2ecf5;
    border-radius: 8px;
    line-height: 1.45;
    color: #143555;
    font-size: 0.95rem;
}
.az-info-point-mark {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    background: #e4eef8;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.az-grade-scale {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.az-grade-tile {
    position: relative;
    background: #fff;
    border: 1px solid #d5e3f0;
    border-radius: 8px;
    padding: 0.9rem 0.85rem 1rem;
    border-top: 4px solid #9db5cc;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.az-grade-tile p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #3d5368;
}
.az-grade-tile-top {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}
.az-grade-num {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
}
.az-grade-word {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6a859b;
}
.az-grade-5 { border-top-color: #0f7b4b; }
.az-grade-5 .az-grade-num { color: #0f7b4b; }
.az-grade-4 { border-top-color: #2a6fad; }
.az-grade-4 .az-grade-num { color: #2a6fad; }
.az-grade-3 { border-top-color: #c9a227; }
.az-grade-3 .az-grade-num { color: #a88412; }
.az-grade-2 { border-top-color: #b13e3e; }
.az-grade-2 .az-grade-num { color: #b13e3e; }
.az-grade-tile.is-active {
    box-shadow: 0 0 0 2px rgba(15, 70, 133, 0.2), 0 10px 22px rgba(15, 70, 133, 0.12);
    transform: translateY(-2px);
}
.az-grade-5.is-active { box-shadow: 0 0 0 2px rgba(15, 123, 75, 0.25), 0 10px 22px rgba(15, 123, 75, 0.12); }
.az-grade-4.is-active { box-shadow: 0 0 0 2px rgba(42, 111, 173, 0.25), 0 10px 22px rgba(42, 111, 173, 0.12); }
.az-grade-3.is-active { box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.3), 0 10px 22px rgba(201, 162, 39, 0.14); }
.az-grade-2.is-active { box-shadow: 0 0 0 2px rgba(177, 62, 62, 0.25), 0 10px 22px rgba(177, 62, 62, 0.12); }

@media (max-width: 992px) {
    .az-grade-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .az-grade-scale { grid-template-columns: 1fr; }
    .az-info-card { padding: 1rem; }
}

.az-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}
.az-panel {
    background: var(--color-content-bg, #fff);
    border: 1px solid #d5e3f0;
    border-radius: 8px;
    padding: 1.25rem 1.35rem 1.5rem;
}
.az-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.az-panel-sticky {
    position: sticky;
    top: 12px;
}
.az-subject-pick {
    margin-bottom: 1.25rem;
}
.az-section {
    background: #f4f8fc;
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 0 6px 6px 0;
}
.az-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #143555;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.az-work {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    background: #fff;
    border: 1px solid #d5e3f0;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.45rem;
}
.az-work-label {
    font-weight: 600;
    min-width: 5.5rem;
    color: #143555;
}
.az-hint { color: #6a859b; font-size: 0.85rem; }
.az-check, .az-check-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}
.az-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    margin-top: 0.7rem;
    font-size: 0.9rem;
}
.az-req {
    color: var(--color-primary);
    font-weight: 600;
}
.az-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.65rem 0 0.15rem;
}
.az-page-info {
    min-width: 4rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
}
.az-extra {
    background: #fff8e8;
    border-left-color: #c9a227;
}
.az-extra-note { font-size: 0.85rem; color: #6a5a28; margin-bottom: 0.65rem; }
.az-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.az-crit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #d5e3f0;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
}
.az-crit label { flex: 1; margin: 0; font-size: 0.82rem; }
.az-crit .form-select { width: auto; }
.az-interim { background: #eaf1f8; }
.az-interim-badge, .az-kind-badge, .az-subject-badge, .az-grade-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dce8f4;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-right: 0.4rem;
}
.az-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.az-subject-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
    color: #143555;
}
.az-ready {
    background: #eef5fb;
    border-left: 4px solid var(--color-primary);
    padding: 0.85rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.1rem;
}
.az-ready-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.az-progress { height: 1.4rem; border-radius: 6px; background: #d5e3f0; }
.az-progress .progress-bar {
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.4rem;
}
.az-block-h {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: #143555;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.az-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}
.az-detail-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e4edf5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.az-detail-list li:last-child { border-bottom: none; }
.az-detail-list .az-val {
    margin-left: auto;
    color: #5a7390;
    white-space: nowrap;
    font-size: 0.82rem;
}
.az-verdict-box {
    background: #f4f8fc;
    border: 1px solid #d5e3f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.75rem 0 1rem;
}
.az-verdict { font-weight: 700; font-size: 1.05rem; }
.az-verdict.az-yes { color: #0f7b4b; }
.az-verdict.az-no { color: #b13e3e; }
.az-verdict-detail { margin: 0.25rem 0 0; color: #6a859b; font-size: 0.88rem; }
.az-pdf-btn { width: 100%; margin-top: 0.5rem; }
.az-work .form-select { width: auto; max-width: 11rem; }
@media (max-width: 992px) {
    .az-layout { grid-template-columns: 1fr; }
    .az-panel-sticky { position: static; }
}
body[data-theme="dark"] .criteria-autozachet-page .az-lead { color: #9ab0c4; }
body[data-theme="dark"] .az-info-card {
    background: linear-gradient(165deg, rgba(15,70,133,0.22) 0%, rgba(255,255,255,0.04) 50%, rgba(15,70,133,0.12) 100%);
    border-color: rgba(255,255,255,0.12);
}
body[data-theme="dark"] .az-info-points li,
body[data-theme="dark"] .az-grade-tile {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    color: #e0e6ed;
}
body[data-theme="dark"] .az-grade-tile p { color: #b8c7d6; }
body[data-theme="dark"] .az-info-card-sub,
body[data-theme="dark"] .az-grade-word { color: #9ab0c4; }
body[data-theme="dark"] .az-info-point-mark { background: rgba(15,70,133,0.45); color: #8eb9e0; }
body[data-theme="dark"] .az-panel,
body[data-theme="dark"] .az-work,
body[data-theme="dark"] .az-crit,
body[data-theme="dark"] .az-verdict-box {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}
body[data-theme="dark"] .az-section {
    background: rgba(15,70,133,0.18);
}
body[data-theme="dark"] .az-extra { background: rgba(201,162,39,0.12); }
body[data-theme="dark"] .az-interim,
body[data-theme="dark"] .az-ready { background: rgba(15,70,133,0.25); }
body[data-theme="dark"] .az-section-title,
body[data-theme="dark"] .az-subject-title,
body[data-theme="dark"] .az-work-label,
body[data-theme="dark"] .az-block-h { color: #e0e6ed; }
body[data-theme="dark"] .az-detail-list li { border-color: rgba(255,255,255,0.08); }

/* ========== Mobile: слайдер скрыт, контент в экран ========== */
@media (max-width: 768px) {
    .home-slider-block,
    .home-slider-empty {
        display: none !important;
    }

    .main,
    #container,
    #content,
    .container,
    .content {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

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

    .content pre,
    .content code {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .requirements-main-title,
    .requirements-block-title,
    .requirement-item-title {
        flex-wrap: wrap;
        word-break: break-word;
    }

    .az-layout {
        grid-template-columns: 1fr !important;
    }

    .az-panel-sticky {
        position: static;
    }

    .home-banner-block,
    .home-stats-block,
    .home-info-block,
    .home-plagiarism-block,
    .home-management-block {
        margin-left: 0;
        margin-right: 0;
    }

    .header-part-contacts,
    .header-part-social {
        flex: 1 1 100%;
    }

    .contact-info-container {
        align-items: center;
        text-align: center;
    }

    .social-container {
        justify-content: center;
    }
}

/* ========== Статистика сайта ========== */
.site-statistics-page .site-stats-lead {
    color: #555;
    max-width: 720px;
    margin-bottom: 0.5rem;
}

.site-stats-since {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding: 0.45rem 0.85rem;
    background: #eef5fc;
    border: 1px solid rgba(15, 70, 133, 0.15);
    border-radius: 8px;
    color: #0F4685;
    font-weight: 600;
    font-size: 0.95rem;
}

body[data-theme="dark"] .site-stats-since {
    background: rgba(15, 70, 133, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
    color: #8eb9e0;
}

.site-stats-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    background: #f0f6fc;
    border: 1px solid rgba(15, 70, 133, 0.15);
    border-radius: 8px;
}

.site-stats-toolbar-label {
    font-weight: 600;
    color: #0F4685;
}

.site-stats-toolbar-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.site-stats-card-export {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #dee2e6;
}

.site-stats-card-export-label {
    font-size: 0.85rem;
    color: #666;
    margin-right: 0.25rem;
}

body[data-theme="dark"] .site-stats-toolbar {
    background: rgba(15, 70, 133, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .site-stats-toolbar-label {
    color: #8eb9e0;
}

body[data-theme="dark"] .site-stats-card-export {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.site-stats-summary .site-stats-kpi {
    background: linear-gradient(135deg, #e8f2fc 0%, #f0f7ff 100%);
    border: 1px solid rgba(15, 70, 133, 0.12);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-align: center;
    height: 100%;
}

.site-stats-kpi-val {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F4685;
    line-height: 1.2;
}

.site-stats-kpi-val--sm {
    font-size: 1rem;
}

.site-stats-kpi-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.35rem;
}

.site-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.site-stats-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(15, 70, 133, 0.06);
    min-width: 0;
}

.site-stats-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.site-stats-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F4685;
    margin: 0;
    flex: 1 1 180px;
}

.site-stats-type-wrap {
    flex: 0 1 160px;
    min-width: 140px;
}

.site-stats-canvas-wrap {
    position: relative;
    height: 280px;
    min-width: 0;
}

body[data-theme="dark"] .site-stats-card {
    background: rgba(21, 34, 56, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .site-stats-kpi {
    background: rgba(15, 70, 133, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .site-stats-kpi-val,
body[data-theme="dark"] .site-stats-card-title {
    color: #8eb9e0;
}

@media (max-width: 992px) {
    .site-stats-grid {
        grid-template-columns: 1fr;
    }
}
