.ucp-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ---------- Заголовок страницы ---------- */
.ucp-page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: center;
    margin: 40px 0 6px;
}

.ucp-page-sub {
    text-align: center;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 36px;
}

.ucp-page-sub::before,
.ucp-page-sub::after {
    content: '—';
    margin: 0 10px;
    color: #ba1515;
}

/* ---------- Секции (аналог s-grid) ---------- */
.ucp-section {
    margin-bottom: 28px;
}

/* ---------- Карточки ---------- */
.s-card {
    background: #fff;
    border-radius: 4px;
    border-left: 4px solid #ba1515;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 22px 24px;
    transition: box-shadow 0.2s;
    margin-bottom: 14px;
}

.s-card:hover {
    box-shadow: 0 4px 24px rgba(186,21,21,0.10);
}

.s-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.s-card-icon {
    width: 32px;
    height: 32px;
    background: #ba1515;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
}

.s-card-icon.icon-notif  { background: #1a1a1a; }
.s-card-icon.icon-apps   { background: #ba1515; }
.s-card-icon.icon-char   { background: #c07000; }

.s-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
}

/* ---------- Формы ---------- */
.s-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

.s-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.s-input:focus {
    outline: none;
    border-color: #0F2940;
    background: #fff;
}

.s-input[readonly],
.s-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ---------- Кнопки ---------- */
.s-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.s-btn:active  { transform: scale(0.99); }
.s-btn:hover   { filter: brightness(1.08); color: inherit; text-decoration: none; }

.s-btn-primary   { background: #ba1515; color: #fff; }
.s-btn-secondary { background: #1a1a1a; color: #fff; }
.s-btn-outline   { background: transparent; color: #ba1515; border: 1.5px solid #ba1515; }
.s-btn-warn      { background: #c07000; color: #fff; }
.s-btn-sm        { padding: 6px 14px; font-size: 13px; }
.s-btn-full      { width: 100%; }

/* ---------- Алерт ---------- */
.s-alert {
    padding: 12px 16px;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
}

.s-alert.show         { display: block; }
.s-alert-success      { background: #edf7ed; color: #2e7d32; border-left: 3px solid #2e7d32; }
.s-alert-danger       { background: #fdecea; color: #c62828; border-left: 3px solid #c62828; }

/* ---------- Бейдж статуса заявки ---------- */
.ucp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.ucp-badge-success  { background: #edf7ed; color: #2e7d32; }
.ucp-badge-warning  { background: #fff8e1; color: #c07000; }
.ucp-badge-danger   { background: #fdecea; color: #c62828; }
.ucp-badge-secondary{ background: #f0f0f0; color: #666; }
.ucp-badge-type     { background: #f0f0f0; color: #444; }

/* ---------- Запись заявки ---------- */
.app-entry {
    border-left: 4px solid #ba1515;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.app-entry-info { flex: 1; min-width: 0; }

.app-entry-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.app-entry-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.app-entry-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* ---------- Уведомление ---------- */
.notif-item {
    border-left: 4px solid #1a1a1a;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    transition: background 0.2s;
}

.notif-item.unread          { font-weight: 600; }
.notif-item.unread-approved { border-left-color: #2e7d32; background: #f5fbf5; }
.notif-item.unread-rejected { border-left-color: #c62828; background: #fef8f8; }
.notif-item.unread-default  { background: #fafafa; }

.notif-item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    margin: 0 0 3px;
}

.notif-item-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #aaa;
}

.notif-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ---------- Персонажи ---------- */
.char-grid {
    display: flex;
    flex-direction: column; /* Выстраивает элементы вертикально друг под другом */
    gap: 15px; /* Расстояние между карточками (замени на нужное) */
    width: 100%;
}

.char-card {
    background: #fff;
    border-radius: 4px;
    border-left: 4px solid #c07000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 16px 18px;
    transition: box-shadow 0.2s;
    position: relative;
    width: 100%; /* Растягивает карточку на всю ширину сетки */
    box-sizing: border-box;
}

.char-card:hover { box-shadow: 0 4px 20px rgba(192,112,0,0.12); }

.char-card-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.char-card-age {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.char-card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.char-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.char-card-desc, .char-card-name {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.char-card-actions .s-btn {
    flex: 1;
    min-width: 110px; /* и это */
}

/* ---------- Пустые состояния ---------- */
.ucp-empty {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 28px 0;
    letter-spacing: 0.5px;
}

/* ---------- Разделитель секций ---------- */
.ucp-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 32px 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 600px) {
    .app-entry { flex-direction: column; }
    .app-entry-actions { flex-direction: row; width: 100%; }
    .app-entry-actions .s-btn { flex: 1; }
    .char-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   firefighter_flat.css v5 — вставить в конец ucp.css
   ========================================================= */

/* ---------- Контейнер ---------- */
#content .content-wrap .container {
    max-width: 1300px;
    padding: 0 28px;
}

/* ---------- Инфо-блок (ck-content) ---------- */
.ck-content {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
}

/* Крупный заголовок «ВАЖНО» */
.ck-content h2:first-child {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
}

/* Заголовок «Пожарная академия — ОТКРЫТА/ЗАКРЫТА» */
.ck-content h2:nth-child(2) {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 52px !important;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.1;
    margin: 0 0 32px;
}

/* Статус внутри h2 */
.ck-content h2:nth-child(2) span[style*="hsl(113"] {
    color: #2e7d32 !important;
}

.ck-content h2:nth-child(2) span[style*="hsl(0"] {
    color: #ba1515 !important;
}

.ck-content hr {
    border: none;
    border-top: 2px solid #ebebeb;
    margin: 28px 0;
}

.ck-content p,
.ck-content li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    color: #555;
    line-height: 1.85;
}

.ck-content a {
    color: #ba1515;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Заголовок «Персональная информация» и т.д. ---------- */
#content h4.mb-0 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 40px !important;
    margin-bottom: 0 !important;
}

#content hr.mt-1 {
    border: none;
    border-top: 2px solid #1a1a1a;
    margin: 8px 0 24px !important;
}

/* ---------- Лейблы ---------- */
#academy label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #2e2e2e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

#academy small {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #bbb;
    margin-top: 6px;
    display: block;
    line-height: 1.5;
}

#academy small a {
    color: #ba1515;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Поля ---------- */
#academy .form-control {
    height: 50px;
    padding: 0 16px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    box-shadow: none;
    transition: border-color 0.15s;
    width: 100%;
}

#academy .form-control:focus {
    border-color: #0F2940;
    box-shadow: none;
    outline: none;
}

#academy .form-control:disabled,
#academy .form-control[readonly] {
    background: #fafafa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

#academy .form-control.is-invalid {
    border-color: #e53935;
}

#academy textarea.form-control {
    height: auto;
    padding: 14px 16px;
    resize: vertical;
}

#academy select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23bbb'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}

/* ---------- Отступы ---------- */
#academy .mb-3 {
    margin-bottom: 24px !important;
    
}

#academy .row.mx-1 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#academy [class*="col-"] {
    padding-left: 0;
    padding-right: 20px;
}

/* ---------- Кнопки ---------- */
#academy .btn-primary,
#academy #submitBtn {
    background: #ba1515;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 40px;
    color: #fff;
    box-shadow: none;
    transition: opacity 0.15s;
}

#academy .btn-primary:hover,
#academy #submitBtn:hover {
    opacity: 0.85;
    background: #ba1515;
    box-shadow: none;
}

#academy .btn-primary:disabled,
#academy #submitBtn:disabled {
    background: #e8e8e8;
    color: #bbb;
    opacity: 1;
}

#academy .btn-secondary {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    padding: 11px 24px;
    box-shadow: none;
    transition: border-color 0.15s, color 0.15s;
}

#academy .btn-secondary:hover:not(:disabled) {
    border-color: #1a1a1a;
    color: #ffffff;
    background: #fff;
    box-shadow: none;
}

#academy .btn-secondary:disabled { opacity: 0.35; }

#academy .btn-danger.btn-sm {
    background: #fff;
    border: 2px solid #f5c0c0;
    border-radius: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c62828;
    padding: 7px 18px;
    box-shadow: none;
    transition: background 0.15s;
}

#academy .btn-danger.btn-sm:hover { background: #fdecea; }

/* ---------- Чекбокс ---------- */
#academy .form-check {
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#academy .form-check-input {
    accent-color: #ba1515;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 3px 0 0 0;
    cursor: pointer;
}

