/* Профсоюз КСТ — стили */
* { box-sizing: border-box; }
:root {
    --bg-body: #FDFDFD;
    --bg-header: #0F4685;
    --bg-main: #fff;
    --bg-card: #fff;
    --bg-footer: #F2F8FD;
    --text-primary: #003f81;
    --text-secondary: #555;
    --text-header: #fff;
    --border-color: #DDEAF4;
    --accent: #FC6F1A;
}
[data-theme="dark"] {
    --bg-body: #0f0f1a;
    --bg-main: #1a1a2e;
    --bg-card: #16213e;
    --bg-footer: #1a1a2e;
    --bg-muted: #1e2a4a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --accent: #f6ad55;
}
:root { --bg-muted: #F2F8FD; }
body { margin: 0; font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-body); color: var(--text-primary); overflow-x: hidden; }
.container { margin: 0 auto; padding: 0 1rem; }
.main-inner .container { max-width: 100%; }
.site-header-nav .container,
.site-header-top-inner,
.site-header-main-inner { max-width: 1200px; }
.main-inner { width: 70%; margin: 0 auto; padding: 0 1rem; }
img, video, iframe { max-width: 100%; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 1100px) { .main-inner { width: 92%; } }
@media (max-width: 768px) { .main-inner { width: 100%; padding: 0 0.75rem; } }

/* Site header — 3 части, 100% ширины */
.site-header { width: 100%; background: var(--bg-header); }

