/* Основні стилі для системи звернень до Омбудсмена України */

/* Підключення шрифту e-Ukraine з Google Fonts API */
@import url('https://fonts.cdnfonts.com/css/e-ukraine');



:root {
    --primary-color: #003366; /* Темно-синій - колір офіційного сайту Омбудсмена */
    --secondary-color: #0e4379; /* Світло-синій */
    --accent-color: #ccb84c; /* Жовтий акцент */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #dee2e6;
    --text-color: #212529;
}

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

body {
    font-family: 'e-Ukraine', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    font-weight: 400;
}

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

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.15);
    border-bottom: 3px solid var(--accent-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Робить логотип білим */
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 300;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.header-toolbar {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: nowrap;
}

.header-actions--guest {
    justify-content: flex-end;
}

.header-toolbar .accessibility-toggle-btn,
.header-actions .accessibility-toggle-btn {
    margin-right: 0;
    margin-left: 0;
}

.accessibility-tools-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
}

.accessibility-toggle-btn.is-active {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Обмеження імені користувача до 30 символів */
.user-profile-link .user-name-text {
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* На мобільних - більше місця для імені */
@media (max-width: 768px) {
    .header-actions .user-profile-link .user-name-text {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}

/* Бургер кнопка прихована на десктопі */
.mobile-menu-toggle {
    display: none;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    font-family: 'e-Ukraine', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--secondary-color);
    color: white !important;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: var(--light-gray);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: #4c8ed0 !important;
    /* text-shadow: 1px 1px 1px #00000052; */
    text-decoration: none !important;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color) !important;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Card */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.card-header {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.card-header h2 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-body {
    padding: 20px 0;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: #fff;
}

.form-control.error {
    border-color: var(--danger-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(0, 91, 187, 0.05);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload input[type="file"] {
    display: none;
}

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    /* display: flex; */
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    z-index: 1001; /* Вище за accessibility-controls (z-index: 1000) */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.alert strong {
    flex-shrink: 0;
    white-space: nowrap;
}

.alert a {
    word-break: break-all;
}

/* Контейнер для alert з відступом зверху для accessibility-controls */
#alertContainer {
    position: relative;
    z-index: 1001;
    scroll-margin-top: 100px; /* Відступ для sticky accessibility-controls */
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid var(--success-color);
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid var(--info-color);
    color: #0c5460;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table thead th {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.appeals-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.appeals-table th,
.appeals-table td {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
    max-width: 240px;
}

.appeals-table td[data-label="Дата"],
.appeals-table th:nth-child(8) {
    white-space: nowrap;
    max-width: none;
    overflow-wrap: normal;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-secondary {
    background: #95a5a6;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 20;
    margin: 0 0 12px 12px;
    padding: 2px 10px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #95a5a6;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger-color);
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--secondary-color);
    border: 1px solid rgba(0, 51, 102, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.12);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Компактний дашборд статистики */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card-compact {
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.08);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.stat-card-compact.clickable-stat-card {
    cursor: pointer;
}

.stat-card-compact.clickable-stat-card:hover {
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.15);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.stat-card-compact-header {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-card-compact-header h4 {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card-compact-value {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

@media (max-width: 768px) {
    .stats-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .stat-card-compact {
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .stat-card-compact-header h4 {
        font-size: 10px;
    }
    
    .stat-card-compact-value {
        font-size: 18px;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 3px solid var(--accent-color);
}

.footer p {
    opacity: 0.95;
    font-weight: 300;
    font-size: 14px;
}

/* Кнопка закриття панелі доступності на мобільних */
.accessibility-tools-close-btn {
    z-index: 1001;
}

.accessibility-tools-close-btn:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 15px;
        text-align: left;
        position: relative;
    }
    
    .header-content > div:last-child {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        margin-left: auto;
    }
    
    /* Показуємо бургер кнопку на мобільних */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 2px solid white;
        border-radius: 4px;
        padding: 8px;
        cursor: pointer;
        color: white;
        min-width: 40px;
        height: 40px;
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    /* На мобільних приховати навігацію за замовчуванням */
    .header-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-actions.mobile-menu-open {
        display: flex;
        z-index: 1303;
    }
    
    /* Всі елементи навігації в мобільному меню */
    .header-actions > * {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-actions > *:last-child {
        border-bottom: none;
    }
    
    /* Кнопка доступності в мобільному меню */
    .header-actions .accessibility-toggle-btn {
        padding: 10px 15px;
        width: 100%;
        justify-content: flex-start;
        font-size: 14px;
    }
    
    .header-actions .accessibility-toggle-btn svg {
        margin-right: 10px;
    }
    
    /* Посилання на профіль в мобільному меню */
    .header-actions .user-profile-link {
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-actions .user-profile-link .user-name-text {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
    
    .header-actions .user-profile-link svg {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    /* Кнопки в мобільному меню - однаковий розмір */
    .header-actions .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        justify-content: flex-start;
        text-align: left;
    }
    
    .header-actions .btn.btn-outline,
    .header-actions .btn.btn-secondary {
        padding: 10px 15px;
        font-size: 14px;
    }

    .logo-img {
        height: 40px;
    }
    
    .logo > div:last-child {
        margin-left: 0 !important;
        margin-top: 5px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
    }
    
    /* Перетворення таблиці на картки для мобільних */
    .appeals-table,
    .appeals-table thead,
    .appeals-table tbody,
    .appeals-table th,
    .appeals-table td,
    .appeals-table tr {
        display: block;
    }
    
    .appeals-table thead {
        display: none;
    }
    
    .appeals-table tr {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 0;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }
    
    .appeals-table td {
        border: none;
        padding: 12px 15px;
        text-align: left;
        word-wrap: break-word;
        word-break: break-word;
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .appeals-table td:last-of-type {
        border-bottom: none;
    }
    
    .appeals-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
        font-size: 12px;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .appeals-table td:last-child {
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
        margin-top: 0;
        text-align: center;
        align-items: center;
    }
    
    .appeals-table td:last-child:before {
        display: block;
        margin-bottom: 10px;
    }
    
    .appeals-table .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Спеціальні стилі для першої комірки (номер) */
    .appeals-table td:first-child {
        background: rgba(0, 51, 102, 0.05);
        padding: 15px;
        font-size: 16px;
    }
    
    .appeals-table td:first-child:before {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-header h2 {
        font-size: 22px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header .btn {
        width: 100%;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

/* Додаткові типографічні стилі */
h1, h2, h3, h4, h5, h6 {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
}

h2 {
    font-size: 20px;
    letter-spacing: -0.6px;
}

h3 {
    font-size: 18px;
    letter-spacing: -0.4px;
    margin-bottom: 16px;
}

p {
    margin-bottom: 12px;
    line-height: 1.7;
}

strong {
    font-weight: 700;
}

/* Покращення badge */
.badge {
    font-family: 'e-Ukraine', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Покращення модального вікна */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.2);
}

/* Покращення input файлів */
.file-upload {
    font-family: 'e-Ukraine', sans-serif;
}

/* Стилі для посилань */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Стилі для hr */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

/* Покращення select */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23003366' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
}

/* Анімація для карток */
.card {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Стилізація scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Стилі для автодоповнення населених пунктів */
.suggestions-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
    width: 100%;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #f0f7ff;
    color: var(--primary-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item strong {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group {
    position: relative;
}

@media (max-width: 768px) {
    .suggestions-dropdown {
        max-height: 200px;
    }
}

/* Footer стилі */
.bkg-lgrey {
    background-color: #f5f5f5;
}

.om-t30 {
    margin-top: 30px;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.red {
    color: #dc3545;
}

/* Партнери */
.partners {
    padding: 30px 0;
}

.partners-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f1f1f1;
}

.partners-slider::-webkit-scrollbar {
    height: 8px;
}

.partners-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.partners-slider::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.partner-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 120px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.partner-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer контент */
footer.om-t30 {
    background: white;
    padding: 40px 0 0;
    border-top: 2px solid var(--accent-color);
}

.news-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0;
}

.om-list-item {
    padding: 0 15px;
}

.om-list-item p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 12px;
    font-weight: 200;
}
.om-list-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.om-list-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.om-list-item .red a {
    color: #dc3545;
}

/* Кнопки доступності в header */
.accessibility-tools-header {
    background: rgba(0, 51, 102, 0.95);
    border-top: 2px solid var(--accent-color);
    padding: 15px 0;
}

.accessibility-tools-header .btn {
    font-size: 14px;
    padding: 8px 16px;
    color: #ffffff !important;
    border-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
}

.accessibility-tools-header .btn svg {
    display: inline-block !important;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    color: #ffffff;
}

.accessibility-tools-header .btn:hover,
.accessibility-tools-header .btn:focus {
    background: #ffffff;
    color: var(--primary-color) !important;
}

.accessibility-tools-header .btn:hover svg,
.accessibility-tools-header .btn:focus svg {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    /* Гості: кнопка «Доступність» має лишатися видимою (немає бургер-меню) */
    .header-actions--guest {
        display: flex !important;
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        flex-direction: row;
        width: auto;
    }

    .header-actions--guest > * {
        width: auto;
        padding: 0;
        border-bottom: none;
    }

    .accessibility-tools-row {
        justify-content: center;
        padding-right: 36px;
        gap: 8px;
    }

    .accessibility-tools-header .btn {
        width: auto !important;
        flex: 0 0 auto;
        min-width: 48px;
        padding: 10px 14px;
        font-size: 16px;
        font-weight: 700;
    }

    /* Не розтягувати кнопки панелі на 100% ширини (accessibility.css) */
    .accessibility-mode .accessibility-tools-header .btn {
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .news-list-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .text-right {
        text-align: left;
    }
    
    .alert {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .alert strong {
        margin-bottom: 5px;
        display: block;
    }
    
    .alert a {
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .partners-slider {
        gap: 15px;
    }
    
    .partner-slide {
        min-width: 150px;
        height: 100px;
    }
}

