/* ========================================
   ПОЛНЫЙ CSS ДЛЯ ШАПКИ (НА ВСЮ ШИРИНУ)
   ======================================== */

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

body {
    font-family: "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
    background-color: #e3f0f7;
    color: #0113b9;
    font-size: 13px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    scrollbar-face-color: #e3f0f7;
}

/* ---------- ШАПКА ---------- */
.header {
    position: relative;
    min-height: 160px;
    background: transparent !important;
    border-bottom: none !important;
    overflow: hidden;
    width: 100%;
}
.header-overlay {
    position: relative;
    z-index: 1;
    min-height: 160px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03) !important;
    width: 100%;
    padding: 0 !important;
}
.header-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 30px !important;
    margin: 0 !important;
}
.header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 160px !important;
    padding: 10px 0 !important;
}
.header-left {
    flex: 0 0 auto !important;
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.header-left .gerb {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    display: block;
}
.header-left .gerb:hover { transform: scale(1.03); }
.header-left .gerb-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdd835, #f9a825);
    color: #1a237e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.15);
}
.header-right {
    flex: 0 0 auto !important;
    text-align: right !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}
.header-right .title-block {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    padding: 12px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03) !important;
    display: inline-block !important;
    transition: all 0.3s ease;
}
.header-right .title-block:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.header-right .title-block .title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.02),
        0 2px 30px rgba(0, 0, 0, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: right !important;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-style: italic;
}

/* ---------- КАРУСЕЛЬ ---------- */
.header-bg-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.2s ease-in-out;
}
.header-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.15);
}
.header .header-overlay {
    position: relative;
    z-index: 2;
}

/* ---------- ТОП МЕНЮ (ПОЛОСА С ДАТОЙ) ---------- */
#topmenu {
    position: relative;
    width: 100%;
    height: 52px;
    margin: 0 0 5px 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #315f99 0%, #396eae 35%, #437abd 70%, #4a80c4 100%);
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.16);
    display: flex;
    align-items: center;
    z-index: 10;
}
#topmenu::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.65), rgba(255,255,255,0.18));
    pointer-events: none;
    z-index: 2;
}
#topmenu::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 6px;
    background: linear-gradient(to top, rgba(255,255,255,0.55), rgba(255,255,255,0.15));
    pointer-events: none;
    z-index: 2;
}
#topmenu .container {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#topmenu #date {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 48px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    text-align: left;
}
#topmenu .white-header {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 48px;
    text-align: right;
}
#topmenu .white-header ul { margin: 0; padding: 0; list-style: none; }
#topmenu .white-header li { display: inline-block; margin: 0; padding: 0; }
#topmenu .white-header a {
    display: block;
    height: 52px;
    padding: 0 8px;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    transition: background 0.2s ease, color 0.2s ease;
}
#topmenu .white-header a:hover {
    color: #ffffff;
    background: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    text-decoration: none;
}
#topmenu .white-header a i {
    margin-right: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.90);
}
#topmenu .white-header .bullet { display: none; }

/* Правый блок меню */
#topmenu .white-header-right ul {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0; padding: 0;
    list-style: none;
}
#topmenu .white-header-right li { display: inline-flex; align-items: center; }