#academy .form-check-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #555;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.7;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
    .ck-content h2:nth-child(2) { font-size: 36px !important; }
    #content .content-wrap .container { padding: 0 16px; }
    #academy .form-control { font-size: 15px; }
}


/* =========================================================
   Верхний блок firefighter.php (шапка + инфо)
   ========================================================= */

/* Статус */
.ff-status-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: -10px 0 36px;
    flex-wrap: wrap;
}

.ff-status {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ff-status-open  { color: #2e7d32; }
.ff-status-closed { color: #ba1515; }

.ff-status-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #aaa;
}

.ff-status-note a {
    color: #ba1515;
    font-weight: 600;
    text-decoration: none;
}

/* О профессии */
.ff-about {
    margin-bottom: 32px;
}

.ff-about p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    color: #555;
    line-height: 1.85;
    margin: 0;
}

/* Двухколоночная сетка */
.ff-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.ff-info-block {
    border: 2px solid #f0f0f0;
    border-radius: 6px;
    padding: 24px 26px;
}

.ff-info-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ba1515;
    margin-bottom: 16px;
}

/* Список требований */
.ff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ff-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    color: #444;
    line-height: 1.5;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ff-list li::before {
    content: '—';
    color: #ba1515;
    flex-shrink: 0;
    font-weight: 700;
}