/* 1. Верхняя панель — поиск + действия */
.site-header-top {
    --header-top-bg: #0F4685;
    --header-top-fg: #ffffff;
    --header-top-control-border: rgba(255, 255, 255, 0.5);
    --header-top-control-hover-bg: rgba(255, 255, 255, 0.16);
    background: var(--header-top-bg);
    color: var(--header-top-fg);
    padding: 0.5rem 0;
    font-size: 0.88rem;
}
.site-header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-header-top-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-left: auto;
    flex: 0 0 auto;
}
.site-header-search {
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 160px;
    display: flex;
    align-items: stretch;
    margin: 0;
}
.site-header-search-input {
    flex: 1;
    border: none;
    border-radius: 6px 0 0 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
    color: #1a2e36;
    background: #fff;
    min-width: 0;
}
.site-header-search-input::placeholder {
    color: #5a7080;
    opacity: 1;
}
.site-header-search-input:focus {
    outline: 2px solid var(--accent, #FC6F1A);
    outline-offset: 0;
}
.site-header-search-btn {
    border: none;
    background: #fff;
    color: var(--header-top-bg);
    padding: 0 0.85rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.site-header-search-btn:hover {
    background: #e8f0f8;
    color: #083048;
}
.site-header-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--header-top-control-border);
    border-radius: 6px;
    color: var(--header-top-fg);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
    padding: 0;
    font-size: 1.05rem;
}
.site-header-icon-btn:hover,
.site-header-icon-btn:focus-visible {
    background: var(--header-top-control-hover-bg);
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--header-top-fg);
}
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
.site-header-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--header-top-fg);
    font-size: 0.88rem;
    padding: 0 0.25rem;
}
.site-header-user-link { text-decoration: none; color: inherit; display: flex; align-items: center; }
.site-header-user-link:hover { text-decoration: none; }
.site-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.site-header-username {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.site-header-btn {
    padding: 0.35rem 0.75rem;
    background: #fff;
    color: #083848 !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.site-header-btn:hover {
    background: #e8f0f8;
    color: #062a36 !important;
    border-color: #fff;
}
.site-header-btn-accent:hover {
    background: #d6e6f5;
}
.site-header-btn-approval-pending {
    display: inline-flex;
    align-items: center;
    background: #ffe0c2 !important;
    border-color: #f0a36b !important;
    color: #8a4b12 !important;
}
.site-header-btn-approval-pending:hover {
    background: #ffd3a8 !important;
    color: #7a3f0c !important;
}
.site-header-approval-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e8590c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* 2. Основная часть — логотип, название, девиз, контакты */
.site-header-main {
    background: #F2F8FD;
    padding: 1rem 0;
}
[data-theme="dark"] .site-header-main { background: #1e2a4a; }
/* Тёмная тема: блок «Профсоюз — это» и «Наши главные задачи» */
[data-theme="dark"] .info-section { background: var(--bg-main); }
[data-theme="dark"] .info-box h1 { color: var(--text-primary); border-bottom-color: var(--accent); }
[data-theme="dark"] .info-box p { color: var(--text-secondary); }
[data-theme="dark"] .tasks-box { background: var(--bg-card); }
[data-theme="dark"] .tasks-box h2 { color: var(--accent); }
[data-theme="dark"] .task-accordion-item { background: var(--bg-card); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .task-accordion-header { color: var(--text-primary); }
[data-theme="dark"] .task-accordion-body { color: var(--text-secondary); }
[data-theme="dark"] .task-accordion-body p, [data-theme="dark"] .task-accordion-body li { color: var(--text-secondary); }
/* Тёмная тема: блок статистики и диаграмма */
[data-theme="dark"] .stats-section { background: var(--bg-main); }
[data-theme="dark"] .stats-section h2 { color: var(--text-primary); }
[data-theme="dark"] .stats-progress-wrap { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .stats-people { color: var(--text-primary); }
[data-theme="dark"] .stats-benefits-list { color: var(--text-primary); }
[data-theme="dark"] .stats-joined { border-top-color: var(--border-color); }
[data-theme="dark"] .stats-joined h3 { color: var(--text-primary); }
[data-theme="dark"] .stats-joined-item { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .stats-extra h3 { color: var(--text-primary); }
[data-theme="dark"] .stats-extra-item { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .stats-extra-label { color: var(--text-primary); }
[data-theme="dark"] .stats-extra-icon { background: rgba(246,173,85,0.2); }
[data-theme="dark"] .stats-age-chart { border-top-color: var(--border-color); }
[data-theme="dark"] .stats-age-chart h3 { color: var(--text-primary); }
[data-theme="dark"] .section-accent { color: var(--accent); }
/* Тёмная тема: hero-слайдер (цитаты, изображения, кнопки) */
[data-theme="dark"] .hero-slider-section { background: var(--bg-main); }
[data-theme="dark"] .hero-quote-block { color: var(--text-primary) !important; }
[data-theme="dark"] .hero-slider { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
[data-theme="dark"] .hero-slide-overlay { background: rgba(22, 33, 62, 0.9); color: #e8e8e8; }
[data-theme="dark"] .hero-side-thumb { background: var(--bg-card); }
[data-theme="dark"] .hero-side-thumb:hover,
[data-theme="dark"] .hero-side-thumb.active { border-color: var(--accent); }
[data-theme="dark"] .hero-slider-stop { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .hero-slider-stop:hover { background: var(--accent); color: #1a1a2e; }
[data-theme="dark"] .home-quick-stats { background: var(--bg-main); }
[data-theme="dark"] .home-quick-stat-card {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
[data-theme="dark"] .home-quick-stat-icon,
[data-theme="dark"] .home-quick-stat-value { color: var(--accent); }
[data-theme="dark"] .home-quick-stat-label { color: var(--text-secondary); }
/* Тёмная тема: блок «В этом тебе поможет наш профсоюзный актив» */
[data-theme="dark"] .employers-section { background: var(--bg-main); }
[data-theme="dark"] .employers-section h2 { color: var(--text-primary); }
[data-theme="dark"] .employer-card { background: var(--bg-card); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
[data-theme="dark"] .employer-info h3 { color: var(--text-primary); }
[data-theme="dark"] .employer-info h4 { color: var(--text-secondary); }
[data-theme="dark"] .employer-info p { color: var(--text-secondary); }
[data-theme="dark"] .employers-prev,
[data-theme="dark"] .employers-next { background: var(--bg-card); color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-theme="dark"] .employers-prev:hover,
[data-theme="dark"] .employers-next:hover { background: #1e2a4a; color: #fff; }
[data-theme="dark"] .employer-dot { border-color: var(--text-secondary); }
[data-theme="dark"] .employer-dot.active { border-color: var(--accent); background: var(--accent); }
[data-theme="dark"] .employers-toggle { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .employers-toggle:hover { background: var(--accent); color: #1a1a2e; }
/* Тёмная тема: кнопка «Сбросить» и вторичные кнопки */
[data-theme="dark"] .btn-outline { border-color: var(--accent); color: var(--accent) !important; }
[data-theme="dark"] .btn-outline:hover { background: var(--accent); color: #1a1a2e !important; }
/* Тёмная тема: новостной блок — фильтры, карточки, пагинация */
[data-theme="dark"] .news-filters { background: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .news-filters h2 { color: var(--text-primary); }
[data-theme="dark"] .news-filters-row label { color: var(--text-primary); }
[data-theme="dark"] .news-filters-row input,
[data-theme="dark"] .news-filters-row select { background: var(--bg-main); border: 1px solid var(--border-color); color: var(--text-primary); }
[data-theme="dark"] .news-filters-row input::placeholder { color: var(--text-secondary); opacity: 0.8; }
[data-theme="dark"] .news-per-page { color: var(--text-primary); }
[data-theme="dark"] .news-per-page select { background: var(--bg-card); border-color: var(--border-color); color: var(--text-primary); }
[data-theme="dark"] .news-card-item { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .news-card-title { color: var(--text-primary); }
[data-theme="dark"] .news-card-divider { background: var(--accent); }
[data-theme="dark"] .news-page-item {
    background: #1f2740;
    border-color: #2e3a5d;
    color: #8eb8ff;
}
[data-theme="dark"] .news-page-item:hover { background: #27324f; color: #a9c8ff; }
[data-theme="dark"] .news-page-item.is-active {
    background: #3a3350;
    border-color: #4a4362;
    color: #f2f2f2;
}
[data-theme="dark"] .news-page-item--ellipsis { color: #b6bdd1; }
/* Тёмная тема: секция «Вы еще не в профсоюзе?» */
[data-theme="dark"] .join-section { background: var(--bg-main); }
[data-theme="dark"] .join-section h2 { color: var(--text-primary); }
[data-theme="dark"] .join-step { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
[data-theme="dark"] .join-step strong { color: var(--accent); }
/* Тёмная тема: страница «О нас» — контакты, полезные ссылки, обратная связь */
[data-theme="dark"] .about-page .about-hero,
[data-theme="dark"] .about-page .about-intro { color: var(--text-primary); }
[data-theme="dark"] .about-section-title { color: var(--text-primary) !important; }
[data-theme="dark"] .about-contacts-block { background: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .about-contact-item { color: var(--text-primary); }
[data-theme="dark"] .about-contact-item i { color: var(--accent); }
[data-theme="dark"] .about-contact-item a { color: var(--text-primary); }
[data-theme="dark"] .about-contact-item a:hover { color: var(--accent); }
[data-theme="dark"] .about-chair { color: var(--text-secondary); border-top-color: var(--border-color); }
[data-theme="dark"] .about-map-wrap { border-color: var(--border-color); }
[data-theme="dark"] .about-links .about-section-title { color: var(--text-primary); }
[data-theme="dark"] .about-link { color: var(--text-primary); }
[data-theme="dark"] .about-link:hover span { color: var(--accent); }
[data-theme="dark"] .about-feedback { background: var(--bg-main); }
[data-theme="dark"] .about-feedback-desc { color: var(--text-secondary); }
[data-theme="dark"] .about-feedback-form input,
[data-theme="dark"] .about-feedback-form textarea { background: var(--bg-card); border-color: var(--border-color); color: var(--text-primary); }
[data-theme="dark"] .about-card { background: var(--bg-card); }
[data-theme="dark"] .about-card h2 { color: var(--text-primary); }
[data-theme="dark"] .about-card p { color: var(--text-secondary); }
.site-header-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-header-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text-primary); }
.site-header-brand:hover { color: var(--accent); }
.site-header-logo { width: 70px; height: 70px; border-radius: 8px; }
.site-header-brand-text { margin: 0; }
.site-header-title { margin: 0; font-size: 2.15rem; font-weight: 700; line-height: 1.15; color: var(--text-primary); }
.site-header-motto { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--text-secondary); }
.site-header-contacts { display: flex; gap: 0.75rem; align-items: center; }
.site-header-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,63,129,0.1);
    color: #003f81;
    transition: background 0.2s, color 0.2s;
}
[data-theme="dark"] .site-header-contact-icon { background: rgba(246,173,85,0.15); color: var(--accent); }
.site-header-contact-icon:hover { background: rgba(0,63,129,0.2); color: #002750; }
[data-theme="dark"] .site-header-contact-icon:hover { background: rgba(246,173,85,0.3); }
/* 3. Нижняя часть — меню */
.site-header-nav {
    --nav-link: #ffffff;
    --nav-link-hover-bg: rgba(255, 255, 255, 0.16);
    --nav-link-active-bg: rgba(255, 255, 255, 0.28);
    --nav-link-active-ring: rgba(255, 255, 255, 0.45);
    background: #0F4685;
    padding: 0.45rem 0;
}
.site-header-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-header-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}
.site-header-nav-toggle i { font-size: 1.25rem; line-height: 1; }
.site-header-nav-links {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
    flex: 1 1 auto;
}
.site-header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--nav-link);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.site-header-nav a:hover,
.site-header-nav a:focus {
    color: var(--nav-link);
    background: var(--nav-link-hover-bg);
}
.site-header-nav a.active {
    color: var(--nav-link);
    background: var(--nav-link-active-bg);
    box-shadow: inset 0 0 0 1px var(--nav-link-active-ring);
    font-weight: 700;
}
.site-header-nav-icon { font-size: 1.05rem; line-height: 1; }
[data-theme="dark"] .site-header-nav a.active {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
    color: #fff;
}
@media (max-width: 900px) {
    .site-header-nav-toggle { display: inline-flex; }
    .site-header-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: 1 1 100%;
        gap: 0.25rem;
        padding: 0.35rem 0 0.15rem;
    }
    .site-header-nav.is-open .site-header-nav-links { display: flex; }
    .site-header-nav-inner { flex-wrap: wrap; }
    .site-header-nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 0.7rem 0.85rem;
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {
    .site-header-main { padding: 0.75rem 0; }
    .site-header-main-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .site-header-logo { width: 52px; height: 52px; }
    .site-header-title { font-size: 1.45rem; }
    .site-header-motto { font-size: 0.85rem; }
    .site-header-top-inner { gap: 0.65rem; }
    .site-header-search {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
        order: -1;
    }
    .site-header-top-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        gap: 0.35rem;
    }
    .site-header-username { display: none; }
    .site-header-btn { padding: 0.35rem 0.6rem; font-size: 0.78rem; }
}

/* Legacy nav (fallback) */
.header { background: #F2F8FD; padding: 0.75rem 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo-box { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #003f81; font-weight: 600; font-size: 18px; }
.nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav a { color: #003f81; text-decoration: none; font-size: 14px; }
.user-name { opacity: 0.9; font-size: 0.9rem; }

/* Main */
.main {
    min-height: calc(100vh - 220px);
    padding: 2px 0 2rem;
    background: var(--bg-body);
}
.page-header { margin-bottom: 2rem; }
.page-header h1 { margin: 0; font-size: 1.75rem; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Events grid */
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1100px) { .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .events-grid { grid-template-columns: 1fr; } }
.event-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.event-card-image { display: block; }
.event-card-image img { width: 100%; height: 200px; object-fit: cover; }
.event-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.event-card h2 { margin: 0; font-size: 1.05rem; }
.event-card h2 a { color: inherit; text-decoration: none; }
.event-card h2 a:hover { color: var(--accent); }
.event-card-title {
    line-height: 1.28;
    min-height: calc(1.28em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0; }
.event-meta-lines { display: flex; flex-direction: column; gap: 0.15rem; }
.event-meta-line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.event-meta-line--venue {
    white-space: normal;
    min-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-meta-line--state { font-weight: 600; }
.event-status-passed { color: #721c24; font-weight: 700; }
.event-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.15rem 0 0.6rem;
    line-height: 1.35;
    min-height: calc(1.35em * 4);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}
.no-events { color: var(--text-secondary); }

/* News list & detail */
.news-list { display: flex; flex-direction: column; gap: 2rem; }
.news-card-preview { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; background: var(--bg-card); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
@media (max-width: 768px) { .news-card-preview { grid-template-columns: 1fr; } }
.news-card-preview .news-card-image { display: block; }
.news-card-preview .news-card-image img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 1rem; }
.news-meta { font-size: 0.85rem; color: var(--text-secondary); }
.news-card-preview h2 { margin: 0.5rem 0; font-size: 1.2rem; }
.news-card-preview h2 a { color: inherit; text-decoration: none; }
.news-card-preview h2 a:hover { color: var(--accent); }
.news-detail { max-width: 100%; }
.news-detail-cover {
    display: block;
    max-width: 66%;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.news-detail-header { margin-bottom: 1.5rem; }
.news-detail-meta { font-size: 0.9rem; color: var(--text-secondary); }
.news-detail-content { line-height: 1.7; max-width: 100%; }
.news-detail-content p {
    text-indent: 1.5em;
    margin: 0 0 1em;
    text-align: justify;
    text-align-last: left;
}
.news-detail-content p[style*="text-align: left"],
.news-detail-content p[style*="text-align:left"],
.news-detail-content p[align="left"] {
    text-align: left;
    text-align-last: auto;
    text-indent: 0;
}
.news-detail-content p[style*="text-align: center"],
.news-detail-content p[style*="text-align:center"],
.news-detail-content p[align="center"] {
    text-align: center;
    text-align-last: auto;
    text-indent: 0;
}
.news-detail-content p[style*="text-align: right"],
.news-detail-content p[style*="text-align:right"],
.news-detail-content p[align="right"] {
    text-align: right;
    text-align-last: auto;
    text-indent: 0;
}
.news-detail-content ul,
.news-detail-content ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}
.news-detail-content li { margin-bottom: 0.35rem; }
.news-detail-content .news-inline-img {
    display: block;
    max-width: 66%;
    margin: 1rem auto;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.news-detail-author { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.news-detail-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.news-detail-stats { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.news-detail-stats span { margin-right: 1rem; }
.news-detail-rate { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.news-rate-btn { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: #ddd; padding: 0 0.2rem; }
.news-rate-btn:hover, .news-rate-btn.filled { color: #f0c040; }
.news-detail-share { margin-top: 1rem; }
.news-detail-share a { margin-right: 1rem; }

/* News detail bottom - share, rate, comments */
.news-detail-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.news-share-section, .news-rate-section, .news-comments-section { margin-bottom: 2rem; }
.news-share-section h3, .news-rate-section h3, .news-comments-section h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.news-share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.news-share-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
}
.news-share-btn:hover { background: #f8f9fa; }
.news-rate-display { display: flex; gap: 0.2rem; margin-bottom: 0.5rem; font-size: 1.5rem; }
.news-rate-display .news-rate-star { color: #ddd; }
.news-rate-display .news-rate-star.filled { color: #f0c040; }
.news-rate-form { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.news-rate-btn {
    background: none; border: none; cursor: pointer; font-size: 1.5rem;
    color: #ddd; padding: 0 0.15rem; transition: color 0.2s;
}
.news-rate-btn:hover { color: #f0c040; }
.news-rate-btn.filled { color: #f0c040; }
.news-rate-submit { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
.news-rate-avg { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.news-rate-login { margin: 0.5rem 0; }
.news-comment-form {
    background: linear-gradient(to bottom, #f8fbff, #fff);
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.news-comment-form label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.news-comment-form select {
    margin-left: 0.5rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
}
.news-comment-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.news-comment-form textarea:focus {
    outline: none;
    border-color: #003f81;
    box-shadow: 0 0 0 3px rgba(0,63,129,0.15);
}
.news-comment-form textarea::placeholder { color: #6c757d; }
.news-comment-form button { margin-top: 0.5rem; }
.news-comments-list { margin-top: 1.5rem; }
.news-comment-item {
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.news-comment-item:hover { border-color: #dee2e6; }
.news-comment-author { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.news-comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.news-comment-author strong { font-size: 0.95rem; }
.news-comment-date { font-size: 0.85rem; color: var(--text-secondary); margin-left: auto; }
.news-comment-text { line-height: 1.6; font-size: 0.95rem; }
.news-comments-empty { color: var(--text-secondary); font-style: italic; padding: 1rem; }

/* News page - filters, grid, card */
.news-filters { background: #e7f3ff; border: 1px solid #b3d7ff; border-radius: 8px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; }
.news-filters h2 { margin: 0 0 1rem; font-size: 1rem; }
.news-filters-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.news-filters-row label { display: flex; align-items: center; gap: 0.5rem; }
.news-filters-row input, .news-filters-row select { padding: 0.35rem 0.5rem; }
.news-filters-actions { display: flex; gap: 0.5rem; }
.news-filters-form--single-line .news-filters-row { flex-wrap: nowrap; align-items: center; margin-bottom: 0; overflow-x: auto; padding-bottom: 0.25rem; gap: 0.55rem; }
.news-filters-form--single-line .news-filters-row label { flex: 0 0 auto; white-space: nowrap; }
.news-filters-form--single-line .news-filters-actions { flex: 0 0 auto; margin-left: 0.15rem; }
.news-filters-form--single-line .news-date-input { width: 10.2ch; min-width: 10.2ch; }
.news-filters-form--single-line select[name="author_id"] { min-width: 170px; }
.news-filters-form--single-line select[name="category"] { min-width: 150px; }
.news-filters-form--single-line .news-filters-actions .btn { white-space: nowrap; padding-left: 0.7rem; padding-right: 0.7rem; }
.news-filters-form--single-line .news-filters-row::-webkit-scrollbar { height: 8px; }
.news-filters-form--single-line .news-filters-row::-webkit-scrollbar-thumb { background: rgba(0,63,129,0.35); border-radius: 8px; }
.news-per-page { margin-bottom: 0; }
.news-per-page form { display: inline; }
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
}
.list-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.list-sort,
.list-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7c6f);
}
.list-sort label,
.list-per-page label {
    margin: 0;
    white-space: nowrap;
}
.list-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.list-sort-select {
    min-width: 11rem;
    height: 2rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-color, #cfd8d3);
    border-radius: 6px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #222);
}
[data-theme="dark"] .list-sort,
[data-theme="dark"] .list-per-page { color: var(--text-primary); }
[data-theme="dark"] .list-sort-select {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1200px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } }
.news-card-item {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 70, 133, 0.12);
}
.news-card-image-wrap { overflow: hidden; }
.news-card-image-wrap img { width: 100%; height: 160px; object-fit: cover; display: block; }
.news-card-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, #003f81 0%, #0066cc 100%); }
.news-card-divider { height: 2px; background: #003f81; margin: 0; }
.news-card-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-card-title a {
    color: inherit;
    text-decoration: none;
}
.news-card-title a:hover { color: var(--accent); }
.news-card-type { display: block; margin: 0 0 0.35rem; font-size: 0.85rem; color: var(--text-secondary); }
.news-card-excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-indent: 1.25em;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}
.news-card-author { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.news-author-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.news-card-date i { color: #0F4685; }
.news-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e5eaf0;
    font-size: 0.82rem;
}
.news-card-rating {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.news-card-rating .bi-star { color: #c5cdd3; font-size: 0.95rem; }
.news-card-rating .bi-star-fill { color: #f0b429; font-size: 0.95rem; }
.news-star { color: #ddd; }
.news-star.filled { color: #f0c040; }
.news-rating-count { font-size: 0.8rem; color: var(--text-secondary); margin-left: 0.25rem; }
.news-card-counters {
    display: flex;
    gap: 0.85rem;
    color: var(--text-secondary);
}
.news-card-counters i { margin-right: 0.15rem; }
.news-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}
.news-card-share {
    display: flex;
    gap: 0.45rem;
    margin: 0;
}
.news-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #c5ccd6;
    border-radius: 6px;
    color: #4a5a68;
    background: #fff;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.news-share-btn .bi { font-size: 1.12rem; line-height: 1; }
.news-share-vk-icon {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}
.news-share-btn--vk .news-share-vk-icon {
    width: 1.35rem;
    height: 1.35rem;
}
.news-share-btn:hover {
    background: #f2f6fa;
    border-color: #a8b4c0;
    color: #0F4685;
}
.news-card-more {
    background: #0F4685;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.news-card-more:hover { background: #0c3a6e; color: #fff !important; }
.news-card-footer { margin: 0.5rem 1rem 0; font-size: 0.8rem; color: var(--text-secondary); display: flex; gap: 1rem; }
.news-card-btn { margin: 0.5rem 1rem 0; align-self: flex-start; }
[data-theme="dark"] .news-card-stats { border-top-color: var(--border-color); }
[data-theme="dark"] .news-card-date i { color: var(--accent); }
[data-theme="dark"] .news-share-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}
[data-theme="dark"] .news-share-btn:hover {
    background: var(--bg-muted);
    color: var(--accent);
}
[data-theme="dark"] .news-card-more { background: var(--accent); color: #1a1a2e !important; }
[data-theme="dark"] .news-card-more:hover { filter: brightness(1.05); }
.polls-grid .poll-card-item {
    border-radius: 14px;
    overflow: hidden;
    padding-bottom: 0.8rem;
}
.poll-card-cover-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.poll-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.poll-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 1rem 0;
}
.poll-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.poll-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.poll-card-badge--type {
    color: #23623a;
    background: #e8f4ea;
    border-color: #c5e3cb;
}
.poll-card-badge--available {
    color: #1f4c8f;
    background: #e8f0fb;
    border-color: #c7d8f2;
}
.poll-card-badge--blocked {
    color: #8b1f2c;
    background: #fbe9ec;
    border-color: #f1c9d1;
}
.poll-card-title {
    margin: 0.2rem 0 0;
    font-size: 1.03rem;
    color: #0f4b92;
    line-height: 1.35;
}
.poll-card-excerpt {
    margin: 0.05rem 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #2d3748;
    text-indent: 0;
    -webkit-line-clamp: 4;
}
.poll-card-footer {
    margin: 0;
    padding-top: 0.55rem;
    border-top: 1px solid #d9e1eb;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.28rem;
    font-size: 0.88rem;
}
.poll-card-footer strong {
    font-weight: 600;
    margin-left: 0.35rem;
}
.poll-take-page-title {
    margin-bottom: 0.35rem;
}
.poll-take-header-card {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.poll-take-description {
    margin: 0 0 0.65rem;
    color: #4a5568;
    line-height: 1.45;
}
.poll-take-attempts {
    margin: 0;
    color: #718096;
    font-weight: 600;
}
.poll-question-card {
    border-radius: 14px;
    padding: 1rem 1.25rem 1.2rem;
}
.poll-question-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.7rem;
}
.poll-question-head h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}
.poll-question-required {
    font-size: 0.95rem;
    color: #9cb0c8;
    font-weight: 600;
}
.poll-question-text {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #1a202c;
}
.poll-open-answer {
    width: 100%;
    min-height: 120px;
    border-radius: 10px;
    border: 1px solid #c8d6e5;
    padding: 0.65rem 0.8rem;
    resize: vertical;
}
.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.poll-option-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #c8d6e5;
    border-radius: 9px;
    padding: 0.6rem 0.85rem;
    background: #f8fbff;
    color: #1a202c;
}
.poll-option-row:hover {
    border-color: #9eb8d6;
}
.poll-options-hint {
    display: inline-block;
    margin-top: 0.6rem;
    color: #6b7280;
}
.poll-question-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .poll-card-cover-wrap {
        height: 165px;
    }
    .poll-question-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .poll-question-head h2 {
        font-size: 1.35rem;
    }
}
.news-pagination {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.news-page-item {
    min-width: 46px;
    height: 46px;
    padding: 0 0.7rem;
    border: 1px solid #e8eaf2;
    background: #f3f4f8;
    color: #1a3fc4;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}
.news-page-item:hover { background: #ebedf5; color: #1636a8; }
.news-page-item.is-active {
    background: #ebe3ef;
    color: #111;
    border-color: #e1d8e9;
    pointer-events: none;
}
.news-page-item--ellipsis { color: #555; pointer-events: none; }
.news-page-item--arrow {
    font-size: 1.9rem;
    font-weight: 400;
    padding-bottom: 3px;
}

/* Event detail */
.event-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .event-detail { grid-template-columns: 1fr; } }
.event-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; }
.event-images { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.event-images img { max-width: 150px; max-height: 100px; object-fit: cover; border-radius: 4px; }
.event-info h1 { margin: 0 0 1rem; }
.event-meta span { display: block; margin-bottom: 0.25rem; }
.event-description { margin: 1rem 0; line-height: 1.6; }
.registered-badge { color: #155724; font-weight: 500; }
.no-seats { color: #721c24; }

/* Buttons */
.btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: #003f81; color: #fff !important; }
.btn-primary:hover { background: #002750; }

/* Auth forms */
.auth-form-wrap { max-width: 400px; margin: 2rem auto; }
.auth-form label { display: block; margin-bottom: 1rem; }
.auth-form input { width: 100%; padding: 0.5rem; margin-top: 0.25rem; }
.auth-form button { margin-top: 0.5rem; }
.auth-form .help { font-size: 0.85rem; color: #666; margin: 0.5rem 0 1rem; }
.auth-form-wrap {
  max-width: 860px;
}
.auth-rights-note {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d5e2f2;
  border-left: 5px solid #0F4685;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
}
.auth-rights-note h2 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  color: #0F4685;
}
.auth-rights-note p {
  margin: 0.45rem 0;
  line-height: 1.45;
  color: #34495e;
}
.auth-login-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.05rem 1.15rem 1.2rem;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 70, 133, 0.06);
}
.auth-login-form label {
  color: #23415d;
  font-weight: 600;
}
.auth-login-form input {
  border: 1px solid #b9cde3;
  border-radius: 6px;
  padding: 0.58rem 0.65rem;
  font-size: 0.98rem;
}
.auth-login-form input:focus {
  outline: none;
  border-color: #0F4685;
  box-shadow: 0 0 0 2px rgba(15, 70, 133, 0.12);
}

/* Форма добавления/редактирования сотрудника — карточки как у документов/поздравлений */
.employee-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: none;
}
.employee-form-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
  border: 1px solid #c9d9ea;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.employee-form-card__head h2 {
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #0F4685;
  font-size: 1.15rem;
}
.employee-form-card__head h2 i { color: #FC6F1A; }
.employee-form-card__head p {
  margin: 0;
  color: #5a6570;
  font-size: 0.9rem;
  line-height: 1.45;
}
.employee-form__row {
  display: grid;
  gap: 0.85rem 1rem;
}
.employee-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.employee-form .emp-qf {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a323c;
}
.employee-form .emp-qf em {
  color: #dc3545;
  font-style: normal;
}
.employee-form .emp-qf--half { max-width: 50%; }
.employee-form .emp-qf input,
.employee-form .emp-qf select,
.employee-form .emp-qf textarea {
  width: 100%;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c5d0da;
  border-radius: 8px;
  background: #fff;
  color: #1a323c;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}
.employee-form .emp-qf textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
}
.employee-form .emp-qf input:focus,
.employee-form .emp-qf select:focus,
.employee-form .emp-qf textarea:focus {
  outline: none;
  border-color: #0F4685;
  box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.employee-form .emp-qf-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1a323c;
  cursor: pointer;
}
.employee-form .emp-qf-check input { width: auto; margin: 0; }
.employee-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.15rem 0 0.35rem;
}
.employee-form__actions .btn i { margin-right: 0.3rem; }
@media (max-width: 720px) {
  .employee-form__row--2,
  .employee-form__row--3 { grid-template-columns: 1fr; }
  .employee-form .emp-qf--half { max-width: none; }
}

/* Страница добавления/редактирования сотрудника: форма слева, таблица справа */
.employee-form-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 1.35rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .employee-form-page-layout { grid-template-columns: 1fr; }
}
.employee-form-column { min-width: 0; width: 100%; }
.employee-table-column { min-width: 0; }
.employee-list-block {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
  border: 1px solid #c9d9ea;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
  padding: 1.25rem 1.35rem 1.35rem;
  position: sticky;
  top: 1rem;
}
.employee-list-block__head h2 {
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #0F4685;
  font-size: 1.15rem;
}
.employee-list-block__head h2 i { color: #FC6F1A; }
.employee-list-block__head p {
  margin: 0 0 0.85rem;
  color: #5a6570;
  font-size: 0.9rem;
  line-height: 1.45;
}
.employee-list-title { margin: 0 0 0.75rem; font-size: 1rem; color: #0F4685; }
.employee-list-filters { margin-bottom: 0.75rem; }
.employee-list-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.5rem;
}
.employee-list-controls .filter-label { font-size: 0.9rem; color: #495057; margin-right: 0.25rem; }
.employee-list-filters .filter-radio { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; cursor: pointer; margin: 0; }
.employee-list-filters .filter-radio input { width: auto; margin: 0; }
.letter-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 0.5rem 0;
}
.letter-filter .filter-label { margin-right: 0.35rem; font-size: 0.9rem; }
.letter-link {
  display: inline-block; padding: 0.2rem 0.4rem; font-size: 0.85rem;
  color: #0F4685; text-decoration: none; border-radius: 4px; border: 1px solid transparent;
}
.letter-link:hover { background: rgba(15, 70, 133, 0.1); }
.letter-link.active { background: #0F4685; color: #fff; }
.per-page-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem;
}
.per-page-row label,
.per-page-row .emp-qf--inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  margin: 0;
}
.per-page-row .emp-qf--inline span { white-space: nowrap; }
.per-page-row select { padding: 0.25rem 0.5rem; width: auto; }
.employee-list-total { font-size: 0.9rem; color: #6c757d; margin: 0 0 0.5rem; }
.employee-list-table { font-size: 0.9rem; }
.employee-list-table th, .employee-list-table td { padding: 0.4rem 0.5rem; }
.employee-list-pagination { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e9ecef; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.85rem; }

/* Новости: заставка и inline-изображения (ширина/позиция/обводка) */
.news-detail-cover {
  max-width: 100%;
  width: auto;
  display: block;
  margin: 1rem auto;
}
.news-detail-content {
  overflow: auto;
}
.news-detail-content .news-inline-image {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 1rem auto;
  text-align: center;
}
.news-detail-content .news-inline-image--left {
  float: left;
  margin: 0.2rem 1rem 0.8rem 0;
}
.news-detail-content .news-inline-image--right {
  float: right;
  margin: 0.2rem 0 0.8rem 1rem;
}
.news-detail-content .news-inline-image img,
.news-detail-content .news-inline-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}
.news-detail-content figcaption {
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 0.4rem;
  text-align: center;
}

/* Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.table th,
.table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}
.table th:last-child,
.table td:last-child {
  border-right: none;
}
.table th { background: #f8f9fa; font-weight: 600; }
.table a { color: var(--accent); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.admin-table { font-size: 0.85rem; }
.admin-table th { font-size: 0.85rem; }
.admin-table td { font-size: 0.83rem; }

/* Footer — 100% ширины, тёмно-синий */
.footer { position: relative; width: 100%; background: #1a365d; color: #fff; margin-top: 3rem; }
[data-theme="dark"] .footer { background: #0d2137; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem 1rem; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 1.5rem; }
.footer-col h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.95); }
.footer-col p { margin: 0.5rem 0; font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.9); display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-col p svg { flex-shrink: 0; margin-top: 2px; }
.footer-social-icons { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 50%; color: #fff; transition: background 0.2s; }
.footer-social-icons a:hover { background: rgba(255,255,255,0.3); }
.footer-contact-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact-form input,
.footer-contact-form textarea { background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.1); border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.9rem; font-family: inherit; color: #333; }
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder { color: #888; }
.footer-form-btn { align-self: flex-start; padding: 0.5rem 1.25rem; background: #003f81; color: #fff; border: none; border-radius: 6px; font-family: inherit; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.footer-form-btn:hover { background: #0052a3; }
.footer-author { margin-bottom: 1rem; }
.footer-author-name { font-weight: 600; margin-bottom: 0.25rem !important; }
.footer-author-role { font-size: 0.85rem !important; opacity: 0.9; }
.footer-bottom { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; }
.footer-copy { margin: 0; font-size: 0.85rem; opacity: 0.85; }
@media (max-width: 992px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Кнопка «Наверх» */
.scroll-top-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #fff; color: #0f4b92; border: 3px solid #0f4b92; border-radius: 50%; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease; z-index: 1000; box-shadow: 0 3px 10px rgba(0, 63, 129, 0.18); }
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 63, 129, 0.24); }
.scroll-top-btn svg { width: 26px; height: 26px; stroke-width: 2.6; }
[data-theme="dark"] .scroll-top-btn { background: #0f1f33; color: #8ec5ff; border-color: #8ec5ff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); }

/* Hero: цитаты + слайдер */
.hero-slider-section { padding: 1rem 0 2rem; background: #F8FAFC; }
.hero-quote-block {
    text-align: center;
    padding: 1rem 1.5rem;
    margin: 0 auto 1rem;
    max-width: 900px;
    background: transparent;
    line-height: 1.5;
}
.hero-slider-layout {
    display: grid;
    grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) minmax(90px, 140px);
    gap: 0.65rem;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0.75rem;
}
.hero-slider-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}
.hero-side-thumb {
    flex: 1 1 0;
    min-height: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #dfe7f1;
    opacity: 0.88;
    transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-side-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-side-thumb:hover,
.hero-side-thumb.active {
    opacity: 1;
    border-color: #003f81;
    box-shadow: 0 2px 10px rgba(0, 63, 129, 0.2);
}
.hero-slider-wrap { position: relative; max-width: none; margin: 0; min-width: 0; }
.hero-slider { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.hero-slider .hero-slide { display: none; position: relative; }
.hero-slider .hero-slide.active { display: block; }
.hero-slider .hero-slide img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
}
.hero-slide-overlay {
    position: absolute;
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.9);
    color: #002750;
    font-size: 0.95rem;
    border-radius: 6px;
    max-width: 45%;
    z-index: 2;
}
.hero-overlay-top_left { top: 1rem; left: 1rem; }
.hero-overlay-top_right { top: 1rem; right: 1rem; }
.hero-overlay-bottom_left { bottom: 1rem; left: 1rem; }
.hero-overlay-bottom_right { bottom: 1rem; right: 1rem; }
.hero-overlay-bottom_center {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 70%;
}
.hero-slider-stop {
    display: block;
    margin: 0.75rem auto 0;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #003f81;
    background: #fff;
    color: #003f81;
    cursor: pointer;
    font-size: 0.85rem;
}
.hero-slider-stop:hover {
    background: #003f81;
    color: #fff;
}
.hero-slider-placeholder img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.hero-slider-placeholder { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); max-width: 900px; margin: 0 auto; }
@media (max-width: 1100px) {
    .hero-slider-layout {
        grid-template-columns: minmax(72px, 110px) minmax(0, 1fr) minmax(72px, 110px);
        gap: 0.5rem;
        padding: 0;
    }
    .hero-slider .hero-slide img,
    .hero-slider-placeholder img {
        height: 380px;
    }
}
@media (max-width: 900px) {
    .hero-slider-layout {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
        padding: 0;
    }
    .hero-slider-wrap {
        flex: 1 0 100%;
        order: 0;
    }
    .hero-slider-side {
        display: contents;
    }
    .hero-side-thumb {
        flex: 1 1 calc(25% - 0.4rem);
        min-width: 64px;
        max-width: calc(25% - 0.35rem);
        height: 64px;
        min-height: 64px;
        order: 1;
    }
    .hero-slider .hero-slide img,
    .hero-slider-placeholder img {
        height: 240px;
    }
    .hero-slide-overlay {
        max-width: 88%;
        font-size: 0.82rem;
        padding: 0.5rem 0.7rem;
    }
    .hero-overlay-bottom_center { max-width: 92%; }
    .hero-quote-block {
        padding: 0.65rem 0.75rem;
        margin-bottom: 0.65rem;
        font-size: 0.95rem;
        word-break: break-word;
    }
}
@media (max-width: 480px) {
    .hero-side-thumb {
        flex: 1 1 calc(33.333% - 0.35rem);
        max-width: calc(33.333% - 0.3rem);
        height: 56px;
        min-height: 56px;
    }
    .hero-slider .hero-slide img,
    .hero-slider-placeholder img {
        height: 200px;
    }
}

/* Главная: компактная статистика после слайдера */
.home-quick-stats {
    padding: 0.9rem 0 1.15rem;
    background: #f2f8fd;
}
.home-quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    padding-bottom: 0.2rem;
}
.home-quick-stat-card {
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 10px;
    padding: 0.7rem 0.6rem 0.65rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 70, 133, 0.08);
    min-width: 0;
}
.home-quick-stat-icon {
    font-size: 1rem;
    color: #0f4b92;
    line-height: 1;
}
.home-quick-stat-value {
    margin-top: 0.3rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f4b92;
    line-height: 1.05;
}
.home-quick-stat-label {
    margin-top: 0.18rem;
    font-size: 0.78rem;
    color: #51657d;
    line-height: 1.2;
    word-break: break-word;
}
@media (min-width: 1101px) {
    .home-quick-stats-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .home-quick-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
    .home-quick-stat-value { font-size: 1.4rem; }
    .home-quick-stat-label { font-size: 0.72rem; }
}

/* Admin: закладки (вкладки) */
.admin-tabs,
.approval-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0 0 0;
    border-bottom: 2px solid #b7c9dc;
    background: linear-gradient(180deg, rgba(242, 248, 253, 0.9), rgba(242, 248, 253, 0.35));
}
.admin-tabs li,
.approval-tabs li {
    margin: 0;
    display: flex;
}
.admin-tabs li a,
.approval-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    min-height: 2.6rem;
    border: 1px solid #b7c9dc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #f0f5fa;
    color: #0f4685;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-tabs li a i,
.approval-tabs a i {
    font-size: 1.05rem;
    line-height: 1;
}
.admin-tabs li a:hover,
.approval-tabs a:hover {
    background: #e4eef8;
    color: #0a3566;
}
.admin-tabs li.active a,
.approval-tabs a.active {
    background: #0f4685;
    border-color: #0f4685;
    color: #fff;
    position: relative;
    z-index: 1;
    margin-bottom: -2px;
    padding-bottom: calc(0.65rem + 2px);
}
.admin-tabs li.active a:hover,
.approval-tabs a.active:hover {
    background: #0d3d73;
    color: #fff;
}
.text-muted { color: #6c757d; font-size: 0.9rem; margin-bottom: 0.5rem; }
.inline-checkbox { display: inline-block; margin-left: 0.5rem; font-weight: normal; }
.slider-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.slider-image-card { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 0.75rem; position: relative; }
.slider-image-card .slider-checkbox { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1; }
.slider-image-card .slider-thumb { height: 100px; overflow: hidden; border-radius: 4px; margin-bottom: 0.5rem; }
.slider-image-card .slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider-image-card .slider-filename { font-size: 0.8rem; color: #666; margin-bottom: 0.5rem; word-break: break-all; }
.slider-image-card .slider-overlay, .slider-image-card .slider-position { font-size: 0.85rem; }
.slider-image-card .slider-overlay input, .slider-image-card .slider-position select { margin-top: 0.25rem; width: 100%; }

/* Hero image with clickable overlays (legacy) */
.hero-image-section { padding: 1rem 0 2rem; background: #fff; }
.hero-image-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.hero-image { display: block; width: 100%; height: auto; }
.hero-image-links { position: absolute; inset: 0; }
.hero-link { position: absolute; display: flex; align-items: center; justify-content: center; padding: 0.35rem 0.6rem; background: rgba(0, 63, 129, 0.75); color: #fff !important; text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: 12px; transition: background 0.2s, transform 0.2s; }
.hero-link:hover { background: rgba(0, 63, 129, 0.95); transform: scale(1.05); }
.hero-link-1 { top: 38%; left: 22%; min-width: 90px; }
.hero-link-2 { top: 68%; left: 15%; min-width: 120px; }
.hero-link-3 { top: 68%; left: 32%; min-width: 100px; }
.hero-link-4 { top: 68%; left: 52%; min-width: 140px; }
.hero-link-5 { top: 68%; left: 75%; min-width: 140px; }
@media (max-width: 768px) {
  .hero-link { font-size: 0.7rem; padding: 0.25rem 0.4rem; min-width: auto !important; }
  .hero-link-1 { top: 36%; left: 18%; }
  .hero-link-2 { top: 65%; left: 5%; }
  .hero-link-3 { top: 65%; left: 28%; }
  .hero-link-4 { top: 65%; left: 50%; }
  .hero-link-5 { top: 65%; left: 72%; }
}

/* Landing sections */
.hero-section { padding: 3rem 0; background: linear-gradient(to bottom, #F2F8FD, #fff); }
.hero-title { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; color: #003f81; }
.hero-bubbles { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-bubble { background: #F2F8FD; padding: 0.5rem 1rem; border-radius: 20px; font-size: 1rem; color: #003f81; box-shadow: -3px -3px 8px #FEFFFF, 2px 2px 8px #DDEAF4; }
.hero-lenta h2 { color: #FC6F1A; font-weight: 900; margin-bottom: 1rem; }
.hero-blocks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-blocks span { background: #F2F8FD; padding: 0.5rem 1rem; border-radius: 12px; font-size: 0.9rem; box-shadow: -2px -2px 6px #FEFFFF, 2px 2px 6px #DDEAF4; }

#info, #opora-zashita, #usloviya-truda, #uverennost, #kollektivnyy-dogovor, #stats, #org-structure { scroll-margin-top: 1rem; }
.info-section { padding: 3rem 0; }
.section-accent { color: #FC6F1A; font-size: 1.2rem; margin-bottom: 1.5rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } }
.info-box h1 { color: #003f81; font-size: 1.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid #FC6F1A; }
.info-box p {
    margin: 0.7rem 0;
    line-height: 1.6;
    text-align: justify;
}
.tasks-box { background: #F2F8FD; padding: 2rem; border-radius: 20px; }
.tasks-box h2 { color: #FC6F1A; margin-bottom: 1rem; }
.tasks-accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.task-accordion-item {
    border-radius: 16px;
    background: #F2F8FD;
    box-shadow: -3px -3px 8px #FEFFFF, 3px 3px 8px #DDEAF4;
    overflow: hidden;
}
.task-accordion-header {
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #003f81;
    cursor: pointer;
}
.task-accordion-body {
    display: none;
    padding: 0 1rem 0.9rem;
    font-size: 0.9rem;
}
.task-accordion-body p { margin: 0.4rem 0; text-align: justify; }
.task-accordion-body ul { margin: 0.4rem 0 0.2rem 1.2rem; padding: 0; }
.task-accordion-body li { margin-bottom: 0.25rem; }
.task-accordion-item.open .task-accordion-body { display: block; }

.stats-section { padding: 1.5rem 0 2rem; background: #F2F8FD; }
.stats-section h2 { margin: 0 0 0.35rem; font-size: 1.45rem; line-height: 1.25; }
.accent { color: #FC6F1A; }
.stats-top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 0.35rem;
}
.stats-progress-col {
    flex: 1 1 360px;
    max-width: none;
    min-width: 0;
}
.stats-chart-col {
    flex: 0 1 340px;
    max-width: 360px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 1rem;
}
@media (max-width: 768px) {
    .stats-section { padding: 1.1rem 0 1.4rem; }
    .stats-section h2 { font-size: 1.2rem; }
    .stats-top-row {
        flex-direction: column;
        gap: 1rem;
    }
    .stats-progress-col,
    .stats-chart-col {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
    .stats-chart-col {
        position: static;
        justify-content: stretch;
    }
    .stats-age-chart-inline {
        max-width: none;
    }
    .stats-age-chart-inline .chart-container {
        max-width: none;
        height: 260px;
    }
    .stats-age-chart-toolbar {
        justify-content: stretch;
        flex-wrap: wrap;
    }
    .stats-age-chart-type {
        flex: 1 1 auto;
        min-width: 0;
    }
    .stats-joined-item,
    .stats-extra-item {
        flex: 1 1 100%;
    }
}
.stats-age-chart-inline {
    width: 100%;
    max-width: 380px;
}
.stats-age-chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
.stats-age-chart-type-label {
    font-size: 0.85rem;
    color: #003f81;
    margin: 0;
}
.stats-age-chart-type {
    min-width: 140px;
    padding: 0.35rem 0.55rem;
    border: 1px solid #c5d6e8;
    border-radius: 8px;
    background: #fff;
    color: #003f81;
    font-size: 0.85rem;
}
.stats-age-chart-inline .chart-container {
    width: 100%;
    max-width: 320px;
    height: 280px;
    margin: 0 auto 0.2rem;
}
[data-theme="dark"] .stats-age-chart-type-label,
[data-theme="dark"] .stats-age-chart-type {
    color: var(--text-primary);
}
[data-theme="dark"] .stats-age-chart-type {
    background: var(--bg-elevated, #1e2430);
    border-color: var(--border-color);
}
.stats-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0.55rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.15rem;
    color: #003f81;
    font-size: 0.92rem;
}
.stats-benefits-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.stats-benefits-list i {
    color: #FC6F1A;
    font-size: 1.05rem;
}
.stats-progress-wrap {
    height: 18px;
    background: #DDEAF4;
    border-radius: 12px;
    overflow: hidden;
    margin: 0.35rem 0 0.4rem;
    width: 100%;
}
.stats-progress-bar { height: 100%; background: #FC6F1A; border-radius: 10px; transition: width 0.5s ease; }
.stats-people { margin: 0; color: #003f81; font-size: 0.95rem; line-height: 1.35; }
.stats-joined { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid #DDEAF4; }
.stats-joined h3 { margin: 0 0 0.55rem; font-size: 1.05rem; color: #003f81; }
.stats-joined-grid { display: flex; gap: 0.75rem 1rem; flex-wrap: wrap; }
.stats-joined-item { padding: 0.5rem 1rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-size: 0.92rem; }
.stats-joined-item strong { color: #FC6F1A; font-size: 1.15rem; }
.stats-extra {
    margin-top: 0.7rem;
}
.stats-extra h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: #003f81;
}
.stats-extra-grid {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.stats-extra-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stats-extra-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F2F8FD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FC6F1A;
    font-size: 1.2rem;
}
.stats-extra-value {
    font-weight: 700;
    color: #FC6F1A;
}
.stats-extra-label {
    font-size: 0.9rem;
    color: #003f81;
}
.stats-age-chart { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #DDEAF4; }
.stats-age-chart h3 { margin: 0 0 1rem; font-size: 1.1rem; color: #003f81; }
.chart-container { max-width: 320px; margin: 0 auto; }
.admin-stats-box { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.admin-stats-box p { margin: 0.25rem 0; }

/* Структура профсоюзной организации */
.org-structure-section { padding: 3rem 0; background: #fff; }
@media (max-width: 768px) {
    .org-structure-section { display: none; }
}
.org-structure-section .section-title { text-align: center; margin: 0 0 2rem; color: #003f81; }
.org-structure-chart {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.org-structure-chart::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #0F4685;
  opacity: 0.6;
}
.org-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}
.org-row-1, .org-row-2 { gap: 4rem; }
.org-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.org-cell.org-left {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.org-cell.org-right {
  flex-direction: row;
  justify-content: flex-start;
}
.org-cell.org-center {
  flex-direction: column;
  align-items: center;
}
.org-box { background: #F2F8FD; border: 2px solid #003f81; border-radius: 12px; padding: 1rem 1.5rem; text-align: center; max-width: 280px; box-shadow: 0 2px 8px rgba(0,63,129,0.15); }
.org-logo { width: 60px; height: 60px; margin: 0 auto 0.5rem; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-title { font-size: 0.85rem; font-weight: 600; color: #003f81; line-height: 1.3; }
.org-persons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.org-person { text-align: center; }
.org-person-photo { width: 80px; height: 100px; overflow: hidden; border-radius: 8px; margin: 0 auto 0.35rem; border: 2px solid #DDEAF4; }
.org-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.org-person-name { font-size: 0.75rem; color: #003f81; font-weight: 500; max-width: 100px; line-height: 1.2; }
@media (max-width: 768px) {
  .org-row { flex-direction: column; align-items: center; gap: 1rem; }
  .org-cell {
    flex-direction: column;
    align-items: center !important;
  }
}

.employers-section { padding: 3rem 0; }
.employers-section h2 { text-align: center; margin-bottom: 2rem; }
.employers-slider { position: relative; max-width: 900px; margin: 0 auto; }
.employers-track { position: relative; overflow: hidden; }
.employer-card {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: #F2F8FD;
  border-radius: 20px;
  box-shadow: inset -3px -3px 15px #FEFFFF, inset 3px 3px 10px #DDEAF4;
  align-items: stretch;
}
.employer-card.active { }
.employer-photo { flex-shrink: 0; width: 260px; height: 330px; overflow: hidden; border-radius: 20px; }
.employer-photo img { width: 100%; height: 100%; object-fit: cover; }
.employer-info { min-width: 0; }
.employer-info h3 { margin: 0 0 0.25rem; font-weight: 600; }
.employer-info h4 { font-style: italic; font-weight: 400; margin: 0 0 1rem; font-size: 0.9rem; }
.employer-info p { margin: 0.5rem 0; line-height: 1.6; font-size: 0.9rem; word-break: break-word; }
.employer-sign { font-style: italic; text-align: right; margin-top: 1rem !important; }
.employers-prev,
.employers-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #003f81;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}
.employers-prev { left: -20px; }
.employers-next { right: -20px; }
.employers-prev:hover,
.employers-next:hover { background: #f1f5f9; }
@media (max-width: 768px) {
  .employers-section { padding: 1.75rem 0; }
  .employers-section h2 { margin-bottom: 1.1rem; font-size: 1.25rem; }
  .employer-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .employer-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }
  .employers-prev { left: 0.35rem; }
  .employers-next { right: 0.35rem; }
  .employers-prev,
  .employers-next {
    width: 36px;
    height: 36px;
    z-index: 2;
  }
}
.employers-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.employer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #cbd5e0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.employer-dot.active {
  border-color: #003f81;
  background: #003f81;
}
.employers-toggle {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #003f81;
  background: #fff;
  color: #003f81;
  cursor: pointer;
  font-size: 0.85rem;
}
.employers-toggle:hover { background: #003f81; color: #fff; }

.cta-section { padding: 3rem 0; text-align: center; background: #F2F8FD; }
.cta-section h2 { margin: 0 0 0.5rem; }
.cta-section .btn { margin-top: 1rem; }

.join-section { padding: 1.25rem 0; text-align: left; }
.join-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.85rem;
}
.join-section h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #003f81;
}
.join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.join-section .btn {
    margin: 0;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}
.join-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: none;
    margin: 0;
    text-align: left;
}
.join-step {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: #F2F8FD;
    border-radius: 12px;
    min-height: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #003f81;
}
.join-step strong {
    color: #FC6F1A;
    margin-right: 0;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.3;
}
.join-step span { min-width: 0; }
@media (max-width: 900px) {
    .join-steps { grid-template-columns: 1fr; }
    .join-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .join-section { padding: 1rem 0 1.25rem; }
    .join-section h2 { font-size: 1.15rem; }
    .join-actions { width: 100%; }
    .join-section .btn {
        flex: 1 1 auto;
        text-align: center;
        white-space: normal;
    }
    .join-step { font-size: 0.86rem; }
}
.btn-outline { background: transparent; border: 2px solid #003f81; color: #003f81 !important; }
.btn-outline:hover { background: #003f81; color: #fff !important; }

/* Админка: сотрудники — фильтры, таблица, пагинация */
.admin-body .main-inner { width: 100%; max-width: 100%; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: flex-start; margin-bottom: 1rem; }
.admin-filters label { font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-filters input[type="text"], .admin-filters select, .admin-filters input[type="number"] { min-width: 140px; }
.admin-search-row { display: flex; align-items: flex-end; gap: 0.5rem; margin-bottom: 1rem; width: 100%; flex-wrap: wrap; }
.admin-search-label { flex: 1; min-width: 200px; }
.admin-search-input { width: 100%; max-width: 400px; padding: 0.5rem 0.75rem; font-size: 1rem; }
.admin-filters { margin-bottom: 1rem; }
.admin-filters-inline .admin-filters-fieldset { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.admin-filters-fieldset { border: 1px solid #dee2e6; border-radius: 6px; padding: 1rem; margin: 0 0 1rem; background: #f8f9fa; }
.admin-filters-fieldset legend { font-weight: 600; padding: 0 0.5rem; width: 100%; margin-bottom: 0.25rem; }
.admin-filters-fieldset label { margin-right: 0.5rem; margin-bottom: 0.5rem; display: inline-flex; flex-direction: column; align-items: flex-start; }
.admin-filters-fieldset label input[type="text"],
.admin-filters-fieldset label input[type="date"],
.admin-filters-fieldset label input[type="search"] { min-width: 140px; }
.admin-filters-fieldset select { min-width: 160px; }
.admin-filters-fieldset .btn { margin-top: 0.25rem; }
.employees-filters-form { flex: 1; min-width: 280px; }
.admin-export-label { font-size: 0.9rem; color: #495057; margin-right: 0.25rem; }
.admin-export-row { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.btn-export { font-size: 0.9rem; }
.admin-filters-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* Верифицированные пользователи */
.vu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
    margin: 0 0 1.25rem;
}
.vu-card {
    width: 100%;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.vu-card--tools { background: #fff; }
.vu-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.vu-card__head h2 i { color: #FC6F1A; }
.vu-card__head p,
.vu-card__note {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.vu-card__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.vu-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}
.vu-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.vu-qf em { color: #dc3545; font-style: normal; }
.vu-qf input,
.vu-qf select {
    width: 100%;
    font-weight: 400;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}
.vu-qf input:focus,
.vu-qf select:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.vu-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.vu-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.vu-card .btn i,
.vu-create-form .btn i { margin-right: 0.3rem; }
.vu-create-card {
    width: 100%;
    max-width: none;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.vu-create-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.vu-create-card__head h2 i { color: #FC6F1A; }
.vu-create-card__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.vu-create-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: none;
}
.vu-create-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}
.vu-qf-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1a323c;
    cursor: pointer;
}
.vu-qf-check input { width: auto; margin: 0.15rem 0 0; }
.vu-create-form__hint {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #5a6570;
    font-size: 0.88rem;
    line-height: 1.45;
}
.vu-create-form__hint i { color: #0F4685; margin-top: 0.1rem; }
.vu-create-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
@media (max-width: 980px) {
    .vu-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .vu-card__grid,
    .vu-create-form__row { grid-template-columns: 1fr; }
}

/* Просмотр пользователя */
.vu-view-layout {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin: 0 0 1.5rem;
    width: 100%;
}
.vu-view-card {
    width: 100%;
    max-width: none;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.vu-view-card--actions { background: #fff; }
.vu-view-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.vu-view-card__head h2 i { color: #FC6F1A; }
.vu-view-card__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.vu-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0;
}
.vu-view-item {
    min-width: 0;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 10px;
}
.vu-view-item dt {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a6570;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.vu-view-item dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0F4685;
    word-break: break-word;
}
.vu-view-role-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 420px;
}
.vu-view-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.vu-view-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.vu-view-card__buttons form { display: inline; margin: 0; }
.vu-view-card__note {
    color: #5a6570;
    font-size: 0.9rem;
}
.vu-view-card .btn i { margin-right: 0.3rem; }
@media (max-width: 900px) {
    .vu-view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .vu-view-grid { grid-template-columns: 1fr; }
    .vu-view-role-form { max-width: none; }
}

/* Настройки почты обратной связи */
.contact-settings-card {
    width: 100%;
    max-width: none;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.contact-settings-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.contact-settings-card__head h2 i { color: #FC6F1A; }
.contact-settings-card__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.contact-settings-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: none;
}
.contact-qf {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a323c;
}
.contact-qf em { color: #dc3545; font-style: normal; }
.contact-qf textarea {
    width: 100%;
    min-height: 180px;
    font-weight: 400;
    padding: 0.75rem 0.85rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}
.contact-qf textarea:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.contact-settings-form__help {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #5a6570;
    font-size: 0.88rem;
    line-height: 1.45;
}
.contact-settings-form__help i {
    color: #0F4685;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.contact-settings-form__help code {
    font-size: 0.88em;
    background: #eef4fb;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}
.contact-settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.contact-settings-card .btn i { margin-right: 0.3rem; }

/* Мероприятия: список */
.events-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    margin: 0 0 1.25rem;
}
.events-admin-card {
    width: 100%;
    max-width: none;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.events-admin-card--tools { background: #fff; }
.events-admin-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.events-admin-card__head h2 i { color: #FC6F1A; }
.events-admin-card__head p,
.events-admin-card__note {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.events-admin-card__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.events-admin-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}
.events-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.events-qf input,
.events-qf select {
    width: 100%;
    font-weight: 400;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}
.events-qf input:focus,
.events-qf select:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.events-admin-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.events-admin-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.events-admin-card .btn i { margin-right: 0.3rem; }
@media (max-width: 1100px) {
    .events-admin-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 980px) {
    .events-admin-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .events-admin-card__grid {
        grid-template-columns: 1fr;
    }
}

/* Новости: список, импорт, модерация комментариев */
.news-admin-layout,
.comments-mod-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    margin: 0 0 1.25rem;
}
.news-admin-card,
.comments-mod-card,
.news-import-card {
    width: 100%;
    max-width: none;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.news-admin-card--tools,
.comments-mod-card--tools {
    background: #fff;
}
.news-admin-card__head h2,
.comments-mod-card__head h2,
.news-import-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.news-admin-card__head h2 i,
.comments-mod-card__head h2 i,
.news-import-card__head h2 i { color: #FC6F1A; }
.news-admin-card__head p,
.comments-mod-card__head p,
.news-import-card__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.news-admin-card__form,
.comments-mod-card__form,
.news-import-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: none;
}
.news-admin-card__grid {
    display: grid;
    gap: 0.75rem 1rem;
}
.news-admin-card__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.comments-mod-card__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0.75rem 1rem;
}
.news-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.news-qf em { color: #dc3545; font-style: normal; }
.news-qf input,
.news-qf select {
    width: 100%;
    font-weight: 400;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}
.news-qf input:focus,
.news-qf select:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.news-admin-card__buttons,
.comments-mod-card__buttons,
.news-import-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.news-admin-card__actions,
.comments-mod-card__actions,
.news-import-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.news-admin-card .btn i,
.comments-mod-card .btn i,
.news-import-card .btn i { margin-right: 0.3rem; }
.news-import-card { margin: 0 0 1.5rem; }
.news-import-card__alert {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ffe08a;
    background: #fff8e1;
    border-radius: 10px;
    color: #7a5b00;
    font-size: 0.92rem;
    line-height: 1.45;
}
.news-import-card__alert code {
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}
.news-qf--file {
    padding: 0.85rem 1rem;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
    background: #f7fbff;
    color: #0F4685;
}
.news-qf--file > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.news-qf--file > span i { color: #FC6F1A; }
.news-qf--file input[type="file"] {
    font-weight: 400;
    color: #1a323c;
}
.news-import-form__help {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #5a6570;
    font-size: 0.88rem;
    line-height: 1.5;
}
.news-import-form__help i {
    color: #0F4685;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.news-import-form__help code {
    font-size: 0.88em;
    background: #eef4fb;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}
@media (max-width: 1100px) {
    .news-admin-card__grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 980px) {
    .news-admin-layout,
    .comments-mod-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .news-admin-card__grid--4,
    .comments-mod-card__grid {
        grid-template-columns: 1fr;
    }
}

/* Импорт сотрудников */
.employee-import-card {
    width: 100%;
    max-width: none;
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.employee-import-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.employee-import-card__head h2 i { color: #FC6F1A; }
.employee-import-card__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.employee-import-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.employee-import-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: none;
}
.employee-import-form .emp-qf--file {
    padding: 0.85rem 1rem;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
    background: #f7fbff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0F4685;
}
.employee-import-form .emp-qf--file em { color: #dc3545; font-style: normal; }
.employee-import-form .emp-qf--file > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.employee-import-form .emp-qf--file > span i { color: #FC6F1A; }
.employee-import-form .emp-qf--file input[type="file"] {
    width: 100%;
    font-weight: 400;
    color: #1a323c;
}
.employee-import-form__help {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #5a6570;
    font-size: 0.88rem;
    line-height: 1.5;
}
.employee-import-form__help i { color: #0F4685; margin-top: 0.15rem; flex-shrink: 0; }
.employee-import-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.employee-import-card .btn i { margin-right: 0.3rem; }

/* Панель сотрудников — как карточки «Поздравления» */
.employees-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
    margin: 0 0 1.25rem;
}
.employees-card {
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.employees-card--tools {
    background: #fff;
}
.employees-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.employees-card__head h2 i { color: #FC6F1A; }
.employees-card__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.employees-card__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.employees-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}
.emp-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.emp-qf input,
.emp-qf select {
    width: 100%;
    font-weight: 400;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
}
.emp-qf input:focus,
.emp-qf select:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.employees-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.employees-card__filebox {
    padding: 0.85rem 1rem;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
    background: #f7fbff;
    margin-bottom: 0.85rem;
}
.employees-card__filebox-title {
    margin: 0 0 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0F4685;
}
.employees-card__filebox-title i { color: #FC6F1A; }
.employees-card__filebox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.employees-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
}
.employees-card .btn i { margin-right: 0.3rem; }
@media (max-width: 980px) {
    .employees-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .employees-card__grid {
        grid-template-columns: 1fr;
    }
}
/* Главная — Цитаты: две части, до 200 знаков */
.admin-homepage-section { margin-bottom: 2rem; padding: 1.25rem; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef; }
.admin-homepage-quotes-part { margin-bottom: 1.5rem; }
/* Компактный список цитат: одна строка на цитату */
.admin-homepage-quotes-form .quote-list-compact { display: flex; flex-direction: column; gap: 0; max-width: 920px; }
.admin-homepage-quotes-form .quote-row {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.4rem 0; border-bottom: 1px solid #e9ecef;
}
.admin-homepage-quotes-form .quote-row:last-child { border-bottom: none; }
.admin-homepage-quotes-form .quote-row-num { flex: 0 0 2rem; font-weight: 600; color: #0F4685; font-size: 0.9rem; }
.admin-homepage-quotes-form .quote-row-field { flex: 1 1 260px; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.admin-homepage-quotes-form .quote-input { flex: 1; min-width: 0; padding: 0.4rem 0.6rem; font-size: 0.95rem; border: 1px solid #ced4da; border-radius: 4px; }
.admin-homepage-quotes-form .quote-char-count-inline { flex: 0 0 auto; font-size: 0.75rem; color: #6c757d; white-space: nowrap; }
.admin-homepage-quotes-form .quote-row-check { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; cursor: pointer; white-space: nowrap; }
@media (max-width: 640px) {
  .admin-homepage-quotes-form .quote-row-field { flex-basis: 100%; }
}
.admin-homepage-quotes-form .quote-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
.admin-homepage-quotes-form .quote-fields-grid .quote-field-label {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .admin-homepage-quotes-form .quote-fields-grid {
    grid-template-columns: 1fr;
  }
}
.admin-homepage-settings-part { margin-bottom: 1.5rem; }
.admin-homepage-quotes-form .quote-field-label { display: block; margin-bottom: 1rem; }
.admin-homepage-quotes-form .quote-textarea { width: 100%; max-width: 600px; resize: vertical; }
.admin-homepage-quotes-form .quote-char-count { font-size: 0.8rem; color: #6c757d; display: block; margin-top: 0.25rem; }
.admin-homepage-quotes-form .inline-checkbox { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; }
.admin-homepage-quotes-form .color-input { width: 60px; height: 32px; padding: 2px; }
.admin-homepage-quotes-form h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.admin-homepage-quotes-form h2 + .text-muted { margin-bottom: 1rem; }
.admin-homepage-quotes-form .admin-homepage-section label:not(.inline-checkbox) { margin-bottom: 0.5rem; }
.table-scroll { overflow-x: auto; }
.admin-pagination { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-top: 0.75rem; font-size: 0.9rem; }
.admin-pagination-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.admin-pagination .page { padding: 0.25rem 0.55rem; border-radius: 4px; border: 1px solid #cbd5e0; text-decoration: none; color: #2d3748; }
.admin-pagination .page.current { background: #003f81; border-color: #003f81; color: #fff; }
.employee-actions { display: flex; gap: 0.35rem; align-items: center; white-space: nowrap; }
.table-actions { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; white-space: nowrap; }
.table-actions .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 4px; color: #0F4685; }
.table-actions .icon-btn:hover { background: rgba(15, 70, 133, 0.1); }
.table-actions .icon-btn.danger { color: #c53030; }
.table-actions .icon-btn.danger:hover { background: rgba(197, 48, 48, 0.1); }
.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: #0F4685;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
}
.icon-btn i {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}
.icon-btn:hover { color: #003f81; }
.icon-btn.danger { color: #e53e3e; }
.icon-btn.danger:hover { color: #c53030; }
.admin-lead { color: #4a5568; margin-bottom: 1rem; font-size: 0.95rem; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 500; }
.badge-success { background: #c6f6d5; color: #22543d; }
.badge-danger { background: #fed7d7; color: #c53030; }
.badge-secondary { background: #e2e8f0; color: #4a5568; }
.badge-admin { background: #bee3f8; color: #2b6cb0; }
.admin-table tr.user-blocked { opacity: 0.7; }
.profile-waiting-text { background: #ebf8ff; border-left: 4px solid #0F4685; padding: 1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.5rem; }
.event-verify-notice { background: #fef3c7; border: 1px solid #f59e0b; padding: 1rem; border-radius: 8px; margin-top: 1rem; }
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable .sort-trigger { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; }
.admin-table th.sortable .sort-icon { font-size: 0.7rem; color: #a0aec0; }
.admin-table th.sortable.sorted .sort-icon { color: #003f81; }
.admin-table-compact th,
.admin-table-compact td { padding-top: 0.35rem; padding-bottom: 0.35rem; vertical-align: middle; }
.news-admin-table .table-actions { flex-wrap: nowrap; white-space: nowrap; gap: 0.2rem; }
.news-admin-table .table-actions form { margin: 0; }
.news-admin-table .table-actions .icon-btn { width: 1.65rem; height: 1.65rem; }
.news-admin-table .news-col-images { width: 84px; min-width: 84px; text-align: center; }
.news-date-thumb-cell { white-space: nowrap; }
.news-table-thumb {
    width: 34px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 0.45rem;
    vertical-align: middle;
    border: 1px solid #d5dbe5;
}
.event-categories-table .table-actions { gap: 0.2rem; }
.event-categories-table .table-actions .icon-btn { width: 1.65rem; height: 1.65rem; }
.event-category-inline-edit { margin: 0; }
.event-category-inline-edit input[type="text"] { min-width: 170px; max-width: 220px; height: 28px; padding: 0.2rem 0.4rem; }
.event-category-inline-edit input[type="number"] { width: 84px; height: 28px; padding: 0.2rem 0.35rem; }
.btn-sm { padding: 0.22rem 0.55rem; font-size: 0.82rem; line-height: 1.2; }
.poll-categories-create-form {
  align-items: flex-end;
  gap: 0.8rem 1rem;
}
.poll-categories-name-field { flex: 2 1 320px; min-width: 240px; }
.poll-categories-description-field { flex: 3 1 480px; min-width: 320px; }
.poll-categories-order-field { flex: 0 0 90px; }
.poll-categories-create-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  max-height: 72px;
}
.poll-categories-order-field input[type="number"] {
  width: 86px;
  min-width: 86px;
}
.poll-categories-table th,
.poll-categories-table td {
  vertical-align: top;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.poll-categories-table th:nth-child(1),
.poll-categories-table td:nth-child(1) { width: 52px; }
.poll-categories-table th:nth-child(3),
.poll-categories-table td:nth-child(3) { min-width: 220px; }
.poll-categories-table th:nth-child(4),
.poll-categories-table td:nth-child(4) {
  width: 76px;
  min-width: 76px;
  text-align: center;
}
.poll-categories-table thead th:last-child,
.poll-categories-table tbody td:last-child {
  text-align: center;
  width: 130px;
  min-width: 130px;
}
.poll-categories-table .table-actions {
  justify-content: center;
  gap: 0.3rem;
}
.poll-category-inline-edit {
  margin: 0;
  gap: 0.4rem 0.5rem;
  align-items: flex-start;
}
.poll-category-inline-edit label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: #4a5568;
  margin: 0;
}
.poll-category-inline-name {
  min-width: 170px;
  max-width: 240px;
}
.poll-category-inline-description {
  min-width: 220px;
  max-width: 300px;
  min-height: 40px;
  max-height: 56px;
  resize: vertical;
}
.poll-category-inline-order {
  width: 62px;
  min-width: 62px;
}
.poll-category-description-view {
  color: #4a5568;
  line-height: 1.35;
}
.active-members-admin-table .active-member-name-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.active-members-admin-table .active-member-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #d5dbe5;
  background: #eef2f7;
  flex-shrink: 0;
}
.active-members-admin-table .active-member-thumb--empty {
  display: inline-block;
  background: linear-gradient(135deg, #eef2f7 0%, #dbe6f3 100%);
}
.poll-inline-import-form { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0; }
.poll-inline-file { max-width: 170px; font-size: 0.78rem; }
.poll-share-link-box {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    background: #f4f8fc;
    border: 1px solid #d5e3f0;
    border-radius: 8px;
}
.poll-share-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.4rem 0;
}
.poll-share-link-row input[type="text"] {
    flex: 1 1 220px;
    min-width: 180px;
    font-family: Consolas, monospace;
    font-size: 0.9rem;
}
.poll-table-share {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #5a6570;
}
.poll-table-share code {
    background: #eef3f7;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}
.poll-import-create-form { align-items: stretch; gap: 0.8rem 1rem; }
.poll-create-inline-form {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.75rem;
}
.poll-create-title-field {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}
.poll-create-title-field input[type="text"] {
  width: 520px;
  min-width: 520px;
  max-width: 520px;
}
.poll-create-inline-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.poll-import-file-label { flex: 1 1 280px; max-width: 360px; }
.poll-import-text-label { flex: 2 1 760px; min-width: 520px; }
.poll-import-text-label textarea {
  width: 100%;
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.4;
  background: #f8fafc;
}
.poll-admin-table .poll-cover-cell { width: 78px; min-width: 78px; }
.poll-table-thumb {
  width: 54px;
  height: 36px;
  display: inline-block;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d5dbe5;
  background: #eef2f7;
}
.poll-table-thumb--empty {
  background: linear-gradient(135deg, #eef2f7 0%, #dbe6f3 100%);
}
.poll-admin-table .poll-title-cell {
  min-width: 260px;
  max-width: 420px;
  font-weight: 600;
  color: #1f2d3d;
}
.poll-settings-form {
  align-items: flex-end;
  gap: 0.85rem 1rem;
}
.poll-settings-form .poll-settings-title {
  flex: 2 1 420px;
  min-width: 320px;
}
.poll-settings-form .poll-settings-description {
  flex: 3 1 620px;
  min-width: 420px;
}
.poll-settings-form .poll-settings-description textarea {
  width: 100%;
  min-height: 98px;
  resize: vertical;
}
.poll-cover-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #4a5568;
}
.poll-cover-preview {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d5dbe5;
  background: #eef2f7;
}
.poll-settings-card {
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 18px rgba(15, 70, 133, 0.06);
}
.poll-cover-upload {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: #f4f8fc;
  border: 1px dashed #9db8d6;
  border-radius: 10px;
}
.poll-cover-upload__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #0F4685;
}
.poll-cover-upload__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6570;
}

/* Блок добавления / редактирования вопроса опроса */
.poll-question-editor {
  margin: 1.25rem 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
  border: 1px solid #c9d9ea;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.poll-question-editor.is-editing {
  border-color: #0F4685;
  box-shadow: 0 8px 28px rgba(15, 70, 133, 0.12);
}
.poll-question-editor__head h2 {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #0F4685;
  font-size: 1.25rem;
}
.poll-question-editor__head h2 i { color: #FC6F1A; }
.poll-question-editor__hint {
  margin: 0 0 1rem;
  color: #5a6570;
  font-size: 0.9rem;
}
.poll-question-editor__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.poll-question-editor__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 1rem;
}
.poll-question-editor__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}
.poll-qf {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a323c;
}
.poll-qf em { color: #dc3545; font-style: normal; }
.poll-qf small { font-weight: 400; color: #6c757d; }
.poll-qf input[type="text"],
.poll-qf input[type="number"],
.poll-qf input[type="file"],
.poll-qf select,
.poll-qf textarea {
  width: 100%;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c5d0da;
  border-radius: 8px;
  background: #fff;
  color: #1a323c;
  font-size: 0.95rem;
}
.poll-qf--text textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}
.poll-qf-counter {
  align-self: flex-end;
  font-size: 0.78rem;
  color: #6c757d;
  font-weight: 400;
}
.poll-qf--image {
  padding: 0.75rem;
  background: #fff;
  border: 1px dashed #9db8d6;
  border-radius: 10px;
}
.poll-qf--image span { color: #0F4685; }
.poll-qf-image-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.poll-qf-image-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d9e3ec;
}
.poll-qf--options textarea {
  min-height: 120px;
  resize: vertical;
}
.poll-qf-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a323c;
  padding: 0.45rem 0;
  cursor: pointer;
}
.poll-qf-check input { width: auto; margin: 0; }
.poll-qf-check--inline { font-size: 0.82rem; }
.poll-question-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e4edf5;
}
.poll-question-editor__actions .btn i { margin-right: 0.3rem; }
.poll-questions-list {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
}
.poll-questions-empty { color: #6c757d; margin: 0; }
.poll-questions-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid #e4edf5;
}
.poll-questions-item:first-of-type { border-top: 0; }
.poll-questions-item__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d9e3ec;
  flex: 0 0 auto;
}
.poll-questions-item__body { flex: 1 1 auto; min-width: 0; }
.poll-questions-item__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #6c757d;
}
.poll-questions-item__opts {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #445;
}
.poll-questions-item__actions { margin-top: 0.55rem; }
.poll-question-image-wrap {
  margin: 0.75rem 0 1rem;
}
.poll-question-image {
  display: block;
  max-width: min(100%, 480px);
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #d9e3ec;
}
@media (max-width: 980px) {
  .poll-create-inline-form { flex-wrap: wrap; }
  .poll-create-title-field,
  .poll-create-title-field input[type="text"] { min-width: 100%; max-width: 100%; }
  .poll-import-text-label { min-width: 100%; flex-basis: 100%; }
  .poll-settings-form .poll-settings-title,
  .poll-settings-form .poll-settings-description {
    min-width: 100%;
    flex-basis: 100%;
  }
  .poll-categories-name-field,
  .poll-categories-description-field {
    min-width: 100%;
    flex-basis: 100%;
  }
  .poll-question-editor__main {
    grid-template-columns: 1fr;
  }
}

/* Документы — группы по типам, карточки */
/* Форма добавления / редактирования документа */
.document-form-card {
    max-width: 760px;
    margin: 0.75rem 0 1.5rem;
    padding: 1.35rem 1.45rem 1.45rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 40%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.document-form-card--wide {
    max-width: none;
    width: 100%;
}
.document-form-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.25rem;
}
.document-form-card__head h2 i { color: #FC6F1A; }
.document-form-card__head p {
    margin: 0 0 1.15rem;
    color: #5a6570;
    font-size: 0.92rem;
    line-height: 1.45;
}
.document-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.document-form__row {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.4fr);
    gap: 0.85rem 1rem;
}
.document-form__row--3 {
    grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.5fr) minmax(200px, 1fr);
}
.document-form__files {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}
.doc-qf {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a323c;
}
.doc-qf em {
    color: #dc3545;
    font-style: normal;
}
.doc-qf small {
    font-weight: 400;
    color: #6c757d;
}
.doc-qf input[type="text"],
.doc-qf select,
.doc-qf input[type="file"] {
    width: 100%;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
}
.doc-qf input[type="text"]:focus,
.doc-qf select:focus,
.doc-qf input[type="file"]:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.doc-qf--file {
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
}
.doc-qf--file > span {
    color: #0F4685;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.doc-qf--file > span i {
    color: #FC6F1A;
    font-size: 1.15rem;
}
.doc-qf-current {
    display: block;
    margin-top: 0.15rem;
    color: #5a6570 !important;
    word-break: break-all;
}
.document-form__hint {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    background: #f4f8fc;
    border-radius: 8px;
    color: #5a6570;
    font-size: 0.88rem;
    line-height: 1.4;
}
.document-form__hint i {
    color: #0F4685;
    margin-top: 0.1rem;
}
.document-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e4edf5;
}
.document-form__actions .btn i { margin-right: 0.3rem; }
.document-visibility-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: #0F4685;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.document-stat-cell {
    text-align: center;
    font-weight: 600;
    color: #0F4685;
    white-space: nowrap;
}
.document-card-stats {
    display: flex;
    gap: 0.85rem;
    margin: 0 0 0.65rem;
    padding: 0 0.25rem;
    font-size: 0.85rem;
    color: #5a6570;
}
.document-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.document-card-stats i { color: #0F4685; }
@media (max-width: 900px) {
    .document-form__row--3 {
        grid-template-columns: 1fr 1fr;
    }
    .document-form__row--3 .doc-qf--title {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .document-form__row,
    .document-form__row--3,
    .document-form__files {
        grid-template-columns: 1fr;
    }
    .document-form__row--3 .doc-qf--title {
        grid-column: auto;
    }
    .document-form-card {
        padding: 1.1rem 1rem 1.2rem;
    }
}

.documents-page { padding-bottom: 2rem; }
.documents-group {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,70,133,0.15);
  width: 100%;
}
.documents-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #1a365d;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border: none;
  text-align: left;
  position: relative;
}
.documents-group-header svg { flex-shrink: 0; }
.documents-group-count { margin-left: auto; background: rgba(255,255,255,0.25); padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.9rem; }
.documents-group-header::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.5rem;
}
.documents-group.open .documents-group-header::after {
  content: "▲";
}
.documents-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background: #f8fafc;
}
.documents-group.open .documents-grid { display: grid; }
.document-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.document-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.document-card-preview { height: 180px; background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%); display: flex; align-items: center; justify-content: center; }
.document-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #94a3b8; font-size: 0.85rem; }
.document-card-title { margin: 0.75rem 1rem 0.25rem; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.document-card-filename { margin: 0 1rem; font-size: 0.8rem; color: var(--text-secondary); }
.document-card-actions { display: flex; gap: 0.5rem; padding: 1rem; margin-top: auto; flex-wrap: wrap; }
.doc-btn { padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: opacity 0.2s; }
.doc-btn:hover { opacity: 0.9; }
.doc-btn-view { background: #003f81; color: #fff; }
.doc-btn-word { background: #38a169; color: #fff; }
.doc-btn-pdf { background: #e53e3e; color: #fff; }
@media (max-width: 1200px) { .documents-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .documents-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1rem; } .document-card-preview { height: 140px; } }
@media (max-width: 480px) { .documents-grid { grid-template-columns: 1fr; } }

.documents-list ul { list-style: none; padding: 0; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 0.75rem; margin: 0.5rem 0; background: #F2F8FD; border-radius: 12px; text-decoration: none; color: #003f81; transition: 0.3s; }
.doc-item:hover { box-shadow: inset 5px 5px 10px #DDEAF4; }
.doc-icon { width: 40px; height: 40px; }
.content-page p { margin: 1rem 0; line-height: 1.6; }

/* Страница «О нас» */
.about-page { padding-bottom: 3rem; }
.about-hero {
    background: linear-gradient(135deg, #0F4685 0%, #1a5a9e 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin: 0 -1rem 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.about-hero .container { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.about-title { margin: 0 0 0.5rem; font-size: 2rem; font-weight: 700; }
.about-lead { margin: 0; font-size: 1.05rem; opacity: 0.95; line-height: 1.5; }
.about-intro { max-width: 720px; margin-bottom: 2.5rem; }
.about-intro-text { font-size: 1.05rem; line-height: 1.7; color: var(--text-primary); margin: 0; text-align: justify; }
.about-cards { margin-bottom: 2.5rem; }
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.about-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s, transform 0.2s;
}
.about-card:hover {
    box-shadow: 0 6px 20px rgba(15,70,133,0.12);
    transform: translateY(-2px);
}
.about-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15,70,133,0.1);
    color: #0F4685;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.about-card h2 { margin: 0 0 0.75rem; font-size: 1.15rem; color: #0F4685; }
.about-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 900px) {
    .about-cards-grid { grid-template-columns: 1fr; }
}
.about-contacts-section { margin-bottom: 2.5rem; }
.about-section-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: #0F4685;
    font-weight: 700;
}
.about-contacts-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.about-contacts-block {
    background: #F2F8FD;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    height: 100%;
}
.about-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.about-contact-item:last-of-type { margin-bottom: 0; }
.about-contact-item i {
    color: #0F4685;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.about-contact-item a { color: var(--text-primary); text-decoration: none; }
.about-contact-item a:hover { text-decoration: underline; color: #0F4685; }
.about-chair { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border-color); font-size: 0.95rem; }
.about-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    min-height: 320px;
}
.about-map-inner { position: relative; padding-bottom: 56.25%; height: 0; }
.about-map-inner iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.about-map-inner.about-map-constructor {
    padding-bottom: 0;
    height: 448px;
    min-height: 448px;
}
@media (max-width: 768px) {
    .about-contacts-wrap { grid-template-columns: 1fr; }
    .about-map-inner { padding-bottom: 75%; }
    .about-map-inner.about-map-constructor { height: 360px; min-height: 360px; }
}
.about-links {
    padding: 2.5rem 0 0;
}
.about-links-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.about-link {
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    max-width: 220px;
}
.about-link img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
}
.about-link span {
    display: block;
    font-size: 0.95rem;
}
.about-link:hover span {
    color: #0F4685;
}
.about-feedback { padding: 2rem 0; background: #F2F8FD; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 12px; }
.about-feedback .container { max-width: 560px; }
.about-feedback-desc { margin: 0 0 1.25rem; color: var(--text-secondary); }
.about-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.about-feedback-form label { display: block; }
.about-feedback-form input,
.about-feedback-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.about-feedback-form textarea { resize: vertical; min-height: 100px; }
.about-feedback-btn {
    padding: 0.65rem 1.5rem;
    background: #0F4685;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
}
.about-feedback-btn:hover { background: #0d3a6f; }

/* Личные кабинеты — шрифт Arial */
.admin-body { margin: 0; background: #e9ecef; font-family: Arial, sans-serif; }
.user-cabinet { font-family: Arial, sans-serif; }

/* Профиль пользователя — карточки, 1/3 + 2/3 */
.profile-page { max-width: 100%; padding-top: 0.5rem; padding-bottom: 2rem; }
.profile-cabinet {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.profile-cabinet-left,
.profile-cabinet-right { min-width: 0; }
.profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.profile-cabinet-bottom { margin-top: 0; }
.profile-cabinet-title {
    margin: 0 0 1.1rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f4685;
}
.profile-cabinet-title i { color: #4a5568; font-size: 1.2rem; }
.profile-subtitle {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #1a365d;
}
.profile-subtitle i { color: #4a5568; }
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
}
.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
    min-width: 0;
}
.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f4685;
    line-height: 1.25;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.9rem;
    color: #718096;
}
.profile-handle { color: #718096; }
.profile-role { color: #718096; font-weight: 500; }
.profile-form { margin: 0; }
.profile-form--compact { margin-top: 0.15rem; }
.profile-field { display: block; margin-bottom: 0.85rem; }
.profile-field-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #718096;
}
.profile-field-label em {
    color: #e53e3e;
    font-style: normal;
    margin-left: 0.1rem;
}
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #1a202c;
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}
.profile-form textarea { min-height: 120px; resize: vertical; }
.profile-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #a0aec0;
}
.profile-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}
.profile-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    background: #1b617d;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.profile-file-btn:hover { background: #164f66; }
.profile-file-btn--light,
.profile-file--light .profile-file-btn {
    background: #edf2f7;
    color: #2d3748 !important;
    border: 1px solid #cbd5e0;
}
.profile-file-btn--light:hover,
.profile-file--light .profile-file-btn:hover { background: #e2e8f0; }
.profile-file-name {
    font-size: 0.88rem;
    color: #718096;
}
.profile-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
}
.profile-check input { width: auto; margin: 0; }
.profile-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #1b617d;
    color: #fff !important;
    border: 1px solid #1b617d;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-weight: 700;
}
.profile-btn-primary:hover { background: #164f66; border-color: #164f66; color: #fff !important; }
.profile-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #fff;
    color: #3182ce !important;
    border: 1px solid #3182ce;
    border-radius: 6px;
    padding: 0.55rem 0.95rem;
    font-weight: 600;
}
.profile-btn-outline:hover {
    background: #ebf8ff;
    color: #2b6cb0 !important;
}
.profile-form .btn-block,
.profile-btn-primary.btn-block { width: 100%; }
.profile-login-section,
.profile-password-section {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
}
.profile-table-title {
    margin: 1.35rem 0 0.75rem;
    font-size: 1.02rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1a365d;
}
.profile-table { width: 100%; margin: 0 0 0.75rem; border-collapse: collapse; font-size: 0.9rem; }
.profile-table th, .profile-table td { padding: 0.55rem 0.65rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.profile-table th { background: #f7fafc; font-weight: 600; color: #2d3748; }
.profile-table a { color: #0F4685; }
.profile-pagination { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.5rem 0 0.25rem; }
.profile-pagination-link { padding: 0.25rem 0.5rem; border-radius: 4px; border: 1px solid #cbd5e0; text-decoration: none; color: #2d3748; font-size: 0.9rem; }
.profile-pagination-link:hover { background: #edf2f7; }
.profile-pagination-link.current { background: #0F4685; border-color: #0F4685; color: #fff; }
.profile-pagination-info { margin: 0; font-size: 0.85rem; color: #718096; }
.profile-note-detail { margin-top: 1rem; padding: 1rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.profile-note-detail h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.profile-note-detail-content { margin-bottom: 0.75rem; line-height: 1.5; white-space: pre-wrap; }
.notes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.note-card {
    padding: 0.85rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
}
.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}
.note-date { color: #3182ce; font-weight: 600; }
.note-more { color: #3182ce; text-decoration: none; font-weight: 500; }
.note-more:hover { text-decoration: underline; }
.note-content { margin: 0; line-height: 1.45; color: #2d3748; }
.note-actions { margin-top: 0.45rem; }
.note-actions a { color: #003f81; }
.no-notes { color: #a0aec0; font-style: italic; margin: 0.25rem 0 0.75rem; }
@media (max-width: 900px) {
    .profile-cabinet { grid-template-columns: 1fr; }
}
.admin-header { width: 100%; background: #003f81; color: #fff; padding: 0.75rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: #fff; text-decoration: none; }
.admin-header-nav { display: flex; align-items: center; gap: 1.1rem; }
.admin-header-nav a { display: inline-flex; align-items: center; gap: 0.4rem; }
.admin-header-nav a i { font-size: 1.05rem; line-height: 1; opacity: 0.95; }
.admin-header-nav a:hover { opacity: 0.9; }
.admin-wrap { display: flex; min-height: calc(100vh - 52px); }
.admin-sidebar { width: 280px; background: #2b3035; padding: 0.85rem 0.7rem; }
.admin-nav-section {
    --nav-accent: #7aa2c7;
    --nav-soft: rgba(122, 162, 199, 0.16);
    margin-bottom: 0.55rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 70%), var(--nav-soft);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--nav-accent);
    overflow: hidden;
}
.admin-nav-section--dashboard { --nav-accent: #339af0; --nav-soft: rgba(51, 154, 240, 0.14); }
.admin-nav-section--events { --nav-accent: #4dabf7; --nav-soft: rgba(77, 171, 247, 0.14); }
.admin-nav-section--news { --nav-accent: #69db7c; --nav-soft: rgba(105, 219, 124, 0.14); }
.admin-nav-section--polls { --nav-accent: #ffd43b; --nav-soft: rgba(255, 212, 59, 0.12); }
.admin-nav-section--approvals { --nav-accent: #ff922b; --nav-soft: rgba(255, 146, 43, 0.14); }
.admin-nav-section--birthdays { --nav-accent: #f06595; --nav-soft: rgba(240, 101, 149, 0.14); }
.admin-nav-section--content { --nav-accent: #9775fa; --nav-soft: rgba(151, 117, 250, 0.14); }
.admin-nav-section--users { --nav-accent: #22b8cf; --nav-soft: rgba(34, 184, 207, 0.14); }
.admin-nav-section--service { --nav-accent: #adb5bd; --nav-soft: rgba(173, 181, 189, 0.12); }
.admin-nav-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0.55rem 0.55rem 0.45rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.admin-nav-title > i:first-child {
    color: var(--nav-accent);
    font-size: 1rem;
}
.admin-nav-title > span { flex: 1; }
.admin-nav-chevron {
    margin-left: auto;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    transition: transform 0.2s ease;
}
.admin-nav-section.is-collapsed .admin-nav-chevron { transform: rotate(-90deg); }
.admin-nav-section.is-collapsed .admin-nav-links {
    display: none;
}
.admin-nav-links {
    display: flex;
    flex-direction: column;
    padding: 0 0.35rem 0.4rem 0.45rem;
    gap: 0.05rem;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #eef3f8;
    text-decoration: none;
    padding: 0.42rem 0.45rem;
    border-radius: 6px;
    line-height: 1.2;
}
.admin-sidebar a i { width: 16px; text-align: center; color: var(--nav-accent); opacity: 0.9; }
.admin-sidebar a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.admin-sidebar a.is-active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--nav-accent);
}
.admin-main { flex: 1; padding: 1.5rem; }
.admin-table { margin-top: 1rem; }
.btn-link { background: none; border: none; color: #721c24; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
.btn-link.danger:hover { color: #c00; }

/* Event form */
.event-form-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.event-form-title-wrap { min-width: 0; flex: 1 1 280px; }
.event-form-page-head h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.event-form-title-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    color: #0F4685;
    cursor: help;
    font-size: 1.1rem;
    line-height: 1;
}
.event-form-title-hint:hover,
.event-form-title-hint:focus {
    color: #FC6F1A;
    outline: none;
}
.event-form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #51657d;
    line-height: 1.35;
}
.event-form-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.event-form-import-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.event-form-flags {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    background: #f2f8fd;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    min-height: 2.5rem;
}
.event-form-flags .event-checkbox,
.event-form .event-form-flags label.event-checkbox {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 0.92rem;
}
.event-form-flags .event-checkbox input[type="checkbox"],
.event-form-flags .event-checkbox input[type="radio"] {
    width: 1rem;
    height: 1rem;
    margin: 0 0.45rem 0 0;
    padding: 0;
    flex: 0 0 auto;
    vertical-align: middle;
    position: relative;
    top: 0;
}
.event-visibility-toggle {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 1rem 1.25rem;
    align-items: center;
}
@media (max-width: 700px) {
    .event-form-flags,
    .event-visibility-toggle {
        flex-wrap: wrap;
    }
}
.event-form-page-head,
.event-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Импорт плановых в календарь */
.events-calendar-import {
    width: 100%;
    max-width: none;
}
.events-calendar-import-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.events-calendar-import-head h1 { margin: 0 0 0.35rem; }
.events-calendar-import-lead {
    margin: 0;
    max-width: 46rem;
    color: #0F4685;
    line-height: 1.45;
}
.events-calendar-import-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.events-calendar-import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}
.events-calendar-import-form h2,
.events-calendar-import-tips h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
    font-size: 1rem;
    color: #212529;
}
.events-calendar-import-tips h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom-color: #fc6f1a;
    color: #0F4685;
}
.events-calendar-import-alert {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ffe08a;
    background: #fff8e1;
    border-radius: 8px;
    color: #7a5b00;
    line-height: 1.4;
}
.events-calendar-import-form label {
    display: block;
    margin-bottom: 1rem;
}
.events-calendar-import-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
}
.events-calendar-import-category {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    color: #1a2e36;
}
.events-calendar-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (max-width: 900px) {
    .events-calendar-import-layout {
        grid-template-columns: 1fr;
    }
}
.event-form-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
    width: 100%;
}
.event-form-cards {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.95fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.event-form .event-extra-info { margin-top: 1rem; }
.event-form .event-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.25rem 1.5rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.event-form-top-row > .event-card {
    height: 100%;
}
.event-form .event-card-tips {
    background: #f7fbff;
    border-color: #c5d8ef;
    display: flex;
    flex-direction: column;
}
.event-form .event-card-tips h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom-color: #fc6f1a;
    color: #0F4685;
}
.event-form .event-card-tips h2 i { color: #fc6f1a; }
.event-import-tips-list {
    margin: 0 0 0.85rem;
    padding-left: 1.2rem;
    color: #1a2e36;
    font-size: 0.88rem;
    line-height: 1.45;
    flex: 1 1 auto;
}
.event-import-tips-list li { margin-bottom: 0.55rem; }
.event-import-tips-list code {
    font-size: 0.82rem;
    background: #e8f1fa;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
}
.event-import-tips-note {
    margin: 0 0 0.9rem;
    font-size: 0.84rem;
    color: #51657d;
    line-height: 1.4;
}
.event-import-tips-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}
.event-import-tips-actions .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}
@media (max-width: 1100px) {
    .event-form-top-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .event-form .event-card-tips {
        grid-column: 1 / -1;
    }
    .event-form-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 800px) {
    .event-form-top-row {
        grid-template-columns: 1fr;
    }
}
.event-form .event-card h2 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
    font-size: 1rem;
    color: #212529;
}
.event-form .event-card-subtitle {
    margin: 0.35rem 0 1rem;
    padding: 0.75rem 0 0.45rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F4685;
}
.event-form .event-card label { display: block; margin-bottom: 1rem; }
.event-form .event-card label:last-child { margin-bottom: 0; }
.event-form .event-card input[type="text"],
.event-form .event-card input[type="number"],
.event-form .event-card input[type="date"],
.event-form .event-card input[type="time"],
.event-form .event-card textarea,
.event-form .event-card select {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
}
.event-form .event-card textarea { resize: vertical; min-height: 80px; }
.event-form .event-card-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.event-form .event-card-row label { flex: 1 1 140px; }
.event-form .event-price-block { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.event-form .event-price-free { display: flex; align-items: center; min-height: 2.5rem; }
.event-form .event-price-free input { margin-right: 0.4rem; }
.event-form .event-price-input { flex: 1; min-width: 150px; }
.event-form .event-checkbox { display: flex; align-items: center; }
.event-form .event-checkbox input { margin-right: 0.5rem; width: auto; }
.event-form .event-audience select { max-width: 280px; }
.event-state-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.event-state-badge--actual { background: #d3f9d8; color: #2b8a3e; }
.event-state-badge--past { background: #e9ecef; color: #495057; }
.event-state-badge--postponed { background: #ffe8cc; color: #d9480f; }
.event-state-badge--cancelled { background: #ffe3e3; color: #c92a2a; }
.events-admin-table .table-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.2rem;
}
.events-admin-table .table-actions form {
    display: inline-flex;
    margin: 0;
}
.events-admin-table .table-actions .icon-btn {
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
}
.events-admin-cover-col { width: 72px; }
.events-admin-cover-cell {
    width: 72px;
    vertical-align: middle;
}
.events-admin-cover-thumb {
    display: block;
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dbe6f2;
    background: #f2f8fd;
}
.events-admin-cover-empty {
    color: #94a3b8;
    font-size: 0.9rem;
}
.event-form .event-images-block { display: flex; flex-wrap: wrap; gap: 1rem; }
.event-form .event-image-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}
.event-form .event-preview { max-width: 160px; max-height: 100px; object-fit: cover; border-radius: 4px; }
.event-form-actions { display: flex; gap: 0.75rem; align-items: center; }
.event-form-actions .btn-secondary { background: #6c757d; color: #fff; text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; }
.event-form-actions .btn-secondary:hover { background: #5a6268; color: #fff; }

/* News form */
.news-form-page-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.news-form-page-head h1 { margin: 0 0 0.35rem; }
.news-form-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.news-form-hint { color: #666; margin-bottom: 1rem; font-size: 0.95rem; }
.news-form-page-head .news-form-hint { margin-bottom: 0; }
.news-form-cards { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.news-form .news-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.25rem 1.5rem;
    flex: 1 1 100%;
    min-width: 280px;
}
.news-form .news-card-wide { flex: 1 1 100%; }
.news-form .news-card h2 { margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #0d6efd; font-size: 1rem; }
.news-form .news-card label { display: block; margin-bottom: 1rem; }
.news-form .news-card input[type="text"], .news-form .news-card input[type="file"], .news-form .news-card select, .news-form .news-card textarea {
    width: 100%; max-width: 100%; padding: 0.5rem 0.75rem; margin-top: 0.25rem;
    border: 1px solid #ced4da; border-radius: 4px; font-size: 0.95rem;
}
.news-form .news-card textarea { resize: vertical; min-height: 150px; }
.news-placeholder-info {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.news-placeholder-info code { background: rgba(0,0,0,0.06); padding: 0.1em 0.3em; border-radius: 4px; }
.news-content-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.admin-rich-editor-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.admin-news-editor-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}
.news-form .news-card .admin-news-editor-toolbar .news-editor-select,
.news-form .news-card .admin-news-editor-toolbar .news-editor-color,
.news-form .news-card .admin-news-editor-toolbar .news-editor-btn {
    width: auto !important;
    max-width: none !important;
    margin-top: 0 !important;
    flex: 0 0 auto;
}
.news-editor-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 0.45rem;
    border: 1px solid #c5ccd3;
    border-radius: 6px;
    background: #fff;
    color: #1a323c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}
.news-editor-btn:hover {
    background: #f3f6f8;
    border-color: #a8b5aa;
}
.news-editor-btn i { font-size: 1rem; }
.news-editor-btn-image {
    color: #0F4685;
    border-color: #9db8d6;
    background: #eef5fb;
}
.news-editor-btn-image:hover {
    background: #e0edf8;
    border-color: #0F4685;
}
.admin-news-editor-area .news-img-ph {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.15rem 0.1rem;
    padding: 0.2rem 0.55rem;
    border: 1px dashed #0F4685;
    border-radius: 6px;
    background: #eef5fb;
    color: #0F4685;
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}
.admin-news-editor-area .news-img-ph i {
    font-size: 1rem;
}
.news-editor-color {
    width: 2.4rem !important;
    min-width: 2.4rem;
    height: 2rem;
    padding: 0.15rem !important;
    border: 1px solid #c5ccd3;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}
.news-editor-select {
    width: auto !important;
    min-width: 96px;
    max-width: 140px;
    height: 32px;
    padding: 0.2rem 0.45rem !important;
    border: 1px solid #c5ccd3;
    border-radius: 6px;
    background: #fff;
    color: #1a323c;
    font-size: 0.875rem;
    flex: 0 0 auto;
}
.admin-news-editor-area {
    min-height: 220px;
    max-height: 520px;
    overflow-y: auto;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #1a323c;
}
.admin-news-editor-area:empty::before {
    content: attr(data-placeholder);
    color: #6c757d;
    pointer-events: none;
}
.admin-news-editor-area:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
    outline: 0;
}
.admin-news-editor-area ul,
.admin-news-editor-area ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
.admin-news-editor-area li { margin-bottom: 0.25rem; }
.admin-news-editor-area p {
    margin: 0 0 0.65rem;
    text-indent: 1.5em;
    text-align: justify;
    text-align-last: left;
}
.news-images-hint { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.news-images-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .news-images-grid { grid-template-columns: repeat(2, 1fr); } }
.news-image-slot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
}
.news-slot-label { font-size: 0.85rem; font-weight: 600; }
.news-image-options-row,
.news-image-border-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.news-ratio-input,
.news-ratio-select { width: 78px !important; padding: 0.25rem !important; }
.news-position-select { width: 110px !important; padding: 0.25rem !important; }
.news-width-select { width: 92px !important; padding: 0.25rem !important; }
.news-border-width-select,
.news-border-gap-select { flex: 1 1 110px; min-width: 110px; padding: 0.25rem !important; }
.news-border-color-input {
    width: 42px !important;
    min-width: 42px;
    height: 32px;
    padding: 0.15rem !important;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.news-slot-preview { max-width: 100%; max-height: 110px; width: 100%; object-fit: cover; border-radius: 6px; }
.news-caption-input { width: 100%; font-size: 0.85rem; }
.news-form-actions { display: flex; gap: 0.75rem; align-items: center; }
.news-form-actions .btn-secondary { background: #6c757d; color: #fff; text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; }
.news-form-actions .btn-secondary:hover { background: #5a6268; color: #fff; }

/* Права доступа */
.admin-permissions-table-wrap {
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    overflow-x: auto;
    background: #fff;
    margin-bottom: 1.25rem;
}
.admin-permissions-table {
    margin: 0;
    min-width: 1100px;
}
.admin-permissions-table thead th {
    background: #f4f6f8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5a6570;
    vertical-align: middle;
    white-space: nowrap;
}
.admin-permissions-table th,
.admin-permissions-table td {
    border: 1px solid #e2e6ea;
    padding: 0.45rem 0.5rem;
}
.admin-permissions-col-section {
    min-width: 220px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}
.admin-permissions-table thead .admin-permissions-col-section {
    background: #f4f6f8;
    z-index: 3;
}
.admin-permissions-group-row td {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
}
.admin-permissions-item-label {
    font-size: 0.88rem;
    padding-left: 1.25rem !important;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}
.admin-permissions-role-head {
    border-left: 2px solid #cbd5e1;
    font-size: 0.8rem !important;
}
.admin-permissions-level-head {
    width: 4.25rem;
    font-size: 0.72rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}
.admin-permissions-radio {
    margin: 0;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    accent-color: #0d6efd;
}
.admin-permissions-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.admin-lead {
    color: #5a6570;
    margin-bottom: 1.25rem;
    max-width: 70rem;
}
.gallery-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.08), rgba(15, 23, 42, 0.04));
    border: 1px solid var(--border-color, #d7e0ea);
}
.gallery-stats__item {
    display: flex;
    flex-direction: column;
    min-width: 8rem;
    gap: 0.15rem;
}
.gallery-stats__item strong {
    font-size: 1.45rem;
    line-height: 1.1;
}
.gallery-stats__item span {
    font-size: 0.86rem;
    color: #667788;
}
.gallery-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem 1.25rem;
    margin: 0 0 1.15rem;
    padding: 0.9rem 1rem;
    background: #f4f8fc;
    border: 1px solid #d9e3ec;
    border-radius: 10px;
}
.gallery-admin-pager-form,
.gallery-settings-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem 0.75rem;
    margin: 0;
    max-width: none;
}
.gallery-admin-pager-form label,
.gallery-settings-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.gallery-admin-pager-form select,
.gallery-settings-form select {
    min-width: 88px;
    padding: 0.4rem 0.55rem;
    border: 1px solid #c5d0da;
    border-radius: 6px;
    background: #fff;
}
.gallery-admin-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.gallery-admin-source-title {
    font-size: 0.82rem;
    color: #667;
    margin-top: 0.2rem;
}
.gallery-admin-note {
    font-size: 0.78rem;
    color: #a05a00;
}
.gallery-form-preview { margin: 0.5rem 0 1rem; }
.gallery-form-preview img {
    max-width: 280px;
    max-height: 180px;
    border-radius: 8px;
    object-fit: cover;
}
.admin-hint {
    color: #667;
    max-width: 720px;
}
.auth-form .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.admin-table tr.is-blocked-row { opacity: 0.65; }
.approval-badge {
    display: inline-flex;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    align-items: center;
    justify-content: center;
}
.approval-tabs a.active .approval-badge { background: rgba(255,255,255,0.25); color: #fff; }
.approval-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #eef2f7;
}
.approval-status--pending { background: #fff3cd; color: #856404; }
.approval-status--approved { background: #d1e7dd; color: #0f5132; }
.approval-status--rejected { background: #f8d7da; color: #842029; }
.approval-status--cancelled { background: #e2e3e5; color: #41464b; }
.approval-create-card {
    max-width: 860px;
    margin: 0.5rem 0 1.5rem;
    padding: 1.35rem 1.45rem 1.5rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 40%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.approval-create-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0F4685;
    font-size: 1.25rem;
}
.approval-create-card__head h2 i { color: #FC6F1A; }
.approval-create-card__hint {
    margin: 0 0 1.15rem;
    color: #5a6570;
    font-size: 0.92rem;
    line-height: 1.45;
}
.approval-create-card__note {
    margin: 0;
    flex: 1 1 220px;
    color: #5a6570;
    font-size: 0.88rem;
    line-height: 1.4;
}
.approval-create-card__empty {
    margin: 0.35rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}
.approval-create-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: none;
}
.approval-create-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem;
}
.approval-qf {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a323c;
}
.approval-qf em {
    color: #dc3545;
    font-style: normal;
}
.approval-qf small {
    font-weight: 400;
    color: #6c757d;
}
.approval-qf input[type="text"],
.approval-qf input[type="file"],
.approval-qf textarea {
    width: 100%;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a323c;
    font-size: 0.95rem;
    font-family: inherit;
}
.approval-qf input[type="text"]:focus,
.approval-qf textarea:focus,
.approval-qf input[type="file"]:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.approval-qf--body textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.5;
}
.approval-qf--comment textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.45;
}
.approval-qf--file {
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
}
.approval-qf--file span { color: #0F4685; }
.approval-approvers {
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid #d5e2f0;
    border-radius: 10px;
    background: #fff;
}
.approval-approvers legend {
    padding: 0 0.4rem;
    font-weight: 600;
    color: #0F4685;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.approval-approvers legend i { color: #FC6F1A; }
.approval-approvers legend em {
    color: #dc3545;
    font-style: normal;
}
.approval-approvers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.55rem;
    margin-top: 0.55rem;
}
.approval-approver-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e2eaf3;
    border-radius: 8px;
    background: #f7fbff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1a323c;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.approval-approver-chip:hover {
    border-color: #9db8d6;
    background: #eef5fc;
}
.approval-approver-chip:has(input:checked) {
    border-color: #0F4685;
    background: #e8f1fb;
}
.approval-approver-chip input {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}
.approval-approver-chip__name {
    flex: 1 1 auto;
    min-width: 0;
}
.approval-role-tag {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5a6b7d;
    background: #e8eef5;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}
.approval-create-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e4edf5;
}
.approval-create-form__actions .btn i { margin-right: 0.35rem; }
@media (max-width: 760px) {
    .approval-create-form__row {
        grid-template-columns: 1fr;
    }
    .approval-qf--body textarea,
    .approval-qf--comment textarea {
        min-height: 120px;
    }
    .approval-create-card {
        padding: 1.1rem 1rem 1.2rem;
    }
}
.approval-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    align-items: center;
}
.approval-block {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e9f0);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}
.approval-block h3 { margin: 0 0 0.65rem; font-size: 1.05rem; }
.approval-share-block--highlight {
    border-color: #f0a36b;
    background: #fff6eb;
    box-shadow: 0 0 0 2px rgba(240, 163, 107, 0.25);
}
.approval-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.approval-share-input {
    flex: 1 1 280px;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.92rem;
    background: #fff;
}
.approval-archive-stats {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.approval-stats-period-form {
    margin-bottom: 0.85rem;
}
.approval-stats-period-form label {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.approval-stats-period-form select {
    min-width: 180px;
    padding: 0.4rem 0.55rem;
}
.approval-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.approval-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.approval-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.approval-stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f4685;
}
.approval-body { white-space: pre-wrap; line-height: 1.45; }
.approval-code {
    font-family: Consolas, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0.25rem 0;
}

/* Дни рождения */
.birthday-bell-btn { position: relative; }
.birthday-bell-btn.has-birthdays { color: #c05621; }
.birthday-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.1rem;
    text-align: center;
}
.bd-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bd-modal[hidden] { display: none !important; }
.bd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.bd-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 94vw);
    max-height: 90vh;
    overflow: auto;
    background: var(--bg-card, #fff);
    border-radius: 14px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.bd-modal__dialog--wide { width: min(820px, 96vw); }
.bd-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #667;
}
.bd-bell-section { margin-bottom: 1rem; }
.bd-bell-section h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.bd-bell-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color, #e8edf3);
}
.bd-bell-card__info { display: flex; flex-direction: column; gap: 0.15rem; }
.bd-bell-card__info span { font-size: 0.85rem; color: #667; }
.bd-muted { color: #889; font-size: 0.9rem; }
.bd-label { display: block; margin: 0.75rem 0 0.35rem; font-weight: 600; }
.bd-label textarea, .bd-label input[type="file"] { display: block; width: 100%; margin-top: 0.35rem; }
.bd-compose-actions { margin: 0.5rem 0 0.75rem; }
.bd-postcard-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.bd-postcard-option {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #f3f6fa;
    aspect-ratio: 16 / 9;
}
.bd-postcard-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-postcard-option.is-selected { border-color: #0d6efd; box-shadow: 0 0 0 2px rgba(13,110,253,0.2); }

.home-birthdays { padding: 1.5rem 0 0.5rem; }
.home-birthdays__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.hb-card {
    display: flex;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 70, 133, 0.14);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.hb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 42px rgba(15, 70, 133, 0.2);
}
.hb-card--reverse { flex-direction: row-reverse; }
.hb-card__postcard {
    flex: 0 0 267px;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0F4685, #4A8FD8);
}
.hb-card__postcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hb-card__postcard-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.hb-card__message {
    flex: 1;
    height: 100%;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #F8FAFC;
    position: relative;
    min-width: 0;
}
.hb-card__label {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FC6F1A;
    font-family: 'Open Sans', sans-serif;
}
.hb-card__name {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    color: #0F4685;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}
.hb-card__greeting {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #1e2a3a;
    white-space: pre-wrap;
}
.hb-card--var-1 .hb-card__message {
    background: #fff;
    border-left: 4px solid #0F4685;
}
.hb-card--var-1 .hb-card__greeting {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 16px;
    color: #0a2a4a;
}
.hb-card--var-1 .hb-card__message::before,
.hb-card--var-1 .hb-card__message::after {
    content: '❧';
    position: absolute;
    font-size: 28px;
    color: #4A8FD8;
    opacity: 0.25;
    font-family: serif;
}
.hb-card--var-1 .hb-card__message::before { top: 10px; left: 14px; }
.hb-card--var-1 .hb-card__message::after { bottom: 10px; right: 14px; transform: rotate(180deg); }
.hb-card--var-2 .hb-card__message {
    background: linear-gradient(135deg, #F8FAFC, #e2edf7);
    border-right: 4px solid #4A8FD8;
}
.hb-card--var-2.hb-card--reverse .hb-card__message { border-right: none; border-left: 4px solid #4A8FD8; }
.hb-card--var-2 .hb-card__greeting {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    line-height: 1.5;
    color: #0F4685;
}
.hb-card--var-2 .hb-card__message::before,
.hb-card--var-2 .hb-card__message::after {
    content: '✦ ✧ ✦ ✧ ✦';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 6px;
    color: #4A8FD8;
    opacity: 0.35;
    white-space: nowrap;
}
.hb-card--var-2 .hb-card__message::before { top: 6px; }
.hb-card--var-2 .hb-card__message::after { bottom: 6px; }
.hb-card--var-3 .hb-card__message {
    background: #F8FAFC;
    box-shadow: inset 0 0 0 1px #c0d4e8;
    border-radius: 0 18px 18px 0;
}
.hb-card--var-3 .hb-card__greeting {
    font-family: 'Lobster', cursive;
    font-size: 19px;
    line-height: 1.5;
    color: #1a2b3c;
}
.hb-card--var-3 .hb-card__message::before,
.hb-card--var-3 .hb-card__message::after {
    content: '◈';
    position: absolute;
    font-size: 30px;
    color: #4A8FD8;
    opacity: 0.2;
}
.hb-card--var-3 .hb-card__message::before { top: 8px; left: 12px; }
.hb-card--var-3 .hb-card__message::after { bottom: 8px; right: 12px; }
.hb-card--var-4 .hb-card__message {
    background: #fff;
    padding-left: 36px;
    padding-right: 36px;
}
.hb-card--var-4 .hb-card__greeting {
    font-family: 'Pacifico', cursive;
    font-size: 18px;
    line-height: 1.5;
    color: #0F4685;
}
.hb-card--var-4 .hb-card__message::before,
.hb-card--var-4 .hb-card__message::after {
    content: '✿ ❀ ✿';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #4A8FD8;
    opacity: 0.3;
    writing-mode: vertical-rl;
    letter-spacing: 6px;
}
.hb-card--var-4 .hb-card__message::before { left: 6px; }
.hb-card--var-4 .hb-card__message::after { right: 6px; }
.hb-card--var-5 .hb-card__message {
    background: #ebf2fa;
    border-left: 6px solid #4A8FD8;
    border-radius: 0 18px 18px 0;
}
.hb-card--var-5 .hb-card__greeting {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.7;
    color: #0a2a4a;
    letter-spacing: 0.3px;
}
.hb-card--var-5 .hb-card__message::before,
.hb-card--var-5 .hb-card__message::after {
    content: '◆ ◇ ◆ ◇ ◆';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 8px;
    color: #4A8FD8;
    opacity: 0.25;
    white-space: nowrap;
}
.hb-card--var-5 .hb-card__message::before { top: 8px; }
.hb-card--var-5 .hb-card__message::after { bottom: 8px; }
@media (max-width: 760px) {
    .hb-card,
    .hb-card.hb-card--reverse {
        flex-direction: column !important;
        height: auto;
        min-height: 200px;
    }
    .hb-card__postcard {
        flex: 0 0 140px;
        width: 100%;
        height: 140px;
    }
    .hb-card__message {
        height: auto;
        min-height: 120px;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 0 18px 18px !important;
        border-top: 4px solid #0F4685 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .hb-card--var-5 .hb-card__message { border-top-width: 6px !important; }
    .hb-card__message::before,
    .hb-card__message::after { display: none; }
}
.birthday-greetings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
.birthday-greeting-create,
.birthday-greeting-import,
.birthday-greeting-list-card {
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.birthday-greeting-import,
.birthday-greeting-list-card {
    background: #fff;
}
.birthday-greeting-create__head h2,
.birthday-greeting-import__head h2,
.birthday-greeting-list-card__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.birthday-greeting-create__head h2 i,
.birthday-greeting-import__head h2 i,
.birthday-greeting-list-card__head h2 i { color: #FC6F1A; }
.birthday-greeting-create__head p,
.birthday-greeting-import__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.birthday-greeting-create__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.birthday-greeting-create__form .bd-qf,
.birthday-greeting-import__form .bd-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.birthday-greeting-create__form .bd-qf em { color: #dc3545; font-style: normal; }
.birthday-greeting-create__form textarea,
.birthday-greeting-create__form select,
.birthday-greeting-import__form input[type="file"] {
    width: 100%;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    font-family: inherit;
}
.birthday-greeting-create__form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.45;
}
.birthday-greeting-create__form textarea:focus,
.birthday-greeting-create__form select:focus {
    outline: none;
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
}
.bd-qf-counter {
    align-self: flex-end;
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 400;
}
.birthday-greeting-create__actions {
    padding-top: 0.35rem;
    border-top: 1px solid #e4edf5;
}
.birthday-greeting-create__actions .btn i,
.birthday-greeting-import__buttons .btn i,
.birthday-greeting-import__form .btn i { margin-right: 0.3rem; }
.birthday-greeting-import__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.birthday-greeting-import__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.birthday-greeting-import__form .bd-qf--file {
    padding: 0.75rem 0.9rem;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
    background: #f7fbff;
}
.birthday-greeting-import__form .bd-qf-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a323c;
    cursor: pointer;
}
.birthday-greeting-import__form .bd-qf-check input { width: auto; margin: 0; }
.birthday-greeting-list-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.birthday-greeting-list-card__head h2 { margin: 0; }
.birthday-greeting-audience {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: #0F4685;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 980px) {
    .birthday-greetings-layout {
        grid-template-columns: 1fr;
    }
}

.birthday-postcards-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.birthday-postcard-upload {
    max-width: none;
    margin: 0;
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.08);
}
.birthday-postcard-table-card {
    min-width: 0;
    padding: 1.15rem 1.25rem 1.25rem;
    background: #fff;
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.06);
}
.birthday-postcard-table-card--full {
    grid-column: 1 / -1;
}
.birthday-postcard-table-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.birthday-postcard-table-card__head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.15rem;
}
.birthday-postcard-table-card__head h2 i { color: #FC6F1A; }
.birthday-postcard-table-wrap {
    overflow-x: auto;
}
.birthday-postcard-table th:nth-child(3),
.birthday-postcard-table td.birthday-postcard-table__usage {
    text-align: center;
    white-space: nowrap;
    width: 1%;
}
.birthday-postcard-table__thumb-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 140px;
}
.birthday-postcard-table__thumb {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d5dbe5;
    background: #eef2f7;
    flex: 0 0 auto;
}
.birthday-postcard-table__title {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.3;
}
.birthday-postcard-table__cat select {
    min-width: 180px;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid #c5d0da;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f7fbff;
}
.birthday-postcard-table__usage strong {
    display: inline-flex;
    min-width: 1.75rem;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: #0F4685;
    font-size: 0.9rem;
}
.birthday-postcard-upload__head h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.birthday-postcard-upload__head h2 i { color: #FC6F1A; }
.birthday-postcard-upload__head p {
    margin: 0 0 1rem;
    color: #5a6570;
    font-size: 0.9rem;
    line-height: 1.45;
}
.birthday-postcard-upload__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
.birthday-postcard-upload__form .bd-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.birthday-postcard-upload__form .bd-qf em { color: #dc3545; font-style: normal; }
.birthday-postcard-upload__form .bd-qf small { font-weight: 400; color: #6c757d; }
.birthday-postcard-upload__form .bd-qf input,
.birthday-postcard-upload__form .bd-qf select {
    width: 100%;
    font-weight: 400;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
}
.birthday-postcard-upload__form .bd-qf--file {
    grid-column: 1 / -1;
    padding: 0.75rem 0.9rem;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
    background: #fff;
}
.birthday-postcard-upload__actions {
    grid-column: 1 / -1;
    padding-top: 0.35rem;
    border-top: 1px solid #e4edf5;
}
.birthday-postcard-upload__actions .btn i { margin-right: 0.3rem; }
.birthday-postcard-group { margin-bottom: 1.5rem; }
.birthday-postcard-group__title {
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.05rem;
}
.birthday-postcard-group__title i { color: #FC6F1A; }
.birthday-postcard-group__count {
    display: inline-flex;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8f1fb;
    color: #0F4685;
    font-size: 0.78rem;
    font-weight: 700;
}
.birthday-postcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.birthday-postcard-card {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e9f0);
}
.birthday-postcard-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.birthday-postcard-card figcaption {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem 0.65rem;
    font-size: 0.85rem;
}
.birthday-postcard-card figcaption strong {
    font-size: 0.88rem;
    color: #1a323c;
}
.birthday-postcard-card__cat select {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid #c5d0da;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #f7fbff;
}
.birthday-postcard-card__tag {
    font-size: 0.75rem;
    color: #5a6570;
}
.birthday-postcard-card .table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
}
@media (max-width: 980px) {
    .birthday-postcards-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .birthday-postcard-upload__form {
        grid-template-columns: 1fr;
    }
    .birthday-postcard-table__thumb-cell {
        flex-direction: column;
        align-items: flex-start;
    }
}
.birthday-admin-thumb {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}
.birthday-list-table tr.birthday-jubilee-row {
    background: rgba(236, 153, 50, 0.16);
}
.birthday-list-table tr.birthday-jubilee-row td {
    font-weight: 600;
}
.birthday-jubilee-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #dd6b20;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
/* Поле поздравления — админка */
.birthday-field-variants,
.birthday-field-compose {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid #c9d9ea;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 70, 133, 0.06);
}
.birthday-field-variants h2,
.birthday-field-compose h2 {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0F4685;
    font-size: 1.2rem;
}
.birthday-field-variants h2 i,
.birthday-field-compose h2 i { color: #FC6F1A; }
.birthday-field-variants__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.birthday-field-variant {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0.75rem;
    border: 2px solid #e2eaf3;
    border-radius: 12px;
    background: #f7fbff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.birthday-field-variant input { position: absolute; opacity: 0; pointer-events: none; }
.birthday-field-variant:hover { border-color: #9db8d6; }
.birthday-field-variant.is-selected {
    border-color: #0F4685;
    box-shadow: 0 0 0 3px rgba(15, 70, 133, 0.12);
    background: #fff;
}
.birthday-field-variant__badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #0F4685;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.birthday-field-variant__title {
    font-weight: 700;
    color: #0F4685;
    font-size: 1rem;
}
.birthday-field-variant__sub {
    font-size: 0.8rem;
    color: #5a6570;
    margin-bottom: 0.35rem;
}
.birthday-field-variant__preview {
    height: 110px !important;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}
.birthday-field-variant__preview .hb-card__postcard { flex-basis: 120px; }
.birthday-field-variant__preview .hb-card__message { padding: 10px 12px; }
.birthday-field-variant__preview .hb-card__greeting {
    font-size: 11px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.birthday-field-variant__preview .hb-card__label,
.birthday-field-variant__preview .hb-card__name { display: none; }
.birthday-field-variant__preview .hb-card__message::before,
.birthday-field-variant__preview .hb-card__message::after { font-size: 14px !important; }
.birthday-field-compose__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.birthday-field-compose__grid .bd-qf--text,
.birthday-field-compose__grid .bd-qf:last-child {
    grid-column: 1 / -1;
}
.birthday-field-compose .bd-qf {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a323c;
}
.birthday-field-compose .bd-qf em { color: #dc3545; font-style: normal; }
.birthday-field-compose .bd-qf select,
.birthday-field-compose .bd-qf textarea,
.birthday-field-compose .bd-qf input[type="file"] {
    width: 100%;
    font-weight: 400;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
.birthday-field-compose .bd-qf textarea { min-height: 120px; resize: vertical; }
.birthday-field-compose .bd-qf--file {
    padding: 0.75rem 0.9rem;
    border: 1px dashed #9db8d6;
    border-radius: 10px;
    background: #f7fbff;
}
.birthday-field-postcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}
.birthday-field-postcard {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0.4rem;
    border: 2px solid #e2eaf3;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}
.birthday-field-postcard input { position: absolute; opacity: 0; pointer-events: none; }
.birthday-field-postcard.is-selected {
    border-color: #0F4685;
    box-shadow: 0 0 0 2px rgba(15, 70, 133, 0.15);
}
.birthday-field-postcard img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.birthday-field-postcard span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5a6570;
}
.birthday-field-compose__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e4edf5;
}
.birthday-field-compose__actions .btn i { margin-right: 0.3rem; }
.birthday-field-variant-select select {
    min-width: 160px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #c5d0da;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f7fbff;
}
.bd-layout-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.55rem;
    margin: 0.5rem 0 1rem;
}
.bd-layout-option {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: 2px solid #e2eaf3;
    border-radius: 10px;
    cursor: pointer;
    background: #f7fbff;
}
.bd-layout-option input { position: absolute; opacity: 0; pointer-events: none; }
.bd-layout-option.is-selected {
    border-color: #0F4685;
    background: #e8f1fb;
}
.bd-layout-option__num {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0F4685;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
.bd-layout-option__title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #0F4685;
}
.bd-layout-option__sub {
    font-size: 0.72rem;
    color: #5a6570;
    line-height: 1.3;
}
@media (max-width: 900px) {
    .birthday-field-compose__grid { grid-template-columns: 1fr; }
}

/* Общая мобильная адаптация публичной части */
@media (max-width: 768px) {
    .news-detail-cover,
    .news-detail-content .news-inline-img {
        max-width: 100%;
    }
    .news-filters {
        padding: 0.85rem 1rem;
    }
    .news-filters-form--single-line .news-filters-row {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .news-filters-form--single-line .news-filters-row label {
        flex: 1 1 100%;
        white-space: normal;
    }
    .news-filters-form--single-line select[name="author_id"],
    .news-filters-form--single-line select[name="category"],
    .news-filters-form--single-line .news-date-input {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .news-filters-form--single-line .news-filters-actions {
        width: 100%;
        margin-left: 0;
    }
    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .list-toolbar__controls {
        width: 100%;
    }
    .about-hero {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 1.5rem 0.75rem;
    }
    .about-title { font-size: 1.45rem; }
    .about-lead { font-size: 0.95rem; }
    .about-card { padding: 1.1rem; }
    .footer-contact-form input,
    .footer-contact-form textarea {
        width: 100%;
        max-width: 100%;
    }
    .auth-form-wrap {
        margin: 1.25rem auto;
        padding: 0 0.25rem;
    }
    .event-meta-line { white-space: normal; }
    .scroll-top-btn {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}
@media (max-width: 480px) {
    .site-header-btn-accent,
    .site-header-btn-light {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }
    .documents-group-header {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
}