/* ---------- КОНТЕНТ ---------- */
.page-content {
    padding: 0 !important;
    text-align: left !important;
    color: #333 !important;
    max-width: 100% !important;
}
.page-content h2 { font-size: 24px !important; color: #666 !important; margin-bottom: 10px !important; }
.page-content p { font-size: 16px !important; }

/* ---------- ТРЕХКОЛОНОЧНАЯ СТРУКТУРА ---------- */
.main-wrapper { background: #e3f0f7; padding: 10px 0; }
.main-content {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    background: transparent !important;
}
.sidebar-left  { flex: 0 0 220px !important; min-width: 200px !important; }
.content-center {
    flex: 1 !important;
    min-width: 300px !important;
    background: #fff !important;
    border-radius: 10px !important;
    border: 1px solid #8ca7d4 !important;
    box-shadow: 5px 5px 10px rgba(0,64,128,0.15) !important;
    padding: 15px 20px !important;
}
.sidebar-right { flex: 0 0 220px !important; min-width: 200px !important; }

/* ---------- ВИДЖЕТЫ САЙДБАРА ---------- */
.sidebar-widget {
    background: #fff !important;
    border: 1px solid #8ca7d4 !important;
    border-radius: 10px !important;
    box-shadow: 5px 5px 10px rgba(0,64,128,0.15) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}
.sidebar-header {
    background: #1e5aa5 !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
    border-radius: 8px 8px 0 0 !important;
}
.sidebar-header i { margin-right: 6px !important; }
.sidebar-body {
    padding: 10px 12px !important;
    font-size: 13px !important;
    color: #0113b9 !important;
}
.sidebar-body .menu-item {
    padding: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.sidebar-body .menu-item .bullet { width: 12px !important; height: 12px !important; }
.sidebar-body .menu-item .side-link {
    color: #356481 !important;
    text-decoration: none !important;
    font-size: 13px !important;
}
.sidebar-body .menu-item .side-link:hover { text-decoration: underline !important; }
.sidebar-body .menu-item .side-link i { width: 16px !important; color: #1e5aa5 !important; }

/* ---------- ПОДВАЛ ---------- */
.full-footer {
    position: relative;
    width: 100%;
    margin: 30px 0 0 0;
    padding: 0;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(to bottom, #315f99 0%, #396eae 35%, #437abd 70%, #4a80c4 100%);
    box-shadow: 0 -3px 8px rgba(0,0,0,0.16);
    border: none;
    display: block;
    z-index: 10;
}
.full-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.65), rgba(255,255,255,0.18));
    pointer-events: none;
    z-index: 2;
}
.full-footer::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(to top, rgba(255,255,255,0.55), rgba(255,255,255,0.15));
    pointer-events: none;
    z-index: 2;
}
.full-footer .container {
    width: 100%; max-width: none;
    margin: 0;
    padding: 22px 30px;
    box-sizing: border-box;
}
.full-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0; padding: 0;
    box-sizing: border-box;
}
.full-footer .footer-left  { flex: 0 0 28%; text-align: left; }
.full-footer .footer-left p {
    margin: 0; padding: 0;
    color: rgba(255,255,255,0.88);
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    font-size: 12px; line-height: 1.6;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
}
.full-footer .footer-center { flex: 0 0 44%; text-align: center; }
.full-footer .footer-center p {
    margin: 0; padding: 0;
    color: rgba(255,255,255,0.82);
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    font-size: 11px; line-height: 1.55;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.full-footer .footer-center .footer-disclaimer {
    margin-top: 7px;
    color: rgba(255,255,255,0.48);
    font-size: 10px; line-height: 1.4;
}
.full-footer .footer-right { flex: 0 0 28%; text-align: right; }
.full-footer .footer-right p {
    margin: 0; padding: 0;
    color: rgba(255,255,255,0.88);
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    font-size: 12px; line-height: 1.6;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
}
.full-footer .footer-right .count {
    display: block;
    margin-top: 5px;
    color: #fdd835;
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    font-size: 26px; font-weight: bold;
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 1px 3px rgba(0,0,0,0.30);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 992px) {
    .header-container { padding: 0 20px !important; }
    .header-left .gerb { height: 90px; }
    .header-right .title-block { padding: 10px 20px; }
    .header-right .title-block .title { font-size: 22px; letter-spacing: 2px; }
    #topmenu .container { padding: 0 20px; }
    .main-content { flex-direction: column !important; }
    .sidebar-left { flex: 0 0 100% !important; width: 100% !important; min-width: 100% !important; }
    .content-center { flex: 0 0 100% !important; width: 100% !important; min-width: 100% !important; }
    /* .sidebar-right тут не трогаем — его скрывает cabinet.css */
}
@media (max-width: 768px) {
    .header { min-height: 130px; }
    .header-overlay { min-height: 130px; }
    .header-flex { min-height: 130px !important; padding: 8px 0 !important; }
    .header-container { padding: 0 15px !important; }
    .header-left .gerb { height: 70px; }
    .header-right .title-block { padding: 8px 16px; border-radius: 10px; }
    .header-right .title-block .title { font-size: 18px; letter-spacing: 2px; }
    #topmenu { height: auto; min-height: 44px; padding: 5px 0; margin-bottom: 3px; }
    #topmenu .container { flex-direction: column; align-items: center; padding: 0 15px; gap: 2px; }
    #topmenu #date { font-size: 12px; margin: 10px 5px; }
    #topmenu .white-header { font-size: 11px; margin: 5px 5px 10px 5px; }
    .page-content { padding: 20px 15px; }
    .full-footer { margin-top: 25px; }
    .full-footer .container { width: 100%; max-width: none; padding: 22px 15px; }
    .full-footer .footer-content { flex-direction: column; align-items: center; gap: 18px; }
    .full-footer .footer-left, .full-footer .footer-center, .full-footer .footer-right {
        flex: 0 0 100%; width: 100%; text-align: center;
    }
    .full-footer .footer-left p, .full-footer .footer-center p, .full-footer .footer-right p {
        text-align: center;
    }
    .full-footer .footer-right .count { text-align: center; }
}
@media (max-width: 480px) {
    .header { min-height: 100px; }
    .header-overlay { min-height: 100px; }
    .header-flex { flex-direction: column !important; justify-content: center !important; align-items: center !important; min-height: 100px !important; padding: 5px 0 !important; gap: 5px !important; }
    .header-container { padding: 0 10px !important; }
    .header-left { padding-left: 0 !important; text-align: center !important; }
    .header-left .gerb { height: 50px; }
    .header-left .gerb-placeholder { width: 60px; height: 60px; font-size: 28px; }
    .header-right { text-align: center !important; margin-left: 0 !important; padding-right: 0 !important; }
    .header-right .title-block { padding: 5px 12px; border-radius: 8px; }
    .header-right .title-block .title { font-size: 13px; text-align: center !important; letter-spacing: 1px; }
    #topmenu { min-height: 38px; padding: 3px 0; margin-bottom: 2px; }
    #topmenu .container { padding: 0 10px; }
    #topmenu #date { font-size: 10px; margin: 5px 0; }
    #topmenu .white-header { font-size: 10px; margin: 3px 0 8px 0; }
    #topmenu .white-header ul li { padding: 0 3px; }
    #topmenu .white-header ul li .bullet { display: none; }
    .page-content { padding: 15px 10px; }
    .page-content h2 { font-size: 18px; }
}

/* ============================================
   МОБИЛЬНОЕ ЛЕВОЕ МЕНЮ — ГОРИЗОНТАЛЬНАЯ ПОЛОСА
   ============================================ */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .sidebar-left   { order: 0; }
    .content-center { order: 1; }
    .sidebar-right  { order: 2; }

    /* Внутри левого сайдбара — только «Головне меню», остальное скрываем */
    .sidebar-left .sidebar-widget:not(:first-child) {
        display: none !important;
    }
    .sidebar-left .sidebar-widget {
        margin-bottom: 0 !important;
        border-radius: 8px !important;
    }

    /* Меню — строка с горизонтальным скроллом */
    .sidebar-left .sidebar-body {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 0 8px;
        padding: 6px 12px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .sidebar-left .sidebar-body::-webkit-scrollbar { height: 4px; }
    .sidebar-left .sidebar-body::-webkit-scrollbar-thumb {
        background: #b8c9e0; border-radius: 2px;
    }

    .sidebar-left .sidebar-body .menu-item {
        padding: 4px 0 !important;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .sidebar-left .sidebar-body .menu-item .bullet {
        display: none !important;
    }
    .sidebar-left .sidebar-body .menu-item .side-link {
        font-size: 12px !important;
        padding: 4px 10px;
        display: inline-block;
        background: #eef3fa;
        border-radius: 4px;
    }
    .sidebar-left .sidebar-body .menu-item .side-link:hover {
        background: #d8e5f5;
        text-decoration: none !important;
    }
}

@media (max-width: 480px) {
    .sidebar-left .sidebar-body .menu-item .side-link {
        font-size: 11px !important;
        padding: 3px 7px;
    }
}

/* ============================================
   Останні коментарі
   ============================================ */
.last-comments-list { list-style: none; padding: 0; margin: 0; }
.last-comments-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    line-height: 1.45;
}
.last-comments-list li:last-child { border-bottom: none; }
.lc-author { color: #2c5aa0; font-weight: 600; margin-bottom: 3px; }
.lc-author i { margin-right: 5px; color: #4a7fc7; font-size: 11px; }
.lc-news { color: #6a7a8f; font-size: 11px; margin-bottom: 4px; }
.lc-news a { color: #4a7fc7; text-decoration: none; }
.lc-news a:hover { text-decoration: underline; }
.lc-text { color: #37474f; margin-bottom: 4px; }
.lc-meta { color: #90a4ae; font-size: 11px; }

/* ============================================
   Зараз на сайті
   ============================================ */
.online-list { list-style: none; padding: 0; margin: 0 0 10px; }
.online-list li { padding: 4px 0; font-size: 12px; color: #2c3e50; line-height: 1.4; }
.online-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.online-dot-green { background: #27ae60; box-shadow: 0 0 4px #27ae60; }
.online-dot-blue  { background: #4a7fc7; box-shadow: 0 0 4px #4a7fc7; }
.online-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
    font-size: 11px; color: #6a7a8f;
}
.online-newest {
    margin-top: 4px;
    font-size: 11px;
    color: #6a7a8f;
    word-break: break-word;
}

/* ============================================
   Лічильник звернень
   ============================================ */
.hits-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hits-table td {
    padding: 5px 0;
    border-bottom: 1px solid #eef2f7;
    color: #2c3e50;
}
.hits-table tr:last-child td { border-bottom: none; }
.hits-table .hits-num {
    text-align: right;
    font-weight: 700;
    color: #2c5aa0;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   Печать
   ============================================================ */

@media print {
    .header, #topmenu, .full-footer,
    .sidebar-left, .sidebar-right,
    .services-tabs, .service-header-actions,
    .service-breadcrumbs, .cabinet-welcome,
    .print-header-date {
        display: none !important;
    }
    body { background: #fff !important; font-size: 11px; }
    .main-wrapper, .main-content, .content-center {
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    .charges-table a {
        color: inherit !important;
        text-decoration: none !important;
        pointer-events: none;
    }
    .charges-table .saldo-positive,
    .charges-table .saldo-zero { color: #000 !important; }
    .year-toggle { display: none !important; }
    @page { size: A4; margin: 12mm 10mm; }
}

/* Экранная обёртка print-mode */
body.print-mode { background: #fff !important; color: #000; }
.print-mode .header,
.print-mode #topmenu,
.print-mode .sidebar-left,
.print-mode .sidebar-right,
.print-mode .cabinet-welcome,
.print-mode .service-header-actions,
.print-mode .services-tabs,
.print-mode .cabinet-title { display: none !important; }
.print-mode .main-wrapper,
.print-mode .main-content,
.print-mode .content-center {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}
.print-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    font-size: 13px;
}
.print-header-title { font-size: 14px; line-height: 1.4; }
.print-header-date { font-size: 12px; color: #555; white-space: nowrap; }
.print-mode .charges-table thead th {
    background: #eee !important;
    color: #000 !important;
    border-bottom: 1px solid #000;
    padding: 5px 6px;
    font-size: 11px;
}
.print-mode .charges-table tbody td {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
}
.print-mode .charges-table tbody tr:hover { background: transparent !important; }
.print-mode .charges-table .saldo-positive { color: #000 !important; }
.print-mode .charges-table .saldo-zero     { color: #000 !important; }
.print-mode .year-accordion .year-header {
    background: #333 !important;
    color: #fff !important;
    border-left: none !important;
    padding: 6px 12px;
    font-size: 13px;
}
.print-mode .year-accordion .year-body { display: block !important; padding: 0; }
.print-mode .year-toggle { display: none !important; }
.print-mode .cabinet-section {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 15px !important;
}
.print-mode .section-header {
    background: #333 !important;
    color: #fff !important;
    font-size: 13px;
    font-style: normal;
    padding: 6px 12px;
}
.print-mode .service-breadcrumbs { display: none !important; }

@media print {
    .year-accordion { page-break-inside: avoid; }
    @page { size: A4; margin: 12mm 10mm; }
}

.btn-profile.btn-delete {
    background: #c0392b;
    color: #fff;
    margin-left: auto;   /* прижать вправо */
}
.btn-profile.btn-delete:hover {
    background: #a93226;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}


/* ПОЛЛ */
.poll-widget .poll-question { font-size: 12px; line-height: 1.5; color: #2c3e50; margin-bottom: 10px; }
.poll-widget .poll-option {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 12px; margin: 6px 0; cursor: pointer; line-height: 1.4;
}
.poll-widget .poll-option input { margin-top: 2px; flex: 0 0 auto; }
.poll-widget .poll-option span  { flex: 1 1 auto; }
.poll-widget .poll-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; gap: 8px;
}
.poll-widget .poll-btn {
    background: #4a7fc7; color: #fff;
    border: none; border-radius: 4px;
    padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.poll-widget .poll-btn:hover { background: #3a6fb1; }
.poll-widget .poll-total { font-size: 11px; color: #6a7a8f; }
.poll-widget .poll-thanks, .poll-widget .poll-closed {
    font-size: 12px; color: #27ae60;
    margin: 8px 0; text-align: center;
}
.poll-result-row { margin: 8px 0; font-size: 12px; }
.poll-result-label { color: #2c3e50; margin-bottom: 3px; }
.poll-result-bar { background: #e8eef7; height: 10px; border-radius: 5px; overflow: hidden; }
.poll-result-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #6fa0db, #4a7fc7);
    border-radius: 5px;
}
.poll-result-meta { font-size: 11px; color: #6a7a8f; margin-top: 2px; }
.poll-results-total {
    font-size: 11px; color: #78909c;
    margin-top: 10px; padding-top: 8px;
    border-top: 1px solid #eef2f7;
    text-align: center;
}

/* ============================================
   Секции (общие) — используются в layouts/print,
   views/news, views/site, cabinet
   ============================================ */
.section-header {
    background: linear-gradient(180deg, #4a7fc7, #3a6fb1);
    color: #fff;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 15px; font-weight: bold; font-style: italic;
    padding: 8px 20px;
    display: flex; align-items: center; gap: 10px;
}
.section-header .fa { font-size: 16px; opacity: 0.85; }
.section-body { padding: 12px 25px; }
.section-body.p-0 { padding: 0; }

/* ============================================
   Форма-действия — базовое (админка, форум, кабинет)
   ============================================ */
.form-actions { margin-left: 255px; }
.form-actions .btn-primary {
    padding: 10px 35px;
    background: linear-gradient(180deg, #5a8fd7, #4a7fc7);
    color: #fff;
    border: 1px solid #3a6fb1;
    border-radius: 5px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 127, 199, 0.3);
    transition: all 0.2s;
}
.form-actions .btn-primary:hover {
    background: linear-gradient(180deg, #6a9fe7, #5a8fd7);
    transform: translateY(-1px);
}
@media (max-width: 700px) {
    .form-actions { margin-left: 0; }
}

.forum-topics-list { list-style: none; padding: 0; margin: 0; }
.forum-topics-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    line-height: 1.4;
}
.forum-topics-list li:last-child { border-bottom: none; }
.forum-topics-list a { color: #356481; text-decoration: none; display: block; }
.forum-topics-list a:hover { text-decoration: underline; }
.forum-topics-meta { color: #90a4ae; font-size: 11px; margin-top: 2px; }

.forum-badge-sticky {
    display: inline-block;
    padding: 2px 8px;
    background: #fff4e0;
    color: #b76e00;
    border: 1px solid #f0c88b;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: middle;
}
.forum-badge-closed {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    color: #6a7a8f;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: middle;
}


/* ============================================
   Flash-сообщения
   ============================================ */
.alert {
    padding: 10px 16px;
    margin: 0 0 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success { background: #dff0d8; color: #3c763d; }
.alert-danger  { background: #f2dede; color: #a94442; }
.alert-warning { background: #fcf8e3; color: #8a6d3b; }
.alert-info    { background: #d9edf7; color: #31708f; }
.alert-error   { background: #f2dede; color: #a94442; }

.online-list .online-user {
    padding-left: 16px;
    color: #4a7fc7;
    font-weight: 600;
}
.online-list .online-user i {
    margin-right: 4px;
    font-size: 11px;
    opacity: 0.7;
}

/* ============================================
   ФОРУМ — поле ввода ответа на всю ширину
   ============================================ */
.forum-textarea,
.admin-form .form-control,
.admin-card textarea {
    width: 100% !important;
    max-width: 100%;
    min-height: 240px;
    padding: 12px 14px;
    border: 1px solid #cdd9e8;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
    line-height: 1.55;
    color: #2c3e50;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-textarea:focus,
.admin-form .form-control:focus,
.admin-card textarea:focus {
    outline: none;
    border-color: #4a7fc7;
    box-shadow: 0 0 0 3px rgba(74, 127, 199, 0.12);
}

@media (max-width: 700px) {
    .forum-textarea,
    .admin-form .form-control,
    .admin-card textarea {
        min-height: 180px;
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ============================================
   ФОРУМ — кнопки формы (Надіслати / Скасувати)
   ============================================ */
.admin-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.admin-form-actions .btn-admin-primary,
.admin-form-actions .btn-admin-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    line-height: 1.2;
    font-family: inherit;
}

/* Надіслати — синяя */
.admin-form-actions .btn-admin-primary {
    background: linear-gradient(180deg, #5a8fd7, #4a7fc7);
    color: #fff;
    border-color: #3a6fb1;
    box-shadow: 0 2px 6px rgba(74, 127, 199, 0.3);
}
.admin-form-actions .btn-admin-primary:hover {
    background: linear-gradient(180deg, #6a9fe7, #5a8fd7);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74, 127, 199, 0.4);
}
.admin-form-actions .btn-admin-primary i {
    font-size: 13px;
    opacity: 0.95;
}

/* Скасувати — белая с синей рамкой */
.admin-form-actions .btn-admin-secondary {
    background: #fff;
    color: #4a7fc7;
    border-color: #4a7fc7;
}
.admin-form-actions .btn-admin-secondary:hover {
    background: #eef4fc;
    color: #2c5aa0;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .admin-form-actions .btn-admin-primary,
    .admin-form-actions .btn-admin-secondary {
        justify-content: center;
        width: 100%;
    }
}


/* ============================================
   Страница ошибки 404 / 403 / 500
   ============================================ */
.error-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 60px;
}

.error-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 127, 199, 0.12);
    padding: 45px 40px 35px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    border-top: 4px solid #4a7fc7;
}

.error-code {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 96px;
    font-weight: bold;
    color: #4a7fc7;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(74, 127, 199, 0.2);
}

.error-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

.error-text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}

.error-hint {
    font-size: 14px;
    color: #777;
    background: #f8f9fb;
    padding: 10px 16px;
    border-radius: 6px;
    margin: 0 0 16px;
    word-break: break-word;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 24px;
}

.btn-error-primary,
.btn-error-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-error-primary {
    background: linear-gradient(180deg, #4a7fc7, #3a6fb1);
    color: #fff;
    border-color: #3a6fb1;
    box-shadow: 0 2px 6px rgba(74, 127, 199, 0.3);
}
.btn-error-primary:hover {
    background: linear-gradient(180deg, #5a8fd7, #4a7fc7);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74, 127, 199, 0.4);
}

.btn-error-secondary {
    background: #fff;
    color: #4a7fc7;
    border-color: #4a7fc7;
}
.btn-error-secondary:hover {
    background: #eef4fc;
    color: #2c5aa0;
    text-decoration: none;
    transform: translateY(-1px);
}

.error-footer {
    font-size: 13px;
    color: #888;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
    line-height: 1.6;
}
.error-footer a {
    color: #4a7fc7;
    text-decoration: none;
}
.error-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .error-card { padding: 30px 22px 25px; }
    .error-code { font-size: 72px; }
    .error-title { font-size: 22px; }
    .error-actions { flex-direction: column; }
    .btn-error-primary,
    .btn-error-secondary { width: 100%; justify-content: center; }
}