.ff-list li:last-child { border-bottom: none; }

.ff-list-ooc {
    color: #aaa !important;
    font-size: 12px !important;
}

.ff-list-ooc::before { color: #ccc !important; }

/* Шаги процесса */
.ff-steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ff-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ff-step-n {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}

.ff-step-item strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
}

.ff-step-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .ff-info-grid { grid-template-columns: 1fr; }
    .ff-status-wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* =========================================================
   v6 — OOC баннер, статус в sub, фикс шрифта
   ========================================================= */

/* OOC баннер вверху */
.ff-ooc-banner {
    text-align: center;
    margin: 8px 0 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #bbb;
}

.ff-ooc-prefix,
.ff-ooc-suffix {
    color: #ccc;
    font-weight: 400;
    font-size: 22px;
}

.ff-ooc-link {
    color: #ba1515;
    text-decoration: none;
    border-bottom: 2px solid #ba1515;
    padding-bottom: 1px;
    transition: opacity 0.15s;
}

.ff-ooc-link:hover {
    opacity: 0.75;
    color: #ba1515;
    text-decoration: none;
}

/* Статус внутри ucp-page-sub */
.ff-sub-status {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ff-sub-open  { color: #2e7d32; }
.ff-sub-closed { color: #ba1515; }

/* ucp-page-sub переопределение — убрать ::before/::after тире чтобы не дублировались */
.ucp-page-sub {
    letter-spacing: 1.5px;
}

/* Фикс шрифта в ff-list и ff-steps — принудительно Latin-first стек */
.ff-list li,
.ff-step-item strong,
.ff-step-item p {
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.ff-step-n {
    font-family: 'Barlow Condensed', 'Arial', sans-serif;
}

.ff-info-label {
    font-family: 'Barlow Condensed', 'Arial', sans-serif;
}


/* =========================================================
   v7 — баннер чёрный, шрифт в блоках жирнее
   ========================================================= */

.ff-ooc-banner {
    color: #1a1a1a;
}

.ff-ooc-prefix,
.ff-ooc-suffix {
    color: #555;
}

.ff-list li {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.ff-step-item strong {
    font-size: 14px;
}

.ff-step-item p {
    font-size: 13.5px;
    font-weight: 500;
    color: #555;
}


/* v8 — ff-info-label жирнее */
.ff-info-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ba1515;
}

.ff-asterisk {
    color: #ba1515;
    font-weight: 700;
}
 
.ff-footnote {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #2e2e2e;
    line-height: 1.6;
    margin: 12px 0 32px;
}

.ff-step-item p {
    font-size: 12px;
    color: #2e2e2e;
    line-height: 1.55;
}

.apps-page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0;
}
 
.apps-page-divider {
    border: none;
    border-top: 2px solid #1a1a1a;
    margin: 10px auto 36px;
    width: 60px;
}
 
/* ---------- Статус набора ---------- */
.apps-status-section { margin-bottom: 44px; }
 
.apps-status-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    text-align: center;
    margin-bottom: 16px;
}
 
.apps-status-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
 
.apps-status-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    min-width: 110px;
    border: none;
}
 
.apps-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
 
.apps-status-card.open  { background: #e8f5e9; color: #1b5e20; }
.apps-status-card.closed { background: #fdecea; color: #7f1010; }
 
.apps-status-card-name  { font-size: 15px; line-height: 1; }
.apps-status-card-state { font-size: 12px; letter-spacing: 2px; opacity: 0.75; }
 
/* ---------- Секции ---------- */
.apps-section {
    margin-bottom: 12px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
 
.apps-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: #fafafa;
    cursor: pointer;
    user-select: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.12s;
}
 
.apps-section-toggle:hover { background: #f3f3f3; }
 
.apps-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
}
 
.apps-section-chevron {
    font-size: 18px;
    color: #aaa;
    transition: transform 0.2s;
    line-height: 1;
}
 
.apps-section.collapsed .apps-section-chevron { transform: rotate(-90deg); }
.apps-section-body {
    padding: 20px 22px;
    border-top: 2px solid #e8e8e8;
    background: #fff;
}
.apps-section.collapsed .apps-section-body { display: none; }
 
/* ---------- Фильтры ---------- */
.apps-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
 
.apps-filter-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 5px;
    border: 2px solid #e8e8e8;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.13s;
    line-height: 1.4;
}
 
.apps-filter-btn:hover { border-color: #1a1a1a; color: #1a1a1a; }
 
.apps-filter-btn[data-filter="fire"],
.apps-filter-btn[data-position="fire"]   { border-color: #ba1515; color: #ba1515; }
.apps-filter-btn[data-filter="ems"],
.apps-filter-btn[data-position="ems"]    { border-color: #1565c0; color: #1565c0; }
.apps-filter-btn[data-filter="lifeguard"],
.apps-filter-btn[data-position="lifeguard"] { border-color: #e91e8c; color: #e91e8c; }
.apps-filter-btn[data-filter="pio"],
.apps-filter-btn[data-position="pio"]    { border-color: #6a1b9a; color: #6a1b9a; }
.apps-filter-btn[data-filter="pilot"],
.apps-filter-btn[data-position="pilot"]  { border-color: #e65100; color: #e65100; }
 
.apps-filter-btn.active,
.apps-filter-btn[data-filter="all"].active   { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.apps-filter-btn[data-filter="fire"].active,
.apps-filter-btn[data-position="fire"].active { background: #ba1515; border-color: #ba1515; color: #fff; }
.apps-filter-btn[data-filter="ems"].active,
.apps-filter-btn[data-position="ems"].active  { background: #1565c0; border-color: #1565c0; color: #fff; }
.apps-filter-btn[data-filter="lifeguard"].active,
.apps-filter-btn[data-position="lifeguard"].active { background: #e91e8c; border-color: #e91e8c; color: #fff; }
.apps-filter-btn[data-filter="archive"].active { background: #555; border-color: #555; color: #fff; }
.apps-filter-btn[data-filter="pio"].active,
.apps-filter-btn[data-position="pio"].active  { background: #6a1b9a; border-color: #6a1b9a; color: #fff; }
.apps-filter-btn[data-filter="pilot"].active,
.apps-filter-btn[data-position="pilot"].active { background: #e65100; border-color: #e65100; color: #fff; }
 
/* ---------- Тулбар ---------- */
.apps-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
 
.apps-search { position: relative; }
 
.apps-search input {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    width: 230px;
    padding: 8px 14px 8px 36px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.15s;
    outline: none;
}
 
.apps-search input:focus { border-color: #ba1515; background: #fff; }
.apps-search input::placeholder { color: #bbb; }
 
.apps-search::before {
    content: '⌕';
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 17px;
    pointer-events: none;
}
 
.apps-broadcast-btns { display: flex; gap: 6px; flex-wrap: wrap; }
 
.apps-broadcast-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
 
.apps-broadcast-btn:hover { opacity: 0.82; }
.apps-broadcast-btn.fire { background: #ba1515; color: #fff; }
.apps-broadcast-btn.ems  { background: #1565c0; color: #fff; }
.apps-broadcast-btn.lg   { background: #e91e8c; color: #fff; }
 
/* ---------- Таблица ---------- */
.apps-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}
 
.apps-table thead th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    background: #fafafa;
    padding: 13px 16px;
    border-bottom: 2px solid #e8e8e8;
    white-space: nowrap;
}
 
.apps-table tbody tr { transition: background 0.1s; }
.apps-table tbody tr:hover td { background: #fdf5f5; }
 
.apps-table tbody td {
    font-size: 15px;
    color: #1a1a1a;
    padding: 13px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
 
.apps-table tbody tr:last-child td { border-bottom: none; }
 
/* статус-дропдаун — выравниваем по высоте строки */
.apps-table .status-dropdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    height: 36px;
    border: 2px solid #e8e8e8;
    border-radius: 5px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    min-width: 120px;
    box-sizing: border-box;
}
 
.apps-table thead th,
.apps-table tbody td {
    text-align: center;
}

.apps-table .status-dropdown:focus { border-color: #ba1515; }
 
.status-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    margin-left: 6px;
    vertical-align: middle;
}
 
.apps-table .btn-view {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6 12px;
    border: 2px solid #e8e8e8;
    border-radius: 5px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.apps-table .btn-view:hover {
    background: #070707;
    color: #fff;
}

.btn-archive {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 20px;
    background: transparent;
    color: #aaa;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
}
.btn-archive:hover { border-color: #070707; color: #070707; }

/* flash-анимации */
.status-revert { animation: flash-red 0.6s ease; }
@keyframes flash-red {
    0%   { background-color: #f8d7da; }
    50%  { background-color: #f5c2c7; }
    100% { background-color: inherit; }
}
.status-success { animation: flash-green 0.6s ease; }
@keyframes flash-green {
    0%   { background-color: #d1e7dd; }
    50%  { background-color: #badbcc; }
    100% { background-color: inherit; }
}
 
@media (max-width: 768px) {
    .apps-table thead { display: none; }
    .apps-table, .apps-table tbody { display: block; }

    .apps-table tbody tr {
        display: block;
        border: 1.5px solid #e8e8e8;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 14px 16px;
        background: #fff;
    }

    .apps-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 13px;
        text-align: left;
    }

    .apps-table tbody td:empty,
    .apps-table tbody td:last-child { border-bottom: none; }

    .apps-table tbody td::before {
        content: attr(data-label);
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #aaa;
        flex-shrink: 0;
        min-width: 90px;
    }

    /* ячейка статуса — сбрасываем position:relative и absolute span */
    .apps-table tbody td[data-label="Статус"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .apps-table tbody td[data-label="Статус"] > div {
        width: 100%;
        justify-content: flex-start !important;
    }

    .apps-table .status-dropdown { width: 100%; min-width: unset; }

    /* кнопка — на всю ширину */
    .apps-table tbody td:last-child {
        padding-top: 10px;
        justify-content: center;
    }

    .apps-table .btn-view {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box;
    }
    .apps-table tbody td:last-child::before {
        display: none;
    }
    .apps-table tbody tr:hover td { background: transparent; }
}

/* =========================================================
   news.php + news_detailed.php
   ========================================================= */

.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 3px solid #1a1a1a;
    padding-bottom: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-header-left { display: flex; flex-direction: column; gap: 4px; }

.news-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ba1515;
}

.news-page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1;
    margin: 0;
}

.news-create-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 22px;
    background: #ba1515;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, transform 0.12s;
    display: inline-block;
    white-space: nowrap;
}

.news-create-btn:hover { background: #961010; color: #fff; transform: translateY(-1px); }

/* ---------- Герой ---------- */
.news-hero {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 8;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 3px;
    text-decoration: none;
}

.news-hero img {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.news-hero:hover img { transform: scale(1.03); }

.news-hero-overlay {
    position: absolute !important;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.news-hero-date {
    position: absolute !important;
    top: 0;
    left: 0;
    background: #ba1515;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    z-index: 2;
}

.news-hero-body {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 2;
}

.news-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff !important;
    line-height: 1.1;
    margin-bottom: 8px;
}

.news-hero-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 640px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero-actions { display: flex; align-items: center; gap: 8px; }

.news-hero-btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 18px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 2px solid #fff;
}

.news-hero:hover .news-hero-btn { background: #ba1515; border-color: #ba1515; color: #fff; }

.news-hero-edit {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 2px solid rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.85);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.15s;
}

.news-hero-edit:hover { border-color: #fff; color: #fff; }

.news-hero-delete {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 2px solid rgba(255,100,100,0.45);
    color: rgba(255,160,160,0.9);
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    background: none;
    transition: all 0.15s;
}

.news-hero-delete:hover { border-color: #ff6464; color: #ff6464; }

/* ---------- Подсетка ---------- */
.news-subgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}

/* ---------- Карточка ---------- */
.news-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s;
}

.news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }

.news-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

.news-card-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img-wrap img { transform: scale(1.05); }

.news-card-body {
    padding: 12px 14px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 2px solid #e8e8e8;
    transition: border-color 0.15s;
}

.news-card:hover .news-card-body { border-color: #ba1515; }

.news-card-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ba1515;
    margin-bottom: 5px;
}

.news-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #666;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    flex-wrap: nowrap;
}

.news-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.14s;
    cursor: pointer;
    background: none;
    line-height: 1.4;
    white-space: nowrap;
}

.news-btn.primary { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.news-btn.primary:hover { background: #ba1515; border-color: #ba1515; color: #fff; }

.news-btn.edit { border-color: #e0a800; color: #b08000; }
.news-btn.edit:hover { background: #e0a800; border-color: #e0a800; color: #fff; }

.news-btn.delete { border-color: #ddd; color: #999; }
.news-btn.delete:hover { background: #ba1515; border-color: #ba1515; color: #fff; }

/* ---------- Пагинация ---------- */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 36px 0 20px;
}

.news-page-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    color: #888;
    text-decoration: none;
    transition: all 0.13s;
}

.news-page-btn:hover { border-color: #1a1a1a; color: #1a1a1a; }
.news-page-btn.active { background: #ba1515; border-color: #ba1515; color: #fff; }

/* ---------- Кнопка «Назад» ---------- */
.news-back-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 22px;
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.12s;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

.news-back-btn:hover { background: #1a1a1a; color: #fff; transform: translateY(-1px); }

/* ---------- Обёртка контента детальной ---------- */
.news-detail-wrap {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #ba1515;
    border-radius: 4px;
    padding: 32px 36px 44px;
    margin-bottom: 36px;
}

/* ---------- Заголовок ---------- */
.news-detail-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0 0 8px;
}

/* ---------- Дата ---------- */
.news-detail-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ba1515;
    display: block;
    margin-bottom: 20px;
}

/* ---------- Разделитель ---------- */
.news-detail-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 0 0 28px;
}

/* ---------- CKEditor контент ---------- */
.news-detail-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.75;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 28px;
    margin-bottom: 10px;
}

.news-detail-body h2 { font-size: 26px; }
.news-detail-body h3 { font-size: 21px; }
.news-detail-body h4 { font-size: 17px; }

.news-detail-body p { margin: 0 0 14px; }

.news-detail-body a { color: #ba1515; text-decoration: underline; text-underline-offset: 2px; }
.news-detail-body a:hover { color: #961010; }

.news-detail-body ul,
.news-detail-body ol { padding-left: 20px; margin: 0 0 14px; }
.news-detail-body li { margin-bottom: 6px; }

.news-detail-body blockquote {
    border-left: 3px solid #ba1515;
    margin: 20px 0;
    padding: 10px 18px;
    background: #fafafa;
    color: #555;
    font-style: italic;
}

.news-detail-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 12px; }
.news-detail-body th {
    background: #1a1a1a; color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 8px 12px; text-align: left;
}
.news-detail-body td { padding: 7px 12px; border-bottom: 1px solid #e8e8e8; }
.news-detail-body tr:last-child td { border-bottom: none; }

/* ---------- Кнопки редактировать/удалить ---------- */
.news-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

@media (max-width: 768px) {
    .news-subgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .news-hero {
        aspect-ratio: 16 / 9;
    }

    .news-hero-title {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .news-hero-desc {
        display: none;
    }

    .news-hero-body {
        padding: 16px 18px;
    }

    .news-hero-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .news-hero-btn,
    .news-hero-edit,
    .news-hero-delete {
        font-size: 10px;
        padding: 6px 10px;
    }

    .news-page-title {
        font-size: 36px;
    }

    .news-create-btn {
        font-size: 11px;
        padding: 8px 14px;
    }

    .news-card-footer {
        flex-wrap: wrap;
    }

    .news-btn {
        font-size: 10px;
        padding: 4px 7px;
    }
}

@media (max-width: 480px) {
    .news-subgrid {
        grid-template-columns: 1fr;
    }

    .news-card-footer {
        flex-wrap: wrap;
    }
}